Skip to content

pool-quota-steward: laptop transport failure reported as quota file missing — read needs one retry and a distinct transport verdict #10816

Closed

Description

@dezren39

Evidence 2026-11-16: the 09:17 pool-quota-steward run failed reporting quota-current.json missing and a failed live API probe. The file was never missing on the laptop:

  • quota-gatherer.service ticks all morning finished successfully and wrote the file at 09:16:14, 09:24:13, 09:29:56 and 09:31:28 CST (journal, pm-aggregator-gather-quota).
  • The writer is atomic: writeFile(tmp) + rename(tmp, path) (gather-quota.ts:190-191 in the deployed pm-aggregator) — the destination path never goes absent.
  • The 09:20 usage-quota run read the same file fine in the same window (09:15 generation), and direct reads at 09:00 and 09:32 CST succeeded.
  • pm-aggregator.service itself never restarted (up since 05:37:49 CST).

Both steward checks travel the sandbox→laptop path (laptop-ssh / laptop-agent), which was visibly degraded all morning (30–90s stalls, double-delivered commands, one exec lost to a runtime restart). The steward collapsed a transport failure into a 'file missing' verdict and aborted the run (no ledger event that hour).

Ask: in the steward (and any job reading laptop state the same way), retry a failed quota-file read once after a short pause, and report transport failure distinctly from a genuinely missing/unparseable file — the two need different responses (wait/retry vs gatherer investigation).

Activity

  1. added
    kind/bug
    area/infra
    on Nov 16, 2026
  2. developing-today commented on Nov 16, 2026

    @developing-today
    Contributor
  3. added
    work/assigned
    queue/claimed
    status/in-progress
    on Nov 16, 2026
  4. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    checker task 17536 pickup (worker repo-worker-code, lane any-o): proof does not hold (OPEN, no PR). Ownership check: the retry-once + distinct transport-verdict fix already exists as uncommitted work on local branch fix/10816-quota-read-retry-transport-verdict in the primary clone (pm-stack/aggregator/src/quota-current.ts, sources/live.ts), likely owned by fix session ses_e5e1aad43bbffehP7vWTMaRAR1. Parking checker to avoid a competing PR — resume when that fix lands as a merged PR or the branch is released.

  5. added
    queue/claimed
    status/in-progress
    and removed
    status/in-progress
    queue/claimed
    on Nov 16, 2026
  6. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Pickup by repo-worker-code (lane any-n, openchamber scheduled lane). Revalidated: issue OPEN, no open/merged fix PR, no live queue carrier. The fix-session WIP (retry-once + distinct transport verdict in pm-stack/aggregator) survived the server restart as stash@{0} (10816-wip, 3 files, 259 insertions). Salvaging into a dedicated worktree to continue the fix — not a competing PR, no live PR exists.

  7. added
    queue/parked
    and removed
    status/in-progress
    queue/claimed
    on Nov 16, 2026
  8. 1 remaining item

  9. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Parked: salvage aborted — the owner reclaimed the 10816-wip stash between my inspection and apply (stash stack shifted; my apply caught an unrelated preserve-primary-dirt entry and was fully reverted, salvage worktree left clean). No competing PR opened by this lane. Resume when a fix PR for the retry-once + transport-verdict change appears, or when the owner session confirms state.

  10. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Done via PR #10842 (squash-merged 2026-11-16T17:57:14Z, gh-verified MERGED):

    • pm-stack/aggregator/src/quota-current.ts: new readQuotaCurrentFile — retries a failed read once after 250ms; verdict missing only on double ENOENT, transport on other read failures, unparseable on bad bytes.
    • pm-stack/aggregator/src/sources/live.ts: tursoOverlay, overlayCurrent, and quota() use it; transport/unparseable emit console.error warnings and (in quota()) distinct provenance text.
    • test/quota-current.test.ts: 8 new retry/verdict tests.

    Verification: quota-current suite 73 pass (65 existing + 8 new); tsc clean; quota/usage suites 97 pass with 1 pre-existing server-boot hook timeout (quota-contract.test.ts, fails standalone in this env too — same family as the clean-tree baseline timeouts, fixtures-mode boot never touches the changed code).

  11. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked-up (checker task 17536)

    Claimed the left-on-ground checker for this issue to verify the fix proof: expecting merged PR with retry-once + distinct transport-failure verdict in the steward laptop-state read, plus this issue CLOSED.

  12. added
    queue/claimed
    status/in-progress
    on Nov 16, 2026
  13. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (checker task 17536)

    Proof verified fresh via gh read-back:

    Both acceptance criteria hold (merged PR proof + issue closed). Checker task 17536 completes DONE per its self-closing rule; never re-queue. Clearing checker-owned in-flight labels (queue/claimed, status/in-progress, queue/parked, status/parked); leaving work/assigned + status:done for the fix session/sweep to reconcile.

  14. removed
    status/in-progress
    status/parked
    queue/claimed
    queue/parked
    on Nov 16, 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/infrakind/bugstatus:donework/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions