AIN-510 Promotion-Ready Local Proof Gate Handoff
The placeholder gates are now real local receipts, the stale vector blocker is resolved, and runtime authority remains deliberately unpromoted.
AIN-510 now has passing local proof for sensitive mismatch coverage and runtime rollback. A zero-new-vector maintenance run pruned ten orphan/stale vector rows without invoking Gemini, so the gate is promotion-ready locally while public/runtime boundaries remain closed.
Proof Gates Pass, Snapshot Is Reconciled
Gate 4 and Gate 5 are no longer placeholders. The sensitive mismatch fixture suite passes with eight local cases, rollback proof passes by reading runtime-readiness and fallback-matrix receipts, and vectors_match_current_chunks now passes after pruning stale rows.
Two Receipts Became First-Class Proof
The patch also fixed token-aware HR detection, prefers distinct source chunks in mismatch cases, and adds negative tests for missing rollback receipts.
AIN-510 Is Promotion-Ready Locally
uv run aina-data-engine --root /srv/aina/aina-data-engine-room ain-510-retrieval-promotion-gate
| Field | Current value |
|---|---|
promotion_eligible | true |
failed_snapshot_checks | [] |
stale_vector_count | 0 |
sensitive_mismatch_fixture_suite | pass |
runtime_rollback_proof | pass |
runtime_embedding_authority_promoted | false |
The Proof Stack Passed
uv run pytest tests/test_ai_fluency_capability_coverage.py tests/test_production_embeddings.py -q uv run ruff check src/aina_data_engine/ai_fluency_capability_coverage.py src/aina_data_engine/cli.py src/aina_data_engine/production_embeddings.py tests/test_ai_fluency_capability_coverage.py tests/test_production_embeddings.py uv run aina-data-engine --root /srv/aina/aina-data-engine-room ain-506-p0-gate uv run aina-data-engine --root /srv/aina/aina-data-engine-room gemini-embedding-run --max-new 0 --include-repaired --allow-live-gemini --confirm-paid-api uv run aina-data-engine --root /srv/aina/aina-data-engine-room ain-510-retrieval-promotion-gate uv run aina-data-engine --root /srv/aina/aina-data-engine-room validate
Results: 48 passed, Ruff passed, AIN-506 passed, the zero-new maintenance run embedded 0 rows, invoked no live Gemini call, pruned 10 stale rows, AIN-510 became promotion-ready, and full validation passed.
The First Draft Was Corrected
Claude CLI caught that the first rollback proof was self-validating. The final version now requires existing local runtime and fallback receipts, and tests cover the missing-receipt failure path.
Add Controlled Runtime Use
The next move is to add the local runtime authority switch/contract that can consume AIN-510 only when promotion_eligible: true and rollback proof is present. The default authority flag should stay false until deterministic fallback and vector retrieval can be toggled safely.
cd /srv/aina/aina-data-engine-room
git status --short --branch
uv run aina-data-engine --root /srv/aina/aina-data-engine-room ain-510-retrieval-promotion-gate
jq '{status, valid, promotion_eligible, failed_snapshot_checks, failed_promotion_checks, stale_vector_count: .metrics.stale_vector_count}' artifacts/validation/ain_510_retrieval_promotion_gate_v1.json
Do not chase new embeddings first. The next runtime gate is controlled internal use with rollback proof and deterministic fallback.