You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Verify ThreadLoop controller conformance and pre-Rust parity - #179
RunInvariant can now exercise ThreadLoop’s production compiler, selector and execution journal through a separate process. The revision-specific evidence covers all 38 frozen cases, actual SQLite interruption and replay, four native Goose runs, installed CLI behavior and quiescent rollback. The independent human completion gate remains open.
Related issue
Refs #172 and #168. The final acceptance item requires a willing independent reviewer, an actual approval and a signed merge observation at the approved head. Prerequisite program
Changes
Add a measured three-file controller runtime. The parent checks the source, graph and schema pins, sends only a normalized request, and compares responses through the frozen harness.
Share canonical SQLite root reads and digest-checked writes with the GAAP store. Each scenario step reopens its journal and rechecks admission. Tests interrupt commits and race independent writers.
Provide repeatable offline package comparisons, two-store restore checks and the TypeScript readiness report. The report’s full packets identify the implementation commit they measured.
Impact
Machine-readable JSON and the external conformance protocol implementation
Persisted executor root validation, transaction behavior and rollback proof
Build and verification tooling for the external subject
Documentation and reproducible evidence
The installed ThreadLoop CLI retains default protocol v4. Opt-in v5 reports 33 commands. Compatible storage stays at generation 8.
Validation
Review head c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12, tree 63a0e609a532f912ce900294ecd8bf916c9a7e8c, comparison base 50b3aa61f92bbc1e03b3177683e16aa199a3dd7b. The tracked packets identify 80e091c9f6412195a8444f048add977d648c4115. The runs below used this PR head. Controller, native execution and rollback evidence · Installed CLI and archive checks
Check
Result
npm run check
953 tests in 77 files passed. Static analysis, build and packaged smoke passed.
npm run security:dependencies
Zero reported vulnerabilities.
git diff --check origin/main...HEAD
Passed.
Independent RunInvariant
38/38. Three graph compilations, 25 decisions, ten execution scenarios. Case 024 returned AMBIGUOUS_REMEDY. Artifact 894befa3ba692db5a86968bdc408b032137dacb80b149fc4459343945a42334a. Public packet SHA-256 89b0b420e03b0fdf1502944756fe8d1313e87dcc7243d31f3d6a8f02da23218b.
Native and installed
Four native runs, plus package and rollback checks on Node 22.22.2, 24.20.0 and 26.8.2. Package SHA-256 6dc08f562331d9e49938e884dd6e5be676b14c08cb174beda3951e1a3efa573c.
Controller and proof tests
All 65 generated tests passed. Deep verification explored 512 histories and 48 process histories. All 14 Python proof tests passed.
Frozen dependencies
The pinned contracts passed 404 tests and packaging. Pinned RunInvariant passed 95 native and 59 ThreadLoop integration tests.
Qodo Local Review
Auto-depth operation 0dda18cb-ee35-488c-ace5-a22937bf2bc1. Complete branch coverage, zero files skipped and zero new findings. The earlier schema finding remains pending in Qodo. Fresh install and Git byte checks for both schemas are recorded below.
Hosted Qodo review
Run 2117390 completed at this PR head. Qodo marked all 7 hosted findings implemented. GitHub shows all 3 review conversations resolved.
On the previous head, hosted Qodo review 2116248 marked all seven findings implemented. Both macOS jobs passed all 953 tests before their 15-minute job limit interrupted the installed-package check. On retry, the floating Node 22 job passed and the minimum Node 22.22.2 job reached the same limit. The new commit allows 20 minutes on macOS. Ubuntu keeps its 15-minute limit. The matrix, runner class, dependency pins, two test workers and packaged-install steps match the preceding workflow. Pinned actionlint validated the change. CI attempts · Preceding evidence
Local Qodo finding eb30f1db predicts that the schema exports won't resolve. The pinned package maps ./assets/* to ./dist/docs/contracts/*. The independent rebuild loaded the request schema (7,350 bytes) and receipt schema (16,600 bytes), checked both against the Git source, and passed the full 38-case suite. Qodo couldn't fetch the optional linked specification. The canonical build plan was included in the reviewed diff. Pinned package exports
Hosted review 2095897 found that the first proof used existing dependency installs. The revised proof stages ThreadLoop, its contracts and RunInvariant at their exact Git revisions, installs all three locks with npm lifecycle scripts disabled, and builds the contracts distribution with its own locked compiler. Registry packages use npm's lock integrity. The Git dependency's three installed metadata files are checked directly against the pinned Git blobs. A disposable same-version change that the old proof accepted now fails before scoring. Inventory, all cases and the controls use the fresh harness. Original finding
Hosted review 2102268 identified two package issues. The installed README now links to both documents at an immutable Git revision. Each package comparison rebuilds the supplied archive from the named Git revision and authenticates every archive before installing the first one. Two controls supplied an altered archive with matching altered provenance and both were refused. README finding · Archive finding
Local review finding 34912d04 identified missing verification of physical executor outputs. The backup, restored store and recovered store now compare file names, kinds, sizes and digests. Five changes to copied outputs were detected while both SQLite databases kept their original bytes and heads. The verifier refused file links, directory links and a FIFO. Rollback verifier
The macOS proof denied six reads of parent-side files. The independent controls caught a wrong decision, wrong correlation and timeout. The native cases used a deterministic local provider and a public signing fixture. Production services, paid model inference and a real reviewer’s decisions are outside those measurements.
Risk and recovery
Restoring either quiescent database pair reproduced its recorded hashes. A held effect required reconciliation. A committed child admission imported once from the restored pair. All six installed rollback cases retained one physical invocation. Restoring an older snapshot discards later writes. Restore instructions
Reviewer guidance
Inspect the subject’s request framing and dispatch, the assertion that an admitted replay still has current authority, and the separate parent-side comparison. Compare the external packet with the SQLite and native evidence. Each answers a different question. Software Build Plan
Verify controller conformance and establish a pre-Rust baseline
✨ Enhancement🧪 Tests📝 Documentation🕐 40+ Minutes
AI Description
• Expose the production controller through an isolated process and verify all 38 frozen conformance
cases.
• Share sealed SQLite root handling and test journal replay, competing writers, and interrupted
commits.
• Record native execution, installed CLI parity, and rollback evidence; independent human completion
remains pending.
The changed subject, operation dispatcher, sandbox launcher, artifact builder, and execution scenario form one bounded integration that exposes controller behavior to the external conformance harness.
They produce one end-to-end conformance result rather than independent user capabilities.
The changed root row is the authoritative state anchor for launches, observations, accepted evidence, blobs, evaluations, and managed execution ownership.
These are related parts of one bounded executor-state integration; the change does not show reach into unrelated stored fields or independent product domains.
This is an independent operational capability for running repository verification; it is separate from the controller runtime and executor state capabilities because its outcome is CI job completion rather than a runtime workflow or persisted execution result.
Before, GAAP state stored and validated the root directly in its own methods.
After, executor state and the new scenario journal share a helper that canonicalizes, hashes, validates, and conditionally replaces the root, while callers retain generation, owner, related-table, and transaction invariants.
The new correctness conditions are that the digest used for fencing corresponds to the exact predecessor read in the same transaction, that all related tables and the root commit atomically, and that replay/concurrent writers do not advance state inconsistently.
The SQLite lock and transaction are existing mechanisms; the materially changed condition is the new digest-based predecessor protocol and its integration with existing commit-uncertainty handling.
Potential damage 🟡 Medium🩹 Temporary loss
A failure in the new process boundary prevents the harness from obtaining a conformance result for the affected case or suite.
The failure is recoverable by correcting the invocation, rebuilding the artifact, or rerunning; it does not by itself corrupt a production Workflow Run.
Rerun after correcting the bundle, schemas, sandbox inputs, or request.
No automatic repair of a failed external invocation is shown.
graph TD
H["RunInvariant harness"] --> L["Isolated launcher"] --> S["Controller subject"] --> C["Graph compiler"]
S --> D["Production selector"]
S --> J["Scenario journal"] --> DB[("SQLite root")]
H --> P["Proof packet"]
Loading
High-Level Assessment
The following are alternative approaches to this PR:
1. Use the full GAAP store for conformance scenarios
➕ Would exercise more of the existing host persistence path directly.
➖ Would couple frozen execution cases to host ownership, process effects, and signing concerns.
➖ Would obscure the distinction between scenario authority and production GAAP admission.
Recommendation: Keep the small scenario store and shared sealed-root primitive. It tests durable reducer behavior through the external protocol without granting the conformance subject host execution authority; separate native and rollback proofs cover the full managed path.
Files changed (34) +6028 / -66
Enhancement (8) +448 / -0
artifact.tsMeasure the subject's three-file runtime+20/-0
Measure the subject's three-file runtime
• Defines the bundled entry and two required schemas, then derives the subject identity from their byte lengths and SHA-256 hashes.
build.mjsBuild a revision-identified controller subject+75/-0
Build a revision-identified controller subject
• Bundles the subject, stages its runtime schemas, and writes build metadata, manifest, and identity into a fresh output directory. Detects source changes during the build.
execution-scenario.tsRun frozen execution scenarios against a persisted journal+91/-0
Run frozen execution scenarios against a persisted journal
• Validates scenario input, establishes its supplied admission authority, applies each step to a private SQLite journal, and returns the projected result.
scenario-journal.tsPersist execution steps with a sealed SQLite root+54/-0
Persist execution steps with a sealed SQLite root
• Opens a fresh connection for each step, rechecks admission through the production reducer, and conditionally commits non-replayed journals. Reopens retained state for final projection.
subject.tsImplement the bounded conformance process protocol+85/-0
Implement the bounded conformance process protocol
• Validates framed requests and canonical digests, dispatches one controller operation, and emits a schema-checked response with measured artifact identity.
gaap-state.tsUse shared sealed-root reads and conditional writes+14/-19
Use shared sealed-root reads and conditional writes
• Moves GAAP root serialization and digest checks to the shared helper while retaining owner validation and transaction behavior. Root updates now compare the stored digest before writing.
prove.pyVerify and publish the external controller proof+557/-0
Verify and publish the external controller proof
• Checks pinned dependencies and artifact bytes, runs the independent harness with bounded parents, and validates all 38 results. Produces a sanitized public packet while keeping raw diagnostics in optional private output.
managed_rollback.pyProve recovery from checkpointed database pairs+580/-0
Prove recovery from checkpointed database pairs
• Creates held-effect and committed-admission fixtures, checkpoints and restores both stores, and checks predecessor refusals and single physical invocation after recovery.
controller-conformance-process.test.tsTest subject framing, identity, and controller results+315/-0
Test subject framing, identity, and controller results
• Builds and invokes the external subject with independently constructed graphs and decisions. Tests canonical response identity, domain diagnostics, relabeling, malformed framing, and digest rejection.
controller-execution-scenario.test.tsTest persisted execution replay and interruption+360/-0
Test persisted execution replay and interruption
• Checks admission on replay, corrupted seals, stale writes, pre- and post-commit process cuts, and competing writers. Verifies rejected stale operations and final projections remain durable.
test_controller_conformance.pyTest proof sanitization and launcher cleanup+179/-0
Test proof sanitization and launcher cleanup
• Ensures public failed-case rows exclude private payloads and paths. On macOS, tests denied parent-file reads and reaping of a subject after its proof parent times out.
README.mdDescribe verified controller and managed execution capabilities+14/-13
Describe verified controller and managed execution capabilities
• Replaces deferred-runtime language with the current Workflow Run and managed-execution status. Links the TypeScript readiness baseline while leaving Rust replacement for a later milestone.
architecture.mdUpdate runtime authority and conformance status+30/-33
Update runtime authority and conformance status
• Documents the external controller proof, separate child and outer commit points, and current dispatch capability. Clarifies that conformance output cannot advance lifecycle state.
issue-172-controller-conformance.jsonRecord the 38-case external conformance packet+718/-0
Record the 38-case external conformance packet
• Records pinned corpus and harness identities, measured subject files, per-case digests and outcomes, and negative isolation controls. All 38 cases are reported as passing for the identified implementation revision.
• Captures checkpointed database hashes, predecessor refusals, retained receipts and blobs, and recovery after held-effect and admitted-result cuts on three Node versions.
issue-172-native-execution.jsonRecord four native Goose execution runs+130/-0
Record four native Goose execution runs
• Identifies the measured binaries, package, signing fixture, admissions, and final states for allowed and bad-patch runs in managed and standalone modes.
issue-172-controller-conformance-and-parity.mdPlan controller proof and pre-Rust parity+383/-0
Plan controller proof and pre-Rust parity
• Defines pins, frozen-case inventory, process and storage boundaries, failure tests, reproduction commands, and completion criteria. Separates the still-pending live human approval and merge proof from simulated evidence.
pre-rust-readiness.mdSummarize the measured TypeScript baseline+120/-0
Summarize the measured TypeScript baseline
• Maps conformance, native execution, installed CLI, storage and rollback results to their evidence. Identifies the measured implementation revision and the independent human completion gate that remains open.
Replaced the relative docs/ links in README.md with absolute GitHub blob URLs (pinned to a commit),
so the Workflow Run commands and TypeScript baseline links resolve for package readers.
Description
The new README links for Workflow Run commands and the TypeScript baseline use relative docs/
paths, but the package allowlist does not include that directory. Readers of the published or
installed package cannot follow either link, even though both work in a repository checkout.
Replaced trust in the supplied provenance with an independent Git rebuild per revision:
install_packages() rebuilds each archive via build_revision_package(), requires every supplied
provenance field and archive digest to match the rebuild, and installs only the rebuilt archive.
Callers in installed_parity.py and managed_rollback.py now use install_packages.
Description
install() checks the archive and installed CLI against hashes read from the same provenance.json
supplied alongside the archive, while source_identity() validates only the record’s Git identity
fields. If a supplied package directory contains an altered tarball and matching updated hashes,
both the installed-parity and rollback proofs accept it as a build of the claimed revision.
3. Modified dependencies can pass as a clean proof✓ ResolvedWarning
The proof now clones each source revision into a fresh scratch directory, installs its lockfile with
npm ci, builds the pinned contracts dependency from its tracked build script after verifying the
installed metadata against Git, and runs the rebuild, harness and controls from those isolated
installs. The submitted artifact is compared against this independently built rebuild, so ambient or
modified ignored dependencies no longer affect the proof.
Description
checkout() checks Git status and hashes package-lock.json, but neither check covers the
installed dependencies consumed by the controller build and external harness. If an ignored
dependency is stale or locally modified, both the supplied build and the proof's rebuild can use the
same altered code and pass while the report attributes their behavior to the pinned revisions.
4. README overstates what the readiness report records✓ ResolvedWarning
Resolution reason
Committed the generated proof packets (docs/evidence/issue-172-controller-conformance.json with
per-case results, plus rollback and installed-CLI evidence), added the measured revision and tree to
docs/pre-rust-readiness.md, and replaced the 'packet still needs the clean commit' conformance row
with a passed-38-cases row linking the evidence. This makes the readiness report's contents match
what the README says it records.
Description
The new README paragraph says the readiness report records the measured revision, case results,
rollback checks and the live human gate status, but docs/pre-rust-readiness.md has no measured
revision and no per-case results, and its conformance row says the packet still needs the clean
implementation commit. The architecture guide repeats the claim that the report identifies the
measured artifact and all case results, so a reader relying on either document would expect evidence
that is not committed.
5. Python helper functions ship without docstrings✓ ResolvedWarning
Resolution reason
Added a one-line docstring as the first statement of each flagged helper, including require, digest,
sha, the nested helpers installed, frame, and saved, plus the other new helpers in the pre-Rust and
controller-conformance scripts.
Description
Many new functions in the pre-Rust and controller-conformance Python scripts have no docstring as
their first statement. require in scripts/pre-rust/proof_package.py raises ValueError and is
used as the guard for every proof check, but it has no docstring; digest in
scripts/pre-rust/installed_parity.py and sha in scripts/pre-rust/managed_rollback.py are the
same. Nested helpers such as installed, frame and saved in installed_parity.py and
managed_rollback.py are also undocumented, and the rule covers nested functions too. A later
maintainer reading the proof scripts cannot tell from the helper names alone what the checks assert
or what their failure means.
6. Digest-mismatch rejection in sealed root is untested✓ ResolvedInformational
Resolution reason
Added a new test in tests/integration/controller-execution-scenario.test.ts that overwrites the root
row's body with the original body but a different digest (sha256('different fixture journal')),
asserting that both store.project and store.apply throw state.integrity and that the retained row
bytes and data_version are unchanged. This directly exercises the body/digest mismatch rejection the
finding says was untested, matching the suggested fix (write a stale/arbitrary digest and assert
state.integrity from ScenarioJournal apply/project).
Description
The damaged-row test in the execution-scenario integration suite recomputes the outer digest with
sha256(body), so it never produces a body/digest mismatch. The suite would still pass if
readSealedRoot's body-versus-digest integrity check were removed, so that check has no regression
coverage.
Context sources
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
1. README overstates what the readiness report records✓ ResolvedWarning
Resolution reason
Committed the generated proof packets (docs/evidence/issue-172-controller-conformance.json with
per-case results, plus rollback and installed-CLI evidence), added the measured revision and tree to
docs/pre-rust-readiness.md, and replaced the 'packet still needs the clean commit' conformance row
with a passed-38-cases row linking the evidence. This makes the readiness report's contents match
what the README says it records.
Description
The new README paragraph says the readiness report records the measured revision, case results,
rollback checks and the live human gate status, but docs/pre-rust-readiness.md has no measured
revision and no per-case results, and its conformance row says the packet still needs the clean
implementation commit. The architecture guide repeats the claim that the report identifies the
measured artifact and all case results, so a reader relying on either document would expect evidence
that is not committed.
2. Modified dependencies can pass as a clean proof✓ ResolvedWarning
The proof now clones each source revision into a fresh scratch directory, installs its lockfile with
npm ci, builds the pinned contracts dependency from its tracked build script after verifying the
installed metadata against Git, and runs the rebuild, harness and controls from those isolated
installs. The submitted artifact is compared against this independently built rebuild, so ambient or
modified ignored dependencies no longer affect the proof.
Description
checkout() checks Git status and hashes package-lock.json, but neither check covers the
installed dependencies consumed by the controller build and external harness. If an ignored
dependency is stale or locally modified, both the supplied build and the proof's rebuild can use the
same altered code and pass while the report attributes their behavior to the pinned revisions.
3. Python helper functions ship without docstrings✓ ResolvedWarning
Resolution reason
Added a one-line docstring as the first statement of each flagged helper, including require, digest,
sha, the nested helpers installed, frame, and saved, plus the other new helpers in the pre-Rust and
controller-conformance scripts.
Description
Many new functions in the pre-Rust and controller-conformance Python scripts have no docstring as
their first statement. require in scripts/pre-rust/proof_package.py raises ValueError and is
used as the guard for every proof check, but it has no docstring; digest in
scripts/pre-rust/installed_parity.py and sha in scripts/pre-rust/managed_rollback.py are the
same. Nested helpers such as installed, frame and saved in installed_parity.py and
managed_rollback.py are also undocumented, and the rule covers nested functions too. A later
maintainer reading the proof scripts cannot tell from the helper names alone what the checks assert
or what their failure means.
4. Digest-mismatch rejection in sealed root is untested✓ ResolvedInformational
Resolution reason
Added a new test in tests/integration/controller-execution-scenario.test.ts that overwrites the root
row's body with the original body but a different digest (sha256('different fixture journal')),
asserting that both store.project and store.apply throw state.integrity and that the retained row
bytes and data_version are unchanged. This directly exercises the body/digest mismatch rejection the
finding says was untested, matching the suggested fix (write a stale/arbitrary digest and assert
state.integrity from ScenarioJournal apply/project).
Description
The damaged-row test in the execution-scenario integration suite recomputes the outer digest with
sha256(body), so it never produces a body/digest mismatch. The suite would still pass if
readSealedRoot's body-versus-digest integrity check were removed, so that check has no regression
coverage.
Reviewed-head proof at 06c086d1e304a442e4453cb56e441a8495108f39
ThreadLoop's production controller passed the frozen 38-case suite. Four native Goose runs exercised signed admission. Six installed rollback cases restored both SQLite databases and the retained executor files. The independent GitHub approval and signed merge observation are still open. Acceptance criteria
External controller conformance
RunInvariant compiled three graphs, evaluated 25 decisions and ran ten execution scenarios in separate processes. Case 024 returned AMBIGUOUS_REMEDY. The parent matched each case's request and response digests with the raw packet. All six attempts to read restricted files returned EPERM. The controls detected an incorrect result, mismatched request and timed-out process. Relabeling an input preserved its domain result. Proof driver
The proof rebuilt the subject with fresh lockfile installs. The frozen contracts validated 38 fixtures, passed 404 tests and passed the installed-package smoke test. RunInvariant passed 95 unit tests and 59 ThreadLoop integration tests. A separate fresh install resolved both GAAP schema exports and matched their bytes against Git.
The raw runner command used these arguments in order. Bracketed names stand for private host paths.
The deterministic local provider ran Goose against the pinned GAAP host and attestor. Each of the four cases recorded one launch and one admission. The verifier checked each Ed25519 signature using the public fixture key. The managed cases used a package that matched the independent Git rebuild byte for byte. The allow case reached verifying at version 4 and recorded local proof at subject commit 3468adde3ee98d9ea77fdaf90e822392d837cca8. The managed bad patch stayed at implementing at version 3. The standalone cases stayed at implementing at version 2. These cases use fixture signing. Native proof recipe
In a separate native managed allow run on the same ThreadLoop revision, five changes to the output directory changed its inventory digest while both database heads and file hashes stayed fixed. The inventory reader also refused file links, directory links and a named pipe.
Four signed execution records and their source identities
{"implementation":{"revision":"06c086d1e304a442e4453cb56e441a8495108f39","tree":"330f9afe4c6326439b087fef96f6c158344d556e","lock_sha256":"70e168ee4e6df299cd1e1b52e3609699f54eff5e892d6c0afcc1ea498194e7c2"},"gaap_commit":"0a82687d6070081e0a5cb613698f0724dc6f00cb","binaries":{"goose_sha256":"sha256:4b8258c24adad9e07957d1dddfc7d965b97883dce2eff64af7e3d3c005655d81","implementation_digest":"sha256:42305ab1ebed503c68ce6796fe1a9f6a727ca4442809b76c7daa261f124054db","attestor_digest":"sha256:d1ee3ef7e8e40d147d7aec1ff34c1a0af3b11b0618a39a2517f35fd5af10f257"},"os":"macOS-26.6-arm64-arm-64bit","source_inputs":{"file_count":296,"digest":"f6a89bb3c73f54587c2bb2636b15fac544d02f75d2ba7575b18510f82793a231"},"installed_package":{"package_sha256":"6dc08f562331d9e49938e884dd6e5be676b14c08cb174beda3951e1a3efa573c","cli_sha256":"610e586afd19fd85e0b2adade639b88a98213a039cb980772f72a65ded4cdc22"},"provider":"deterministic local provider","signing":"public fixture key","signature_check":"Independent Ed25519 verification of bytes read from executor.sqlite and retained files using the pinned public fixture key.","cases":[{"kind":"managed","case":"allow","claim":{"id":"2de3d7a9-6e4b-4b24-90dd-fb87770cc388","version":1},"executor_request_digest":"91bc574a8c407bbb381bd71f6c5b475226b354526fb3abb745fe50d4bc0795c7","controller_request_digest":"7144d846d94de29daa334910ff1ddf1ba01d4dbc721261ad5fe562bc089b7d29","attempt_id":"02602952-1b44-498c-b2e6-9ffdfda97f24","attempt_status":"succeeded","source_id":"threadloop_attempt_b991d37ef1b19cefd1ecca2bd4153b293c23354cce17f3ce0076e1d247a469c3","admission_digest":"bb072f4278ffc2c1b004d62f4bdafe47f241e4c065c4c326d3b5567f6b973803","launch_count":1,"admitted_count":1,"blob_count":14,"key_id":"gaap-goose-public-fixture-only","envelope_sha256":"53f93b8e8ed3da0fb5afa6f78f6fe557051f7c65c8e567fcce13438003b1941e","signed_predicate_sha256":"7274a43e61afea0fa0bf3e96c844f0aa83da95d4b67009ca26cadaa68c21e169","provider_requests":5,"provider_transcript_sha256":"b937117b87640969903b9eed4469424073fffd97aabf6e2947ff75e727a5b682","provenance_sha256":"375e325ea91aeedcff2b512116b8a09c6aa3e9280f5eecbb3d7c7b8e3b5c29fe","retained_output_files":35,"retained_output_bytes":179524,"output_inventory_sha256":"28574da677767d7bc0a05ab14bef5e0bac108ace042b24edbebb53db38ec7081","local_gate_receipt_id":"wfe_a6b053cce85e559cbaeb8a198c4c0871c698c3e4d9bf12948d5f4ee7cf7c","local_gate_payload_digest":"61e1d892f69bb3da8b2d72adf1f3944b259f25baabc0dcc94753b08c6684fdd2","local_gate_observed_subject":"3468adde3ee98d9ea77fdaf90e822392d837cca8","final_state":"verifying","final_version":4,"refused_apply":"transition_unavailable","subject_commit":"3468adde3ee98d9ea77fdaf90e822392d837cca8"},{"kind":"managed","case":"bad_patch","claim":{"id":"07ea2805-bd80-4592-8bf3-8f2d86dc3b16","version":1},"executor_request_digest":"592270026af508b319e686a48907cbfa1ec3259695a0d011dc702b73426410c2","controller_request_digest":"864dde4dbedacc083c06af9e04f93492ef33f97da318c37a8d55c80e3d25f159","attempt_id":"ac8474c0-822f-4553-9946-bbc40256a86a","attempt_status":"unknown_outcome","source_id":"threadloop_attempt_62c3e1c4725b0dca53043dc73f667c67655cef2a65fb4ed7bed24401a88eeb86","admission_digest":"2eac16ab9849b46be3caab523d2793f9abebc9d17a279f85700896ebb5f08ce2","launch_count":1,"admitted_count":1,"blob_count":14,"key_id":"gaap-goose-public-fixture-only","envelope_sha256":"9378e8a2b577bb7afc95128f4f6a075ad9826aeb45a1c6e7e66a6d090f18543c","signed_predicate_sha256":"93153c7ef2ed772714748810c471f381c36ae0f8962bca171732b7bae1de1363","provider_requests":5,"provider_transcript_sha256":"29681d0e83aa8b1e262a0e1576455a0d005f5d5ceb7c9e39baa820562e61fff0","provenance_sha256":"dc22c23b06aa2d2fc41938506275ab86b4117c684e05f0c812faaaa2839f89e3","retained_output_files":35,"retained_output_bytes":170999,"output_inventory_sha256":"b77bbd66db62137d5e1dba1705c57cf2549b16d66eabfc8610dfec4f0c9bbb29","final_state":"implementing","final_version":3,"refused_apply":"execution_outstanding","subject_commit":"550e1d51e07f29c5cee0ff9338fdb38097d8cf6d"},{"kind":"standalone","case":"allow","claim":{"id":"ce542609-7daf-4827-8d37-85aa3ce684cc","version":1},"executor_request_digest":"0032c5f18f787d0829bb16d771930de68f65053e9de4ffab54d06034b7c6125d","controller_request_digest":"7a4d7d566593a08d1664a7a8444f6dfac27d1316a41c20cf10b44576e789e7c7","attempt_id":"a51ce3cb-ec01-41f6-8bfb-f3f86d000544","attempt_status":"succeeded","source_id":"threadloop_attempt_a9306f81703c8fa76a14094166f1e9ccb6a449d16a7c5fb7985ac794de9c76f3","admission_digest":"0587452fae188bea84f485354d2a15397fa29827b7b438cb5f9efa13ff1af711","launch_count":1,"admitted_count":1,"blob_count":14,"key_id":"gaap-goose-public-fixture-only","envelope_sha256":"f1fc898a0448ab86fda50286fd9ac9c20e8d6b8fcbe10e819a82dc23d76dd787","signed_predicate_sha256":"f6f7206b6222d293c6608e9e3caf9fb4f878e6c5d1c7c0fda521efde8e8973db","provider_requests":5,"provider_transcript_sha256":"5fa9ebaaa4112aecc08e52a389cd515a342742109017439d70100ad6e0fa52a6","provenance_sha256":"8de3905a84f678a22c315fab1fe42d98b050a0f93280f82a5e00227b714a440a","retained_output_files":35,"retained_output_bytes":178992,"output_inventory_sha256":"5d8897294033e6a5db02e7e821bab540ff193c708e0e5ec7883ceb0a316629e3","final_state":"implementing","final_version":2,"execution_status":"idle"},{"kind":"standalone","case":"bad_patch","claim":{"id":"aed78ded-436b-4896-8e9e-869a42a441cb","version":1},"executor_request_digest":"662e4add0f6a6ada17f9477db615e33850fc639c414b196e71ffe16835124678","controller_request_digest":"ff679d58f5346e24844cadfe147b51ac7a059c503f637b8f9a9ccd8147c35970","attempt_id":"70f81d1a-c8d1-458a-8501-3165448762b7","attempt_status":"unknown_outcome","source_id":"threadloop_attempt_2b26074626d3ecfa368740703d19eb1b48c3b8a4e9eeae8a9bcffd62164ee542","admission_digest":"902f74c1b227ca981198a1b710a219936042a3f00495d53e0c629d4fa106ced2","launch_count":1,"admitted_count":1,"blob_count":14,"key_id":"gaap-goose-public-fixture-only","envelope_sha256":"2574476ae7642d0c943f4d3417ab830c28a43998746792f11f922bcce39b7e6a","signed_predicate_sha256":"6cdd61282b41956ba56bf1c80603e569489c2598a206d82e6e27bd8cdd00befe","provider_requests":5,"provider_transcript_sha256":"0e777a937e4d0e1ed1595480de682653fd82ac57bdd4a13b83c49b4ab040f8ce","provenance_sha256":"5aac959b48db87a6704a78b462731101646ce16ca63e1144edd7977172342dbb","retained_output_files":35,"retained_output_bytes":170469,"output_inventory_sha256":"9f74950e53b9ba5702c375eff96b4358f0c1ddee266fc4dfba17390f6806a59d","final_state":"implementing","final_version":2,"execution_status":"reconciliation_required"}]}
Native retained-file controls and both database heads
Node 22.22.2, 24.20.0 and 26.8.2 exposed 33 command help entries, 24 default v4 commands and 33 opt-in v5 commands. The installed-package runs checked 18 failure envelopes against a catalog of 41 declared error codes. On pre-adoption storage, four of five reader outputs matched byte for byte. Only the capability field changed in session next. The reader tests preserved the database payload across eight scenarios on each runtime. The packet records when readers created WAL and SHM sidecar files. Installed-package driver
Each Node runtime restored one held and one admitted execution from a quiescent backup. The physical invocation counter stayed at one after recovery and replay. The installed README matched Git. Its three links refer to two documents at their recorded Git revision. Both package drivers rejected an altered archive whose accompanying provenance had been updated to match it. Rollback driver
The companion comment “Installed CLI and rollback controls at 06c086d1e304a442e4453cb56e441a8495108f39” contains the per-runtime storage and error results. Its SHA-256 is 1454b81980c3484feba051ba89929a07c3e1ff4efdc3e10c70c461c322c99c46.
Installed CLI and rollback controls at 06c086d1e304a442e4453cb56e441a8495108f39
These records give the command and storage results for Node 22.22.2, 24.20.0 and 26.8.2. The rollback tests used the same three source archives as the installed CLI tests.
Protocol discovery, runner identities, error codes and predecessor refusals
Altered archive refusals, installed README links and output-file controls
{"archives":[{"role":"candidate","changed_file":"package/README.md","files_compared":3407,"cli_sha256":"610e586afd19fd85e0b2adade639b88a98213a039cb980772f72a65ded4cdc22","authentic_archive_sha256":"6dc08f562331d9e49938e884dd6e5be676b14c08cb174beda3951e1a3efa573c","modified_archive_sha256":"412242cac4942123fbddd09eab6e40b8663540bcadb01a2c069b638474bcf013","modified_readme_sha256":"e6c338406668d7d2a1d3d17e9663f89a082e04704a7ae603ac3f3a2459f9a237","public_script":"installed_parity","exit":1,"error":"ValueError: Package provenance differs from the independent Git rebuild.","published_report":false},{"role":"runs-v1","changed_file":"package/README.md","files_compared":3407,"cli_sha256":"0859b3f5c9a0cac969bbe0c744ade31080d81910d53ae04970ea654d3ce94571","authentic_archive_sha256":"c8c96f8229ee141bfe31b1509440e548aa2fb64b089bd6f44b41016e7e0fe078","modified_archive_sha256":"f47526eb5eb536829d23d859d96787ceccf0e127d71a6db09affd3939e2cc8ee","modified_readme_sha256":"83f59a8a0c73cd5deda89206bc2482d192f71c689d7e10f3018be64bc7629b40","public_script":"managed_rollback","exit":1,"error":"ValueError: Package provenance differs from the independent Git rebuild.","published_report":false}],"installed_readme":{"revision":"06c086d1e304a442e4453cb56e441a8495108f39","installed_readme_sha256":"e3b5da4344c860236872f7872d408fcc4ad9e21f721644eae6e46a6b76bf68f6","matches_git":true,"source_links":[{"url":"https://github.com/nnennandukwe/threadloop/blob/1c59b1a4d08732a7dac5e2cdd1f84dd403e6113c/docs/workflow-runs.md","git_blob":"827a90f78024bc4befd4d401e4bd7df5669cc55e","sha256":"daef9f279c2c34c542988b3c41e869cc24d6d8f1144acded61359acdad335deb"},{"url":"https://github.com/nnennandukwe/threadloop/blob/1c59b1a4d08732a7dac5e2cdd1f84dd403e6113c/docs/workflow-runs.md","git_blob":"827a90f78024bc4befd4d401e4bd7df5669cc55e","sha256":"daef9f279c2c34c542988b3c41e869cc24d6d8f1144acded61359acdad335deb"},{"url":"https://github.com/nnennandukwe/threadloop/blob/1c59b1a4d08732a7dac5e2cdd1f84dd403e6113c/docs/pre-rust-readiness.md","git_blob":"1a9aa605d9a40f247db5095065d60a4bf75774a8","sha256":"20ab58eb435db571e7b03d67b45ff88f14362b18e161ffa43512e6df01915934"}]},"retained_files":{"revision":"06c086d1e304a442e4453cb56e441a8495108f39","driver_sha256":"39dd0be379ec08e52635c50475a9573debfb2f1d0b1e8b1b01ccc05c66f259d3","sqlite_sha256":{"state.db":"c0c4944723b016cb461271f47627127b4b9801f975a9fbfe54d85feee62ca8c6","executor.sqlite":"dcc64fa811ebdd3930d9a2013deafb80b402eeffeb0ec8d9b68d60905288e7b7"},"original_outputs":{"entries":4,"files":1,"bytes":24,"sha256":"57bb33abd3afcad4ed6c7a87e5a0786c59b052512e9ce7cc92a510ff10bc4d1d"},"variants":{"byte-edit":{"sqlite_bytes_unchanged":true,"outputs":{"entries":4,"files":1,"bytes":24,"sha256":"4bfb17963b63e46ef19919acbd678053224b86aca6027a555b94acd376616bb1"}},"remove":{"sqlite_bytes_unchanged":true,"outputs":{"entries":3,"files":0,"bytes":0,"sha256":"7a732bb5a51f3b114e476e90fd7f7e57d1ecee6aea7f23de0d7eb6b351a91076"}},"add-file":{"sqlite_bytes_unchanged":true,"outputs":{"entries":5,"files":2,"bytes":48,"sha256":"be36d3115801cffa8ce1d0f80645d56611abed9de95d056818afa465160fef8f"}},"rename":{"sqlite_bytes_unchanged":true,"outputs":{"entries":4,"files":1,"bytes":24,"sha256":"f8537de9d306f0e1dee4796c559911d696f810d21f361f46ba4b6f5953f57d86"}},"add-empty-directory":{"sqlite_bytes_unchanged":true,"outputs":{"entries":5,"files":1,"bytes":24,"sha256":"62d69bd2575a868824a9be42d2f17eb94e271b051e569077cbd65654bf69b0be"}},"symlink":{"sqlite_bytes_unchanged":true,"error":"Unsupported retained output kind at attempt-fixture/blobs/alias"},"named-pipe":{"sqlite_bytes_unchanged":true,"error":"Unsupported retained output kind at attempt-fixture/blobs/pipe"}}}}
Reviewed-head proof at c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12
ThreadLoop's production controller passed the frozen 38-case suite. Four native Goose runs exercised signed admission. Six installed rollback cases restored both SQLite databases and the retained executor files. The independent GitHub approval and signed merge observation are still open. Acceptance criteria
CI deadline
The previous revision passed 953 tests on both macOS runners, but both jobs reached GitHub's 15-minute deadline during the package smoke test. On retry, floating Node 22 passed, and Node 22.22.2 finished another suite 12 seconds before the deadline stopped it. This revision allows 20 minutes on macOS and keeps Ubuntu at 15. The workflow still runs the same four jobs with two Vitest workers. First attempt · Second attempt · Previous revision's proof
External controller conformance
RunInvariant compiled three graphs, evaluated 25 decisions and ran ten execution scenarios in separate processes. Case 024 returned AMBIGUOUS_REMEDY. The parent matched each case's request and response digests with the raw packet. All six attempts to read restricted files returned EPERM. The controls detected an incorrect result, mismatched request and timed-out process. Relabeling an input preserved its domain result. Proof driver
The proof rebuilt the subject with fresh lockfile installs. The frozen contracts validated 38 fixtures, passed 404 tests and passed the installed-package smoke test. RunInvariant passed 95 unit tests and 59 ThreadLoop integration tests. A separate fresh install resolved both GAAP schema exports and matched their bytes against Git.
The raw runner command used these arguments in order. Bracketed names stand for private host paths.
The deterministic local provider ran Goose against the pinned GAAP host and attestor. Each of the four cases recorded one launch and one admission. The verifier checked each Ed25519 signature using the public fixture key. The managed cases used a package that matched the independent Git rebuild byte for byte. The allow case reached verifying at version 4 and recorded local proof at subject commit 7b157c78fcc123c7f788cede7f30a6accf55177a. The managed bad patch stayed at implementing at version 3. The standalone cases stayed at implementing at version 2. These cases use fixture signing. Native proof recipe
In a separate native managed allow run on the same ThreadLoop revision, five changes to the output directory changed its inventory digest while both database heads and file hashes stayed fixed. The inventory reader also refused file links, directory links and a named pipe.
Four signed execution records and their source identities
{"implementation":{"revision":"c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12","tree":"63a0e609a532f912ce900294ecd8bf916c9a7e8c","lock_sha256":"70e168ee4e6df299cd1e1b52e3609699f54eff5e892d6c0afcc1ea498194e7c2"},"gaap_commit":"0a82687d6070081e0a5cb613698f0724dc6f00cb","binaries":{"goose_sha256":"sha256:4b8258c24adad9e07957d1dddfc7d965b97883dce2eff64af7e3d3c005655d81","implementation_digest":"sha256:42305ab1ebed503c68ce6796fe1a9f6a727ca4442809b76c7daa261f124054db","attestor_digest":"sha256:d1ee3ef7e8e40d147d7aec1ff34c1a0af3b11b0618a39a2517f35fd5af10f257"},"os":"macOS-26.6-arm64-arm-64bit","source_inputs":{"file_count":296,"digest":"f6a89bb3c73f54587c2bb2636b15fac544d02f75d2ba7575b18510f82793a231"},"installed_package":{"package_sha256":"6dc08f562331d9e49938e884dd6e5be676b14c08cb174beda3951e1a3efa573c","cli_sha256":"610e586afd19fd85e0b2adade639b88a98213a039cb980772f72a65ded4cdc22"},"provider":"deterministic local provider","signing":"public fixture key","signature_check":"Independent Ed25519 verification of bytes read from executor.sqlite and retained files using the pinned public fixture key.","cases":[{"kind":"managed","case":"allow","claim":{"id":"74bf3763-1d3b-4bab-b2f6-c75ed5e69d18","version":1},"executor_request_digest":"8d7732dd1de6af7dc0a124ab4e3bfac8a5e52410a45d490151eb344d8f06ec9e","controller_request_digest":"c38ab6edb82751fa87f34a19dba5a595725862b1ce000749e6de11bbf3e301d8","attempt_id":"7262d7ff-d1bb-40cd-bdc8-de9b4a38843a","attempt_status":"succeeded","source_id":"threadloop_attempt_23d97a511dd065ea6062511c1eff125c78477593a4f81f7b529d1ad32a7c07ba","admission_digest":"2a365d9fb0d934cb983ee3492397494212365e6d2c6cac498d00cb58ce56fd06","launch_count":1,"admitted_count":1,"blob_count":14,"key_id":"gaap-goose-public-fixture-only","envelope_sha256":"87e3f5b613c16907944431ccfeb1892a82b919a35a699827213dac188d4e91b5","signed_predicate_sha256":"b543057e2c218af29527464fc04f5a92066490ec42d604ef298eadad1926ef09","provider_requests":5,"provider_transcript_sha256":"818c3d530b338e238ce98bf41ebb4de608ecd7067e5e9c5500e7fa29998315b8","provenance_sha256":"81d4b9ad9609605fa091f4f013b2404479e2ad5d38052ab83bd07b7b7a18c961","retained_output_files":35,"retained_output_bytes":179533,"output_inventory_sha256":"e3bc34d088791adf3ff595db166874f17eb22d1fb195e93a3fcfabf7107df453","local_gate_receipt_id":"wfe_8975777e24858e3897fe25cea9b09826968e285b020f279d9a3f6c7976e0","local_gate_payload_digest":"61e1d892f69bb3da8b2d72adf1f3944b259f25baabc0dcc94753b08c6684fdd2","local_gate_observed_subject":"7b157c78fcc123c7f788cede7f30a6accf55177a","final_state":"verifying","final_version":4,"refused_apply":"transition_unavailable","subject_commit":"7b157c78fcc123c7f788cede7f30a6accf55177a"},{"kind":"managed","case":"bad_patch","claim":{"id":"282c44bc-1a98-4131-843b-2f192ee3a5fe","version":1},"executor_request_digest":"588c5f69f36d3bbd66cd27d98c442d7e4baba63b5e8a816cc83ebef2f4be1883","controller_request_digest":"b1b0f05c6fee54e3a16baea8294e02d887be723da2d40b4cd1f0c1b17f59ecfb","attempt_id":"1ae52184-4394-4152-bf3a-0537321b0393","attempt_status":"unknown_outcome","source_id":"threadloop_attempt_2a4445ef9eed8dc5716a80875a6ecfa186899a79f1bc24826de3aa7139ec221d","admission_digest":"a7ca607c8c74749a649d87be19192a0291772384b6bb2eb424e1626de901bdc8","launch_count":1,"admitted_count":1,"blob_count":14,"key_id":"gaap-goose-public-fixture-only","envelope_sha256":"9c8a18eddf9030ca033ce380adf9b656a328a272b161f0aff2172afa6000b9bd","signed_predicate_sha256":"370972dcc8f6b06f1a26c8b261f800be0dd3e8ca3b796daca89ec0e52b0fb866","provider_requests":5,"provider_transcript_sha256":"833cd719ba3d1d724cb698f6f9186186d270814d02adb4fd5470b88f7f0dc1cc","provenance_sha256":"306776f34554ac6358ef540e8d4c38fc78b691bcc2bd4f5973e57a03543d1b45","retained_output_files":35,"retained_output_bytes":171005,"output_inventory_sha256":"d1dca2a1a093afa777d4bf9bd049e46ef7a8c8f00e10c8b57084fb63dc5f41c0","final_state":"implementing","final_version":3,"refused_apply":"execution_outstanding","subject_commit":"9f98e04b0a3859af3af26a67b5351b731723e24d"},{"kind":"standalone","case":"allow","claim":{"id":"a8d28623-8f6a-4352-afaf-01f3db845921","version":1},"executor_request_digest":"3fb1a0dcbca117c48077cbc25b6114270071908ed76cd79d82b00bfd1ade9b1d","controller_request_digest":"3f03f1aa2ee6053af01ca3bcf5805fb6afe1716c8d28fef60db6a8c3291d533f","attempt_id":"f77a38ff-9cd4-4485-b630-2b7bfe415060","attempt_status":"succeeded","source_id":"threadloop_attempt_c6c8d207d0125309c1ff628af2d3952c167582f1d09b0601d1f7c0001c840a4e","admission_digest":"680e1c664f41c986ae5cf7ceea5fcd00c2982014ea67f14683279a5a2cedb536","launch_count":1,"admitted_count":1,"blob_count":14,"key_id":"gaap-goose-public-fixture-only","envelope_sha256":"2b84b65277478339b6a1d0a516413d13a7b20243a8682babb9de7943a77a4857","signed_predicate_sha256":"2baff05da7500288f669f16da8276121d5c3981fbe2854316f21ac5786853cc8","provider_requests":5,"provider_transcript_sha256":"103e70325d009546c5a2e5add6569ccd338e1b6035f9692fa9d7a143e3ac595b","provenance_sha256":"ad3e68a89a1074212cdba55cd6a58fe27f1c3981aa75620ab82b1785799d86e0","retained_output_files":35,"retained_output_bytes":179458,"output_inventory_sha256":"91338fde8525eb9a10ed54834f2bbe24d7e3301598bc42635c49ae906948501f","final_state":"implementing","final_version":2,"execution_status":"idle"},{"kind":"standalone","case":"bad_patch","claim":{"id":"834b38f7-b1ec-4e69-9c78-df56c5d3f505","version":1},"executor_request_digest":"615fb0819f1d907abca8c0b53e069148e16e6886805b669c2d2c8e999b41ae57","controller_request_digest":"579b5e25eae4d8a5c7149a203203c2cf81f1dea2d3e784bafc363b0137fdc014","attempt_id":"7c9cd20e-83fd-4650-8596-238a969bce59","attempt_status":"unknown_outcome","source_id":"threadloop_attempt_5b7d80cb7dd3d32059557d1ccb23b9031a30bf1786c0023e16803fb7b941d997","admission_digest":"73f92225d941b28146913dd53fc6dd11a5305171bf4cfca4432eb84f5fdcbecb","launch_count":1,"admitted_count":1,"blob_count":14,"key_id":"gaap-goose-public-fixture-only","envelope_sha256":"1e2f9cba28d41272c14ac1321dfaa30ae71c97df63446f7166039a0fdef17b22","signed_predicate_sha256":"e71d92c64f25c41eaacd34253cd9038a9db953fd34bc1db9011a1106f0f50bec","provider_requests":5,"provider_transcript_sha256":"c7c4c817641df3dc708fb9fef9104a92203ee2c40c746afca9c2652933e83ace","provenance_sha256":"b5025b631284bdcc861441adc4a065759b1ffb9fe238d3cd23aff373069d60b6","retained_output_files":35,"retained_output_bytes":170939,"output_inventory_sha256":"78278934470b58b14c98b18a62c6deec33d1cf33280bc1b9dc7109634be08a0a","final_state":"implementing","final_version":2,"execution_status":"reconciliation_required"}]}
Native retained-file controls and both database heads
Node 22.22.2, 24.20.0 and 26.8.2 exposed 33 command help entries, 24 default v4 commands and 33 opt-in v5 commands. The installed-package runs checked 18 failure envelopes against a catalog of 41 declared error codes. On pre-adoption storage, four of five reader outputs matched byte for byte. Only the capability field changed in session next. The reader tests preserved the database payload across eight scenarios on each runtime. The packet records when readers created WAL and SHM sidecar files. Installed-package driver
Each Node runtime restored one held and one admitted execution from a quiescent backup. The physical invocation counter stayed at one after recovery and replay. The installed README matched Git. GitHub served both pinned documents referenced by its three links, and their bytes matched the recorded Git blobs. Both package drivers rejected an altered archive whose accompanying provenance had been updated to match it. Rollback driver
The companion comment “Installed CLI and rollback controls at c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12” contains the per-runtime storage and error results. Its SHA-256 is 372e91ea4480e64ee6df23190c24752abc9030804f33c35c4900b8af5bd04eb5.
Installed CLI and rollback controls at c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12
These records give the command and storage results for Node 22.22.2, 24.20.0 and 26.8.2. The rollback tests used the same three source archives as the installed CLI tests.
Protocol discovery, runner identities, error codes and predecessor refusals
Altered archive refusals, installed README links and output-file controls
{"archives":[{"role":"candidate","changed_file":"package/README.md","files_compared":3407,"cli_sha256":"610e586afd19fd85e0b2adade639b88a98213a039cb980772f72a65ded4cdc22","authentic_archive_sha256":"6dc08f562331d9e49938e884dd6e5be676b14c08cb174beda3951e1a3efa573c","modified_archive_sha256":"361b7be3c97a1f419a5e5da538c4a77b4b87f833b148cdbbe66ae7b3c516b946","modified_readme_sha256":"e6c338406668d7d2a1d3d17e9663f89a082e04704a7ae603ac3f3a2459f9a237","public_script":"installed_parity","exit":1,"error":"ValueError: Package provenance differs from the independent Git rebuild.","published_report":false},{"role":"runs-v1","changed_file":"package/README.md","files_compared":3407,"cli_sha256":"0859b3f5c9a0cac969bbe0c744ade31080d81910d53ae04970ea654d3ce94571","authentic_archive_sha256":"c8c96f8229ee141bfe31b1509440e548aa2fb64b089bd6f44b41016e7e0fe078","modified_archive_sha256":"90e424debd4ac31a26747563ad52e7b346aebe2b057fee1eaef882531837dace","modified_readme_sha256":"83f59a8a0c73cd5deda89206bc2482d192f71c689d7e10f3018be64bc7629b40","public_script":"managed_rollback","exit":1,"error":"ValueError: Package provenance differs from the independent Git rebuild.","published_report":false}],"installed_readme":{"revision":"c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12","installed_readme_sha256":"e3b5da4344c860236872f7872d408fcc4ad9e21f721644eae6e46a6b76bf68f6","matches_git":true,"source_links":[{"url":"https://github.com/nnennandukwe/threadloop/blob/1c59b1a4d08732a7dac5e2cdd1f84dd403e6113c/docs/workflow-runs.md","git_blob":"827a90f78024bc4befd4d401e4bd7df5669cc55e","sha256":"daef9f279c2c34c542988b3c41e869cc24d6d8f1144acded61359acdad335deb"},{"url":"https://github.com/nnennandukwe/threadloop/blob/1c59b1a4d08732a7dac5e2cdd1f84dd403e6113c/docs/workflow-runs.md","git_blob":"827a90f78024bc4befd4d401e4bd7df5669cc55e","sha256":"daef9f279c2c34c542988b3c41e869cc24d6d8f1144acded61359acdad335deb"},{"url":"https://github.com/nnennandukwe/threadloop/blob/1c59b1a4d08732a7dac5e2cdd1f84dd403e6113c/docs/pre-rust-readiness.md","git_blob":"1a9aa605d9a40f247db5095065d60a4bf75774a8","sha256":"20ab58eb435db571e7b03d67b45ff88f14362b18e161ffa43512e6df01915934"}]},"remote_documents":{"revision":"c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12","installed_readme_sha256":"e3b5da4344c860236872f7872d408fcc4ad9e21f721644eae6e46a6b76bf68f6","installed_link_count":3,"distinct_documents":[{"git_blob":"827a90f78024bc4befd4d401e4bd7df5669cc55e","sha256":"daef9f279c2c34c542988b3c41e869cc24d6d8f1144acded61359acdad335deb","bytes":16563,"url":"https://github.com/nnennandukwe/threadloop/blob/1c59b1a4d08732a7dac5e2cdd1f84dd403e6113c/docs/workflow-runs.md"},{"git_blob":"1a9aa605d9a40f247db5095065d60a4bf75774a8","sha256":"20ab58eb435db571e7b03d67b45ff88f14362b18e161ffa43512e6df01915934","bytes":16676,"url":"https://github.com/nnennandukwe/threadloop/blob/1c59b1a4d08732a7dac5e2cdd1f84dd403e6113c/docs/pre-rust-readiness.md"}]},"retained_files":{"revision":"c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12","driver_sha256":"39dd0be379ec08e52635c50475a9573debfb2f1d0b1e8b1b01ccc05c66f259d3","sqlite_sha256":{"state.db":"c0c4944723b016cb461271f47627127b4b9801f975a9fbfe54d85feee62ca8c6","executor.sqlite":"06b06276b2879fb3be673130d1c86921133e8a944eaeeeb854504f771343ad29"},"original_outputs":{"entries":4,"files":1,"bytes":24,"sha256":"57bb33abd3afcad4ed6c7a87e5a0786c59b052512e9ce7cc92a510ff10bc4d1d"},"variants":{"byte-edit":{"sqlite_bytes_unchanged":true,"outputs":{"entries":4,"files":1,"bytes":24,"sha256":"4bfb17963b63e46ef19919acbd678053224b86aca6027a555b94acd376616bb1"}},"remove":{"sqlite_bytes_unchanged":true,"outputs":{"entries":3,"files":0,"bytes":0,"sha256":"7a732bb5a51f3b114e476e90fd7f7e57d1ecee6aea7f23de0d7eb6b351a91076"}},"add-file":{"sqlite_bytes_unchanged":true,"outputs":{"entries":5,"files":2,"bytes":48,"sha256":"be36d3115801cffa8ce1d0f80645d56611abed9de95d056818afa465160fef8f"}},"rename":{"sqlite_bytes_unchanged":true,"outputs":{"entries":4,"files":1,"bytes":24,"sha256":"f8537de9d306f0e1dee4796c559911d696f810d21f361f46ba4b6f5953f57d86"}},"add-empty-directory":{"sqlite_bytes_unchanged":true,"outputs":{"entries":5,"files":1,"bytes":24,"sha256":"62d69bd2575a868824a9be42d2f17eb94e271b051e569077cbd65654bf69b0be"}},"symlink":{"sqlite_bytes_unchanged":true,"error":"Unsupported retained output kind at attempt-fixture/blobs/alias"},"named-pipe":{"sqlite_bytes_unchanged":true,"error":"Unsupported retained output kind at attempt-fixture/blobs/pipe"}}}}
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
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
RunInvariant can now exercise ThreadLoop’s production compiler, selector and execution journal through a separate process. The revision-specific evidence covers all 38 frozen cases, actual SQLite interruption and replay, four native Goose runs, installed CLI behavior and quiescent rollback. The independent human completion gate remains open.
Related issue
Refs #172 and #168. The final acceptance item requires a willing independent reviewer, an actual approval and a signed merge observation at the approved head. Prerequisite program
Changes
Impact
The installed ThreadLoop CLI retains default protocol v4. Opt-in v5 reports 33 commands. Compatible storage stays at generation 8.
Validation
Review head
c3cd0d60336ee402eb25fb44da2b4b2b1e08ae12, tree63a0e609a532f912ce900294ecd8bf916c9a7e8c, comparison base50b3aa61f92bbc1e03b3177683e16aa199a3dd7b. The tracked packets identify80e091c9f6412195a8444f048add977d648c4115. The runs below used this PR head. Controller, native execution and rollback evidence · Installed CLI and archive checksnpm run checknpm run security:dependenciesgit diff --check origin/main...HEADAMBIGUOUS_REMEDY. Artifact894befa3ba692db5a86968bdc408b032137dacb80b149fc4459343945a42334a. Public packet SHA-25689b0b420e03b0fdf1502944756fe8d1313e87dcc7243d31f3d6a8f02da23218b.6dc08f562331d9e49938e884dd6e5be676b14c08cb174beda3951e1a3efa573c.0dda18cb-ee35-488c-ace5-a22937bf2bc1. Complete branch coverage, zero files skipped and zero new findings. The earlier schema finding remains pending in Qodo. Fresh install and Git byte checks for both schemas are recorded below.On the previous head, hosted Qodo review 2116248 marked all seven findings implemented. Both macOS jobs passed all 953 tests before their 15-minute job limit interrupted the installed-package check. On retry, the floating Node 22 job passed and the minimum Node 22.22.2 job reached the same limit. The new commit allows 20 minutes on macOS. Ubuntu keeps its 15-minute limit. The matrix, runner class, dependency pins, two test workers and packaged-install steps match the preceding workflow. Pinned actionlint validated the change. CI attempts · Preceding evidence
Local Qodo finding
eb30f1dbpredicts that the schema exports won't resolve. The pinned package maps./assets/*to./dist/docs/contracts/*. The independent rebuild loaded the request schema (7,350 bytes) and receipt schema (16,600 bytes), checked both against the Git source, and passed the full 38-case suite. Qodo couldn't fetch the optional linked specification. The canonical build plan was included in the reviewed diff. Pinned package exportsHosted review 2095897 found that the first proof used existing dependency installs. The revised proof stages ThreadLoop, its contracts and RunInvariant at their exact Git revisions, installs all three locks with npm lifecycle scripts disabled, and builds the contracts distribution with its own locked compiler. Registry packages use npm's lock integrity. The Git dependency's three installed metadata files are checked directly against the pinned Git blobs. A disposable same-version change that the old proof accepted now fails before scoring. Inventory, all cases and the controls use the fresh harness. Original finding
Hosted review 2102268 identified two package issues. The installed README now links to both documents at an immutable Git revision. Each package comparison rebuilds the supplied archive from the named Git revision and authenticates every archive before installing the first one. Two controls supplied an altered archive with matching altered provenance and both were refused. README finding · Archive finding
Local review finding
34912d04identified missing verification of physical executor outputs. The backup, restored store and recovered store now compare file names, kinds, sizes and digests. Five changes to copied outputs were detected while both SQLite databases kept their original bytes and heads. The verifier refused file links, directory links and a FIFO. Rollback verifierThe macOS proof denied six reads of parent-side files. The independent controls caught a wrong decision, wrong correlation and timeout. The native cases used a deterministic local provider and a public signing fixture. Production services, paid model inference and a real reviewer’s decisions are outside those measurements.
Risk and recovery
Restoring either quiescent database pair reproduced its recorded hashes. A held effect required reconciliation. A committed child admission imported once from the restored pair. All six installed rollback cases retained one physical invocation. Restoring an older snapshot discards later writes. Restore instructions
Reviewer guidance
Inspect the subject’s request framing and dispatch, the assertion that an admitted replay still has current authority, and the separate parent-side comparison. Compare the external packet with the SQLite and native evidence. Each answers a different question. Software Build Plan
Checklist