Repository navigation
test(acp): cover copied-session Artifact and Memory flow - #5756
Conversation
Generated-by: Codex
Generated-by: Codex
Astro-Han
left a comment
There was a problem hiding this comment.
Reviewed 8994fa0dbf917b72987b16192b698bf0b15c6d7d (5 files, +326/−0). It adds one focused integration case for the copied-session flow, a Windows CI lane that runs exactly that case, the policy allowlist entry for the new lane, and the matching notes in the ACP README and validation record. No production code is touched.
No P0–P3 findings. What follows is why the test earns its place and what I checked around it.
The assertions are the substance, and they target the isolation this feature is about. For each of branch and revision, the case creates the copy from a completed source Turn, continues the target with a prompt, uploads an Artifact into the target and reads it back byte-exact, then asserts:
- the source cannot read the target's Artifact —
_maka/artifact/queryon the source returnsartifact: null(packages/cli/src/__tests__/acp-artifact-memory-child-process.test.ts:890); - the target's own Session Memory reaches its next model request (
:919), and the previous copy kind's memory does not (:920) — so the branch target's Memory is not consumed by the revision target.
Both are asserted against the raw model request bodies (modelInputs), not against rendered text, so a regression in either direction fails the case rather than passing quietly. The harness is the real thing: official ACP SDK, stdio child process, in-process execution Runtime Host, and a local deterministic model endpoint (memoryEnabled: true, no external model key).
The new lane ran on this revision and passed — Windows ACP integration completed successfully on 8994fa0d alongside CI. That also demonstrates the lane's self-check works: it requires the TAP summary to contain # pass 1 and # fail 0 (.github/workflows/windows-acp.yml:76), so a --test-name-pattern that matched nothing would fail the lane instead of reporting a green run with zero tests executed. That is the detail I would want in any lane that runs a single named case.
No duplication with the existing Windows lanes. windows-recovery.yml installs and builds then runs its own recovery tests, windows-sandbox-w0.yml runs the filesystem-worker Windows smoke, and release-windows-check.yml covers packaging; none of them runs the ACP child-process suite, so this fills a real gap. The weekly schedule (windows-acp.yml:34) covers drift from shared dependencies that fall outside the PR path filters, which is the right compensation for a path-filtered lane.
Workflow hygiene. permissions: contents: read, a concurrency group with cancel-in-progress, timeout-minutes: 45, runs-on: windows-2025, and npm.cmd/node.exe invocations that are correct on Windows. The action pins are the same SHAs and versions the rest of the repository uses (actions/checkout v7.0.1, actions/setup-node v7.0.0), and the new PR-triggered workflow is added to the explicit allowlist that scripts/ci-workflow-policy.test.mjs:548 enforces — CI green on this head confirms that gate is satisfied.
The documentation matches the code. Each claim in the new VALIDATION.md entry — branch and revision targets continue, the Artifact round-trips byte-exact, target Memory reaches the model, the source cannot read the target Artifact, and the revision target does not consume the branch target's Memory — maps one-to-one onto an assertion I read, so the record does not claim more than the case proves.
What I could not judge
- I did not run the Windows lane myself; its own successful run on this revision is the evidence.
- I did not measure the recurring cost of the weekly scheduled run, nor stress the case's 90 s timeout against the lane's 45-minute cap.
- The TAP-summary self-check is only shown correct for the output shape of this run; a future reporter change would need the lane re-verified.
I did not approve, request changes, or merge.
Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.
Astro-Han
left a comment
There was a problem hiding this comment.
Approved at @Astro-Han's explicit request: a test- and CI-only change with no findings in the automated review of this head; the new Windows ACP lane passed on this head and CI is green.
Summary
Add an official-SDK, stdio child-process, real-Host regression for the missing cross-feature path: create branch and revision targets, continue each target, round-trip its Artifact, and verify target-scoped Memory reaches the next model request without leaking to another Session.
Clarify unsupported ACP v1 behavior in the capability matrix, record the merged-head validation evidence, and run the copied-session case on a Windows runner for ACP-related changes.
Refs #3132
Verification
main:npm run buildand the focused new ACP child-process test passed.test:dist: 1302 passed, 3 skipped, 0 failed.npm run lint,npm run format:check,npm run typecheck, CLI third-party notices, Desktop/UI knip, andgit diff --checkpassed.VALIDATION.md.windows_acpPR check builds and runs the copied-session test on Windows 2025; its result is pending. Final-head Zed smoke was not run. The prior Ubuntu full CI run linked inVALIDATION.mdpredates this test; this PR's CI will run it on the merge result.AI use
Tool(s) and scope: Codex authored the integration test, documentation, and Windows CI workflow, and ran the local checks above.
Checklist
Does this PR entail a change in behavior?