Skip to content

chore: verify the published 0.5.6 CLI in consumer smoke - #265

Merged
byapparov merged 3 commits into
mainfrom
chore/refresh-released-smoke-0.5.6
Nov 30, 2026
Merged

byapparov merged 3 commits into
mainfrom
chore/refresh-released-smoke-0.5.6

Conversation

@byapparov

@byapparov byapparov commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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

  • The active workflow and the reusable example install 0.5.6 and verify its native binary hash and version.
  • The release runbook explains when to refresh the smoke pins and where to record each release's verification evidence.

Implementation

  • Updated the package versions and SHA-256 in both workflows and the local recipe. The runner now records the 0.5.6 release commit and uses its expected version for the assertion.
  • Replaced the 0.5.4 candidate appendix with a version-independent post-publication step. Each release PR carries its own verification evidence.

Test Plan

  • Install the pinned wrapper and Linux native package from npm with package scripts disabled. Verify both tarball integrities and match the native binary to a separate fresh install.
  • Run the consumer fixture against the published binary. Check the hash, version, file-read bytes, NDJSON events, and invalid-schema rejection before a model request.
  • Run actionlint, node --check, and git diff --check.
  • Verify the root README install command selects 0.5.6.
  • Verify the released consumer smoke on the final PR head.
  • Verify the standard PR checks and address the automated review findings.

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 passed node --check, and the diff passed git 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.md under 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.

@aictrl-dev

aictrl-dev Bot commented Nov 30, 2026

Copy link
Copy Markdown

Code review

Verdict: Looks good — only minor / nit comments below. · 🔴 0 · 🟠 0 · 🟡 1 · ⚪ 0 · 0/1 resolved

  • 🟡 README.md:124 — Root README PR-review recipe still pins CLI 0.5.4
🤖 Fix all 1 open findings with your agent
Fix the following code review findings on aictrl-dev/cli PR #265 (head branch).
Run the relevant tests/linters after each change.

1. README.md:124 — Root README PR-review recipe still pins CLI 0.5.4
   Detail: This PR refreshes every released-smoke pin from 0.5.4 to 0.5.6 (active workflow, example workflow, example README, smoke.mjs runner), but the root README's GitHub Actions PR-review recipe — the companion that examples/released-smoke/README.md links to in its opening line — still runs `npm install -g @aictrl/cli@0.5.4` under the comment "Pin a version for reproducible runs; update it when you upgrade". Consumers following the refreshed 0.5.6 smoke docs land on a companion recipe pinned two releases behind (0.5.5, 0.5.6), drifting from the smoke-verified version this PR pins. Note the pin comment frames updates as upgrade-driven, so bumping it here is a judgment call; the mismatch itself is directly observed at head.
   Suggested fix: Bump README.md line 124 to `npm install -g @aictrl/cli@0.5.6` so the linked companion recipe matches the pinned released-smoke version; optionally mention in RELEASING.md step 6 that the root README recipe pin is refreshed together with the smoke pins.
📋 Out-of-diff findings (1)
Sev Location Finding
🟡 README.md:124 Root README PR-review recipe still pins CLI 0.5.4

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

Comment thread examples/released-smoke/README.md Outdated
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ 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.

Comment thread RELEASING.md Outdated
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ 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

@aictrl-dev

aictrl-dev Bot commented Nov 30, 2026

Copy link
Copy Markdown

Code review

Verdict: Looks good — only minor / nit comments below. · 🔴 0 · 🟠 0 · 🟡 0 · ⚪ 2 · 0/2 resolved

  • ⚪ examples/released-smoke/README.md:29 — README rationale for AGENTS.md guard names wrong source
  • ⚪ RELEASING.md:59-60 — Step 6 refresh list omits example README pins
🤖 Fix all 2 open findings with your agent
Fix the following code review findings on aictrl-dev/cli PR #265 (head branch).
Run the relevant tests/linters after each change.

1. examples/released-smoke/README.md:29 — 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."
2. RELEASING.md:59-60 — 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/)."
📋 Out-of-diff findings (2)
Sev Location Finding
⚪ examples/released-smoke/README.md:29 README rationale for AGENTS.md guard names wrong source
⚪ RELEASING.md:59-60 Step 6 refresh list omits example README pins

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

@byapparov byapparov self-assigned this Nov 30, 2026
@byapparov
byapparov merged commit f8b04c8 into main Nov 30, 2026
6 checks passed
@byapparov
byapparov deleted the chore/refresh-released-smoke-0.5.6 branch November 30, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant