Add epistemic-drift guards, RIEE runtime enforcement, claim validation scripts and tests#820
Add epistemic-drift guards, RIEE runtime enforcement, claim validation scripts and tests#820neuron7xLab wants to merge 81 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a425a8333
ℹ️ 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".
| spread = float(row['spread_bps']) | ||
| fee = float(row['fee_bps']) | ||
| amount = float(row.get('amount', close_val)) | ||
| ts = datetime.fromisoformat(row['ts_utc'].replace('Z', '+00:00')) |
There was a problem hiding this comment.
Reject non-UTC timestamps in financial contract checks
The contract includes an utc_only_timestamps quality gate, but this parser accepts any ISO-8601 offset (for example +05:30) and never verifies the parsed timezone is UTC. As a result, non-UTC rows can pass validation and be marked EP_PARITY_PASSED, which undermines the contract’s stated timezone constraint.
Useful? React with 👍 / 👎.
Blocking audit: do not merge as-isThis PR has useful direction, but it mixes too many layers in one blast radius and contains several fail-closed violations. P1 blockers
P2 issues
Recommended splitA. PR 1: epistemic drift guard only. Verdict: conceptually valuable, not merge-safe. |
|
Closure update after autonomous hardening pass:
One outdated UTC review thread remains unresolved only because the connector blocked the thread-id resolve call; the code path itself is now closed by |
eb7bfff to
9cdbddc
Compare
Motivation
Description
scripts/check_epistemic_drift.py,scripts/validate_financial_contract.py,scripts/generate_claim_graph.py,scripts/generate_claim_hashes.py,scripts/verify_claim_hashes.py,scripts/claims_lifecycle.py,scripts/production_readiness_riee.py, andscripts/guards/zero_latency_interrupter.py.runtime/riee/and operational helpers underscripts/riee/.Testing
scripts/production_readiness_riee.py.Codex Task