release: proof-gate witness for the unstamped row repair (Astra R3)
Astra R3 READY AFTER FIXES; its one P2: a repair-specific missing-proof witness. A hibernating unstamped row whose left link names the selected build, with a proof required and none present, stays unstamped and nothing restarts. A same-target shortcut stamp fails it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+27
−0
internal/release/unstamped_live_test.go+27 −0
CI passed — run details
diff --git a/internal/release/unstamped_live_test.go b/internal/release/unstamped_live_test.go| index 0eb61ca5b..bf18f7702 100644 |
| --- a/internal/release/unstamped_live_test.go |
| +++ b/internal/release/unstamped_live_test.go |
| @@ -3,6 +3,7 @@ package release |
| import ( |
| "context" |
| "os" |
| + "strings" |
| "testing" |
| "time" |
| @@ -167,3 +168,29 @@ func TestUnstampedRowsThePlannerDoesNotWakeAreLeftAlone(t *testing.T) { |
| }) |
| } |
| } |
| + |
| +// Astra R3 P2: a retained link is no exemption from the proof gate. The |
| +// app requires a proof, the row is unstamped and hibernating, its left link |
| +// names the selected build, and there is neither a proof nor a healthy run |
| +// of it here: the row stays unstamped and nothing restarts. |
| +func TestARemintedRowNeedsItsProof(t *testing.T) { |
| + e := newProofEnv(t) |
| + e.requireDev(t) |
| + if err := StageArtifact(e.opt, "bab", "new", "console", []byte("bad build")); err != nil { |
| + t.Fatal(err) |
| + } |
| + if err := PointLive(e.opt, proofHost, "bab", "new", "console"); err != nil { |
| + t.Fatal(err) |
| + } |
| + if err := e.reg.Delete(proofHost); err != nil { |
| + t.Fatal(err) |
| + } |
| + addRoute(t, e.reg, proofHost, "console", "canary/x", true) |
| + out := e.passWith(t, e.store, func(h string) error { t.Fatalf("restart consulted for %s", h); return nil }) |
| + if rt, _ := e.reg.Get(proofHost); rt == nil || rt.Version != "" { |
| + t.Fatalf("row = %+v; an unproven left build was stamped", rt) |
| + } |
| + if !strings.Contains(out, "is not proven on dev") { |
| + t.Fatalf("printed %q, want the not-proven line", out) |
| + } |
| +} |