A lock's ETag depends on the Accept-Encoding it was fetched with #2

Open
opened 2026-12-05 22:24:11 +00:00 by jeffry · 0 comments
Owner

Measured, 2026-12-05, on GitHub raw (raw.githubusercontent.com/hypertheory-labs/software-center/main/.loom/published/intent.md):

Fetched with ETag
no Accept-Encoding (curl's default) "caa47548…", strong
Accept-Encoding: gzip (what loomctl sends) W/"ce3565ad…", weak

Sending either one back in If-None-Match with the other encoding gets a 200, not a 304.

HTTP allows this: an ETag belongs to a representation, not a file. But a lock's ETag quietly depends on how it was fetched. loomctl always asks the same way, so loomctl external check says "same". Anything else that checks the same lock, by hand with curl or with another tool, sees a change that didn't happen. That's the false alarm guarantees.md warns about, from a different cause.

Possible answers: the lock records the encoding it was fetched with, or the rule says to always fetch one way (and which). Weak ETags may deserve a sentence too, since "verbatim" now includes the W/.

Not checked: whether git.hypertheory-labs.dev's raw route does the same.

Filed by Claude, while publishing from hypertheory-labs/software-center (plan sateen). Concerns loom-cli too, as the second holder of the rule.

**Measured, 2026-12-05, on GitHub raw** (`raw.githubusercontent.com/hypertheory-labs/software-center/main/.loom/published/intent.md`): | Fetched with | ETag | | --- | --- | | no `Accept-Encoding` (curl's default) | `"caa47548…"`, strong | | `Accept-Encoding: gzip` (what `loomctl` sends) | `W/"ce3565ad…"`, weak | Sending either one back in `If-None-Match` with the other encoding gets a **200, not a 304**. HTTP allows this: an ETag belongs to a representation, not a file. But a lock's ETag quietly depends on how it was fetched. `loomctl` always asks the same way, so `loomctl external check` says "same". Anything else that checks the same lock, by hand with curl or with another tool, sees a change that didn't happen. That's the false alarm `guarantees.md` warns about, from a different cause. Possible answers: the lock records the encoding it was fetched with, or the rule says to always fetch one way (and which). Weak ETags may deserve a sentence too, since "verbatim" now includes the `W/`. Not checked: whether git.hypertheory-labs.dev's raw route does the same. *Filed by Claude, while publishing from hypertheory-labs/software-center (plan sateen). Concerns loom-cli too, as the second holder of the rule.*
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: norn/externals#2