Skip to content

feat(verify): allocate kept verifier artifact directories through VerifierFixture - #11091

Merged
morluto merged 1 commit into
mainfrom
feat/verifier-kept-artifact-directory
Nov 15, 2026
Merged

morluto merged 1 commit into
mainfrom
feat/verifier-kept-artifact-directory

Conversation

@morluto

@morluto morluto commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Summary

The agent-client verifiers create a lab directory and never remove it. Each one names that directory as artifacts in 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 onto VerifierFixture. 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

  • Before: 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.
  • After: const { path: lab } = await VerifierFixture.keepArtifacts({ prefix: "rea-<client>-client-" }). The directory is allocated canonically and privately and is never removed. Allocation writes Keeping 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.mjs and .d.mts: new VerifierFixture.keepArtifacts({ prefix, parent }), which returns a frozen { path, kept: true }.
  • Migrated (11 files): the claude, cline, commandcode, copilot, deepseek, gemini, grok, native-agent (pi/hermes), omp, opencode and qwen client verifiers. commandcode keeps its account parent.
  • scripts/verify/architecture-guard-baselines.json: verifier-fixture-root shrinks by 11 sites.
  • Not included, because these are not kept directories. verify-agent-experience.mjs removes its run root unless REA_AGENT_EVAL_KEEP_FIXTURES=true, so it is a conditionally retained fixture root and will move to VerifierFixture with retain(...). verify-bun-standalone, verify-go-binary and verify-packaged-wasm-artifact close 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

  • Semantic owner and earliest changed stage: scripts/lib/verifier-fixture.mjs owns verifier directory allocation, now including directories that are deliberately kept.
  • Contribution scope fit and linked maintainer decision: not applicable.
  • CLI and MCP/tool-catalog contract: none.
  • Provider, bridge, target-format, or platform compatibility: none. The client lanes are POSIX-only, as before.
  • Evidence, artifact, provenance, or reconstruction contract: none. Receipts still name artifacts: lab. The path is now the canonical spelling (for example /private/var/... on macOS).
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): the directories are still kept, as before. They are now allocated and named by the fixture owner.
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs and skills/; 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.

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: tests/process-global/verifierFixture.test.ts now checks that keepArtifacts allocates 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.
  • Base reproduction or other evidence: source-derived. Each client verifier writes artifacts: lab into its receipt and has no removal of lab.
  • User-visible CLI/MCP output (if applicable): not applicable. Verifier stderr gains one Keeping verifier artifacts at <path> line.
  • Remaining proof gaps: the real client lanes were not run (they need the client CLIs and accounts). Each migrated file was checked with node --check.

For evidence-bearing changes:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

  • npm run test:focused -- tests/process-global/verifierFixture.test.ts: 10 passed.
  • node --check on the 11 migrated verifiers and scripts/lib/verifier-fixture.mjs: passed.
  • node scripts/verify/architecture-guards.mjs --shrink-baselines, then node scripts/verify/architecture-guards.mjs: passed.
  • npm run check:fast: passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: none. Real client lanes were not run.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: the kept directories stay private (0700), as mkdtemp made them before.

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

…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.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T12:11:18.935129Z
We couldn’t complete this review. Comment @codex review to try again.
4a506f5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds VerifierFixture.keepArtifacts and moves 11 client verifiers onto it.

  • Client verifiers now report where their kept artifacts live.

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]
Loading

Reviews (2) · Last reviewed commit: "feat(verify): allocate kept verifier art..." · Reviewed by Greptile

@morluto
morluto merged commit 3f88f69 into main Nov 15, 2026
7 checks passed
@morluto
morluto deleted the feat/verifier-kept-artifact-directory branch November 15, 2026 12:19
@morluto morluto added area: tests Test suite and verification enhancement New feature or request labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant