docs(hook-observability): record the three output-cap deltas from the hooks-reference audit - #3761
Conversation
… hooks-reference audit Re-read the hooks reference by the rung-1 route on 2026-09-05 and record, as four-part upstream-drift stamps, the three cap facts the convention did not carry: over-cap output overflows to a file rather than truncating, the additionalContext cap is per value with no shared pool, and the 2,000-char shared cap belongs to classifierContext, not to either channel this doc owns. The classifierContext field fired the "Not a UI feature" bullet's recheck trigger; the firing is recorded and the clause narrowed to fields addressed to the user or the model. The stale #930 pointer now names #3750 and #3758. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019DaWEB8Daq1xAXy2Xj1Pme
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 3m 1s —— View job CI code review
Scope: Findings: none blocking. Cross-checks performed against the diff's own claims, beyond what the PR body already reports:
One non-blocking observation, not raised as a finding: the new |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e694917990
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
The routing note still named #930, which is closed; the active follow-up for the fleet-wide session id and the schema_version 1.1 promotion is #3758 (Codex finding on #3761). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019DaWEB8Daq1xAXy2Xj1Pme
Closes #3754
Summary
The 2026-09-04 doc-alignment audit confirmed
docs/conventions/hook-observability/README.mdaccurate on its channel claims but found three cap facts the hooks reference states and the convention did not carry. This PR records them, docs only.Fix
A new
### Output caps stated by the referencesubsection under the three surfaces, re-read 2026-09-05 by the rung-1 route (rawhooks.md, 317,632 bytes, first heading andllms.txtslug checked, SHA-256 recorded), carrying one four-part upstream-drift record per delta with the quoted basis:additionalContextcap is per value, with no pool shared across hooks.classifierContext(PostToolUse only, ignored for background hooks, discarded on read-only lookups), not to either channel this doc owns. The peer misreading that filed the typos-format 8,000-character self-cap as a bug is recorded so the next reader finds the answer here.Three consequential edits:
classifierContextfired the "Not a UI feature" bullet's recheck trigger as worded ("adds a hook-output field beyond the three"). Per upstream-drift's firing procedure the firing is recorded in place, the rule re-derived unchanged (the field reaches the classifier, not the user or the model), and the clause narrowed to fields addressed to the user or the model.prompt_idparagraph pointed at feat(conventions): add prompt_id correlation to the hook-telemetry envelope #930, which is closed; it now points at feat(claude-ops): per-session hook logging pipeline, default off #3750 (the per-session event log that recordsprompt_id) and hook-telemetry:session_idon every producer, then promote the correlation keys into the envelope spine (1.1) #3758 (the envelope-spine promotion).docs/conventions/hook-telemetry/README.md's routing note now names hook-telemetry:session_idon every producer, then promote the correlation keys into the envelope spine (1.1) #3758 (Codex finding).Verification
npx --no-install markdownlint-cli2 --config .markdownlint-cli2.jsoncon both files: 0 issues.typoson both files: clean.grep -c '10,000'prints 5,grep -c 'classifierContext'prints 2, each occurrence under a dated stamp.scripts/affected-tests.sh --explain: both files are a recorded no-suite class (hygiene lane covers them); no shell suite selected.Related
session_idon every producer, then promote the correlation keys into the envelope spine (1.1) #3758.🤖 Generated with Claude Code
https://claude.ai/code/session_019DaWEB8Daq1xAXy2Xj1Pme