feat(takeover): harden session takeover and bounded read path (D1-D3) - #104
Merged
Merged
Conversation
…em capping, and topics Records measured facts for session takeover hardening: - 17,649 / 756,602 messages (2.33%) have all-digit hex uuid8 refs - 134 system prompt topic segments across corpus, max 41,669 chars - Single-session topic spine retrieval pattern
…1-D3) - D1 (types, read): pure deletion of reNumericRef under Doctrine Rule 4, eliminating 2.33% false reject rate on decimal hex uuid8 refs. - D2 (view): cap non-conversational system anchors to dispCap with policy measurement in docs/design/takeover-path-measurements.md. - D3 (topics, cmd_topics): direct ordered stream of session topic segments from store without custom in-memory filters. Prior-Art: git/git object-name.c#L455-L510 (GPL-2.0) @b8242b093d9e941a34460d715e3ce616a34ac3fe -> internal/agentproto/types.go Prior-Art: git/git object-name.c#L455-L510 (GPL-2.0) @b8242b093d9e941a34460d715e3ce616a34ac3fe -> internal/agentproto/read.go Prior-Art: BurntSushi/ripgrep crates/printer/src/standard.rs#L300-L330 (MIT) @3fce3b5bb0236da2df6d99672afb8a719642eca7 -> internal/view/view.go Prior-Art: cli/cli pkg/cmd/issue/list/list.go#L48-L95 (MIT) @707514fdaea01d51886a99d2941bd8ad62d84234 -> internal/cli/cmd_topics.go Prior-Art: cli/cli pkg/cmd/issue/list/list.go#L48-L95 (MIT) @707514fdaea01d51886a99d2941bd8ad62d84234 -> internal/agentproto/topics.go
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
Hardens session takeover and bounded read paths across four core defects:
reNumericRefunder Doctrine Rule 4, resolving the 2.33% false rejection rate on valid decimal-hex uuid8 prefixes.systemruntime anchors todispCap(1,000 chars) unless--with toolsis passed, preventing 41,669-character context blowouts while keeping user and tool anchors whole. Measured indocs/design/takeover-path-measurements.md.--session <id>flag torawclaw topicsto stream a single session's ordered topic spine with refs and summaries.Verification
CGO_ENABLED=0 go test -race -count=1 ./...100% green across all 35 packages.