Skip to content

refactor(types): deduplicate QueryEmbeddingState and Source twins - #152

Merged
christopherkarani merged 1 commit into
arch/0b27937a/T1from
arch/0b27937a/T2
Aug 25, 2026
Merged

christopherkarani merged 1 commit into
arch/0b27937a/T1from
arch/0b27937a/T2

Conversation

@christopherkarani

Copy link
Copy Markdown
Owner

Ticket T2 — functional-evolution spec (candidate 01b). Stacked on #151.

Spec: /var/folders/ns/xmz0zmpj7p148vdgr4bwzp8h0000gn/T/swift-arch-0b27937a/spec/spec-architecture-functional-evolution.md

What

One declaration each: RAGContext.QueryEmbeddingState (public twin kept; package copy in MemoryOrchestrator deleted, raw values byte-stable) and RAGContext.Source (SearchResponse.Source is now a typealias; converter pair deleted; CaseIterable dropped as dead surface — zero allCases/(rawValue:) uses). Empty-sources [.unknown] defaulting inlined at 3 FastRAGContextBuilder sites. Net −55 lines.

Wire-format note (CON-004 ruled by reviewer)

Structured-lane emitted source label changes "structuredMemory""structured". Ruled ACCEPT with evidence: the only parse-back site (LayeredRecall.ragSources(from:)) never accepted the old string — it silently dropped structured labels to .unknown; rename repairs that latent loss. Zero consumers/docs/hermes/npm pin the old label; decode side untouched.

Review

Implementer: fresh subagent (3d3a7f99b) · Review 1: swift-adversarial-pr-review → APPROVE, no fixes · Final pass: second fresh adversarial reviewer → APPROVE, all 6 prior claims independently verified, no fixes.

Verification

UnifiedSearchTests 38✓ · WaxPublicDocsTests 4✓ · DocsPasteHarnessTests 9✓ · BrokerCommandDecodeTests 23✓ · MemoryOrchestratorTests 16✓×2 · builds green under MiniLMEmbeddings + MCPServer traits.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@christopherkarani christopherkarani added the ready-for-review Ready to squash-merge after pipeline review label Aug 25, 2026
@christopherkarani
christopherkarani merged commit e8c32b4 into arch/0b27937a/T1 Aug 25, 2026
2 of 6 checks passed
christopherkarani added a commit that referenced this pull request Aug 25, 2026
…#151)

* refactor(types): unify retrieval-mode twins into canonical SearchMode

* review(t1): document canonical public SearchMode and fix stale bare RetrievalMode prose

* review(t1-final): align CONTEXT.md glossary with canonical SearchMode

* refactor(types): deduplicate QueryEmbeddingState and Source twins (#152)
christopherkarani added a commit that referenced this pull request Aug 31, 2026
…#151)

* refactor(types): unify retrieval-mode twins into canonical SearchMode

* review(t1): document canonical public SearchMode and fix stale bare RetrievalMode prose

* review(t1-final): align CONTEXT.md glossary with canonical SearchMode

* refactor(types): deduplicate QueryEmbeddingState and Source twins (#152)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Ready to squash-merge after pipeline review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant