Skip to content

Cover session-topic fallback and retained prefix collisions - #154

Closed
MoonCaves wants to merge 2 commits into
mainfrom
test/topics-fallback-contracts-tick690
Closed

MoonCaves wants to merge 2 commits into
mainfrom
test/topics-fallback-contracts-tick690

Conversation

@MoonCaves

@MoonCaves MoonCaves commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Session-topic lookups need regression coverage when the consolidated store is missing or contains only an unrelated session, and when a partial live catalog hides a retained session with the same prefix.

Reuse the existing 214-line fixture from PR #114 at immutable revision 767be51bcca2bdbccf2f63c5e95d3edcff147032, adding only its copy-site citation. The source registry records this as same-repository published-source reuse. The tests verify explicit scope rejection, absence of the target from consolidated storage immediately before fallback, exact retained lookup, and ambiguity between live and retained sessions.

This adds coverage for #103. Its runtime indexing cost remains open.

Validation:

  • Parent CGO_ENABLED=0 GOTOOLCHAIN=go1.27.3 go test -race -count=1 ./internal/agentproto: exit 0, 123.655s.
  • Parent Go 1.24.0 focused race tests for both added cases: exit 0, 7.666s. Package lint: 0 issues.
  • Independent referee PASS. Removing only the added citation comment reproduces the complete pinned source byte for byte.
  • Installed provenance gate and final pre-push gate: APPROVE. GitHub CI passed build (1.24.0), build (stable) and lint on the published head.

Prior-Art: MoonCaves/rawclaw internal/agentproto/topics_session_fallback_contract_test.go L1-L214 (MIT) @767be51bcca2bdbccf2f63c5e95d3edcff147032
@MoonCaves

Copy link
Copy Markdown
Owner Author

Closing superseded tick690 draft in favor of the rebased current-main contract PR #173.

@MoonCaves MoonCaves closed this Nov 25, 2026
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