docs(claude): update Seam B summary for 0.9.0 multi-decoder routing#46
Merged
Conversation
CLAUDE.md's Seam B bullet still described the pre-0.9.0 single-decoder contract (a single ResponseDecoder, decode(content, model) only) with no can_decode dispatch, decoders=[...] list, or MissingDecoderError pre-flight. An agent implementing a decoder from it ships an interface that AttributeErrors at dispatch. Rewritten to match the live contract and engineering.md §Seam B. Closes the High finding in planning/audit/2026-06-12-delta-audit.md. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the High finding from the 0.9.0 delta audit (
planning/audit/2026-06-12-delta-audit.md):CLAUDE.md's Seam B bullet still described the pre-0.9.0 single-decoder contract — a singleResponseDecoderwith onlydecode(content, model)— with nocan_decodedispatch, nodecoders=[...]list, and noMissingDecoderErrorpre-flight. An AI agent implementing a custom decoder from that reference ships an interface missingcan_decode, whichAttributeErrors when the client calls it at dispatch.Rewritten to match the live 0.9.0 contract and stay consistent with the canonical
planning/engineering.md§Seam B (which was already up to date):decoders: Sequence[ResponseDecoder] | None— a list, default resolves against installed extras (pydantic-first)can_decode(model)is True runsdecode(...)MissingDecoderErrorraised before the HTTP call when none claim the modelDecodeErrorat the seamDocs-only; one line changed.
Test Plan
CLAUDE.mdonlyplanning/engineering.md§Seam B (lines 39–46) and the actualResponseDecoderprotocol /_dispatch_decoderbehavior🤖 Generated with Claude Code