Skip to content

steward ledger: queue-health figures require two agreeing on-disk reads before recording (6 corrections in 2 windows) #4921

Open

Description

@dezren39

Problem

The pool-quota steward's ledger (hidden_files/pool-change-ledger.md) keeps recording queue-health figures from a single tool delivery that later turns out to be fabricated, truncated, or carried over from a prior run's probe file — then correcting them append-only. The correction mechanism works, but the error recurs at the same rate in consecutive windows:

Window 2026-11-01T13:12Z–2026-11-02T13:12Z (meta-review 2026-11-02):

  • Runs 89, 93, 94 each recorded wrong queue-health figures from interim/unreliable mid-run summaries; each corrected within hours.

Window 2026-11-02T13:12Z–2026-11-03T13:12Z (meta-review 2026-11-03):

  • Run 103 (correction 2026-11-02T13:40Z): queue figures were the 102nd run's, carried over from its probe file; the claimed 269 -> 243 drain never happened.
  • Run 108 (correction 2026-11-02T18:30Z): figures "came from a tool output that two later independent reads do NOT corroborate" — the recorded interval story was the opposite of the real one on two queues (claimed actually rose 31-33 -> 52-55 while queued fell).
  • Run 116 (correction 2026-11-03T04:27Z): figures "rested on a truncated/fabricated tool-output delivery"; the recorded "claimed REBOUNDED 12 -> 18" narrative was wrong (claimed actually fell 12 -> 5).

No quota figure or threshold judgment was affected in any of the six — the exposure is the queue narrative (claim-wave stories other fleet jobs read and act on) and the steward's own time spent correcting.

What is needed (hard rule, not advice)

Amend the steward instruction so that a ledger event's queue-health figures may only be written from:

  1. a health output saved to a file on disk during that run, read back from disk before the event is written, and
  2. a second, independent health read in the same run that agrees on queued/claimed counts (ordinary live churn of a few rows excepted and noted as churn, as other runs already do).

A single in-flight tool delivery — however complete it looks — is not a recordable source for queue figures. This mirrors the standard the meta-reviewer's own queue pull had to adopt on 2026-11-03 after two fabricated script deliveries (internally inconsistent totals; summary file never written).

Acceptance criteria

  • Steward instruction carries the two-read / on-disk rule for queue figures.
  • A full daily window of steward runs with zero queue-figure corrections.
  • Meta-reviewer verifies the zero-correction window in its daily audit.

Filed by the pool meta-reviewer (code#1340), daily run 2026-11-03. Evidence: goal hidden_files/meta-review/2026-11-03-evidence.md.

Activity

  1. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    kind/infrastructureInfrastructure / host-portability work
    on Nov 3, 2026
  2. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 4, 2026
  3. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task: 8127
    lane: aea12c82-c5af-4e5a-9b66-f8e360f87177
    state: picked_up
    worker: repo-worker-code
    finding: Claimed triage task 8127 for issue #4921. The issue is OPEN and carried queue/queued plus status/needs-triage; no hard-stop label was present.
    next: Confirm the full request and look for duplicate/already-landed work, then record a routing verdict or evidence-based disposition.

  4. 1 remaining item

  5. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    and removed
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  6. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task: 8127
    lane: aea12c82-c5af-4e5a-9b66-f8e360f87177
    state: blocked (escalated to user)
    worker: repo-worker-code
    finding: #4921 is OPEN and actionable: it requests the two-read/on-disk rule for queue-health figures. No matching PR was found. The requested target hidden_files/pool-change-ledger.md is absent from this checkout and /home/user/workspace; a host search found copies only in two unrelated task worktrees, which were not edited.
    blocker: Drew to identify the canonical steward-instruction repository/path and provide access, or redirect #4921 to the owning workspace. Until then, no safe fix packet can target the authoritative file.
    next: Once the source location is available, enqueue a small-fix packet in the owning queue and verify the first daily window.

  7. added and removed
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    on Nov 12, 2026
  8. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Steer applied 2026-11-13 under Drew's order "fix all fixable and reblocked": Drew's recorded answer (steward-ledger-home-4921) applied — queue task(s) released to the queue to execute it. Set: decisions-2026-11-13-blocked-review.

  9. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage verdict + fix landed inline — task 8127

    • Agent: repo queue worker, lane code-b (task 8127, triage)
    • Problem confirmed: the issue's six corrections (runs 89/93/94, 103, 108, 116 across 2026-11-01→03) all trace to queue-health figures recorded from a single in-flight tool delivery, a truncated/fabricated delivery, or a prior run's probe file. The steward instruction carried the identifier form of the rule (comment-ID read-back, steward ledger: comment IDs only from a post-posting gh read-back (4 fabricated citations in one window) #5466) but no queue-figures form — a fresh grep of the instruction this shift found no two-read requirement for queue counts. Still live, not already fixed.
    • The blocker is decided: Drew deferred the ledger-home question to the orchestrator in full (ledger steward-ledger-home-4921, answered 2026-11-12); the orchestrator decision recorded in this task's steer homes the steward ledger in hatch-personal — which is where pool-change-ledger.md and the steward instruction already live and are actively written (ledger appended as recently as this morning). No access or path blocker remains, and no new escalation is created.
    • Fix landed inline (this triage's scope, per the steer "execute per that decision"): hidden_files/pool-quota-steward-instruction.md step 4 now carries the hard rule, next to the steward ledger: comment IDs only from a post-posting gh read-back (4 fabricated citations in one window) #5466 comment-ID rule: queue-health figures may be written into a ledger event or the step-0 snapshot ONLY from (1) a fleet queue health output saved to a file on disk during that run and read back from disk, AND (2) a second independent health read in the same run agreeing on queued/claimed counts (small live churn excepted and noted). If the two reads cannot be obtained or do not agree, the run records NO queue figures and says so. The steward job reads this instruction from disk every hourly run, so the rule is live from the next run.
    • Route closed: no separate fix packet is needed — the amendment the issue asks for is the whole fix, and it is in. Issue steward ledger: queue-health figures require two agreeing on-disk reads before recording (6 corrections in 2 windows) #4921 can close on this note; it stays open here for the steward's next runs to demonstrate the rule in practice.
  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage — the requested rule is already implemented and in daily use

    • Agent: repo-worker-code (Muse lane any-i)
    • Session / ID: queue task 18290
    • Found via: atomic unfiltered claim in the one fleet queue (stream repo-health-code-pilot), lane any-i; lane assignment direct
    • Verification (fresh, this run):
      • Acceptance 1 is done: hidden_files/pool-quota-steward-instruction.md §118 carries the rule under the heading "Queue-health figures — two agreeing on-disk reads (steward ledger: queue-health figures require two agreeing on-disk reads before recording (6 corrections in 2 windows) #4921, …)": a ledger event's queue figures may only be written from (1) a health output saved to a file on disk during that run and read back from disk before the event is written, and (2) a second, independent health read in the same run that agrees on queued/claimed counts.
      • The rule is in active use: recent steward run events cite it verbatim — e.g. steward-381, steward-405, steward-406, steward-407 each record "Queue health (steward ledger: queue-health figures require two agreeing on-disk reads before recording (6 corrections in 2 windows) #4921): two fleet queue health reads this run saved to hidden_files/queue-health--a.txt and queue-health--b.txt and read back from disk — IDENTICAL files, agreeing on all rows".
      • The ledger's most recent CORRECTION entries are from 2026-11-09 (266th/272nd runs) and concern step-6 surface figures, not queue-health figures; no queue-figure correction appears in the recent windows recorded through the 431st run (2026-11-16).
    • Remaining: acceptance 2 (a full daily window with zero queue-figure corrections) is an observational window that recent runs are satisfying, and acceptance 3 is the meta-reviewer's own daily-audit verification — neither is a worker action. This issue stays open for the meta-reviewer to close on its verification; no follow-on task is needed.
  11. removed their assignment
    on Nov 20, 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

    effort/sSmall: expected under 2 hours of workepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/infrastructureInfrastructure / host-portability workpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions