Skip to content

docs: split and compress content-fetch-issuer-contract.md — 14,772 tokens, over the 10,000 per-doc budget #24

Description

@gregoryfoster

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

Verification

bash .claude/skills/curating-context/scripts/measure-context.sh --exact \
  | python3 -c "import json,sys; d=json.load(sys.stdin); [print(x['tokens'], x['over_budget'], x['path']) for x in d['docs']]"

Every live doc under 10,000, no new orphans, no dead links.

Follow-up to #22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions