You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fleet CLI: append-only invocation ledger (subcommand use is inference-only today) #9373
The PM stack quota "Analytics & projection" section (PR #9363) reports fleet binary use per subcommand, but the only source today is inference: regexing OpenCode session shell transcripts for fleet <subcommand> strings. That misses:
fleet invocations from cron/systemd units, scripts run outside sessions, and the sandbox side;
invocations whose output never lands in a session transcript;
argument-level detail (which repo/task a claim touched) beyond what a shell line shows.
Ask
Give the fleet CLI an append-only invocation ledger of its own — one record per invocation: timestamp, subcommand + sub-subcommand, exit code, duration, host, and a caller tag (session id / cron job / unit name when known). A JSONL under the fleet state dir (rotated) is enough; the aggregator can then read it the way it reads the snapshot store, and the analytics section can drop the "inferred" label for fleet use.
Acceptance
Every fleet invocation appends exactly one ledger record, including failures and usage errors.
Ledger survives CLI upgrades (append-only file, versioned record shape).
pm-aggregator analytics reads the ledger and labels fleet counts as recorded, keeping the transcript inference only as a fallback for pre-ledger history.
Work kind: task/small-fix — a bounded implementation: one best-effort ledger append in the fleet multicall entry path (versioned JSONL, rotated, under the fleet state dir; failures and usage errors included; an append failure must never change an invocation's behavior) plus the aggregator read/label change.
Priority: priority/normal — analytics accuracy; nothing is blocked, but pre-ledger history is permanently inference-only, so sooner is worth more.
Effort: effort/m — two components (Rust entry path + aggregator) with exactly-one-record tests.
Routed: fix packet enqueued as task 20394 (dedupe repo-health:v1:fix:developing-today/code:issue:9373) carrying the issue's own acceptance.
Acceptance check for this triage: this note + the on-main verification + task 20394; task 18942 completes as triaged.
agent-note:v1
kind: parked
task: 20394
actor: openchamber scheduled lane code-h (repo-worker-code)
summary: Picked up and parked before any code. Fresh check: no ledger exists on main. The build (fleet multicall append-only ledger plus aggregator reader with recorded labels, exactly-one-record tests) is too large for this scheduled run. Resume from the task checkpoint brief.
Parked for 30 minutes. Resume in a dedicated worktree; build the versioned, rotated, best-effort invocation ledger and aggregator consumer together, preserving transcript inference only as pre-ledger fallback.
Claimed and checkpointed task 20394 with origin openchamber-scheduled-lane. Fresh verification: #9373 remains OPEN and Drew-assigned; no matching open PR. Existing branch/worktree (queue/20394-9373-fleet-invocation-ledger, /home/user/git/fleet/20394) is preserved and untouched. The paired fleet producer/aggregator change needs the full 45-minute window; no edits made. Parked for a full-window run; coordinate shared analytics-store.ts ownership with parked task 20392/#9374 before editing.
Preserved existing branch/worktree (queue/20394-9373-fleet-invocation-ledger, /home/user/git/fleet/20394) untouched. No edits started: the coupled producer + aggregator implementation needs a full 45-minute window.
Queue task 20394 (openchamber scheduled lane code-i, repo-worker-code): picked up, re-verified (OPEN, assigned to dezren39, no open PR), and parked for 6h. Implementation needs explicit release of the saved worktree /home/user/git/fleet/20394 and coordination with paired task 20392 on analytics-store.ts. No code or worktree changes made.
Fresh verification: PR #11817 is MERGED at 203b697 (2026-11-18T16:26:45Z); issue #9373 remains OPEN. Previously recorded targeted Rust and aggregator tests passed. Aggregator typecheck remained unverified due to missing @types/bun (TS2688). Completing task as fixed_merged; no further source changes.
Activity
developing-today commentedon Nov 13, 2026
CODE-3034
dezren39 commentedon Nov 17, 2026
Agent note — triage (lane any-j, task 18942)
State: triaged — the gap is REAL and CURRENT; implementation routed as task 20394.
Fresh evidence (checked 2026-11-17):
pm-stack/aggregator/src/analytics-store.tsstates "There is no fleet invocation ledger; the UI labels this [inferred]" and no producer exists in pkgs/fleet — the consumer still relies on transcript inference, exactly as the issue describes. No sibling issue covers the producer work (Program: pool & effort system — effort tiers per pool, OpenChamber category pools, granular stats store (design mill) #9399 mentions fleet CLI: append-only invocation ledger (subcommand use is inference-only today) #9373 only as program context).Triage verdict:
triaged.Queue: task 18942 (lane any-j) — claimed, triaged inline per runbook §1c.
dezren39 commentedon Nov 17, 2026
agent-note:v1
kind: parked
task: 20394
actor: openchamber scheduled lane code-h (repo-worker-code)
summary: Picked up and parked before any code. Fresh check: no ledger exists on main. The build (fleet multicall append-only ledger plus aggregator reader with recorded labels, exactly-one-record tests) is too large for this scheduled run. Resume from the task checkpoint brief.
dezren39 commentedon Nov 18, 2026
🤖 Agent note · parked — medium-risk multi-component scope exceeds this scheduled window (task 20394, lane code-j)
17 remaining items
dezren39 commentedon Nov 18, 2026
agent-note:v1
state: picked_up -> parked
task: 20394
lane: code-g (OpenChamber scheduled lane, worker repo-worker-code)
origin: openchamber-scheduled-lane
stage: claimed -> verified -> parked
Claimed and checkpointed task 20394 with origin openchamber-scheduled-lane. Fresh verification: #9373 remains OPEN and Drew-assigned; no matching open PR. Existing branch/worktree (
queue/20394-9373-fleet-invocation-ledger,/home/user/git/fleet/20394) is preserved and untouched. The paired fleet producer/aggregator change needs the full 45-minute window; no edits made. Parked for a full-window run; coordinate shared analytics-store.ts ownership with parked task 20392/#9374 before editing.dezren39 commentedon Nov 18, 2026
🤖 Agent note · picked up → parked — task 20394 (lane code-g)
analytics-store.tsarea.queue/20394-9373-fleet-invocation-ledger,/home/user/git/fleet/20394) untouched. No edits started: the coupled producer + aggregator implementation needs a full 45-minute window.dezren39 commentedon Nov 18, 2026
Agent note — picked up, verified, and parked
queue/20394-9373-fleet-invocation-ledger//home/user/git/fleet/20394was preserved and not accessed.analytics-store.tswith task 20392/mcpx daemon: durable call ledger (direct daemon calls are invisible to analytics) #9374 before editing.dezren39 commentedon Nov 18, 2026
Queue task 20394 (openchamber scheduled lane code-i, repo-worker-code): picked up, re-verified (OPEN, assigned to dezren39, no open PR), and parked for 6h. Implementation needs explicit release of the saved worktree /home/user/git/fleet/20394 and coordination with paired task 20392 on analytics-store.ts. No code or worktree changes made.
Merge pull request #11817 from developing-today/queue/20394-9373-flee…
dezren39 commentedon Nov 19, 2026
agent-note:v1
state: done
task: 20394
worker: repo-worker-code
lane: oc-code-02
origin: openchamber-scheduled-lane
Fresh verification: PR #11817 is MERGED at 203b697 (2026-11-18T16:26:45Z); issue #9373 remains OPEN. Previously recorded targeted Rust and aggregator tests passed. Aggregator typecheck remained unverified due to missing @types/bun (TS2688). Completing task as fixed_merged; no further source changes.