Repository navigation
Conversation
Add proper-prefix negative assertion to TestLookup ensuring lookup 'ses_root' yields false while 'ses_root1' exists. Keep existing exact positive and unrelated negative controls. Register bounded keon/algorithms pattern in decision references. Prior-Art: keon/algorithms tests/test_data_structures.py L91-L100 (MIT) @9d9d822875f938d921032f220f7721ce653e0e20 -> internal/source/opencode/opencode_test.go Prior-Art: keon/algorithms tests/test_data_structures.py L91-L100 (MIT) @9d9d822875f938d921032f220f7721ce653e0e20 -> docs/design/decision-references.md
Pin the stored rows and the existing control separately. The upstream positive and negative cases each start from a fresh single-key trie. Prior-Art: keon/algorithms tests/test_data_structures.py L91-L100 (MIT) @9d9d822875f938d921032f220f7721ce653e0e20 -> internal/source/opencode/opencode_test.go Prior-Art: MoonCaves/rawclaw internal/source/opencode/opencode_test.go L80-L92 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/source/opencode/opencode_test.go Prior-Art: MoonCaves/rawclaw internal/source/opencode/opencode_test.go L208-L222 (MIT) @2e391b6af9901fb2e260a7552f05b68621437719 -> internal/source/opencode/opencode_test.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.
PR #166 made OpenCode lookups require a full session ID. The existing SQLite fixture contains
ses_root1. Its test checked the full ID and an unrelated ID, so the pre-#166 implementation still passed.This adds one assertion to the same fixture. Looking up
ses_rootmust return no match whileses_root1exists. The case covers the singularsessionschema and records the upstream test for this relationship. It addresses the proper-prefix case from #164. Pinned upstream testsOn the pre-#166 adapter at
c05f283, the original test passed and the added assertion failed withlookupSessionInDB succeeded for proper prefix ses_root. With the adapter on main at2e391b6, the extended test passed under the race detector. The static build, vet, lint and pre-push provenance check passed locally.