Skip to content

inspect attaches the host to presence, which is what it decides - #211

Merged
avrabe merged 1 commit into
mainfrom
fix/inspect-host-qualifies-presence
Sep 30, 2026
Merged

avrabe merged 1 commit into
mainfrom
fix/inspect-host-qualifies-presence

Conversation

@avrabe

@avrabe avrabe commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

varve#178, an item of #202. Enabled by #209, which made install record the
platform it laid payloads down for.

(platform <host>) sat immediately after the DISPATCHED/HELD counts, where it
read as "these payloads dispatch on this host". Dispatch is decided by
payload kind; the host decides presence — whether these bytes are on
disk here. Two different things printed adjacently, with the label on the
wrong one.

Nothing was computed wrongly. Every row's PLATFORM was right and the counts
were right; the summary claimed something it was not measuring — and claimed
it hardest in the case that most needs clarity.

Now:

50 payload(s): 43 DISPATCHED, 7 HELD
presence checked against aarch64-apple-darwin

and when the layer was installed for somewhere else:

2 payload(s): 2 DISPATCHED, 0 HELD
installed for platform-a; host is aarch64-apple-darwin — none of it present for this host

installed_for joins host_platform in --json: a pipeline reading only the
host cannot tell a cross-platform install from a tampered store, and those
want opposite responses.

Layers installed before #209 have no record and fall through to
presence checked against <host>, unchanged.

Negative-controlled — restoring the old summary line fails the new test
with the exact text varve#178 reported:

the host is still attached to the DISPATCHED/HELD counts, which it does not
decide: 2 payload(s): 2 DISPATCHED, 0 HELD  (platform aarch64-apple-darwin)

Gates: workspace clippy 0, rivet validate PASS, trace-gate OK, mutation
scope OK, varve suite green.

🤖 Generated with Claude Code

https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu

varve#178. `(platform <host>)` sat immediately after the DISPATCHED/HELD
counts, where it read as "these payloads dispatch on this host". Dispatch is
decided by payload KIND and the host decides nothing about it; the host
decides PRESENCE — whether these bytes are on disk here. Two different things
printed adjacently with the label on the wrong one.

Nothing was computed wrongly. Every row's PLATFORM was right, and the counts
were right. The summary claimed something it was not measuring, and it claimed
it hardest in the case that most needs clarity: a layer installed for another
platform, where every row disagrees with the host and nothing said why.

    50 payload(s): 43 DISPATCHED, 7 HELD
    presence checked against aarch64-apple-darwin

and, when the layer was installed for somewhere else — which v0.40.0 can now
say, because install records it (varve#189):

    2 payload(s): 2 DISPATCHED, 0 HELD
    installed for platform-a; host is aarch64-apple-darwin — none of it
    present for this host

`installed_for` joins `host_platform` in `--json`, because a pipeline reading
only the host cannot tell a cross-platform install from a tampered store, and
those want opposite responses.

Negative-controlled: restoring the old summary line fails the new test with
the exact text varve#178 reported.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
@avrabe
avrabe enabled auto-merge (squash) September 30, 2026 03:41
@avrabe
avrabe merged commit 728dc1c into main Sep 30, 2026
27 checks passed
@avrabe
avrabe deleted the fix/inspect-host-qualifies-presence branch September 30, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant