Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .claude/skills/parallel-agents/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,18 @@ a mistake that actually happened.
`.agents/skills/pr-review/scripts/generated.sh <repo root> 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

Expand Down Expand Up @@ -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.
1 change: 1 addition & 0 deletions .claude/skills/pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
4 changes: 4 additions & 0 deletions .github/workflows/ci-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/client-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'
Expand All @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down
Loading