Skip to content

Document provenance and QMD prior art - #7

Merged
Igloczek merged 4 commits into
mainfrom
docs-provenance
Nov 30, 2026
Merged

Igloczek merged 4 commits into
mainfrom
docs-provenance

Conversation

@Igloczek

@Igloczek Igloczek commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Adds a short Prior art section at the end of README.md and a Provenance and prior art section to docs/decisions.md. The change is docs-only. It is rebased onto main after the rename in #5 merged, and it adds no iglo.mem strings.

Decision

iglo.memory is modeled on QMD, confirmed by the owner on 2026-11-30. Both sections now say so directly, replacing the earlier "no single upstream" framing and the open question. iglo.memory is a separate implementation, not a fork. The repository history below supports the decision, and the docs list the places where iglo.memory deliberately differs from QMD.

Supporting evidence from the history

Relationship Evidence
Named from day one PRD.md:63 (first commit 57105f9): must not "require QMD, Obsidian, SQLite, a vector database, or a daemon"
Evaluated comparator Brief docs/retrieval-v2-brief.md:18 in commit d965d18 (removed in 2c45625): "Use QMD's full retrieval mode as a measured comparator, not an architectural definition of success". Stock QMD pinned at dbfd0b4736aeaf761d1a16ca8e424f071df8feb9 (scripts/retrieval-eval/cli.ts:80). Commit 7c9209f: "The user's clarified outcome is retrieval quality at least as good as stock full QMD". QMD-relative gates are in docs/evaluation/retrieval-v2-release-gates.md:31. Results are in docs/evaluation/retrieval-v2-heldout.md:9-13 (17/39 for QMD vs 38/39 for the v2 diagnostic). PR #2 body.
Considered as the product runtime, rejected Commit d965d18, docs/retrieval-v2-brief.md:126: "Adopt QMD as the product runtime: rejected because its local-model runtime conflicts with the executable constraint." Brief .ai/briefs/retrieval-v2.md:91 in commit e1c8538: "Reuse QMD as the product: rejects standalone/no-local-model constraints. Use stock QMD only as an isolated evaluator dependency."
Retrieval v2 design adopted from QMD Commit d965d18, docs/retrieval-v2-brief.md:24: "The new request supersedes the PRD's exclusion of expansion/reranking" (PRD.md:360: "No reranking LLM is used"); lines 154-155 list QMD's "typed expansion, file candidate selection and local rankAll reranker" as differences from the proposal. Typed expansion was adopted in commit 8d52b0b (.ai/research/retrieval-v2-expansion-restored.md: "QMD routes typed lex variants to BM25 and vec/hyde variants to vector retrieval", citing SYNTAX.md). RRF constant 60 and ×2 weight for the original query were first specified in d965d18:docs/specs/retrieval-v2.md:208-210, the same commit whose docs/specs/retrieval-v2-foundation.md:96 links QMD's pinned hybrid search implementation, including fusion (src/store.ts#L5438); QMD's README documents the same values. Unlike QMD, the spec and src/search.ts:92 add no top-rank bonus.

Deliberate differences from QMD (verified against code/docs and QMD's README)

iglo.memory QMD
Index Validated file snapshot in .agent/memory-index/ per worktree (src/store.ts:42), which can be committed and searched as-is; no SQLite or vector database SQLite (FTS5 + sqlite-vec) in ~/.cache/qmd/ by default; optional project-local .qmd/ index
Freshness One explicit step: only prepare scans and embeds; search never updates or repairs Separate qmd update and qmd embed commands
Inference Embedding, expansion and rerank all through OpenRouter (docs/retrieval-v2-design.md:3-5, src/embedding.ts:4) Local GGUF models through node-llama-cpp by default
Reranking Voyage rerank-2.5; reranker order kept (docs/retrieval-v2-design.md:57-61) Local qwen3-reranker blended with RRF position
Fusion RRF k=60, ×2 original, no top-rank bonus RRF k=60, ×2 original, +0.05/+0.02 top-rank bonus
Serving No daemon or MCP server (docs/retrieval-v2-design.md:85-86) MCP server, stdio or HTTP with --daemon
Distribution One self-contained executable, one search mode, one JSON format npm package on Node or Bun; search / vsearch / query, collections, contexts

Validation

bun run format:check passes, and git grep -nP 'iglo\.mem(?!ory)' matches main exactly.

🤖 Generated with Claude Code

Igloczek and others added 2 commits November 30, 2026 17:22
Record what the history shows about where the design came from: the PRD
is the first commit, and QMD is the evaluated comparator whose typed
query expansion retrieval v2 follows. List the deliberate differences
and leave an open question about the original PRD's inspiration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cite the retrieval-v2 brief (d965d18) for QMD's comparator role and the
rejection of QMD as the product runtime, note that expansion and
reranking arrived with v2 and superseded the PRD, and describe RRF
constant 60 as the standard value rather than QMD's. Rephrase the README
section for end users.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Igloczek and others added 2 commits November 30, 2026 17:30
Cite d965d18 (docs/specs/retrieval-v2.md) as where the RRF constant 60
and the x2 original-query weight were first specified, note the missing
top-rank bonus as a difference from QMD, and mirror the precise
typed-expansion wording in the README.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The owner confirmed on 2026-11-30 that iglo.memory is modeled on QMD.
Replace the no-single-upstream framing and open question with that
decision, keep the commit evidence as supporting history, and list the
deliberate differences: per-worktree snapshot, explicit prepare,
OpenRouter inference, no daemon or MCP server, single executable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Igloczek

Copy link
Copy Markdown
Contributor Author

Council verdict: APPROVE (unanimous, round 4, head 3b4bdf6). Two independent reviewers from different providers (Claude Opus 5.5 and DeepSeek V4 Pro via OpenCode) reviewed this docs-only PR against the task: record what iglo.memory was modeled on, with evidence, in a README "Prior art" section and in docs/decisions.md. Rounds 1–3 tightened the evidence trail: RRF constant 60 and the ×2 original-query weight were re-attributed to their first specification in d965d18 (not to QMD or later commits), the d965d18 brief was added as the primary source for QMD's comparator role and its rejection as product runtime, and README wording was made precise. After the owner confirmed on 2026-11-30 that iglo.memory is modeled on tobi/qmd, the framing was updated to state that as fact (attributed and dated in decisions.md) and to list the intentional differences — repo-local snapshot under .agent/memory-index/, a single explicit prepare (QMD splits update/embed), remote OpenRouter inference vs QMD's default local GGUF models, hosted reranker order without QMD's top-rank bonus, no daemon/MCP server, and a single self-contained executable. Both reviewers verified each difference against this repo's code and QMD's README, spot-checked every retained citation, confirmed format check and CI green, a docs-only diff and no new legacy-name strings, and both explicitly agree the solution is correctly and completely implemented. (One pre-existing stale ranking paragraph in docs/decisions.md is noted for the upcoming README/docs cleanup.)

@Igloczek
Igloczek merged commit 16cbe17 into main Nov 30, 2026
2 checks passed
Igloczek added a commit that referenced this pull request Nov 30, 2026
Update #7 status after merge and cite its README and decisions text in
U2 and U4, fix the retrieval-contracts line span, describe the lexical
record() helper as a wrapper, soften the U12 error claim and cite
validText, and describe QMD 92ac75a accurately.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Igloczek added a commit that referenced this pull request Nov 30, 2026
* Add researched roadmap candidates

Collect upstream QMD changes since the pinned comparator, features of
comparable agent-memory search tools, and an audit of this repository into
a prioritized, sourced list of candidates. Nothing in it is committed work.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Apply review findings to the roadmap candidates

- State that iglo.memory is modeled on QMD, the primary upstream reviewed.
- Correct upstream citations: 21a0b28 merged via #1021; the missing-root fix
  20fa36e (issue #989) reached main via #1024, #990 closed unmerged; replace
  the unrelated fda5e5f and #1021 citations in the rejected table; retitle the
  cache row to match QMD's llm_cache and 2cfaa6a's rerank score cache.
- A1: describe QMD's behaviour and recommend failing prepare on a missing
  source root, without an override flag.
- Promote U4 to P1 above M1 and note the overlap with the README rewrite.
- U2: list the PRD and README statements that understate what search sends.
- Add U12 (half-implemented retrieval.model) and U13 (dynamic import in
  scripts/benchmark-cli.ts).
- Fix U7's benchmark description, U9's dead constant, U5's redaction
  decision, A2's latency ratios and U4's line references and error codes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Apply round-2 review nits to the roadmap candidates

Update #7 status after merge and cite its README and decisions text in
U2 and U4, fix the retrieval-contracts line span, describe the lexical
record() helper as a wrapper, soften the U12 error claim and cite
validText, and describe QMD 92ac75a accurately.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@Igloczek
Igloczek deleted the docs-provenance branch November 30, 2026 18:10
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