feat(ci): close GT-145 — truthful provider-neutral RAG vector sync#58
Merged
Conversation
Replace the fake 'upserted' logging (commented-TODO vector calls) with a real, port-based delta sync: - rag-port.mjs: provider-neutral embedding/vector-store port; built-in truthful non-durable `memory` adapter (dry-run + test fixture); fail-closed on unknown or incomplete adapters; registerRagAdapter for real vendors. - rag-sync.mjs: deterministic H2 chunking, syncIndex that batches embed+upsert, prunes stale chunks on re-index and removes deleted files (no orphans), and returns a machine-readable receipt with cost/token telemetry. - 14-rag-index-sync.mjs: detect changed AND deleted files, run the real port sync, emit the receipt, and fail closed if a live run lacks a durable adapter (never pretends). - rag-sync.test.mjs: 9 node:test cases (port fail-closed, deterministic chunks, upsert/prune/delete lifecycle, receipt, embedding-mismatch fail-closed). Addresses done-when criteria 1-3. Remaining: operations guidance doc (4). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a RAG Vector Synchronization Operations section (EN+ES) to the agentic CI/RAG runbook: provider selection, least-privilege credentials, bounded batch/retry, and cost/token telemetry via the machine-readable receipt. Correct the stale "do not claim documents are indexed" note now that the sync is truthful. Addresses done-when criterion 4. GT-145 implementation complete. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mark GT-145 DONE with closure evidence (commit d41bc3a): provider-neutral embedding/vector-store port, deterministic chunking + batched upsert/prune sync with machine-readable receipt, fail-closed live contract, 9 node:test cases, and EN+ES operations runbook guidance. Board progress 150/153 done, 3 pending. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Cierra GT-145 (P1). Reemplaza el sync RAG mentiroso (upsert = TODO comentado) por sync real basado en port:
rag-port.mjs: puerto neutral embeddings/vector-store + adaptermemoryveraz no-durable, fail-closed.rag-sync.mjs: chunking determinista + embed/upsert por lotes + poda sin huérfanos + recibo machine-readable.14-rag-index-sync.mjs: changed+deleted, fail-closed si live sin adapter durable.🤖 Generated with Claude Code