Skip to content

[lore 7/7] OTel/slog audit + docs + release prep#7

Merged
kunallanjewar merged 5 commits into
mainfrom
quest-7-release-prep
Apr 28, 2026
Merged

[lore 7/7] OTel/slog audit + docs + release prep#7
kunallanjewar merged 5 commits into
mainfrom
quest-7-release-prep

Conversation

@kunallanjewar
Copy link
Copy Markdown
Contributor

Summary

Final consolidation PR for lore v0.1.1. Transforms the 6-PR feature stack into a release-ready library:

  • Audit pass: ctx/error-wrapping/OTel/slog consistency across all packages
  • README rewrite: release-ready content with quickstart, K8s deployment patterns, interface overview
  • CHANGELOG.md (Keep-a-Changelog format, v0.1.1 entry)
  • doc/ARCHITECTURE.md (~1-2 pages)
  • doc/INTERFACES.md (~1-2 pages)
  • Example_* test functions for each package
  • Em-dash cleanup throughout (U+2014 replaced with hyphens/punctuation)

Tag v0.1.1 NOT pushed in this PR. Manual maintainer step after merge.

Test plan

  • go vet ./... passes
  • go build ./... passes
  • go test -race -count=1 ./... passes
  • grep -rEn $'—' . | grep -v '\.git/' | grep -v 'pkg/lore/embed/bge/model/' returns zero matches
  • grep -rn '~/\|Synology\|Obsidian\|/Users/\|QUEST-\|LORE-\|ENTRY-' . | grep -v '\.git/' returns zero matches

Eliminates three U+2014 em-dash characters in source comments and
test strings per the no-em-dash style constraint.
Full release-ready README: quickstart, interface overview, Path A/B
distinction, K8s production deployment patterns, reference impl table,
configuration guide, stability disclaimer, attribution.

Removes any internal path references and restructures per public-reader
requirements.
CHANGELOG follows Keep-a-Changelog format with v0.1.1 entry describing
all shipped packages and components.

doc/ARCHITECTURE.md covers the three-interface design, Path A vs Path B,
reference impl scale limits, RRF fusion rationale, and caller-owned deps.

doc/INTERFACES.md is a condensed method-level reference for Store,
Embedder, VectorStore, Retriever, Ingester, and the rrf.Fuse utility.
Each example is a compile-checked Example* function in a _test.go file.
Covers: lore (Kind, AllKinds, Entry, SearchOpts), store (inscribe+get,
searchText, addEdge), vector (upsert+search, delete), retrieve (bm25
search, rrf.Fuse), ingest (heuristic Process).

All examples pass go test -race.
@kunallanjewar kunallanjewar marked this pull request as ready for review April 28, 2026 15:58
Two bugs surfaced by E2E exerciser:

1. hybrid.Retriever ignored opts.Kinds and opts.Tags after hydration.
   The vector arm documents Kind/Tag filters as advisory, expecting the
   Retriever to post-filter via Store.Get. The Retriever only post-filtered
   by Project, allowing vector-arm hits with non-matching kinds to leak
   into results. Added containsKind / containsAllTags post-filter.

2. DeleteBySource failed with FOREIGN KEY constraint when an entry was
   referenced by an edge. The edges FK to entries(id) lacked
   ON DELETE CASCADE, so deleting an entry that had any edge errored
   out. Added ON DELETE CASCADE to both edges FKs.

Schema change is to migration 001 directly (no v0.1.x tag has shipped
yet, so editing the baseline is safe and avoids a stub follow-up
migration in the very first release).
@kunallanjewar kunallanjewar merged commit 78cba23 into main Apr 28, 2026
4 checks passed
@kunallanjewar kunallanjewar deleted the quest-7-release-prep branch April 28, 2026 16:08
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