Goal
Define library/schemas/token-budget.schema.json for context limits and library/schemas/token-report.schema.json for map optimize --save output.
Human contract
Document budget scope, target/profile, tokenizer assumption, inclusion rules, warning/error thresholds, largest contributors, duplicate detection, and recommended actions. Include a compact report walkthrough.
Machine contract
Use non-negative integer token counts, explicit units/model assumptions, stable reason codes, deterministic file ordering, and versioned report metadata. Keep absolute local paths and document contents out of shareable reports by default.
Acceptance criteria
Depends on the project manifest and canonical document envelope.
Goal
Define
library/schemas/token-budget.schema.jsonfor context limits andlibrary/schemas/token-report.schema.jsonformap optimize --saveoutput.Human contract
Document budget scope, target/profile, tokenizer assumption, inclusion rules, warning/error thresholds, largest contributors, duplicate detection, and recommended actions. Include a compact report walkthrough.
Machine contract
Use non-negative integer token counts, explicit units/model assumptions, stable reason codes, deterministic file ordering, and versioned report metadata. Keep absolute local paths and document contents out of shareable reports by default.
Acceptance criteria
Depends on the project manifest and canonical document envelope.