Skip to content

feat(sync): additive CB-3 wire fields - lineage, cache tokens, session shape, coverage watermark - #1147

Merged
iamtoruk merged 1 commit into
mainfrom
feat/cb3-wire-v2
Aug 25, 2026
Merged

iamtoruk merged 1 commit into
mainfrom
feat/cb3-wire-v2

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

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.

@iamtoruk
iamtoruk merged commit 8e61ac7 into main Aug 25, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant