Repository navigation
Add the S8 rollback-for-exhaustion supplement and retain sandbox profiles - #301
Conversation
The Darwin launcher now exposes the exact profile text it hands to sandbox-exec. The S8 driver stores it in the private state directory, named by its digest, records whether each worker event's profile was retained, and verification checks the stored bytes against the recorded digests. Runs sealed before this change carry no retention field and verify exactly as before.
The full rehearsal's rollback toward exhausted B was refused by the rollback lineage rule, so it did not show the exhaustion check. The supplement exhausts B, explicitly deploys A so that B is the eligible rollback target, then requests a rollback. Preparation selects B and refuses because its cap is exhausted; A stays active. Expected sends: B 24, smoke 3, A 0. The plan and the owner approval must both name the scenario, so neither approval can stand in for the other. Verification, sealing, and the report are reused; the full rehearsal's outputs are unchanged. Not executed against a counted qualification.
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 26 minutes. View limit details
|
|
Fast suite in the local preflight run on |
Code reviewNo high-confidence issues found. Checked correctness, edge cases, security, and repository-specific requirements. Reviewed |
… checks - The preparer raises StatefulLoadError for several causes, and the audit row keeps no message for it. The supplement step and inspect_supplement now also require the exhaustion message recorded in the sealed lifecycle, so a worker that failed to start on B is not recorded as refused by exhaustion. - A newer full rehearsal with a required OS sandbox must have retained every worker profile, as the supplement already requires; runs sealed before retention carry no key and verify as before. - verify_retained_profiles refuses a malformed digest, a symlinked directory, and entries that are not regular files with ValueError. Regressions cover each case and fail against the previous code.
…nto feat/s8-rollback-supplement
Two owner decisions from 2026-11-22 on the S8 review. This PR is stacked on #300 and targets its branch; retarget it to
mainafter #300 merges. Nothing here is executed against a counted qualification, and no verdict is declared.Why
Step 6 of the rehearsal asks preparation to refuse a rollback toward exhausted B. In the executed rehearsal the rollback lineage rule refused first, with
candidate_id: null, and it would have refused the same way if B had capacity left. Repeating that sequence cannot separate the two causes. The review also found that the five worker records kept profile digests but not the profile bytes.Rollback-for-exhaustion supplement
pixelgym/platform/s8_rollback_supplement.pyadds the scenariorollback-exhaustion-supplement-v1:StatefulLoadError, thedeployment.rollback_failedaudit event naming B, A's unchanged deployment ID, B's unchanged count, and the smoke sends before and after.Expected durable sends: qualification 77, B 24, smoke 3 (deploy B, deploy A, and the refused rollback's preparation), A 0; total 104 of the 111 campaign cap.
prepare --scenario rollback-exhaustion-supplement-v1writes a plan that names the scenario and requires an approval document with a matchingscenariofield. The full rehearsal's approval has no such field, so neither approval can stand in for the other.run,verify, andreportread the scenario from the plan.The scenario subclasses the rehearsal driver and duplicates the golden-episode and cap-probe loops instead of refactoring the executed steps, so the full rehearsal's step code is unchanged apart from reading its step order from the instance.
Sandbox-profile retention
sandbox-exec.worker-profiles/<sha256>.sband recordsprofile_retainedon each worker event.Owner decision recorded
The owner accepts the existing unit regressions as coverage for a live episode that crosses a deployment change. The S7 proposal and the S8 driver doc record this as an explicit exception to integrated evidence.
Checks
d3a1d99b28cea8fd30214599e526a927efcab63ec8bc2804b40e8f06cfaaa2b1).2209899e: a self-review by the agent that wrote the change recorded no findings. Lint, format, andmypy pixelgympassed. Fast suite counts are in the comment below.tests/integration/test_s8_rehearsal_local.pywith the real Darwin sandbox, run ate69439bf: 2 passed in 69.57 s. It covers the full rehearsal with five retained profiles and the supplement with two.Limits
scenariofield.This is an audit trail; it replaces neither CI nor a human review.