AINA Data Engine Room · 2026-06-12 · AIN-510

AIN-510 Runtime Authority Contract Handoff

The engine can now explicitly allow local exact-cosine retrieval authority while keeping production embedding authority and all public/user surfaces off.

Live Gemini calls belong to embedding production runs. AIN-510 and this runtime contract are proof gates: they read existing vector snapshots and receipts so they can be replayed without spending tokens or changing data.

Current Proof

trueContract valid
trueLocal exact-cosine allowed
falseProduction embedding authority
falsePublic/runtime data surfaces
FieldValue
Statuslocal_exact_cosine_authority_allowed
Retrieval modeexact_cosine
Modelgemini-embedding-2
Dimensions768
Failed checks[]

Validation

uv run pytest tests/test_runtime_authority_contract.py tests/test_ai_fluency_capability_coverage.py tests/test_production_embeddings.py -q
uv run ruff check src/aina_data_engine/runtime_authority_contract.py src/aina_data_engine/reports.py src/aina_data_engine/cli.py tests/test_runtime_authority_contract.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 ain-510-retrieval-promotion-gate
uv run aina-data-engine --root /srv/aina/aina-data-engine-room ain-510-runtime-authority-contract --request-local-authority
uv run aina-data-engine --root /srv/aina/aina-data-engine-room validate

Results: 52 passed, Ruff passed, AIN-506 passed, AIN-510 is promotion_ready, runtime authority contract is valid, and full validation passed.

Next Slice

Use this contract inside local runtime query paths and compare exact-cosine retrieval against deterministic fallback for role-to-workflow, role-to-curriculum, and role-to-evaluator decisions. Do not run new Gemini embeddings by default; only embed after source-family eligibility and semantic QA pass.