Repository navigation
Description
repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr
Filing gate: ② seat split. Source: #38413 point 3 ("The sync state record (#37736) shows the backlog while it drains, so 'search is behind' is visible to an administrator"), split out by seat repo:objectstack#5 on the dev's report 7251433810 (out-of-scope finding 1). #38413 delivers points 1 and 2 (batch consume, ruling A record 7250307515; backlog reconcile) and a global waiting count that is now exact; the per-source display needs a stored counter, which is this card. Child of epic #37000.
Grading: area:ai · Feature · p3 (#38413's points 1–2 carry the throughput; this is visibility) · reach: administrators of deployments that bulk-import into a record-sourced knowledge source · evidence: read in the dev report 7251433810 and in packages/services/service-knowledge/src/knowledge-sync-state.ts on main (PR #38460 merged as 4bc5a0c).
维护者速读
- 做什么:知识源的同步状态里显示「这个来源还有多少条记录排队等同步」,管理员能看出检索落后了多少、还要多久追上。
- 为什么单立:service-knowledge: a bulk import syncs one record per queue message, read, embedded and written alone, so the index trails the data for hours #38413 解决了大批量导入的同步速度(成批消费、积压时改做一次对账),但按来源显示积压需要在同步状态里存一个按来源的计数,是另一块改动。
- 影响:只加状态显示,不改同步行为;约 1 个 PR。
- 要你做的:无。
What
- The sync state (
knowledge-sync-state.ts, service-knowledge: each source's sync state is one durable record, the same on every node — last build, pending and failed syncs — listed in Setup, and the reconcile clears the failures it repaired #37736) carries, per source, the count of record syncs published and not yet settled (or an equivalent the dev proposes with its cost), updated by the record-sync worker as batches settle. - Where the sync state is read (the state read and the status surfaces that show a source's last build and failed syncs), the backlog shows beside them while it is non-zero.
- A source with no backlog shows nothing new.
Acceptance
- A test publishes N record syncs for one source and observes the backlog go N → 0 as the worker drains, and stay 0 for another source.
- A reconcile that covers queued messages (service-knowledge: a bulk import syncs one record per queue message, read, embedded and written alone, so the index trails the data for hours #38413 point 2) brings the count to 0 without reading each message.
- No change to what is synced or when.
Blocked-by: #38413
Not in scope: the batch consume and the backlog reconcile (#38413).
Dedupe: knowledge sync backlog per source 0 matching (hits are #38413 itself and unrelated) · record-sync waiting count 0 matching · sync-state backlog field 0 matching.
Activity
objectstack-fleet commentedon Nov 29, 2026
triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t
Triage: lands in
packages/services/service-knowledge/src/knowledge-sync-state.ts, the record-sync worker inknowledge-service.ts, thesys_knowledge_sync_statedeclaration in@objectstack/platform-objectsand theindex_statusread · area:ai · domain:server · Feature · p3 · pm:blocked (Blocked-by: #38413, as filed) · size M. Rationale: point 3 of #38413, a child of maintainer-directed topic #37000 (「相关任务都加入知识专题」), so a pre-authorised topic Feature. A visibility counter on an existing system object has precedent. It depends on #38413's batch consume and reconcile, which are in draft PR #38509 and not merged. Attached to #37000 as a sub-issue in this pass.Recorded 2026-11-29T06:57Z.
objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb
Unblocked: 2026-11-29T10:17Z · prerequisite #38509 merged into main (a5fe764);
pm:blocked→pm:queueon the seat's word. Claimable by area o5-ai37000 when a slot frees.objectstack-fleet commentedon Nov 29, 2026
triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4
Triage: half state repaired ·
pm:queue→pm:blocked. The body'sBlocked-by: #38413names an open card (inpm:queue), so this card is not dispatchable yet; the unlock scan puts it back when #38413 closes.feat(service-knowledge): record sync consumes the database queue in b…
objectstack-fleet commentedon Dec 3, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: unlock ·
pm:blocked→pm:queue· 2026-12-03T07:39Z.The latest
Blocked-by:line names #38413, closed completed (2026-11-30T01:01Z); nothing else in the body or the comments holds it. The unlock was owed since that close.Grade, area and type unchanged.