Skip to content

fix(deploy): canary green again — #4208's five unjustified unwraps carry their reasons; the consumer enters the repo before reboot (ca365c81) - #4212

Merged
joelteply merged 2 commits into
canaryfrom
fix/the-consumer-runs-reboot-from-the-repo
Sep 19, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/the-consumer-runs-reboot-from-the-repo

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Cormac's card ca365c81: canary tip 7fe1d21 RED — unwrap ratchet 2268 > 2267 from #4208's merge (mine). Five .unwrap_or(/.unwrap() without a same-line reason — three display-only in the verdict println, two test fixtures — each now carries why. Every node's deploy was gated on this; it should land as soon as CI is green.

Also in it, found before the first unattended tick could hit it: reboot's warm build locates tools/scripts/start-server.sh by walking up from the cwd, and a scheduled task starts in System32 — the Macs' launchd tracker's exact wall. The consumer enters the repo before calling reboot.

Faster or slower: no effect on a citizen's turn.

CLI 47, unwrap_justification green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

…rry their reasons; and the consumer enters the repo before reboot

Cormac's card ca365c81: canary tip 7fe1d21 RED, unwrap ratchet 2268 > 2267
from #4208's merge — five `.unwrap_or(`/`.unwrap()` with no same-line reason
(three display-only in the verdict println, two test fixtures). Each now says
why. Every node's deploy was gated on this.

And the wall the first unattended tick would have hit: `reboot`'s warm build
locates tools/scripts/start-server.sh by walking UP FROM THE CWD, and a
scheduled task starts in System32 — the Macs' launchd tracker's exact wall
("under launchd the cwd is /; continuum reboot then finds no source"). The
consumer knows the repo; it enters it before calling reboot.

CLI 47, unwrap_justification green.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply

Copy link
Copy Markdown
Contributor Author

CONDITIONAL — conflicts with #4211 on continuum.rs 2392/2393/2400 (same three lines, different comment text); #4211 also carries disk_pressure.rs:423, which this misses. Proposal on airc: #4211 first, rebase this down to the cwd fix (the part only this PR has, and it is real). Will review the cwd change on the rebase.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head 46a5a16. Supersedes my CONDITIONAL above.

cwd fix checked: set_current_dir(&repo) sits in the Deploy arm after fetch+checkout and before reboot, and repo is CONTINUUM_TRACK_REPO_DIR / CARGO_MANIFEST_DIR — not cwd-derived, so entering it cannot chase itself. The warm path walks up from cwd for tools/scripts/start-server.sh; from System32 that finds nothing — same wall as launchd at /. Right fix, right place.

All four production sites now carried (three status lines + disk_pressure.rs:423; the NaN claim holds — total_bytes > 0 is filtered before the division and u64 as f64 cannot be inf). The two test-mod unwraps are uncounted by the scan; harmless.

Follow-up on ca365c81 after this lands: baseline to the measured count (predicted 2264) + the failure message stops labelling tree-first entries as new.

@joelteply
joelteply merged commit 1d2ae5f into canary Sep 19, 2026
6 checks passed
@joelteply
joelteply deleted the fix/the-consumer-runs-reboot-from-the-repo branch September 19, 2026 03:01
joelteply added a commit that referenced this pull request Sep 19, 2026
…failure stops calling tree-first entries "new"

Card ca365c81. canary 7fe1d21 went red on this guard (2268 > 2267) after
a batch whose PRs were each green alone: the ratchet had three of slack
under 2267, two branches spent it independently, and only the merge was
over. #4212 writes the four reasons; this pins the baseline to what the
tree measures with them written — 2264, read from the test's own output —
so the slack that made tonight possible is gone and the next unjustified
unwrap is red on ITS branch, not on the merge.

Two things about the failure message, both paid for tonight:

- It said "First few new ones:" and listed anthropic_adapter.rs:52 onward.
  The scan has no old set and cannot know what is new; it was printing the
  tree-first entries, which predate the guard. Finding the four real lines
  took a CI bisect across eleven commits. The message now says what it
  prints ("in tree order, NOT necessarily new"), says how to find yours
  (diff your branch for added unwrap shapes without a same-line comment),
  and names the green-alone/red-on-merge shape so the next reader does not
  file it as a flake.
- The count now prints under --nocapture on a PASS too, so lowering the
  baseline after a clean-up is one build and a read, not a deliberately
  failing second build to make the number appear.

Measured: cargo test --lib the_unjustified_unwrap_count_never_rises --
--nocapture → "unjustified production unwraps: 2264 (baseline 2264)",
1 passed, REAL_EXIT 0.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Sep 19, 2026
…failure stops calling tree-first entries "new" (#4213)

Card ca365c81. canary 7fe1d21 went red on this guard (2268 > 2267) after
a batch whose PRs were each green alone: the ratchet had three of slack
under 2267, two branches spent it independently, and only the merge was
over. #4212 writes the four reasons; this pins the baseline to what the
tree measures with them written — 2264, read from the test's own output —
so the slack that made tonight possible is gone and the next unjustified
unwrap is red on ITS branch, not on the merge.

Two things about the failure message, both paid for tonight:

- It said "First few new ones:" and listed anthropic_adapter.rs:52 onward.
  The scan has no old set and cannot know what is new; it was printing the
  tree-first entries, which predate the guard. Finding the four real lines
  took a CI bisect across eleven commits. The message now says what it
  prints ("in tree order, NOT necessarily new"), says how to find yours
  (diff your branch for added unwrap shapes without a same-line comment),
  and names the green-alone/red-on-merge shape so the next reader does not
  file it as a flake.
- The count now prints under --nocapture on a PASS too, so lowering the
  baseline after a clean-up is one build and a read, not a deliberately
  failing second build to make the number appear.

Measured: cargo test --lib the_unjustified_unwrap_count_never_rises --
--nocapture → "unjustified production unwraps: 2264 (baseline 2264)",
1 passed, REAL_EXIT 0.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant