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
With the confidential runtime class live (blocked-by) and the attestation-evidence envelope schema shipped (blocked-by), the actual capability lands here: execute the existing backtest replay inside the attested environment and persist the evidence with the run, so a REGRESSED/OK verdict over a private corpus carries proof of what executed. Today persistThresholdBacktestRuns (src/services/threshold-backtest-run.ts) writes runs into audit_events (THRESHOLD_BACKTEST_EVENT_TYPE = "calibration.threshold_backtest_run") with metadata.comparison + corpus checksum + SHAs; nothing carries execution-environment evidence.
Requirements
A job image that runs the threshold comparison (the pure core behind runThresholdBacktestAdvisory) and the logic replay (scripts/backtest-logic-check.ts's core) over an exported, checksummed corpus snapshot — no live DB access from inside the confidential VM; corpus in, verdict + envelope out.
The job computes reportData via buildAttestationReportData({ corpusChecksum, headSha, baseSha }) (envelope module) and binds it into the SNP attestation report's user-data field, so the attestation cryptographically commits to exactly which corpus + code revision ran.
The emitted AttestationEnvelope validates against validateAttestationEnvelope and is persisted under the run's audit_events metadata (additive field; existing readers — scripts/backtest-track-record.ts, src/review/public-rule-precision.ts, src/services/rule-calibration-trend.ts — must be byte-identical in behavior when the field is absent).
Verification happens outside the job (KBS/verifier from the runtime-class issue); the persisted envelope's verification status reflects the verifier's result, "unverified" when verification was skipped.
No gating changes, no new authority for attested runs, no tenant data in any public artifact. The interim Cloudflare path keeps running the unattested advisory check unchanged.
maintainer-only — infra + persistence-shape authority.
Problem
With the confidential runtime class live (blocked-by) and the attestation-evidence envelope schema shipped (blocked-by), the actual capability lands here: execute the existing backtest replay inside the attested environment and persist the evidence with the run, so a REGRESSED/OK verdict over a private corpus carries proof of what executed. Today
persistThresholdBacktestRuns(src/services/threshold-backtest-run.ts) writes runs intoaudit_events(THRESHOLD_BACKTEST_EVENT_TYPE = "calibration.threshold_backtest_run") withmetadata.comparison+ corpus checksum + SHAs; nothing carries execution-environment evidence.Requirements
runThresholdBacktestAdvisory) and the logic replay (scripts/backtest-logic-check.ts's core) over an exported, checksummed corpus snapshot — no live DB access from inside the confidential VM; corpus in, verdict + envelope out.reportDataviabuildAttestationReportData({ corpusChecksum, headSha, baseSha })(envelope module) and binds it into the SNP attestation report's user-data field, so the attestation cryptographically commits to exactly which corpus + code revision ran.AttestationEnvelopevalidates againstvalidateAttestationEnvelopeand is persisted under the run'saudit_eventsmetadata (additive field; existing readers —scripts/backtest-track-record.ts,src/review/public-rule-precision.ts,src/services/rule-calibration-trend.ts— must be byte-identical in behavior when the field is absent).verificationstatus reflects the verifier's result,"unverified"when verification was skipped.Deliverables
Links & Resources
src/services/threshold-backtest-run.ts,scripts/backtest-corpus-export.ts,scripts/backtest-logic-check.tsBoundaries
No gating changes, no new authority for attested runs, no tenant data in any public artifact. The interim Cloudflare path keeps running the unattested advisory check unchanged.
maintainer-only — infra + persistence-shape authority.