Skip to content

test: contract 1.6, vector search calls (story 23.1) - #161

Merged
fabbrik merged 1 commit into
mainfrom
build/23-1-contract-1-6
Oct 16, 2026
Merged

fabbrik merged 1 commit into
mainfrom
build/23-1-contract-1-6

Conversation

@fabbrik

@fabbrik fabbrik commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Add-only contract 1.6 so the Python and Go ports can reproduce .NET's vector retrieval (stories 23.2, 23.3).

  • contract/sql: embedding write + revision probe, vector search (with {dim} placeholder, model-authored variant, compatibility probes), application-role grants for experience_embeddings.
  • contract/README-1.6.md: summary text and hash, validation, relevance clamp(1 - d/2), NaN handling, tie-break by experience ID, fallbacks, floor and merge; rules not covered by fixtures are marked normative, not fixtured.
  • Fixtures generated from .NET with fixed vectors (no model): embedding-summary, embedding-write, vector-search, hybrid-merge. The .NET store and the contract SQL as written agree on every case; the statements equal the .NET ones line for line.
  • Python/Go keep claiming 1.0-1.5; the vector families are skipped by a named constant that 23.2/23.3 remove. Unknown versions still fail.
  • No change under src/; public API baselines untouched. Review: edge-case hunter, 4 patches applied, 1 deferred (deferred-work), 1 rejected.

🤖 Generated with Claude Code

Add-only. Publishes the embedding write and nearest-neighbour search
statements, the privileges for experience_embeddings, the summary/hash and
relevance rules, and the hybrid merge, with .NET-generated fixtures using
fixed vectors (families embedding-summary, embedding-write, vector-search,
hybrid-merge). The .NET store and the contract SQL as written agree on every
case. Python and Go still claim 1.0-1.5 and skip the vector families by name
until 23.2 and 23.3. No library behaviour changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@fabbrik
fabbrik merged commit 1062aa4 into main Oct 16, 2026
22 checks passed
@fabbrik
fabbrik deleted the build/23-1-contract-1-6 branch October 16, 2026 23:16
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