Skip to content

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 into
canaryfrom
fix/a-disk-monitor-that-cannot-see-says-unknown
Sep 19, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/a-disk-monitor-that-cannot-see-says-unknown

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The words said UNKNOWN, the number said Normal

Cormac and a027688a caught it in review of #4185: the no-match arm fired disk.pressure.unmeasured and 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):

  1. the volume holding the home, when one does (volume_source = "home");
  2. else the hottest mounted volume — a real number, conservatively chosen, named as a fallback (disk.pressure.unmeasured_home, volume_source = "hottest_volume");
  3. 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.

DiskPressureSnapshot.volume_source says which volume the numbers describe on system/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 = Unknown and Unknown > 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

… 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
joelteply merged commit 8d54f71 into canary Sep 19, 2026
6 checks passed
@joelteply
joelteply deleted the fix/a-disk-monitor-that-cannot-see-says-unknown branch September 19, 2026 01:51
joelteply added a commit that referenced this pull request Sep 19, 2026
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]>
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