You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
service-knowledge: the purge re-read confirms by id text only, so a caller-supplied numeric id restored mid-walk on driver-mongodb / driver-memory loses its document until its next event #37221
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p3
Follow-up from #37096 / PR #37164 (epic #37000, ADR-0161 K8). Filed by zone a4-K. The limit is stated and pinned in that PR.
The limit
KnowledgeService.reindexSource purges a listed document only after a re-read confirms that no row backs it. The re-read uses the source's where plus the record id. The id is recovered from the document id as text.
On driver-mongodb and driver-memory, a caller can supply a numericid that is kept as given.
Text '5' does not match number 5 there. So if such a row is restored during a complete reindex walk, the confirm finds nothing and its document is deleted.
The row itself is untouched. The document comes back at the row's next record event or the next complete reindex.
A row that exists for the whole walk is not affected. The walk produces its document, so it is never a purge candidate.
This is pinned at the PR head by the test "the purge re-reads by the id text only: a numeric id restored mid-walk is not found (the stated limit)". It is stated in the TSDoc, content/docs/protocol/knowledge.mdx, the changeset and the PR's Acceptance notes.
Restricting the re-ask to objects whose id is numeric is not possible with what the service loads today. No object schema types its id; the id is a driver-level key.
Options for whoever picks this up (a design choice, not settled here)
Carry the id's original JS type through the document. For example, store the record id with its type in KnowledgeDocument.metadata, or alongside docHash, and re-read with that value. This needs an adapter-contract or metadata-shape decision.
Let the driver contract expose whether an object's id column is numeric or text, and use it to choose the re-read value.
Grade: priority:p3. It is fleet-sourced, with no measured reach:. It needs a caller-supplied numeric id on driver-mongodb or driver-memory, plus a restore during a complete reindex walk. The loss heals at the row's next event.
State:pm:queue. Per triage-duties, it is not dispatched on its own. It rides the next change to reindexSource's purge confirm or to the driver id contract, or it goes on the weekly fleet-Feature list for the maintainer to pick. No decision card is opened for it.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpm:queueReady for the PM dispatch looppriority:p3
Activity
objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
First touch 2026-11-25T05:29Z.
reach:. It needs a caller-supplied numeric id on driver-mongodb or driver-memory, plus a restore during a complete reindex walk. The loss heals at the row's next event.pm:queue. Per triage-duties, it is not dispatched on its own. It rides the next change toreindexSource's purge confirm or to the driver id contract, or it goes on the weekly fleet-Feature list for the maintainer to pick. No decision card is opened for it.