Repository navigation
feat(sync): additive CB-3 wire fields - lineage, cache tokens, session shape, coverage watermark - #1147
Merged
Conversation
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.
Boundary-spec section 7 (CB-3), riding #1140's lineage and #1145's resolver. New OPTIONAL span attributes, each emitted only when proven and absent otherwise: ai.work_unit_id / ai.session_role / ai.lineage_evidence (provider-recorded families, same trace-id derivation), ai.cache_read_tokens / ai.cache_write_tokens, ai.call_count, ai.session_duration_ms, ai.subscription_covered (true or omitted - never an unprovable false), and batch-level codeburn.coverage_through from the daily-cache watermark. Quota utilization deliberately excluded (the CLI has no quota reader - no stubs). Disclosure and docs/sync/DEVELOPER.md updated; nothing enters span ids or ledger keys so nothing re-sends; sanitizers applied.
Live dry-run on the real pilot org: 3,215 pending spans, 1,530 carrying lineage, 3,214 with cache tokens, subscription_covered true on 1,564 / omitted on 1,651 / false on 0, coverage watermark 2026-08-24, dedup fully intact (34,428 already-synced recognized). 18 new wire tests incl. golden attribute-set pins and all absent-when-unproven cases; suite 3,746 green; tsc clean. Built by Kimi Code under the ponytail worker preamble; wire-critical review performed directly.