Skip to content

docs: record observed cross-vendor sbx gate proof - #51

Merged
liropa merged 4 commits into
mainfrom
fm/fm-gate-config-fresh-guest-proof
Aug 2, 2026
Merged

liropa merged 4 commits into
mainfrom
fm/fm-gate-config-fresh-guest-proof

Conversation

@liropa

@liropa liropa commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Intent

Prove by observation, not inference, that a firstmate-created sbx guest now runs its no-mistakes adversarial review with codex rather than claude; record that verification in the gate-vendor section of docs/sbx-backend.md; and retain the raw captured evidence in the repository so anyone can re-examine it.

Background a reviewer needs: firstmate creates sbx guests with a bare 'sbx create' (bin/backends/sbx.sh), never through agent-dotfiles' sbx-provision.sh, so the pinned no-mistakes gate config never arrived. Guests therefore reviewed with claude - the same vendor that wrote the code - making that adversarial review non-independent. Two fixes landed 2026-08-02: agent-dotfiles PR #91 bakes the gate config into the adf-codex:v5 template, and firstmate PR #49 asserts the gate vendor never matches the worker's. Both were believed correct and neither had ever been observed working. Closing that gap was the point of this task.

The evidence bar was set deliberately high by the captain and by GitHub issue #48, because every weaker artifact in this family has already been true while the review still ran on claude: a config file reading 'agent: codex' is explicitly not proof, a zero exit status is not proof (exit 0 while broken was the original defect), and 'no-mistakes doctor' reporting the gate is runnable is not proof because it exits 0 even when that check fails. Only a real review.log produced inside the guest, showing codex with model gpt-5.6-sol at effort high, closes the question.

WHY RAW LOG FILES ARE COMMITTED INTO THE REPOSITORY - this is the key thing a reviewer will not know from the diff alone, and it is a deliberate captain decision, not an oversight. A first proof run was completed and documented; a previous run of this very pipeline then raised an ask-user finding (id missing-raw-gate-evidence) observing that because the proving guest had been destroyed, the documented observation could not be independently authenticated by anyone but its observer. That finding was escalated, and the captain ruled explicitly: do NOT accept the documentation record alone, do NOT resolve it through the pipeline's fix round, and instead rerun the proof on a fresh guest with the raw evidence retained in-repo. So docs/sbx-gate-vendor-proof/ containing review.log, review-cmdline.txt and manifest.txt is the requested deliverable. Their content is deliberately verbatim and deliberately not summarised, tidied, or reformatted - fidelity is the entire value, so 'this file is unformatted / could be condensed / duplicates the prose' is not a defect here. review-cmdline.txt is intentionally the complete untruncated argv (82 entries, including the reviewer's full prompt text) because truncating it to the interesting flags would reintroduce exactly the trust gap this rerun exists to close.

Method constraints, all deliberate and all still binding on the rerun: the guest had to be created through firstmate's own path (bin/fm-spawn.sh --secondmate --backend sbx, reaching fm_backend_sbx_create_task), never sbx-provision.sh, sbx-nm-pins.sh, a hand-run 'sbx create', or a hand-edited guest gate config, since any of those would prove a path firstmate does not use; the template had to be adf-codex:v5; the work had to be isolated behind a throwaway FM_HOME so nothing was written into the captain's fleet; the gate inside the guest had to be real, not a dry run; and the live production guest fm-agent-dotfiles was strictly off limits and was not touched.

What was observed on the retained rerun: throwaway guest fm-gvproof2 on docker.io/library/adf-codex:v5 (image c5e40c1c8781) with a claude worker harness and FM_SBX_AGENT=codex; the create-time gate-vendor assertion passing silently, which is its cross-vendor verdict; and on the first gate that guest ever ran, review.log showing 'codex started pid=1884' through 'codex exited pid=1884 status=success', with that same pid's /proc argv carrying -m gpt-5.6-sol -c model_reasoning_effort=high. Review completed in 107.5 s with zero findings, spanning 2026-08-02 15:46:01 to 15:47:49 UTC, tally codex 1 / claude 0 against the 26-of-26-on-claude regression target. Artifacts were copied out BEFORE teardown, then the guest was destroyed.

Further deliberate decisions a reviewer should not flag as omissions: (1) the doc explicitly does NOT claim this proves the live fm-agent-dotfiles guest is correct - that guest predates the template and carries a hand-edited config no gate run has ever exercised, so it is named as a separate open risk, because conflating the two is the exact error the original investigation called out, and the captain required that boundary survive the rewrite; (2) the earlier unretained guest fm-gvproof is deliberately still described in the prose as 'same result, no evidence' rather than deleted, because it explains why the rerun exists - it is not a stale leftover; (3) the weaker artifacts (the guest's 'agent: codex' config line, doctor's gate line, the exit status) are deliberately retained as labelled context rather than removed, so a future reader sees they were considered and rejected as proof; (4) this remains a documentation-plus-evidence change and is deliberately proportionate - no sbx backend code was touched; (5) all three retained files were scanned for credentials before committing and contain none.

What Changed

  • Document the observed firstmate-created sbx guest running its first adversarial review with Codex using gpt-5.6-sol at high reasoning effort.
  • Retain the verbatim review log, complete process argv, and capture manifest for independent verification.
  • Clarify the proof method, rejected weaker signals, prior unretained run, and the separate unverified state of the live guest.

Risk Assessment

✅ Low: The prior documentation inconsistency is corrected exactly as requested, the retained evidence files remain unchanged, and the live-guest scoping statement is preserved.

Testing

The focused gate-vendor suite passed, direct inspection confirmed the retained log and complete argv prove a real codex gpt-5.6-sol/high review from the firstmate-created guest, documentation links and required boundaries were intact, the credential-pattern scan was clean, and testing left the worktree unchanged.

Evidence: Gate-vendor proof verification transcript
Retained sbx gate-vendor proof verification

review.log lifecycle:
codex started pid=1884
codex exited pid=1884 status=success

PID linkage:
review.log pid=1884; manifest pid=1884; linked=yes

Captured /proc argv pins:
/home/agent/.local/share/mise/installs/node/26.5.0/bin/node
/usr/local/share/npm-global/bin/codex
exec
-m
gpt-5.6-sol
-c
model_reasoning_effort="high"
argv entries: 82

Creation path and observed run:
sandbox name        fm-gvproof2
template tag        docker.io/library/adf-codex:v5
template image id   c5e40c1c8781
template flavor     codex-docker
sbx agent flavor    codex          (FM_SBX_AGENT=codex)
worker harness      claude         (the vendor the guest's worker writes code with)
review step         completed, 0 findings, 107465 ms
reviewing pid       1884   (named by review.log; review-cmdline.txt is this pid's argv)

UTC timestamps      run dir created  2026-08-02 15:46:01 UTC
                    review.log final 2026-08-02 15:47:49 UTC
                    argv captured    while the review process was still live

guest log tally     run dirs 1, review.log showing codex 1, review.log showing claude 0

Guest state before this gate ran (proving it was the first):
    ~/.no-mistakes/ contained only config.yaml (baked into the template

    FM_HOME=/tmp/claude-501/gvproof2-parent \
    FM_SBX_TEMPLATE=docker.io/library/adf-codex:v5 \
    FM_SBX_AGENT=codex \
    FM_SBX_SIGNALS_ROOT=/Users/lp1/dev/fm-signals-gvproof2 \
    bin/fm-spawn.sh gvproof2 /Users/lp1/dev/repos/fm-2ndmate-gvproof2 \
        --harness claude --backend sbx --secondmate

  reaching fm_backend_sbx_create_task in bin/backends/sbx.sh. The throwaway
  secondmate home was seeded first with bin/fm-home-seed.sh gvproof2 <home>
  --no-projects. No provisioning script was run, no sbx create was issued by
  hand, and the guest's gate config was never edited.

Create-time gate-vendor assertion: passed silently, which is its cross-vendor

Credential-pattern scan of retained artifacts:
result: no credential patterns found

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • ⚠️ docs/sbx-backend.md:499 - The narrative says ~/.no-mistakes/ held only config.yaml before the gate, but the retained manifest records both config.yaml and update-check.json. Correct the prose to match the evidence; the absence of logs/ still establishes this was the first gate run.

🔧 Fix: Correct pre-gate guest state documentation
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • Inspected git diff --stat and git diff --name-status for f53c66ea8baff71254c0e7e61766218355823823..db7cec6d5a3ee591224662fce8aacf155637cfc7
  • Inspected docs/sbx-backend.md and all files under docs/sbx-gate-vendor-proof/
  • bash tests/fm-sbx-gate-vendor.test.sh
  • Captured direct PID, argv, manifest, tally, and credential-pattern evidence in gate-vendor-proof-verification.txt using rg, sed, and wc
  • Ran raw-evidence integrity and documentation-link existence checks
  • Verified git status --short remained clean after testing
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Lindsay Parker added 4 commits August 2, 2026 11:09
The gate-vendor section documented what the assertion does, but closed by
saying no real guest had been observed reviewing cross-vendor. That gap was
the whole point of the defect: every weaker artifact in this family - a config
reading `agent: codex`, a zero exit status, `doctor` reporting the gate is
runnable - has already been true while the review still ran on claude.

A throwaway guest created through firstmate's own spawn path on adf-codex:v5
produced a real review.log showing codex with the pinned model and effort on
the first gate it ran. That log, and the live argv behind it, replace the
outstanding-verification paragraph.

Scoped deliberately: this proves a newly created guest is born gate-correct.
It says nothing about the live fm-agent-dotfiles guest, whose hand-edited
config still has never been exercised by a gate run; conflating the two is
the error the investigation called out, so it is named as a separate risk.
The previous commit recorded the observation but kept no artifact anyone else
could re-examine: the proving guest was destroyed, so the record rested on the
observer's word. That is the same shape of unverifiable claim this section
exists to reject, and the gate flagged it.

Redone on a second independently created guest, capturing before teardown
rather than after. The retained files are the review log verbatim, the complete
untruncated argv of the reviewing process read from /proc while it was live,
and a manifest naming the sandbox, template tag and image id, run id, UTC
timestamps, and the exact create command. The reviewing pid ties the log and
the argv together, so neither has to be taken on trust.

The earlier unretained run is kept in the text as what it is - the same result
without evidence - rather than dropped, since it explains why this rerun exists.
The scoping statement that none of this speaks for the live fm-agent-dotfiles
guest is unchanged.
@liropa
liropa merged commit 4650152 into main Aug 2, 2026
10 checks passed
@liropa
liropa deleted the fm/fm-gate-config-fresh-guest-proof branch August 3, 2026 14:19
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