✨ The vector record becomes a five-field read contract, and zero-norm embeddings are rejected before any adapter - #77
Open
ebigunso wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed changes have no unresolved approval-blocking issues.
Pull request overview
Simplifies vector records to a five-field read contract and centralizes vector-related domain policy.
Changes:
- Removes obsolete Qdrant payload fields and indexes.
- Centralizes persisted enum tokens and surface limits.
- Rejects zero-norm embeddings before adapter dispatch.
File summaries
| File | Description |
|---|---|
src/usecases/vector_indexing.rs |
Adds pre-adapter zero-norm rejection and tests. |
src/usecases/retrieve.rs |
Uses the shared domain surface enum. |
src/policy/embedding_surface.rs |
Simplifies builders and publishes surface limits. |
src/models/vector/record.rs |
Defines the five-field vector record. |
src/models/vector/candidate_record.rs |
Adopts the domain surface enum. |
src/models/vector.rs |
Updates exports and adds the shared fixture. |
src/lib.rs |
Exposes surface policy and test fixtures. |
src/errors.rs |
Adds the typed zero-norm error cause. |
src/domain.rs |
Centralizes enums and persisted token conversions. |
src/api/types/retrieval.rs |
Reuses the domain surface type. |
src/api/types.rs |
Removes the duplicate surface export. |
src/adapters/qdrant/store.rs |
Uses canonical tokens and reduced payloads. |
src/adapters/qdrant/payload.rs |
Implements the five-field manifest. |
docs/design/database/vector_payload_design.md |
Documents the new vector contract. |
docs/design/database/schema_cheat_sheet.md |
Updates the compact storage schema. |
docs/design/database/README.md |
Refreshes the vector-design summary. |
docs/design/database/graph_schema_design.md |
Updates cross-store responsibilities. |
Cargo.toml |
Adds the fixture feature and self dev-dependency. |
Cargo.lock |
Records the development dependency change. |
Review details
- Files reviewed: 18/19 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ebigunso
force-pushed
the
impl/v0-1-6-w2-task3-record-contract
branch
from
September 3, 2026 19:08
36ef8c8 to
d8d0d92
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
The broad public and persistence-contract changes warrant final human review.
Review details
Suppressed comments (1)
docs/design/database/schema_cheat_sheet.md:56
- This says all provenance is hydrated from Oxigraph, but the preceding field list defines
embedding_textas embedding provenance retained in Qdrant. Qualify this as source/graph provenance so the five-field contract is not self-contradictory.
These are the only Qdrant payload fields. Readable content, graph URI, object-specific state, relationships, lifecycle/currentness, ranking, timestamps, provenance, and raw references are hydrated from Oxigraph by `object_id`. Existing obsolete extra fields may remain on old points but readers ignore them.
- Files reviewed: 18/19 changed files
- Comments generated: 0 new
- Review effort level: Balanced
ebigunso
force-pushed
the
impl/v0-1-6-w2-task3-record-contract
branch
from
September 3, 2026 20:49
d8d0d92 to
7751d90
Compare
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.
Summary
v0.1.6 Wave 2, Task_3 (ADR-I-0025 record read contract, ADR-I-0024 write-side zero-norm rule, ADR-I-0026 published surface policy), stacked on Task_2.
Display/FromStrper enum in the domain replaces the adapter's private token mappers and the pipeline's copy.test-fixturesfeature, enabled for integration tests by a self dev-dependency) serves the unit test now and the two-adapter parity suite in Task_4.Validation
-D warningson Rust 1.95 and 1.97; service-upcargo test(415 passed, 4 ignored); ignored Qdrant tests 4/4; zero-hit census for dropped fields,content_textreaders, and enum-token copies; collection census unchanged.🤖 Generated with Claude Code