Skip to content

Make the V5 diagnostic harness executable and fail closed - #3603

Merged
joshlf merged 1 commit into
mainfrom
Ghchu3g3fkri2ofhgm5addjto4rfkyvyi
Sep 3, 2026
Merged

Make the V5 diagnostic harness executable and fail closed#3603
joshlf merged 1 commit into
mainfrom
Ghchu3g3fkri2ofhgm5addjto4rfkyvyi

Conversation

@joshlf

@joshlf joshlf commented Aug 29, 2026

Copy link
Copy Markdown
Member

The first V5 draft described the intended diagnostic study but could not safely execute it. Review found that READY promotion was impossible, several CLI routes had stale arities, padded report IDs disagreed with their validators, host-specific paths destroyed prompt equality, evaluator packets named only digests rather than readable evidence, materiality had no runnable lifecycle, and DRAFT/READY schemas and runtime-state rules contradicted one another.

Replace that draft boundary with an authenticated prepare-snapshot, private-review, and finalize lifecycle. The production lock now binds the trusted source declaration, both skill packages, every target, the harness programs, the staged word counter, 120 report prompts/plans/launches, 43 evaluator assignments, hook-specific review contracts and receipts, empty pre-lock runtime state, and a separately custodied external commitment. Synthetic paths carry an authenticated test-only kind and cannot mint production artifacts.

Adversarial review exposed further trust failures: executing an unverified candidate verifier, source-copy TOCTOU, ambiguous line-oriented manifests, arbitrary review claims and evaluator launches, stale receipts, unreviewed runtime state, irrelevant schema leakage, optional or crash-unsafe external commitments, and a coherent attack that rebound an F report to target E and a V5 condition to the V4 package. Use injective framed commitments, trusted in-process regeneration, exact artifact/check/evidence inventories, private review copies, atomic no-replace publication, explicit custody-bound recovery, and exact target/condition/package joins to close those failures. Preserve each attack as a negative self-test.

Complete the execution protocol around those locked inputs: readable content-addressed packets, two independent consistency reviews, conditional adjudication, materiality review and ledger reconstruction, exact projection and control joins, deterministic aggregate rebuilding, production state authentication, canonical path checks, leases and seals with crash recovery, and fail-closed bound gate evaluation. Unbound caller data cannot make D-STATIC pass.

Validation covers prepare, integration, protocol, and draft-verification self-tests; hostile temporary paths; all CLI help surfaces; all JSON parsing and schemas; adversarial provenance, packet, lease, gate, commitment, and assignment mutations; whitespace; and cache hygiene. This remains diagnostic infrastructure: G-ISOLATION and G-OUTPUT-FINALIZATION deliberately remain FAIL, so the commit cannot support a release or terminal-VN claim.

Agent-Authored-By: AI agent acting on Josh Liebow-Feeser's behalf


This PR is on branch codex/unsafe-rust-stack.

Latest Update: v27 — Compare vs v26

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v27 v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v26 v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v25 v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v24 v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v23 v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v22 v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v21 v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v20 v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v19 v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v18 v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v17 v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v16 v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v15 v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v14 v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v8 v7 v6 v5 v4 v3 v2 v1 Base
v7 v6 v5 v4 v3 v2 v1 Base
v6 v5 v4 v3 v2 v1 Base
v5 v4 v3 v2 v1 Base
v4 v3 v2 v1 Base
v3 v2 v1 Base
v2 v1 Base
v1 Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/Ghchu3g3fkri2ofhgm5addjto4rfkyvyi && git checkout -b pr-Ghchu3g3fkri2ofhgm5addjto4rfkyvyi FETCH_HEAD

Checkout

git fetch origin refs/heads/Ghchu3g3fkri2ofhgm5addjto4rfkyvyi && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/Ghchu3g3fkri2ofhgm5addjto4rfkyvyi && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/Ghchu3g3fkri2ofhgm5addjto4rfkyvyi

Stacked PRs enabled by GHerrit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T10:50:41.964088Z 8b1b6f4 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.

@codecov-commenter

