Skip to content

feat(sessions): deterministic work-unit resolver and --by-work-unit view (CB-2 slice 1) - #1145

Merged
iamtoruk merged 1 commit into
mainfrom
feat/cb2-work-unit-resolver
Aug 25, 2026
Merged

iamtoruk merged 1 commit into
mainfrom
feat/cb2-work-unit-resolver

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Second slice of the Teams boundary spec's CB track, building on #1140's provider-recorded lineage. A deterministic resolver groups each provider-recorded root with its provider-recorded children into a work unit (workUnitId = the exact trace-id derivation sync already uses; one-sided children fold under the parent they name; out-of-window parents leave children ungrouped per MAIN-02 fail-closed; cycles break to unknown, never hang). New codeburn sessions --by-work-unit renders one row per unit with children indented; --format json gains an add-only workUnits array under the flag. Default output byte-identical without the flag; grouped and ungrouped totals equal by pinned test.

Real-corpus acceptance (30 days): 16,640 units, 27 multi-session families folding 861 children - consistent with the recorded lineage baseline (29 roots / 881 children over 90 days). Suite green (one unrelated known-flaky Electron SIGTERM-timing test passed in isolation); tsc clean. Implemented by Kimi Code against the spec brief, independently validated.

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