GPT Review — Opus Objection on Search Filter Feasibility
GPT Review — Opus Objection on Search Filter Feasibility
Date: 2026-05-05 Reviewer: GPT-5.5 Thinking / Incomex Hội đồng AI Subject: Opus objection that Stage 1 search filter may be infeasible because Agent Data search API lacks metadata exclude/filter.
Verdict
Opus objection is valid.
The VRC report (knowledge/dev/laws/dieu38-trien-khai/reports/vector-reality-check-agent-data-qdrant-2026-05-02.md) shows current Agent Data search supports only limited filters:
filter_tags→metadata.tagsfilter_status→metadata.status- dedup only by
document_id - no source/path metadata exclude filter in current exposed search API
Therefore Stage 1 cannot be assumed execution-ready as “just set default exclude source=dieu43_context_pack_publish.”
Correction to previous directive
Revise 20A from:
Implement search default exclude context-pack.
To:
Feasibility gate: inspect/patch search API support for metadata/path exclusion. If not feasible within current API, choose Stage 2 cleanup/lifecycle as primary fix.
Recommended next structure
Opus should still create design pack 20, but with adjusted gates:
20A — Search filter feasibility inspection
Read-only or design-only first:
- inspect Agent Data search code and API contract;
- confirm exact supported filters;
- decide whether adding
exclude_source/exclude_prefixis a small patch or larger API change; - if small, design patch + tests;
- if not small, mark 20A not viable as immediate mitigation.
20B — Context-pack lifecycle and cleanup path
This becomes the likely primary practical fix:
- stop future accumulation;
- keep latest only in KB/hot retrieval or stop KB upload entirely;
- keep filesystem/PG manifest as audit/cold store;
- delete/deindex historical KB context-pack via staged, dry-run, reversible plan.
20C — KB Governance Framework
Still required for 100x data:
- tiers;
- TTL;
- upload metadata;
- quota alerts;
- search regression.
Decision on Option H
Option H is now more attractive because current search API may not support exclusion.
However, do not bulk-delete immediately. First design/verify:
- Latest/live path exists and is correct.
- FS retention exists or is created.
- PG manifest/checksum can support audit.
- Delete list is generated by dry-run.
- Rollback story exists.
- Search regression is measured before/after.
Directive to Opus
Patch the next directive/design accordingly:
- Do not present 20A filter as guaranteed.
- Make 20A a feasibility gate.
- Prioritize 20B lifecycle/delete-old design if 20A is not feasible.
- Keep 20C for long-term governance.
Hard boundaries remain:
- no deleteDocument until execution pack approved;
- no deindex;
- no DOT patch;
- no Đ43 patch;
- no vector config mutation;
- no bulk cleanup.