Repository navigation
fix(disk): a monitor that cannot see says Unknown — never a zero that reads as room (the (0,0) hand-on in #4185) - #4209
Merged
joelteply merged 1 commit intoSep 19, 2026
Conversation
… reads as room Cormac + a027688a on #4185: the no-match arm announced "UNKNOWN" in a probe and then handed on (0, 0) → pressure 0.0 → Normal. The words said unknown; the number said fine — the exact lie #4185 was written to end, re-committed in its own fallback. Now ONE pure reading per poll (volume_reading): the volume holding the home when one does; else the HOTTEST mounted volume — a real number, conservatively chosen, named as a fallback (disk.pressure.unmeasured_home, volume_source="hottest_volume"); else a typed DiskPressureLevel::Unknown (volume_source="none"), ordered above Critical so every `level >= High` gate treats an unseen disk as hot, never as room. The snapshot carries volume_source so system/resources says which volume its numbers describe. Test: a_monitor_that_cannot_see_says_unknown_never_normal (home, hottest fallback picks the most-pressured volume not the first, no volumes = Unknown and Unknown > Critical). disk_pressure 8, disk_eviction 17, disk_reporters 4, monitor 17, bindings regenerated, hygiene green. Faster or slower: no effect on a citizen's turn; the disk daemon's poll does one more comparison per mount. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
deleted the
fix/a-disk-monitor-that-cannot-see-says-unknown
branch
September 19, 2026 01:51
1 of 2 tasks
joelteply
added a commit
that referenced
this pull request
Sep 19, 2026
…tial_cmp(..).unwrap_or(Equal) in the hottest-volume pick Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Sep 19, 2026
…rry their reasons; the consumer enters the repo before reboot (ca365c81) (#4212) * fix(deploy): canary green again — #4208's five unjustified unwraps carry 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 * fix(hygiene): the fourth site from #4209 carries its reason too — partial_cmp(..).unwrap_or(Equal) in the hottest-volume pick Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 19, 2026
…is refused everywhere, test fixtures included Joel, 2026-09-18: "No hard coding to this machine's characteristics. I'd look for 'joelt' user string." The drive-resolver test (#4209) had `C:\Users\joelt\.continuum` as its fixture home — the box it was written on. The existing tenant rule only reads production lines, and a fixture is exactly where a developer types the path they can see; so a second rule in `tenant_neutrality.rs` reads the WHOLE file and matches a HOME PATH (`/Users/<ours>`, `C:\Users\<ours>`, `/home/<ours>`) rather than the bare name — a transcript fixture speaking as "joel" is a name, not a machine. Baseline zero. It found four more than the grep for `joelt` did: `/Users/joel/...` fixtures in not_speech, eye_reaper and process_anomaly. All now `someone`. Also the two code-level node names outside Rust: the preview fixture's `bigmama.local` and the CLI help's `wake bigmama` examples → placeholders. Comments naming BigMama/IntelMac stay: provenance of a measurement is prose. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Sep 19, 2026
…is refused everywhere, test fixtures included (#4231) Joel, 2026-09-18: "No hard coding to this machine's characteristics. I'd look for 'joelt' user string." The drive-resolver test (#4209) had `C:\Users\joelt\.continuum` as its fixture home — the box it was written on. The existing tenant rule only reads production lines, and a fixture is exactly where a developer types the path they can see; so a second rule in `tenant_neutrality.rs` reads the WHOLE file and matches a HOME PATH (`/Users/<ours>`, `C:\Users\<ours>`, `/home/<ours>`) rather than the bare name — a transcript fixture speaking as "joel" is a name, not a machine. Baseline zero. It found four more than the grep for `joelt` did: `/Users/joel/...` fixtures in not_speech, eye_reaper and process_anomaly. All now `someone`. Also the two code-level node names outside Rust: the preview fixture's `bigmama.local` and the CLI help's `wake bigmama` examples → placeholders. Comments naming BigMama/IntelMac stay: provenance of a measurement is prose. Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc Co-authored-by: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The words said UNKNOWN, the number said Normal
Cormac and a027688a caught it in review of #4185: the no-match arm fired
disk.pressure.unmeasuredand then handed on(0, 0)→ pressure 0.0 →Normal. The exact absence-as-positive-fact #4185 was written to end, re-committed in its own fallback.The change — one pure reading per poll
volume_reading(drives, home):volume_source = "home");disk.pressure.unmeasured_home,volume_source = "hottest_volume");DiskPressureLevel::Unknown(volume_source = "none"), ordered aboveCriticalso everylevel >= Highgate treats an unseen disk as hot — never as room.DiskPressureSnapshot.volume_sourcesays which volume the numbers describe onsystem/resources.Faster or slower?
No effect on a citizen's turn; the disk daemon's 30 s poll does one more comparison per mount.
Tests
a_monitor_that_cannot_see_says_unknown_never_normal— home; hottest fallback picks the most-pressured volume, not the first; no volumes =UnknownandUnknown > Critical. disk_pressure 8, disk_eviction 17, disk_reporters 4, monitor 17, bindings regenerated, hygiene green.Not merged tonight per Fable's settle call; review requested.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc