Skip to content

C5 — Efficiency accounting + provider/model policy #9573

Todo

Description

@dezren39

C5 — Efficiency accounting + provider/model policy

Component of the reporting-architecture program (starter epic #9568).
Source: Drew's directive, Reports chat, 2026-11-13 09:11 CST.
Statements: S2.1, S2.2, S2.8–S2.11, S2.15–S2.18 (+ S3.16 genre).

Scope

  • Efficiency accounting: join quota/token consumption to output
    (merged PRs, completed tasks) per surface, pool, provider, and model.
    A period where quota usage fell but merged PRs fell further is
    documented as what it is — worse efficiency — with the distribution
    diagnosis (e.g. tokens shifted Muse → OpenCode while merges declined).
    This is a standing report genre, not a one-off.
  • Consistency / troughs: recommendations to smooth consumption and
    reduce wall-troughs, with measured effect after adoption.
  • Routing-mode policy: per provider, ordered vs round-robin vs
    weighted selection, decided against measured rate-limit behavior; the
    resulting config changes are proposed with evidence (pool steward
    executes config changes under its own rules; this component recommends).
  • Never-serve rules: which providers must never serve which models
    (e.g. a multi-model provider used for Sonnet when it should only carry
    DeepSeek/GLM-class work), recorded as policy the composition review
    checks against.
  • Free-provider inventory: free tiers and free-for-a-time models with
    empirically tested context windows (tested vs official record —
    usually smaller, sometimes larger — is a tracked field), reliability,
    and rate ceilings; wiring into small / speed / scout paths, and free
    decision-class models in front of workhorse where their context allows,
    with reliable fall prevention: on quota exhaustion or rate limit,
    work moves to the next model and takes the cache hit — it does not stop.
  • Plan & model recommendations: another OpenCode plan, CommandCode
    full plan, GLM plan, and benchmarks of models that may outperform
    expectations — each as a costed recommendation Drew can act on.
  • "Everything is perfect as is" is an allowed conclusion only with the
    measurements attached (Drew doubts it; so does the record).

Boundaries / collisions

Acceptance

  • First efficiency report published with the join methodology stated
    and reproducible from stored data.
  • Routing-mode + never-serve policy tables in a merged design, with
    the evidence for each row.
  • Free-provider inventory live with tested context windows for every
    wired provider; at least one free path wired in front of a
    production path with fall prevention demonstrated.

Acceptance criteria

  • Efficiency accounting runs as a standing report genre: quota/token consumption joined to output (merged PRs, completed tasks) per surface, pool, provider, and model.
  • Routing-mode policy (ordered vs round-robin vs weighted per provider) and never-serve rules are recorded as policy with measured evidence; config changes are proposed through the pool steward path.

Activity

  1. added
    app/pm-stack
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 19039 (lane code-a)

    • Work kind: task/small-fix (step-scoped analysis) · Priority: priority/normal · Effort: effort/l (the full C5 component; the routed step is the first report)
    • Fresh evidence: issue C5 — Efficiency accounting + provider/model policy #9573 OPEN (app/pm-stack, status:to-do), no prior agent notes; starter epic Reporting architecture — event-driven reporting, quota forecasting, living report pages (design-mill starter) #9568 OPEN. The stored inputs for acceptance item 1 already exist and are maintained: the fleet queue's per-task model stamps (provider/model on claims and completions), the keeper-maintained provider-quota registry + usage snapshots (~/tools/provider-usage/check-usage.py), and GitHub's merged-PR records. No efficiency report has ever been published from them.
    • Routing: step-1 follow-on enqueued as task 20424 — produce the first efficiency report (consumption × output per surface/pool/provider/model, methodology stated and reproducible from stored data, worse-efficiency periods named as such). Acceptance items 2 (routing-mode + never-serve policy tables) and 3 (free-provider inventory + wired free path) are deliberately later step packets: the policy tables need this report's evidence, per the issue's own ordering.
    • Boundary kept: C5 recommends; config changes belong to the pool steward under its own rules — the packet excludes them.
  4. added
    task/small-fix
    priority/normal
    effort/l
    queue/queued
    on Nov 17, 2026
  5. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note — picked up, freshly verified, and parked

    • Task: 20424 · Issue: C5 — Efficiency accounting + provider/model policy #9573 · Lane: code-j · Worker: repo-worker-code
    • Fresh verification (2026-11-18): C5 — Efficiency accounting + provider/model policy #9573 is OPEN and assigned to dezren39; no matching open PR. The queued issue remains status:to-do.
    • Transition: no analysis or artifact started. The first efficiency report requires a reproducible join across retained quota/token data, queue task model stamps, completed tasks, and merged PRs, with spot checks; its 120-minute scope exceeds this scheduled run.
    • Resume: use a full 120-minute run; produce and publish the report with methodology, distribution diagnosis for any worse-efficiency period, and raw-data spot checks. Do not change provider configuration.
  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note — parked

    • Task: 20424 · Issue: C5 — Efficiency accounting + provider/model policy #9573 · Lane: code-g · Worker: repo-worker-code
    • Fresh verification (2026-11-18): C5 — Efficiency accounting + provider/model policy #9573 is OPEN and assigned to dezren39; its current labels include queue/queued, status:to-do, and effort/l; the issue has no matching open PR found in the existing packet check.
    • Transition: parked for 30 minutes. No analysis or artifact started. The packet requires a reproducible 120-minute join across quota/token consumption, queue task model stamps, completed tasks, and merged-PR output, plus spot checks; that exceeds this scheduled lane’s remaining runway.
    • Resume: launch with a full 120-minute budget; publish the methodology and distribution diagnosis for any worse-efficiency period, reproduce headline numbers, and spot-check one provider/model cell. Do not change provider configuration.
  7. added
    queue/parked
    and removed
    queue/queued
    on Nov 18, 2026
  8. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — task 20424 (lane code-h)

    • Claimed and checkpointed this task. Fresh verification: C5 — Efficiency accounting + provider/model policy #9573 is OPEN and Drew-assigned; no matching open PR.
    • The packet requires a reproducible 120-minute report, while this scheduled lane is budgeted for ~30 minutes. No analysis has started; parking for a lane/run with the required full budget.
  9. 122 remaining items

  10. added a commit that references this issue on Nov 27, 2026
  11. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Triage update — queue task 25761 (oc-code-05), 2026-11-27: the active measurement packet 25259 has since completed and its PR #15826 is MERGED. The PR provides the offline inventory and bounded Kilo rerun, but explicitly records that non-Kilo exact-leaf probing / live routing comparison is blocked by the Kilo-only adapter; it does not complete those remaining measurements. Routed the next discrete slice as queue task 26036 (repo-health-code-pilot): extend one bounded non-Kilo exact-leaf probe or record a source-backed capability matrix, with strict limits and no production routing changes. #9573 remains open as the C5 tracker; no duplicate implementation or provider config change.

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · picked up — queue task 26036 (lane 0407-C, work loop charlie ADVANCE)

    • Claimed task 26036 (C5 C5 — Efficiency accounting + provider/model policy #9573 slice 4) directly by id after two fleet agent next draws returned rung=none and a shortlist fill added 0 — the task was queued/unclaimed with no live claim in the issue record (verified: issue + all 41 comments read; latest comment routed this slice at 2026-11-27T01:46:58Z).
    • Scope per the task: inspect the merged harness (PR C5 #9573: bounded free-context probe harness (119-leaf inventory + Kilo smoke) #15006) and ledger (PR C5 #9573 slice 3: representative dry-run + Kilo repeat #15826); add a non-Kilo exact-leaf adapter that fails closed on missing credentials, unsupported models, and output/cost-limit violations, with unit tests; run a bounded comparison (≤5 live calls, strict output cap) only if a free non-Kilo path is safely available to this lane, otherwise commit a source-backed capability matrix and the specific prerequisite to the C5 ledger. No production routing/provider configuration changes.
    • Lane key: 0407-C in every note for this lane.
  13. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · done — queue task 26036 (lane 0407-C), slice 4 landed in PR #16084

    • Merged: PR probe: fail-closed credentialed direct adapters for C5 exact-leaf probes (#9573 slice 4) #16084 probe: fail-closed credentialed direct adapters for C5 exact-leaf probes (#9573 slice 4) #16084 — merge commit e1aa51c084bed510e773f32eccc2b2d6a3c9afaf, merged 2026-11-27T10:50:35Z. Queue task 26036 completed with disposition merged_verified (verify-disposition gate passed; read back status=done).
    • Delivered: credentialed direct adapters for groq / nvidia / openrouter in bin/free-context-probe.mjs — every check fails closed BEFORE any network call (unsupported provider, exact leaf absent from the wired inventory, output cap above the 64-token hard cap, named credential env var absent/empty, budget missing/exhausted; run budgets hard-bounded at 5 calls, CLI live uses 1). Records carry the credential env NAME only. --live accepts an exact direct leaf; live records now persist sentinelReturned (the slice-3 gap). 8 new tests, suite 15/15.
    • Verification: dezren39/fleet fleet-command run 45983859292 = completed success on the exact PR head 3de64bccd9041cbe248e0229e8e3d8cd1aa9ee7e (log: Target HEAD matches; node --test 15 pass / 0 fail). First run 45983237205 documented on the PR: exact head checked out but the fleet image has no node on PATH (exit 127) — environment failure, superseded by run 2's nix shell nixpkgs#nodejs_24.
    • Live leg: not run — no non-Kilo credential is provisioned in this lane's environment (env-var NAME check: zero provider key names; values never read). Per the task's fallback, the slice delivers the source-backed capability matrix (pm-stack/book/llm-plans/evidence/c5-slice4-capability-matrix-2026-11-27.json) with the specific prerequisite per family (first: provision a Groq Free Plan key as GROQ_API_KEY on the probe host, then one bounded --live call on groq/openai/gpt-oss-120b).
    • Acceptance: C5 — Efficiency accounting + provider/model policy #9573 stays OPEN as the C5 tracker. This slice advances item 3's precondition only — no live exact-leaf measurement yet, no context value promoted (all leaves stay provider-published), controlled routing comparison still unmeasured. Remaining work is recorded in the ledger's slice-4 section.
  14. added
    epic/pm-stack
    primary-parent/pm-stack
    stray-work
    on Nov 27, 2026
  15. removed
    task/small-fix
    status/needs-triage
    on Nov 29, 2026
  16. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — 2026-11-29 (lane CEN-C09, full issue census)

    State verified today: C5 is in execution via measurement slices. Slice 4 landed in PR #16084 (2026-11-27: credentialed direct adapters for groq/nvidia/openrouter); the preceding packet (PR #15826) delivered the offline inventory + bounded Kilo rerun.
    Named limitation: non-Kilo exact-leaf probing / live routing comparison is blocked by the Kilo-only adapter — the next discrete slice (extend one bounded non-Kilo exact-leaf probe, or record a source-backed blocker) is the current frontier, per the 2026-11-27 routing note.
    Census fixes: removed task/small-fix (mislabel on an effort/l component programme) and stale status/needs-triage (the component is triaged and actively sliced).
    Verdict: ready — proceeding via slices; the adapter limitation is named on the record.

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).

    STRENGTHS:

    GAPS FOUND:

    • no kind label (kind not unambiguous from title/body — left for the picking-up lane to set)
    • no concrete file/module pointers in the body

    FIXES I APPLIED:

    • none needed

    PICKUP NOTES (added by this census so the next agent can resolve this cold):

    REMAINS: nothing — ready for pickup

  18. added
    kind/design
    on Nov 29, 2026
  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29 (wave 2 residual pass)

    This issue already carries full census notes from parallel lanes today (CEN-C08/C09 and a Felix seat). I skimmed those notes, re-verified the live state, labels, and body firsthand, and do not duplicate their verdicts — this note records only my residual check and anything I changed.

    Residual check: component C5 of #9568; kind/* missing — added kind/design to match sibling components. Body had scope but no acceptance section; appended.

    Actions taken by this pass: labels added: kind/design; appended ## Acceptance criteria (original body text unchanged above it).

    Priority: priority/normal — stands; no band change by this pass.

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

    app/pm-stackeffort/lepic/pm-stackkind/designprimary-parent/pm-stackpriority/normalqueue/queuedstatus:to-dostray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions