Repository navigation
Add portable read-only ledger inspection - #5
Merged
Merged
Conversation
The doc started with a triple-encoded UTF-8 BOM, so GitHub rendered the first heading as mojibake text instead of a heading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Independent review (Claude Opus 5.5, Finish Line run 2026-11-17). Read the whole diff (12 files, +389). No blocking defect found. Checked:
Fixed in ee15932: Non-blocking:
Not merged: the project state reserves integration/owner acceptance of this candidate for the owner. |
Zacharon
marked this pull request as ready for review
November 17, 2026 09:50
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.
Saved ledger evidence can now be inspected through one read-only CLI/API, with whole-chain and artifact-byte validation before projection. Raw lifecycle aliases remain visible, while operational mission states never grant kernel approval.
Tests no longer depend on a private machine path: self-contained synthetic checks run everywhere, and real-contract integration requires explicit trusted external selection. Fixture attributes preserve the exact hashed bytes on checkout.
Validation: final full unittest suite ran 169 tests, OK with 25 skips (24 pre-existing optional/runtime skips plus the unselected external integration class). With a trusted external contract selected locally, all 32 adapter tests passed (16 synthetic and 16 real-contract integration). Committed artifact hashes, privacy scan, diff whitespace check and WHY links passed.
Review status: prior independent H3 recheck was reported VERIFIED for the bounded adapter. The portability and checkout fixes in this draft still require review; application identity/grants remain partial, and owner acceptance is pending. No production, live ingestion, hosted, browser or device acceptance is claimed. Shared kernel unchanged; historical private evidence excluded.
Review map:
work/skills-adapter-conformance-20261113→origin/mainWhat this change is for
Inspect saved local ledger evidence without changing review decisions or starting ingestion. Validate the whole chain and artifact bytes, preserve raw states, and separate portable synthetic tests from explicitly selected real-contract integration.
Commits:
380938c)At a glance
Start here
Read these first. They carry risk or many other changed files depend on them.
runner/shared_contract.py— auth, used by 1 changed filedocs/SHARED_CONTRACT_ADAPTER.md— used by 1 changed filetests/test_shared_contract.py— 182 changed linestests/fixtures/shared_contract/synthetic_contract.py— 14 changed linesCONTEXT.md— 11 changed linestests/fixtures/shared_contract/artifact_ledger.jsonl— 6 changed linestests/fixtures/shared_contract/.gitattributes— 5 changed linesDependency graph
A solid arrow points from a file to a changed file it imports or explains itself with (
WHY:); a dotted arrow is a Markdown link. Red boxes carry a risk flag.flowchart LR subgraph g0["(root)"] n0["CONTEXT.md<br/>+11/−0"] n1["README.md<br/>+3/−0"] end subgraph g1["docs"] n2["SHARED_CONTRACT_ADAPTER.md<br/>+74/−0"] end subgraph g2["runner"] n3["shared_contract.py<br/>+90/−0"] n11["test_shared_contract.py<br/>+182/−0"] end subgraph g3["tests"] n4[".gitattributes<br/>+5/−0"] n5["artifact_ledger.jsonl<br/>+6/−0"] n6["eval_result.json<br/>+1/−0"] n7["memory_checkpoint.json<br/>+1/−0"] n8["review_packet.md<br/>+1/−0"] n9["run_state.json<br/>+1/−0"] n10["synthetic_contract.py<br/>+14/−0"] end n1 -.-> n2 n3 --> n2 n11 --> n3 classDef risk fill:#fde2e1,stroke:#c0392b,color:#111 class n3 riskAreas
(root)
2 files · +14/−0
CONTEXT.mdREADME.mdSHARED_CONTRACT_ADAPTER.md(link)docs
1 files · +74/−0
docs/SHARED_CONTRACT_ADAPTER.mdshared_contract.pyrunner
2 files · +272/−0
runner/shared_contract.pySHARED_CONTRACT_ADAPTER.mdtest_shared_contract.pydocs/SHARED_CONTRACT_ADAPTER.md#trusted-code-boundary; why (line 35):docs/SHARED_CONTRACT_ADAPTER.md#validation-ordertests/test_shared_contract.pyshared_contract.pytests
7 files · +29/−0
tests/fixtures/shared_contract/.gitattributestests/fixtures/shared_contract/artifact_ledger.jsonltests/fixtures/shared_contract/eval_result.jsontests/fixtures/shared_contract/memory_checkpoint.jsontests/fixtures/shared_contract/review_packet.mdtests/fixtures/shared_contract/run_state.jsontests/fixtures/shared_contract/synthetic_contract.pyExplanations linked from code
2
WHY:link(s) in changed code; 0 broken.runner/shared_contract.py:19→docs/SHARED_CONTRACT_ADAPTER.md#trusted-code-boundaryrunner/shared_contract.py:35→docs/SHARED_CONTRACT_ADAPTER.md#validation-orderReviewer checklist
runner/shared_contract.pyWHY:link opens and still matches the code beside it.Created with gpt-6.1-sol in T3 Code through the Codex harness.