Repository navigation
chore: verify the published 0.5.6 CLI in consumer smoke - #265
Conversation
Code reviewVerdict: Looks good — only minor / nit comments below. · 🔴 0 · 🟠 0 · 🟡 1 · ⚪ 0 · 0/1 resolved
🤖 Fix all 1 open findings with your agent📋 Out-of-diff findings (1)
Reviewed 5 files · 0 inline · view all 1 findings ↗ · AI-generated — verify findings before acting · AI guidance and feedback aictrl · AI code review for fast-moving teams · aictrl.dev |
| Neither workflow runs on `pull_request` or `pull_request_target`. The npm setup step uses network access; the CI job does not enforce no-egress isolation. The local transport binds only an ephemeral loopback port. Environment and tool restrictions are not an operating-system sandbox. | ||
|
|
||
| Released instruction discovery is imperfect ([#250](https://github.com/aictrl-dev/cli/issues/250)), so the runner rejects ancestor `AGENTS.md` and `.opencode/AGENTS.md` files before launching the CLI. Closed stdin avoids [#210](https://github.com/aictrl-dev/cli/issues/210). Ambient shell/config execution concerns remain [#245](https://github.com/aictrl-dev/cli/issues/245); use only this owned fixture, not an unknown PR checkout. | ||
| To keep repository instructions out of the fixture, the runner rejects ancestor `AGENTS.md` and `.opencode/AGENTS.md` files before launching the CLI. Closed stdin avoids [#210](https://github.com/aictrl-dev/cli/issues/210). Ambient shell/config execution concerns remain [#245](https://github.com/aictrl-dev/cli/issues/245); use only this owned fixture, not an unknown PR checkout. |
There was a problem hiding this comment.
⚪ README rationale for AGENTS.md guard names wrong source.
🤖 Fix with your agent
Fix this code review finding (aictrl-dev/cli PR #265, examples/released-smoke/README.md:29):
Problem: README rationale for AGENTS.md guard names wrong source
Detail: The rewritten sentence says the runner rejects ancestor AGENTS.md/.opencode/AGENTS.md files "to keep repository instructions out of the fixture", but in smoke.mjs the workspace is created under mkdtemp and the guard walks ancestors of that temp path (e.g. /tmp, /), so it actually detects host/ambient instruction files — the fixture contains no repository checkout whose instructions could leak. The smoke.mjs comment ("Keep host and repository instructions out of the owned fixture") and the old #250 rationale were accurate; the new README wording narrows the stated purpose to the wrong source.
Suggested fix: Match the smoke.mjs wording, e.g. "To keep host and repository instructions out of the fixture, the runner launches in a temporary workspace and rejects ancestor `AGENTS.md` and `.opencode/AGENTS.md` files before starting the CLI."
Implement the fix on the PR head branch and add a regression test that fails before the fix and passes after.
Why this matters
The rewritten sentence says the runner rejects ancestor AGENTS.md/.opencode/AGENTS.md files "to keep repository instructions out of the fixture", but in smoke.mjs the workspace is created under mkdtemp and the guard walks ancestors of that temp path (e.g. /tmp, /), so it actually detects host/ambient instruction files — the fixture contains no repository checkout whose instructions could leak. The smoke.mjs comment ("Keep host and repository instructions out of the owned fixture") and the old #250 rationale were accurate; the new README wording narrows the stated purpose to the wrong source.
Neither workflow runs on `pull_request` or `pull_request_target`. The npm setup step uses network access; the CI job does not enforce no-egress isolation. The local transport binds only an ephemeral loopback port. Environment and tool restrictions are not an operating-system sandbox.
To keep repository instructions out of the fixture, the runner rejects ancestor `AGENTS.md` and `.opencode/AGENTS.md` files before launching the CLI. Closed stdin avoids [#210](https://github.com/aictrl-dev/cli/issues/210). Ambient shell/config execution concerns remain [#245](https://github.com/aictrl-dev/cli/issues/245); use only this owned fixture, not an unknown PR checkout.
Check the GitHub Actions run for CI results against the pinned binary.
| 6. In a separate aictrl application PR, update `docker/executor/Dockerfile` to | ||
| 6. Refresh the pinned [released consumer smoke](examples/released-smoke/README.md) | ||
| in a follow-up CLI PR once the new packages are visible on npm. Update the | ||
| package versions and Linux x64 baseline binary SHA-256 in the active workflow |
There was a problem hiding this comment.
⚪ Step 6 refresh list omits example README pins.
🤖 Fix with your agent
Fix this code review finding (aictrl-dev/cli PR #265, RELEASING.md:59-60):
Problem: Step 6 refresh list omits example README pins
Detail: The new step-6 refresh recipe enumerates the active workflow and "example", the root README recipe, and the runner's expectedVersion/releaseSourceCommit — but this PR also had to bump the pinned npm install command and SHA-256 in examples/released-smoke/README.md, the same doc step 6 links to. "Example" most naturally reads as the example workflow, so a maintainer following the list literally on the next refresh can leave the example README pinned to a stale version and hash.
Suggested fix: Name the location explicitly, e.g. "Update the package versions and Linux x64 baseline binary SHA-256 in the active workflow, the example workflow, and the example README's local-run snippet (examples/released-smoke/)."
Implement the fix on the PR head branch and add a regression test that fails before the fix and passes after.
Why this matters
The new step-6 refresh recipe enumerates the active workflow and "example", the root README recipe, and the runner's expectedVersion/releaseSourceCommit — but this PR also had to bump the pinned npm install command and SHA-256 in examples/released-smoke/README.md, the same doc step 6 links to. "Example" most naturally reads as the example workflow, so a maintainer following the list literally on the next refresh can leave the example README pinned to a stale version and hash.
6. Refresh the pinned [released consumer smoke](examples/released-smoke/README.md)
in a follow-up CLI PR once the new packages are visible on npm. Update the
package versions and Linux x64 baseline binary SHA-256 in the active workflow
and example. Update the root README's PR-review recipe to the same version.
Update the runner's expected version and release commit, then
run the fixture against a fresh install of the pinned native package.
7. In a separate aictrl application PR, update `docker/executor/Dockerfile` to
Code reviewVerdict: Looks good — only minor / nit comments below. · 🔴 0 · 🟠 0 · 🟡 0 · ⚪ 2 · 0/2 resolved
🤖 Fix all 2 open findings with your agent📋 Out-of-diff findings (2)
Reviewed 6 files · 0 inline · view all 2 findings ↗ · AI-generated — verify findings before acting · AI guidance and feedback aictrl · AI code review for fast-moving teams · aictrl.dev |
No linked issue.
Intent
Address the two follow-up findings from the 0.5.6 release review. The consumer smoke should exercise the current published CLI, and release instructions should explain how to refresh the fixture after publication.
Expected Impact on Users
Maintainers and users running the example can verify the published 0.5.6 Linux x64 baseline binary and its NDJSON consumer contract.
Expected Outcomes
Implementation
Test Plan
actionlint,node --check, andgit diff --check.Verification
Published binary SHA-256 matched
44af63abe00fad5c371d34fdb7cffd13d7a0c1bf8808706906b2cf1c088d3092. Version and read commands exited 0. The invalid-schema command exited 2. The fixture observed two model requests and no cleanup errors.Both workflow files passed
actionlint. The smoke runner passednode --check, and the diff passedgit diff --check.The released consumer smoke passed on the PR head. GitHub Actions installed both npm packages at 0.5.6 and verified the expected native SHA-256 and fixture results.
The root README recipe installs 0.5.6. A fresh global npm install under a temporary prefix reported 0.5.6. The runbook now keeps the recipe pin and smoke pins in sync.
The local fixture passed after the documentation edits. With an inert ancestor
.opencode/AGENTS.mdunder a temporary directory, it rejected the file before launching a CLI subprocess or making a model request.The final commit passed the published consumer smoke, build, typecheck, token-budget checks and full tests, and CodeQL. The existing reviews have corresponding fixes and local verification. GitHub shows no additional automated review check on the final commit.