Whole file
mcncarl/agent-memory-vault
The author described this change as “Fix derived-index recovery interpreter”. It counts as a record because the check below fails on the code as it stood at bec5c2951 and passes on b650e292c, with nothing else changed between the two runs.
Projectmcncarl/agent-memory-vault
Fix saved2026-07-12
Sharing licenceMIT · LICENSE
Change size+6 −2
What the code was meant to do, written into the code itself as a save note
Fix derived-index recovery interpreter
The change
| 415 | 415 | actions = [] | |
| 416 | 416 | index_result = run([str(SCRIPT_ROOT / "agent_memory_index.py"), "--init", "--scan", "--report"], 180) | |
| 417 | 417 | actions.append({"action": "rebuild_sqlite_fts", "ok": index_result["ok"], "detail": index_result["detail"]}) | |
| 418 | - | if index_result["ok"]: | |
| 419 | - | vector_result = run([str(SCRIPT_ROOT / "agent_memory_zvec_index.py"), "--scan", "--prune", "--json"], 900) | |
| 418 | + | if index_result["ok"] and SEMANTIC_ENABLED: | |
| 419 | + | vector_result = run( | |
| 420 | + | [str(ZVEC_PYTHON), str(SCRIPT_ROOT / "agent_memory_zvec_index.py"), "--scan", "--prune", "--json"], | |
| 421 | + | 900, | |
| 422 | + | offline_env() if REQUIRE_LOCAL_MODEL else None, | |
| 423 | + | ) | |
| 420 | 424 | actions.append({"action": "rebuild_zvec", "ok": vector_result["ok"], "detail": vector_result["detail"]}) | |
| 421 | 425 | return actions | |
| 422 | 426 |
The check that tells the two apart
fail→pass·tests/test_durability_guards.py::DurabilityGuardTests::test_derived_repair_uses_configured_semantic_python
Check file tests/test_durability_guards.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itbec5c2951a3be0ca08e24cf9a56cdf03871964f1
Broken version dated2026-07-12
Modulescripts.agent_memory_doctor
Units changedrepair_derived
Fingerprint303cb74cd224fe45
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.