Repository navigation
feat(verify): allocate kept verifier artifact directories through VerifierFixture - #11091
Merged
Merged
Conversation
…ifierFixture The agent-client verifiers keep their lab directory as the run's artifact record (receipt, transcripts, profiles, Evidence) and name it as artifacts in the receipt, so it is not a fixture root that release should remove. VerifierFixture.keepArtifacts allocates such a directory canonically, never removes it, and names it on stderr at allocation so a run that fails before its receipt still reports where its artifacts are. The 11 client verifiers use it, and the verifier-fixture-root baseline shrinks by 11 sites.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryAdds
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Client verifier] --> B[VerifierFixture.keepArtifacts]
B --> C[Create temporary directory]
C --> D[Resolve canonical path]
D --> E[Print path to stderr]
E --> F[Return frozen path and kept flag]
F --> G[Write artifacts]
G --> H[Leave directory after run]
Reviews (2) · Last reviewed commit: "feat(verify): allocate kept verifier art..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The agent-client verifiers create a
labdirectory and never remove it. Each one names that directory asartifactsin its receipt, because it is the run's record: receipt, client stdout/stderr, profiles and Evidence. The verifier-fixture guard counted these allocations as fixture roots still waiting to move ontoVerifierFixture. Releasing them would delete the very artifacts the receipt points to. This PR adds an explicit API for a kept artifact directory, instead of exempting the sites from the guard, and moves the client verifiers onto it. No linked issue; this is a step of the internal verifier-fixture cleanup.Problem and expected behavior
const lab = await mkdtemp(join(tmpdir(), "rea-<client>-client-")). The directory was allocated ad hoc, kept implicitly, and its path was reported only if the run reached its receipt.const { path: lab } = await VerifierFixture.keepArtifacts({ prefix: "rea-<client>-client-" }). The directory is allocated canonically and privately and is never removed. Allocation writesKeeping verifier artifacts at <path>to stderr, so a run that fails before its receipt still reports where its artifacts are.Change and scope
scripts/lib/verifier-fixture.mjsand.d.mts: newVerifierFixture.keepArtifacts({ prefix, parent }), which returns a frozen{ path, kept: true }.accountparent.scripts/verify/architecture-guard-baselines.json:verifier-fixture-rootshrinks by 11 sites.verify-agent-experience.mjsremoves its run root unlessREA_AGENT_EVAL_KEEP_FIXTURES=true, so it is a conditionally retained fixture root and will move toVerifierFixturewithretain(...).verify-bun-standalone,verify-go-binaryandverify-packaged-wasm-artifactclose their roots. The rest of the earlier "never removes its root" list (pcap, web-network-captures, agentenv, binary-layout, deno, evm, hopper-deadlines) needs to be checked one file at a time in the fixture slices that remain.Contribution scope: not applicable (verifier tooling only).
Contract and boundary impact
scripts/lib/verifier-fixture.mjsowns verifier directory allocation, now including directories that are deliberately kept.artifacts: lab. The path is now the canonical spelling (for example/private/var/...on macOS).docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
tests/process-global/verifierFixture.test.tsnow checks thatkeepArtifactsallocates under the selected parent with the prefix, with private mode (no group or other bits), returns a frozen{ path, kept: true }, and names the path on stderr.artifacts: labinto its receipt and has no removal oflab.Keeping verifier artifacts at <path>line.node --check.For evidence-bearing changes:
Validation performed
npm run test:focused -- tests/process-global/verifierFixture.test.ts: 10 passed.node --checkon the 11 migrated verifiers andscripts/lib/verifier-fixture.mjs: passed.node scripts/verify/architecture-guards.mjs --shrink-baselines, thennode scripts/verify/architecture-guards.mjs: passed.npm run check:fast: passed.Compatibility, safety, and release
mkdtempmade them before.Author readiness
Human owner:
Before merge
type(scope): outcome.