Skip to content

test(entity): add staged repair recall harness#8

Merged
jack-arturo merged 2 commits into
mainfrom
test/entity-repair-eval-harness
Jun 10, 2026
Merged

test(entity): add staged repair recall harness#8
jack-arturo merged 2 commits into
mainfrom
test/entity-repair-eval-harness

Conversation

@jack-arturo

Copy link
Copy Markdown
Member

Summary

  • Adds a local-only staged real-data entity repair eval wrapper for sync-only, reject-only, canonicalize-safe, and optional post-migration runs.
  • Adds vector-readiness preflight, vector identity validation, baseline sync enforcement, local endpoint guards, audit timeout support, and regression diagnostics.
  • Updates recall comparison to classify near-tie top swaps with identical top-5 membership as review instead of hard regression.

Breaking Changes

None. This is eval harness/test tooling only.

Related

Paired with verygoodplugins/automem#176.

Test Plan

  • bash -n scripts/real_data_entity_repair_eval.sh
  • python3 -m unittest runners.test_compare_recall_endpoints runners.test_real_data_entity_repair_eval runners.test_vector_identity -> 44 tests passed
  • Reused snapshot prod-api-20260608-220749: staged loop passed vector identity, zero bare-tag mutations, and no hard preserve regressions.
  • Fresh read-only API backup prod-api-20260609-102848: deterministic stages passed; post-migration produced one review-only LoCoMo near-tie with no lost top-5 IDs and no hard preserve regression.

Copilot AI review requested due to automatic review settings June 9, 2026 08:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a local-only “real data entity tag repair” evaluation harness that restores a production snapshot into two isolated local stacks, runs staged repair modes on the candidate, and compares recall/diagnostics (including Qdrant vector identity checks and recall preflight gating).

Changes:

  • Added scripts/real_data_entity_repair_eval.sh to restore DB-only lab stacks, start local APIs, run repair plans, and produce recall/vector/audit artifacts (with staged-loop and migration options).
  • Added runners/vector_identity.py (+ tests) to validate baseline/candidate Qdrant point/vector identity with retries and failure summaries.
  • Enhanced runners/compare_recall_endpoints.py (+ tests) with HTTP retries, vector-readiness preflight, Qdrant payload diagnostics, and near-tie top-swap classification.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
scripts/real_data_entity_repair_eval.sh New local-only staged repair + recall comparison wrapper with restore/startup/diagnostics plumbing
runners/vector_identity.py New Qdrant vector identity comparison tool (scroll + diff summary)
runners/test_vector_identity.py Unit tests for vector identity comparison, retry logic, and failure summaries
runners/test_real_data_entity_repair_eval.py CLI/behavior tests for the new wrapper script (help, local guards, staged-loop planning)
runners/compare_recall_endpoints.py Adds HTTP retrying, preflight checks, regression diagnostics, and near-tie top-swap handling
runners/test_compare_recall_endpoints.py Expanded unit coverage for HTTP retries, diagnostics, preflight, and updated classification behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/real_data_entity_repair_eval.sh Outdated
Comment thread scripts/real_data_entity_repair_eval.sh Outdated
Comment thread runners/vector_identity.py
Comment thread runners/compare_recall_endpoints.py
@jack-arturo jack-arturo merged commit fc7f7d9 into main Jun 10, 2026
@jack-arturo jack-arturo deleted the test/entity-repair-eval-harness branch June 10, 2026 08:38
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.

2 participants