Skip to content

service-knowledge: pin a record write between boot and the enablement reading on a held deployment (after #38369 PR #38470) #38479

Done
0 of 1 issue completed

Description

@objectstack-fleet

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Filing gate: ② review follow-up (nit N2 of contract review 7251083329 on PR #38470, card #38369) · Source: fleet

What happens

PR #38470 reads the knowledge service's enablement once, at kernel:bootstrapped. Before that reading, a record write is synced as on main. So a deployment that then reads held may already have called a store, for example for a seed deferred to kernel:bootstrapped. On an enabled deployment, the reap guard now registers one phase later than on main. The review was read-only and did not measure either effect.

Expected

  • Measure it: on a held deployment (no embedder), a record write during boot before kernel:bootstrapped calls no store. If it does, the write is refused or deferred like any held write.
  • A test pins the window. A second test pins the reap guard registering before the first reap on an enabled deployment.

Blocked-by: #38369
Grade: area:ai · Task · reach: self-hosted deployments with boot-time seeds and no embedder · evidence: read (contract review 7251083329 ④ N2)
Suggested-grade: p3
Size: S
Related: #38369, PR #38470, #38368, #37000.

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/services/service-knowledge/src/knowledge-service-plugin.ts and knowledge-service.ts (a record write between boot and the enablement reading at kernel:bootstrapped), with a pin under src/__tests__/ · area:ai · domain:server · Task · p3 · pm:blocked · size S. Rationale: a measure-and-pin follow-up of contract review 7251083329 (N2) on PR #38470, which is #38369's unmerged held state. So the card waits on #38369. It is kept, not closed as a pin-only nit: its reach is measurable through a public boot, and the published upgrade text's "no store is called" could be contradicted by this window. Rider: the same review's N3 (#38478, closed, the late search_knowledge registration in packages/mcp/src/plugin.ts) may ride #38369's next PR that touches packages/mcp.
    Blocked-by: #38369

    Recorded 2026-11-29T05:49Z.

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

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: unlock · pm:blocked → pm:queue · 2026-12-03T07:40Z.
    The latest Blocked-by: line names #38369, closed completed (2026-11-30T18:31Z); nothing else in the body or the comments holds it. The unlock was owed since that close.
    Grade, area and type unchanged.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht

    Measured · 2026-12-03T13:22Z — the window this card asks to measure is reachable, and it now blocks #38374 (draft PR #39340).

  6. added
    pm:retriage
    on Dec 3, 2026
  7. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: re-graded 2026-12-03T14:23Z to area:ai · domain:server · Bug · p2 · pm:queue, answering the zone's pm:retriage ask (7379734025). Rationale:

  8. added
    priority:p2
    and removed
    pm:retriage
    on Dec 3, 2026
  9. changed the issue type fromtoon Dec 3, 2026
  10. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Claim: PM loop (posted 2026-12-03T22:35Z), card thread of seat repo:objectstack@os-bill; the maintainer's "ok" of 2026-12-03 22:31Z to resume this card from the drafted patch (project thread), after triage's re-grade answered the retriage ask (7381373263)
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Thread session: session_01Utp6CYvu4t9zSjsTHiUubP
    Account: os-bill
    Branch: claude/project-thread-hetgca
    Worktree: objectstack-issue-38479
    Domain: domain:server
    Seat: repo:objectstack@os-bill
    File surface: packages/services/service-knowledge/src/knowledge-service.ts, packages/services/service-knowledge/src/knowledge-service-record-sync.ts, packages/services/service-knowledge/src/knowledge-service-sources.ts (new test src/__tests__/boot-window-38479.test.ts and the changeset not listed; stop on breach; explain in the report)
    Container & model: M, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: medium (reason: the fix is already drafted and tested; the thread re-applies a patch and re-runs the suite)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the knowledge service's own boot ordering in packages/services/service-knowledge (objectstack) | none — no platform path waits for the enablement reading today | every host that boots with sources before enablement settles, reachable now on the Starter via PR #39340 (#38374)
    Thread-read: 7381373263
    Premise: holds — measured reading 7379734025 and the card thread's drafted fix (enablementWaiters woken in settleEnablement, package suite green); the thread re-applies it on fresh main and re-tests before pushing.
    Serial constraints cleared: PR #39340 (#38374) touches examples/app-starter, not this package; no other in-flight claim names these files.

  11. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 3, 2026
  12. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Claim: PM loop (amended 2026-12-03T22:59Z: the S1 fix in the delta of draft PR #39414 also touches knowledge-service-indexing.ts (stopBuilds) and knowledge-service-top-level.ts (a docblock); supersedes the File surface line of claim 7394443531), card thread of seat repo:objectstack@os-bill; the maintainer's "ok" of 2026-12-03 22:31Z to resume this card from the drafted patch (project thread), after triage's re-grade answered the retriage ask (7381373263)
    Session: session_01Utp6CaQsbKBMQtm6Tpsamd
    Thread session: session_01Utp6CYvu4t9zSjsTHiUubP
    Account: os-bill
    Branch: claude/project-thread-hetgca
    Worktree: objectstack-issue-38479
    Domain: domain:server
    Seat: repo:objectstack@os-bill
    File surface: packages/services/service-knowledge/src/knowledge-service.ts, packages/services/service-knowledge/src/knowledge-service-record-sync.ts, packages/services/service-knowledge/src/knowledge-service-sources.ts, packages/services/service-knowledge/src/knowledge-service-indexing.ts, packages/services/service-knowledge/src/knowledge-service-top-level.ts (new test src/__tests__/boot-window-38479.test.ts and the changeset not listed; stop on breach; explain in the report)
    Container & model: M, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: medium (reason: the fix is already drafted and tested; the thread re-applies a patch and re-runs the suite)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the knowledge service's own boot ordering in packages/services/service-knowledge (objectstack) | none — no platform path waits for the enablement reading today | every host that boots with sources before enablement settles, reachable now on the Starter via PR #39340 (#38374)
    Thread-read: 7394443531
    Premise: holds — measured reading 7379734025 and the card thread's drafted fix (enablementWaiters woken in settleEnablement, package suite green); the thread re-applies it on fresh main and re-tests before pushing.
    Serial constraints cleared: PR #39340 (#38374) touches examples/app-starter, not this package; no other in-flight claim names these files.

  13. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Close-out: 2026-12-04T00:13Z · PR #39414 merged at 2026-12-04T00:13Z as 959b20f2; it closed this card. Seat ACCEPT and landing 7395017596; contract review delta PASS 7394926558. Follow-up #39421 (N3/N4, p3) stays in pm:queue. #38374 can re-read its Blocked-by: line. The state label leaves with this note.

  14. removed
    pm:dispatched
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions