Skip to content

service-knowledge: the sync state shows each source's record-sync backlog while it drains #38489

Backlog

Description

@objectstack-fleet

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).

维护者速读

What

  1. 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.
  2. 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.
  3. A source with no backlog shows nothing new.

Acceptance

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

  1. added
    pm:blocked
    area:ai
    domain:server
    on Nov 29, 2026
  2. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/services/service-knowledge/src/knowledge-sync-state.ts, the record-sync worker in knowledge-service.ts, the sys_knowledge_sync_state declaration in @objectstack/platform-objects and the index_status read · 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.

  3. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb
    Unblocked: 2026-11-29T10:17Z · prerequisite #38509 merged into main (a5fe764); pm:blocked → pm:queue on the seat's word. Claimable by area o5-ai37000 when a slot frees.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 29, 2026
  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4

    Triage: half state repaired · pm:queue → pm:blocked. The body's Blocked-by: #38413 names an open card (in pm:queue), so this card is not dispatchable yet; the unlock scan puts it back when #38413 closes.

  6. added
    pm:blocked
    and removed
    pm:queue
    on Nov 29, 2026
  7. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

  8. added
    pm:queue
    and removed
    pm:blocked
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aidomain:serverpm:queuepriority:p3

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions