Repository navigation
feat(sessions): deterministic work-unit resolver and --by-work-unit view (CB-2 slice 1) - #1145
Merged
Merged
Conversation
…rk-unit (CB-2 slice 1)
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.
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-unitrenders one row per unit with children indented;--format jsongains 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.