codecov-commenter commented Aug 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.85%. Comparing base (a971be2) to head (886e72a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3603   +/-   ##
=======================================
  Coverage   91.85%   91.85%           
=======================================
  Files          20       20           
  Lines        6093     6093           
=======================================
  Hits         5597     5597           
  Misses        496      496           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b1b6f491c

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from 8b1b6f4 to 245af42 Compare August 29, 2026 11:11
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from 245af42 to 2ddc311 Compare September 1, 2026 22:15
@joshlf
joshlf force-pushed the Ghh32fbkyuqkrndyfjzwwarkb4dmfosug branch from 7d4ace9 to 5ba5deb Compare September 3, 2026 02:26
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from df52065 to c941428 Compare September 3, 2026 03:03
@joshlf
joshlf force-pushed the Ghh32fbkyuqkrndyfjzwwarkb4dmfosug branch from 5ba5deb to 0393e94 Compare September 3, 2026 03:03
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from c941428 to afc8a38 Compare September 3, 2026 04:06
@joshlf
joshlf force-pushed the Ghh32fbkyuqkrndyfjzwwarkb4dmfosug branch 2 times, most recently from cbcb1ae to ead3f9e Compare September 3, 2026 04:42
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch 2 times, most recently from 471908d to b594f16 Compare September 3, 2026 05:14
@joshlf
joshlf force-pushed the Ghh32fbkyuqkrndyfjzwwarkb4dmfosug branch from ead3f9e to 122421a Compare September 3, 2026 05:14
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from b594f16 to 7617075 Compare September 3, 2026 05:47
@joshlf
joshlf force-pushed the Ghh32fbkyuqkrndyfjzwwarkb4dmfosug branch from 122421a to 13afe9a Compare September 3, 2026 05:47
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from 7617075 to 365d702 Compare September 3, 2026 06:17
@joshlf
joshlf force-pushed the Ghh32fbkyuqkrndyfjzwwarkb4dmfosug branch from 13afe9a to 6225616 Compare September 3, 2026 06:17
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from 365d702 to f3b2c36 Compare September 3, 2026 06:47
@joshlf
joshlf force-pushed the Ghh32fbkyuqkrndyfjzwwarkb4dmfosug branch 2 times, most recently from abd3652 to e1d8af7 Compare September 3, 2026 07:16
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch 2 times, most recently from 73d3ccd to b83f623 Compare September 3, 2026 07:46
@joshlf
joshlf force-pushed the Ghh32fbkyuqkrndyfjzwwarkb4dmfosug branch 2 times, most recently from 8417a47 to a7be91c Compare September 3, 2026 08:17
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from b83f623 to 241013e Compare September 3, 2026 08:17
Base automatically changed from Ghh32fbkyuqkrndyfjzwwarkb4dmfosug to main September 3, 2026 08:47
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from 241013e to 6f42990 Compare September 3, 2026 08:49
The first V5 draft described the intended diagnostic study but could not safely execute it. Review found that READY promotion was impossible, several CLI routes had stale arities, padded report IDs disagreed with their validators, host-specific paths destroyed prompt equality, evaluator packets named only digests rather than readable evidence, materiality had no runnable lifecycle, and DRAFT/READY schemas and runtime-state rules contradicted one another.

Replace that draft boundary with an authenticated prepare-snapshot, private-review, and finalize lifecycle. The production lock now binds the trusted source declaration, both skill packages, every target, the harness programs, the staged word counter, 120 report prompts/plans/launches, 43 evaluator assignments, hook-specific review contracts and receipts, empty pre-lock runtime state, and a separately custodied external commitment. Synthetic paths carry an authenticated test-only kind and cannot mint production artifacts.

Adversarial review exposed further trust failures: executing an unverified candidate verifier, source-copy TOCTOU, ambiguous line-oriented manifests, arbitrary review claims and evaluator launches, stale receipts, unreviewed runtime state, irrelevant schema leakage, optional or crash-unsafe external commitments, and a coherent attack that rebound an F report to target E and a V5 condition to the V4 package. Use injective framed commitments, trusted in-process regeneration, exact artifact/check/evidence inventories, private review copies, atomic no-replace publication, explicit custody-bound recovery, and exact target/condition/package joins to close those failures. Preserve each attack as a negative self-test.

Complete the execution protocol around those locked inputs: readable content-addressed packets, two independent consistency reviews, conditional adjudication, materiality review and ledger reconstruction, exact projection and control joins, deterministic aggregate rebuilding, production state authentication, canonical path checks, leases and seals with crash recovery, and fail-closed bound gate evaluation. Unbound caller data cannot make D-STATIC pass.

Validation covers prepare, integration, protocol, and draft-verification self-tests; hostile temporary paths; all CLI help surfaces; all JSON parsing and schemas; adversarial provenance, packet, lease, gate, commitment, and assignment mutations; whitespace; and cache hygiene. This remains diagnostic infrastructure: G-ISOLATION and G-OUTPUT-FINALIZATION deliberately remain FAIL, so the commit cannot support a release or terminal-VN claim.

gherrit-pr-id: Ghchu3g3fkri2ofhgm5addjto4rfkyvyi
Agent-Authored-By: AI agent acting on Josh Liebow-Feeser's behalf
@joshlf
joshlf force-pushed the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch from 6f42990 to 886e72a Compare September 3, 2026 11:37
@joshlf
joshlf enabled auto-merge September 3, 2026 11:43
@joshlf
joshlf added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit 102b4ee Sep 3, 2026
105 checks passed
@joshlf
joshlf deleted the Ghchu3g3fkri2ofhgm5addjto4rfkyvyi branch September 3, 2026 12:07
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.

3 participants