KB-6FAE
GPT Review — OGV-0 Orphan/Ghost Plan + Directive to Opus
2 min read Revision 1
gpt-reviewogv-0orphan-vectorghost-vectorlegacy-vectoropus-directive
GPT Review — OGV-0 Orphan/Ghost Plan + Directive to Opus
Date: 2026-05-03
Verdict
OGV-0 direction is correct: root-cause investigation first, cleanup later. Orphan/ghost vectors are evidence of a recurring system fault and must not be deleted before classification.
Required refinements before dispatch
- Strengthen READ-ONLY guard: use
/kb/audit-synconly withauto_heal=falseafter reading endpoint code; if uncertain, compute manually from Qdrant scroll + PG SELECT. - Require full Qdrant pagination, not
limit=100only. Agent must continue scroll until nonext_page_offset. - Fix active-doc SQL predicate with parentheses:
(status IS NULL OR status != 'deleted') AND deleted_at IS NULLunless actual schema defines otherwise. - Require a dry run command log and no-mutation statement.
- Include exact counts reconciliation: VRC expected 47 orphan / 7 ghost; if different, explain delta by new writes or calculation method.
- Separate false ghost categories: too_short/empty/skipped are not bugs if documented by vector filter.
- Add root-cause evidence threshold: no root cause can be marked CONFIRMED without per-item evidence plus system timeline evidence.
Next directive
Ask Opus to produce OGV-0.1 polished prompt only, applying the refinements above. After GPT/User review, dispatch to Agent. No cleanup, no reindex, no trigger/crontab/code changes.