You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs/contracts/content-fetch-issuer-contract.md is 14,772 tokens (exact, count_tokens) against curating-context's 10,000 per-doc budget. It is the only
live doc in the repo still over it after #22.
Why it matters more than a number
The per-doc budget exists because demotion only removes cost if the destination is
smaller than the thing an agent would otherwise read. This doc is the opposite
case: it is linked from sibling repos (Watcher, Phase 4) as the normative
statement of what a content.fetch producer must do, so an issuer-side agent that
needs one of the seven MUST rules pays 14,772 tokens to reach it. #22 deliberately
demoted nothing into it for this reason.
It is also the doc most likely to be read by an agent that is not working in this
repo — which is exactly the case where an over-budget file does the most damage,
because the reader has no cheaper local surface to fall back on.
Shape of the split
The headings already suggest the seams:
Lines
Section
Audience
40–92
The frame, the payload
anyone constructing a command
92–260
Request options: what Replicator will send, and what it refuses (#11)
168 lines — a reference, not a rule
261–444
What the issuer MUST do (7 numbered rules)
the contract proper
445–492
What Replicator guarantees / does not guarantee
the contract proper
493–558
Failure taxonomy, provenance and trust
reference
559–580
Settled: the fetch_failed fact
historical — resolved, and dated
### Request options alone is 29% of the file and is a lookup table by nature:
an issuer consults it when a header is refused, not while writing its publisher.
The seven MUST rules are the part that must stay in one place and stay short
enough to be read start to finish.
A defensible split is a normative core (frame, payload, the seven rules, the
guarantee/non-guarantee pair) plus one companion reference carrying the request-
options rules and the failure taxonomy. Both under 10,000; the core well under.
Constraints
Sibling repos link to this path. Watcher and Phase 4 point at docs/contracts/content-fetch-issuer-contract.md by name. The existing path
must keep resolving — either it stays as the normative core, or it becomes a
stub that routes, but it does not disappear. Whichever is chosen, the sibling
links need checking before the split lands, and a cross-repo issue if they
need updating.
Compression is not paraphrase. Where the split is a move, move verbatim — prove-no-loss.sh --file docs/contracts/content-fetch-issuer-contract.md will
check it. Revision that genuinely tightens prose is welcome, but it should be a
visible, separately-justified part of the diff rather than something that
happens in transit.
docs/contracts/content-fetch-issuer-contract.mdis 14,772 tokens (exact,count_tokens) againstcurating-context's 10,000 per-doc budget. It is the onlylive doc in the repo still over it after #22.
Why it matters more than a number
The per-doc budget exists because demotion only removes cost if the destination is
smaller than the thing an agent would otherwise read. This doc is the opposite
case: it is linked from sibling repos (Watcher, Phase 4) as the normative
statement of what a
content.fetchproducer must do, so an issuer-side agent thatneeds one of the seven MUST rules pays 14,772 tokens to reach it. #22 deliberately
demoted nothing into it for this reason.
It is also the doc most likely to be read by an agent that is not working in this
repo — which is exactly the case where an over-budget file does the most damage,
because the reader has no cheaper local surface to fall back on.
Shape of the split
The headings already suggest the seams:
fetch_failedfact### Request optionsalone is 29% of the file and is a lookup table by nature:an issuer consults it when a header is refused, not while writing its publisher.
The seven MUST rules are the part that must stay in one place and stay short
enough to be read start to finish.
A defensible split is a normative core (frame, payload, the seven rules, the
guarantee/non-guarantee pair) plus one companion reference carrying the request-
options rules and the failure taxonomy. Both under 10,000; the core well under.
Constraints
docs/contracts/content-fetch-issuer-contract.mdby name. The existing pathmust keep resolving — either it stays as the normative core, or it becomes a
stub that routes, but it does not disappear. Whichever is chosen, the sibling
links need checking before the split lands, and a cross-repo issue if they
need updating.
AGENTS.mdasserts things about this doc. "Anything asserted there isasserted about this repo's code; change one, change both (Document the content.fetch issuer contract: per-occasion command_id, url-is-not-a-key, durable command_id→domain map #8)." Splitting is a
change to the contract's shape, so the
## Detail Docsindex entry and theBus Conventionssignpost both need updating in the same PR.prove-no-loss.sh --file docs/contracts/content-fetch-issuer-contract.mdwillcheck it. Revision that genuinely tightens prose is welcome, but it should be a
visible, separately-justified part of the diff rather than something that
happens in transit.
.socraticodecontextartifacts.jsonand
codebase_context_indexruns in the same change — editing the manifest isnot what
codebase_context_searchreturns (Consume content.fetch-policy — replace the single env default with Watcher's per-host numbers (cannobserv#285) #19 CR A body-less 304 dead-letters — make "not modified" a first-class outcome before conditional GET is usable #17).Verification
Every live doc under 10,000, no new orphans, no dead links.
Follow-up to #22.