Skip to content

feat: case-insensitive tag matching [follow-up #31]#33

Merged
acidkill merged 1 commit into
mainfrom
feat/case-insensitive-tags
Jun 22, 2026
Merged

feat: case-insensitive tag matching [follow-up #31]#33
acidkill merged 1 commit into
mainfrom
feat/case-insensitive-tags

Conversation

@acidkill

Copy link
Copy Markdown
Owner

Follow-up to merged #31. case-insensitive tag matching. Local make verify green. See .goal/runs/002-followup-port-2026-06.

Add normalize_tags_lower() to utils/tag_normalizer.py and apply it at:
1. Fiber.create() — auto_tags and agent_tags lowercased at ingestion
2. _parse_tags()  — query tags lowercased at MCP boundary
3. SurrealDBStorage.find_fibers() post-filter — query tags lowercased
4. brain_transplant._fiber_matches_tags() — both sides lowercased

Querying 'KB' now matches a fiber tagged 'kb' regardless of storage age.
Idempotent: already-lowercase tags are unaffected.

Ref: upstream dddc313 (normalize_tags_lower) + d073d16 (test update)
SurrealDB-only port — no SQL/SQLite normalization included.
@acidkill acidkill marked this pull request as ready for review June 22, 2026 22:51
@acidkill acidkill merged commit 2479421 into main Jun 22, 2026
7 checks passed
@acidkill acidkill deleted the feat/case-insensitive-tags branch June 22, 2026 22:52
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