AINA Data Engine Room · Handoff · 2026-06-11

Deterministic Semantic Repairs Handoff

A local patch artifact for cleaning title display, enriching caveats, and preserving holds.

Ali Mehdi Mukadam · co-authored with Codex · branch ali/personalization-engine-mission-2026-06-09

The Single Idea

The semantic repair queue now has a deterministic patch artifact. It does not make production claims; it creates local patch rows that can be replayed into runtime/title packet hardening after review.

01 · What Changed

Patch Rows, Not Runtime Mutation

The repo now has deterministic_semantic_repairs.py, a CLI command, and tests. The output is a separate validation artifact, so the source rows remain untouched.

02 · Live Artifact

Ignored Local Outputs

/srv/aina/aina-data-engine-room/artifacts/validation/deterministic_semantic_repairs_v1.json
/srv/aina/aina-data-engine-room/artifacts/validation/deterministic_semantic_repairs_v1.jsonl
/srv/aina/aina-data-engine-room/artifacts/provenance.jsonl
03 · Live Result

One Thousand Patch Rows

ResultCount
Ready, no change240
Deterministic patch ready726
Hold for source mining34
Packet-hardening after patch295
Use with caveat after patch670
Source-ref attach then rerun1
support associate - soma now repairs to Support Associate - Soma; sales manager repairs to Sales Manager; family law attorney stays held for source mining.
04 · Validation

Green Checks

cd /srv/aina/aina-data-engine-room
.venv/bin/python -m ruff check src tests
.venv/bin/python -m pytest -q

Result: All checks passed. and 194 passed.

05 · Next Slices

Where to Continue

  1. Add a patch replay gate that writes patched rows to a separate local validation artifact.
  2. Promote the 295 packet-hardening-after-patch rows.
  3. Keep 670 caveat rows serviceable with fallback precision caveats.
  4. Mine source refs for the 34 holds.
  5. Attach the one source-ref candidate and rerun the semantic gate.
06 · Resume Commands

Regenerate The Chain

cd /srv/aina/aina-data-engine-room
.venv/bin/aina-data-engine --root /srv/aina/aina-data-engine-room deterministic-semantic-repairs
Where to start

Start with patch replay, because the repair logic now exists but still writes only a safe sidecar artifact.