feat(witness): anchored trace replay for causal failure experiments - #42
Draft
ruvnet wants to merge 7 commits into
Draft
feat(witness): anchored trace replay for causal failure experiments#42ruvnet wants to merge 7 commits into
ruvnet wants to merge 7 commits into
Conversation
This was referenced Aug 27, 2026
ruvnet
commented
Aug 28, 2026
ruvnet
left a comment
Owner
Author
There was a problem hiding this comment.
Portfolio verdict on this exact head: ACCEPT. The canonical evidence encoder now rejects sparse arrays, extra array properties, non-plain objects, symbol keys, non-enumerable/accessor properties, undefined values, non-finite numbers, cycles, and unsupported primitives. The accessor regression proves untrusted evidence code is not invoked. Local npm ci, build, lint, and 108/108 tests passed; CI run 33150021211 and CodeQL run 33150021171 passed. This is still provenance integrity only: it grants no execution or promotion authority, and human review remains required.
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.
Summary
Implements the infrastructure half of #41: a deterministic anchored trace replay primitive in
@dream-machine/witnessso repair experiments can prove they reconstructed the same causal prefix before regenerating a downstream suffix.What changed
createAnchoredReplay,verifyReplayPrefix, andfinalizeAnchoredReplay@dream-machine/witnessSecurity boundary
Trace digests prove evidence identity only. They grant no execution or promotion authority. RVM remains the authority boundary. No merge, deployment, credential change, or irreversible migration is performed by this PR.
Research basis
SymTrace, arXiv:2608.25920, submitted 2026-08-26, reports that unguided whole-trajectory reruns have poor failure reproduction and repair rates. This PR does not claim to reproduce the paper's repair gains. It only adds the smaller reusable invariant needed to run a controlled RuV reproduction.
Validation plan
Repository CI must pass build, typecheck, lint, existing witness tests, and the new replay tests. A separate MetaHarness reproduction should compare whole rerun, anchored no-intervention replay, and anchored symptom-driven intervention under identical model, seeds, tools, budgets, and evaluator.
Rollback
Fully additive. Revert the module export, trace replay source/tests, and ADR. No stored-data migration or existing witness format changes.
Closes infrastructure portion of #41. Performance claims remain gated on independent reproduction.