diff --git a/.claude/skills/parallel-agents/SKILL.md b/.claude/skills/parallel-agents/SKILL.md index bfe36d16b3..5bee075d96 100644 --- a/.claude/skills/parallel-agents/SKILL.md +++ b/.claude/skills/parallel-agents/SKILL.md @@ -69,14 +69,18 @@ a mistake that actually happened. `.agents/skills/pr-review/scripts/generated.sh origin/main`. - **CI runs the integration suites.** `Integration (router)` (`.github/workflows/integration.yml`) runs each package in its matrix in its own job, on a PR that changes `acceleration/**` (not - only `.md`), `go.work`, `go.work.sum` or the workflow. Do not repeat those packages locally: - run the suites you touched, and read CI for the rest. + only `.md`), `go.work`, `go.work.sum` or the workflow, once the PR is ready: a draft runs no + CI workflow, and `gh pr ready` starts it. Do not repeat those packages locally: run the suites + you touched, and read CI for the rest after the PR is marked ready. - CI leaves out the vendor suites that need API keys (tts, stt, llm, sts, search, imagegen, detection). CI also leaves out `imagerouter` and `dlc` (AI-2040), and the Postgres packages `internal/campaign`, `internal/phone/outcome`, `internal/searchrouter` and `internal/simulation`. Run those by hand when you touch them, and list the runs in the PR. - The check is not required on `main`. When it ran, wait for it to pass before you merge. - A check that did not run leaves nothing to wait for. + A check that did not run leaves nothing to wait for. A check `skipping` on a draft is not a + pass: it did not run. + - Push, wait until the push's runs are listed, then `gh pr ready`. Both events share one + concurrency group, so a draft run created after the ready run would cancel it. ## Review and merge one PR at a time @@ -104,7 +108,7 @@ Authors may write in parallel. Reviews and merges run one PR at a time. - **Use a smaller model for mechanical work**: a rebase whose conflicts are only in docs, watching CI, editing a PR body. - **Test only what changed while iterating.** Run the touched suites and the mutation checks. Before - the final review, read CI's `Integration (router)` check and run by hand the suites it leaves - out. The reviewer does not repeat either. + the final review, mark the PR ready, read CI's `Integration (router)` check and run by hand + the suites it leaves out. The reviewer does not repeat either. - **Ask the first reviewer to find everything.** Later rounds look only at the delta. - **Wait for an agent's report.** Do not read its raw transcript file. diff --git a/.claude/skills/pr/SKILL.md b/.claude/skills/pr/SKILL.md index e8df95bfa0..2635e0cce3 100644 --- a/.claude/skills/pr/SKILL.md +++ b/.claude/skills/pr/SKILL.md @@ -15,6 +15,7 @@ description: Create a draft pull request for the Vision-Agents repo using gh CLI ## Creating - Always `gh pr create --draft`. Push the branch first. +- A draft runs no CI workflow; CodeQL, the labeler and CodeRabbit still run. `gh pr ready` starts the workflows whose paths the PR touches, and every push after it runs them again, so mark it ready once the branch is done, not before. - Follow `.github/pull_request_template.md`. Read every commit on the branch, do not summarise from the latest commit alone. ## Title diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index ba02f59f2d..3c402aab30 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -32,6 +32,9 @@ on: - '!**/*.md' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - 'acceleration/**' - 'sdks/go/**' @@ -67,6 +70,7 @@ concurrency: jobs: go: + if: github.event.pull_request.draft != true runs-on: ubuntu-latest # Every backend test that needs Redis skips without ROUTER_REDIS_ADDR: the service gives # them one, on a host port the runner picks so a port already held on the runner cannot diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index 7581c427d2..93bc141850 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -26,6 +26,9 @@ on: - 'examples/text_agents/mcp_plugins/**' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - '**/*.py' - '**/pyproject.toml' @@ -55,6 +58,7 @@ concurrency: jobs: # No secrets: unit tests reach no provider, and a pull request's code runs here. unit: + if: github.event.pull_request.draft != true uses: ./.github/workflows/run_tests.yml with: marker: 'not integration' diff --git a/.github/workflows/ci-sdks.yml b/.github/workflows/ci-sdks.yml index 28a8100eea..c8ece6f0be 100644 --- a/.github/workflows/ci-sdks.yml +++ b/.github/workflows/ci-sdks.yml @@ -25,6 +25,9 @@ on: - 'examples/voice_agents/swift_assistant/a2ui/instructions.md' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - 'sdks/go/**' - 'sdks/js/**' @@ -54,6 +57,7 @@ concurrency: jobs: # Every step runs after a failure (`!cancelled()`), so each SDK reports its result. sdks: + if: github.event.pull_request.draft != true runs-on: ubuntu-latest # For the Go SDK, the only Go here: it is installed on its own, with no go.work, by Go as # old as its go directive, so it is checked that way too. GOTOOLCHAIN=local keeps 1.25 diff --git a/.github/workflows/client-sdks.yml b/.github/workflows/client-sdks.yml index 0656a10b5d..f803c55bad 100644 --- a/.github/workflows/client-sdks.yml +++ b/.github/workflows/client-sdks.yml @@ -18,6 +18,9 @@ on: - '.github/workflows/client-sdks.yml' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - 'sdks/kotlin/**' - 'sdks/swift/**' @@ -41,6 +44,7 @@ jobs: # A pull request builds only the SDKs it touches, so a Dart change does not wait on the # macOS runner. A push to main builds them all. changes: + if: github.event.pull_request.draft != true runs-on: ubuntu-latest outputs: kotlin: ${{ steps.filter.outputs.kotlin }} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3a5e6ef260..80730b0fa0 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -21,6 +21,9 @@ on: - '.github/workflows/integration.yml' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - 'acceleration/**' - '!**/*.md' @@ -37,6 +40,7 @@ permissions: jobs: integration: + if: github.event.pull_request.draft != true name: integration (${{ matrix.group }}) runs-on: ubuntu-latest # MEM0_API_KEY lives in this environment, which a pull request's code never enters. diff --git a/.github/workflows/python-versions.yml b/.github/workflows/python-versions.yml index 9fd5b03165..26e2d129b1 100644 --- a/.github/workflows/python-versions.yml +++ b/.github/workflows/python-versions.yml @@ -9,6 +9,9 @@ on: - '.github/workflows/python-versions.yml' pull_request: branches: [ "**" ] + # A draft runs nothing: CI starts when the pull request is marked ready (ready_for_review) + # and runs on every push after that. The default types leave out ready_for_review. + types: [ opened, synchronize, reopened, ready_for_review ] paths: - '**/pyproject.toml' - 'uv.lock' @@ -29,6 +32,7 @@ jobs: # into its own log so their output does not interleave. Every version is checked even after # one fails, and the job fails at the end, naming the versions that did not resolve. resolve: + if: github.event.pull_request.draft != true name: Resolve on Python 3.10–3.14 runs-on: ubuntu-latest env: