Skip to content

feat(fleet): daily lane-share measurement, publishing + below-floor alert (OpenCode-half step 4) #1657

Open

Description

@dezren39

Part of the OpenCode-half redesign (design: files/opencode-half-redesign-2026-10-28.md in the keep-the-four-repos-healthy goal workspace; tracking: #1425). Drew's order, 2026-10-28: at least half of fleet tasks execute via OpenCode sessions — this issue makes that a published number.

Scope

Daily lane-share measurement from the assignment ledger + terminal results' execution blocks:

  • Per queue (code, opencode, openchamber, nix) and fleet-wide: tasks completed today by executed lane; assignments by lane; fallbacks by reason; exclusions by reason; rolling 7-day executed share = opencode / (opencode + direct), with exclusions reported alongside (never silently dropped from the denominator view).
  • Output: hidden_files/lane-share.json in the keep-the-four-repos-healthy goal workspace (machine-readable, dated), produced daily with the repo-fleet-monitor's rounds or a small dedicated step in it.
  • Surfacing: a one-line summary in the morning readout's fleet section and in the stewardship cycle log.
  • Alert: rolling 7-day executed share below 50% on two consecutive days → main-chat surface + a comment on Deployed laptop opencode config has drifted from canonical HEAD — claude-code pause (PR #1316) not in effect live #1425 with the miss-reason breakdown.
  • Follow-up (not blocking): fleet-feed collector embeds lane-share.json (the way it embeds orchestration.json) so the dashboard can render the share.

Acceptance criteria

  • lane-share.json is produced daily and its counts reconcile with the ledger for a spot-checked day (100% of terminal tasks accounted: opencode + direct + excluded).
  • The morning readout and stewardship cycle log each carry the current 7-day share line.
  • A simulated two-day below-floor streak fires exactly one alert with the miss breakdown attached.

Activity

  1. developing-today commented on Oct 28, 2026

    @developing-today
    Contributor
  2. added
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    source/humanFiled directly by a human
    area/infraInfrastructure, deployment, and operations
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 28, 2026
  3. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    Intake review

  4. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    Status — owner order 2026-10-28, stalled, re-surfaced 2026-10-31 (supersession check vs #2132).

    Verdict of the owed supersession check, 2026-10-31:

    NOT superseded by #2132. The conductor's success metric (#2132/#2153: the merged job's input tokens per cycle vs the old pair's baseline) is a per-job cost measure. This step is a different measurement — the fleet-wide executed-lane share (opencode vs direct, from the assignment ledger + terminal execution blocks), published daily as lane-share.json with the below-50% two-day alert. #2132 neither produces nor consumes it.

    Queue state, verified by direct read 2026-10-31: live triage task 2621 (repo-health-code-pilot, queued, priority 50, attempts 0/3). No duplicate packet enqueued; the stall is queue position. This is the step that makes Drew's 2026-10-28 "at least half via OpenCode" order a published, alerted number.

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  6. 93 remaining items

  7. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 13, 2026
  8. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task: 5031
    lane: code-d (queue worker shift, 2026-11-13)
    state: blocked (gate registered)
    issue: #1657

    Re-triaged end-to-end per the 2026-11-13 steer. What is DONE and verified fresh today:

    • Producer exists and works: hidden_files/tools/lane-share.py ran live against the fleet-queue Turso ledger and refreshed hidden_files/lane-share.json at 2026-11-13T08:24Z. Current summary_line: "Lane share (7d, 2026-11-13): 97.9% opencode (141 opencode / 3 direct executed)".
    • Exactly-once alert verified: simulated two-day below-floor streak fires exactly one alert (and the real alert for the 2026-10-30/31 streak is recorded in the JSON with its posted comment on Deployed laptop opencode config has drifted from canonical HEAD — claude-code pause (PR #1316) not in effect live #1425).
    • The three prepared cron-definition edits survive in dezren39/hatch-personal commit e99ffa4e34 (archive/janitor-2026-11-07/task-5031-hatch); the old worktree itself is gone (janitor-archived 2026-11-07).

    What remains — the ONLY remaining acceptance item is publishing the wiring into live jobs, and the ground has shifted:

    • Live job morning-day-start-readout: no lane-share step (its step 4c is now Feed freshness; the prepared edit's slot is stale — publish as a new step).
    • Live job stewardship-cycle: checkpoint step carries no lane-share line.
    • Live job repo-fleet-monitor: NO LONGER EXISTS (no such schedule), so the prepared Duty 7 edit has no host; the producer step needs a new live host job or a small dedicated step, per the issue scope.
    • Queue-worker shifts are barred by their execution contract from cron.update on other jobs, so publication must be done by a cron.update-capable non-worker session (main agent). No Drew decision is needed; the prepared text plus the two live-body insertions are fully specified on task 5031's checkpoint.

    Gate registered: blocked-until entry gate-lane-share-cron-publish (tasks: [5031]) — fires when all three live definitions carry the lane-share wiring; the daily checker then releases task 5031 automatically.

  9. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 13, 2026
  10. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Agent note · picked up (openchamber scheduled lane code-f, task 5031)

    Claimed per STEER to re-triage the publication blocker end-to-end. Fresh GitHub state: issue OPEN, assigned dezren39, no implementing PR in developing-today/code; labels already status/blocked + queue/blocked + work/assigned from the prior block — leaving those in place pending re-triage outcome.

  11. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Agent note · blocked (openchamber scheduled lane code-f, task 5031)

    Re-triage done; gate still unmet, re-blocked (reason-class blocked — needs a cron.update-capable non-worker session, not necessarily Drew). Fresh evidence this run:

    • Freshest lane-share.json on this laptop is hatch-personal @1f0dd4c388 with 2026-11-01 data (33.7% 7d share); the 2026-11-13 refresh was never committed; ~/workspace copy has no lane-share.json at all. Daily production is NOT running anywhere verifiable here.
    • No implementing PR in developing-today/code or dezren39/hatch-personal.
    • Prepared cron edits (commit e99ffa4e34) target stale slots: repo-fleet-monitor schedule no longer exists; morning-day-start-readout step 4c is now Feed freshness.
    • This session verified: no cron.update tool, no cron utility under ~/hatch/tools (full listing). Worker execution contract bars cron.update on other jobs regardless.

    Resume spec is on the task record: main-agent session publishes lane-share wiring as a new morning-readout step + stewardship-cycle checkpoint line + a replacement host step for the defunct Duty 7, verifies one daily production + one exactly-once alert cycle, then releases task 5031. Producer script and alert logic themselves were verified working 2026-11-13 — only the live-job publication is missing. No files changed, no worktree created; laptop checkouts untouched.

  12. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — state: triaged · task 18127, lane code-c

  13. removed their assignment
    on Nov 20, 2026
  14. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: publication wiring prepared (PR open, unmerged); first fresh production since 2026-11-01
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    Prepared: dezren39/hatch-personal PR #57 — https://github.com/dezren39/hatch-personal/pull/57 (the job bodies and lane-share.json live in hatch-personal; dezren39/hatch's tree contains none of them). The 2026-11-16 prepared edits targeted stale slots, so the wiring is re-targeted, per task 5031's resume spec:

    1. Morning readout gains a NEW step 4d (step 4c is Feed freshness now): runs lane-share.py --post-alert, surfaces the 7-day share line in the readout, and puts a fired alert prominently among the worth-attention items.
    2. Stewardship cycle checkpoint line: every cycle's step-5 record carries the producer's summary line verbatim.
    3. Duty 7 replacement host: the stewardship cycle (judgment call, reasoned in the PR): a new LANE-SHARE PRODUCTION + ALERT section runs the producer hourly, carries the checkpoint line, and owns the exactly-once main-chat alert surface — including the cross-host case where the readout's run fired the streak first. The readout was rejected as sole host: once-daily and Drew-facing, so production/alert could lag a day and its chat is not the main chat. Stewardship already owns folded-in residue from retired jobs and Drew's 2026-11-22 restore decision keeps it live.

    First production is included in the PR: lane-share.json refreshed by a real run on 2026-11-22 with --post-alert against the live ledger — 7-day share 86.4% (70 opencode / 11 direct), no alert fired, the 2026-10-30/31 alert preserved in alerts[], streak state correctly reset. One observation for the acceptance pass: recent days' reconciliation accounted_pct runs 5–16% because most terminal tasks never enter the lane-assignment ledger and land in the producer's explicitly-reported unrecorded bucket — faithfully reported, not dropped, but it bears on this issue's reconciliation acceptance line.

    Remainder, in order: primary seat merges PR #57 → applies both bodies via cron.update (no live job changes until then) → verify one daily production under the applied jobs → verify one exactly-once alert cycle → release task 5031 and run this issue's acceptance verification. Task 5031 stays blocked and this issue stays open until that chain completes.

  15. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: lane-share wiring merged to hatch-personal main; primary-seat apply + verifications remain
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    Merged: dezren39/hatch-personal PR #57 — morning readout gains step 4d (lane-share run + summary + alert surfacing), the stewardship cycle gains the LANE-SHARE PRODUCTION + ALERT section (hourly producer run, checkpoint line, exactly-once main-chat alert surface — the Duty 7 replacement host, chosen over the daily readout for cadence and chat fit, reasoning in the PR), and lane-share.json is refreshed by a live production run (7-day share 86.4%, 70 opencode / 11 direct, no alert fired).

    Remaining, in order: (1) primary seat applies both bodies via cron.update — no live behaviour changes until then; (2) verify one daily production under the new wiring; (3) verify one exactly-once alert cycle; (4) release task 5031 and run this issue's acceptance verification — including the flagged observation that recent days' reconciliation accounted_pct runs 5–16% (most terminal tasks land in the producer's reported unrecorded bucket), which bears on the reconciliation acceptance line.

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/infraInfrastructure, deployment, and operationsdesign/opencode-halfDesign: opencode-half - all issues of this effort carry iteffort/mMedium: expected under 1 day of workepic/opencode-platformReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/follow-upFollow-up spun out of earlier workpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statesource/humanFiled directly by a humanstatus/blockedQueue or user escalation statetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions