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
Issue #586 (PR #730, bounded preflight scan) is blocked: its Rust Workspace check fails at the snapshot test (exercise_bootstrap_snapshot) with snapshot rejected: ...digest changed before rollback manifest. Investigation shows a cross-impact: the #586 preflight-scan change to polymarket-raw-ops-shadow-gate.sh triggers the snapshot test to fail, even though the two are code-independent.
snapshot rejected comes from polymarket-raw-ops-cutover.sh:1080 (snapshotted Rust bootstrap binary digest changed before rollback manifest), i.e. after snapshot_legacy copies ACTIVE_BINARY into the rollback dir and sha256sum --check --stricts it against baseline_release_sha.
On CI the digest genuinely mismatches (sha256sum: WARNING: 1 computed checksum did NOT match); locally it matches.
The failing case is exercise_bootstrap_snapshot (test harness), whose install()/stat() overrides interact with snapshot_legacy's copying of /etc/systemd/system/* and the bootstrap binary.
Removing the counterexample from the test script does not change the outcome, so the trigger is the preflight-scan change to polymarket-raw-ops-shadow-gate.sh (or its interaction with the test harness's sed extraction of preflight functions).
Hypotheses to investigate
Preflight sed-extraction interaction: the test script sed-extracts real_market_segment_preflight + PREFLIGHT_SCAN_WINDOW_RECORDS (L799-808). The preflight change may alter what is extracted, changing shell state that the later snapshot test relies on.
stat() override over-broad: test stat() { printf '0755\n'; } returns 0755 for both -c %a (mode) and -c %u/%U (owner) queries. If the override is not scoped correctly for the bootstrap path, secure_regular_file's root-owner check breaks.
install() override redirect: install -m "$mode" "/etc/systemd/system/$asset" must redirect to $systemd_fixture; if the redirect misses for a new path, the install fails and the copy target differs.
Dedicated worktree/branch on main; run deployment/aliyun/test-polymarket-raw-ops-control-plane.sh on CI (Linux) with only the preflight change, then bisect which part (sed extraction line, PREFLIGHT_SCAN_WINDOW_RECORDS constant, or the shadow-gate scan body) triggers the snapshot failure.
Add targeted debug to exercise_bootstrap_snapshot (print baseline_sha, rollback-bin sha, ACTIVE_BINARY sha at failure) — the existing SNAPSHOT_DEBUG instrumentation showed copied-binary-drift digest mismatch is expected, so focus on absent-control.
Problem
Issue #586 (PR #730, bounded preflight scan) is blocked: its
Rust Workspacecheck fails at the snapshot test (exercise_bootstrap_snapshot) withsnapshot rejected: ...digest changed before rollback manifest. Investigation shows a cross-impact: the #586 preflight-scan change topolymarket-raw-ops-shadow-gate.shtriggers the snapshot test to fail, even though the two are code-independent.What is known (all experiments)
Established facts
snapshot rejectedcomes frompolymarket-raw-ops-cutover.sh:1080(snapshotted Rust bootstrap binary digest changed before rollback manifest), i.e. aftersnapshot_legacycopiesACTIVE_BINARYinto the rollback dir andsha256sum --check --stricts it againstbaseline_release_sha.sha256sum: WARNING: 1 computed checksum did NOT match); locally it matches.exercise_bootstrap_snapshot(test harness), whoseinstall()/stat()overrides interact withsnapshot_legacy's copying of/etc/systemd/system/*and the bootstrap binary.polymarket-raw-ops-shadow-gate.sh(or its interaction with the test harness'ssedextraction of preflight functions).Hypotheses to investigate
sed-extractsreal_market_segment_preflight+PREFLIGHT_SCAN_WINDOW_RECORDS(L799-808). The preflight change may alter what is extracted, changing shell state that the later snapshot test relies on.stat() { printf '0755\n'; }returns0755for both-c %a(mode) and-c %u/%U(owner) queries. If the override is not scoped correctly for the bootstrap path,secure_regular_file's root-owner check breaks.install -m "$mode" "/etc/systemd/system/$asset"must redirect to$systemd_fixture; if the redirect misses for a new path, the install fails and the copy target differs.Recommended approach
deployment/aliyun/test-polymarket-raw-ops-control-plane.shon CI (Linux) with only the preflight change, then bisect which part (sed extraction line,PREFLIGHT_SCAN_WINDOW_RECORDSconstant, or the shadow-gate scan body) triggers the snapshot failure.exercise_bootstrap_snapshot(printbaseline_sha, rollback-bin sha,ACTIVE_BINARYsha at failure) — the existing SNAPSHOT_DEBUG instrumentation showedcopied-binary-driftdigest mismatch is expected, so focus onabsent-control.Blocks