Skip to content

feat(takeover): harden session takeover and bounded read path (D1-D3) - #104

Merged
MoonCaves merged 2 commits into
mainfrom
feat/takeover-path-hardening
Sep 9, 2026
Merged

MoonCaves merged 2 commits into
mainfrom
feat/takeover-path-hardening

Conversation

@MoonCaves

Copy link
Copy Markdown
Owner

Summary

Hardens session takeover and bounded read paths across four core defects:

  1. D1 (read/types): Deleted reNumericRef under Doctrine Rule 4, resolving the 2.33% false rejection rate on valid decimal-hex uuid8 prefixes.
  2. D2 (view): Capped non-conversational system runtime anchors to dispCap (1,000 chars) unless --with tools is passed, preventing 41,669-character context blowouts while keeping user and tool anchors whole. Measured in docs/design/takeover-path-measurements.md.
  3. D3 (topics/cli): Added --session <id> flag to rawclaw topics to 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.
  • Zero dirty files in worktree.
  • Verified Prior-Art commit trailers for git/git, BurntSushi/ripgrep, and cli/cli.

…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
@MoonCaves
MoonCaves merged commit 3fddfa3 into main Sep 9, 2026
2 of 3 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