Repository navigation
feat(benchmark): add causal replay checks for adaptive mine policies - #2053
Draft
Tristan-Stoltz-ERC wants to merge 8 commits into
Draft
Tristan-Stoltz-ERC wants to merge 8 commits into
Tristan-Stoltz-ERC wants to merge 8 commits into
Conversation
This was referenced Oct 18, 2026
Contributor
Author
|
Cross-domain follow-up from the shipyard recovery work: draft PR #2730 checks multi-scenario information-set consistency at each decision tick, with the expected scenario inventory and source-owned event logs separated from candidate-only action traces. This complements rather than replaces this PR's stronger domain-specific event-delivery/QC/evaluator-visibility checks and paired counterfactual receipt. I have explicitly noted that shared canonicalization/receipt/non-anticipativity primitives should be extracted as the contracts mature, rather than merging two independent implementations without review. #2730's exact-head Rust workflow remains pending, so the new code is not yet validated. |
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 first increment of MINE-ADAPTIVE-001 #2051: a standalone Rust trace auditor for causal admissibility and non-anticipative counterfactual replay.
Paradigm shift
A score from a policy that can see future assay results is not merely a slightly optimistic estimate—it is a causally invalid experiment. The counterfactual fork check makes that failure falsifiable by changing only the future outcome while holding earlier observable history fixed.
Research anchors
Independent semantic check / CI status
An independently implemented JavaScript checker matched 11/11 expected dispositions and exact reason-code sets, counted five causal violations, accepted the valid counterfactual pair, and rejected both branches of the planted pre-fork disagreement.
Exact head
22dd5e0a5b0bdd46cda177cbb2caee4e18b7295dpassed the focused Mine Adaptive Causal Replay Benchmark workflow 39165916229: rustfmt passed, 8 Rust unit tests passed, and the receipt matched all 11 controls, five causal violations, two counterfactual groups, and one rejected pair. Exact-head repo CI run 39165916263 subsequently completed successfully, in addition to focused run 39165916229. This verifies the Rust trace-auditor contract and repository CI at head22dd5e0a5b0bdd46cda177cbb2caee4e18b7295d; its claim ceiling remains synthetic trace semantics only.Acceptance targets / limitations
The frozen contract targets zero future-event use, zero use of evaluator-only truth, and identical actions for identical pre-fork observable history. It audits the declared input-event list; by itself it cannot prove a policy executable did not read an undeclared field. A later evaluation harness must capture the complete delivered observation snapshot, hash it, bind policy binary/configuration, and independently verify runtime logs or enforce a sandboxed API boundary.
The public fixtures are not a blinded predictive test. This PR audits trace semantics only—it does not score mining utility and says nothing about real geology, reserve quality, worker safety, or industrial performance.
Next stage: a separate policy runner/evaluator that compares static, two-stage, rolling-horizon, and decision-aware measurement policies against the same held-out synthetic realizations, with clairvoyant plans labeled only as upper bounds. Reuse MINE-SYSTEM, ORE-VOI, and blend contracts rather than duplicating those owners.
Exact-head verification update
Exact head
22dd5e0a5b0bdd46cda177cbb2caee4e18b7295dpassed focused causal replay run 39165916229 and repository CI 39165916263. Focused Rust validation passed formatting, 8 tests and the 11-scenario receipt gate; repository CI completed successfully. Claim ceiling remains synthetic trace semantics; no field-performance claim.