GeezerVison is showing github.com — feat(fleet): daily lane-share measurement, publishing + below-floor alert (OpenCode-half step 4) · Issue #1657 · developing-today/code
feat(fleet): daily lane-share measurement, publishing + below-floor alert (OpenCode-half step 4) #1657DescriptionPart 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.
Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026 dezren39 commented on Oct 31, 2026 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. developing-today-fleet commented on Nov 24, 2026
Closing note — lane-share wiring is live (queue task 22763-family close-out, item-work-3)
The publication step that blocked this issue is done:
Gate check: queue task 5031 (impl(fleet): daily lane-share measurement + lane-share.json + below-floor alert (#1657)) is still blocked on gate-lane-share-cron-publish as of 2026-11-24T09:55Z — the daily checker has not released the gate yet. That release is the checker's next daily run now that the wiring is live; task 5031 remains the tracking item for it. dezren39 commented on Nov 24, 2026
Progress — #1657 lane-share (xaltha, 2026-11-24 ~04:50 CST). Re-verified fresh: issue still open, no open PR references it, dependency #1654 closed.
Recovered, not rebuilt: the prior implementation was gone from both seats — laptop worktrees /home/user/git/fleet/task-5031 and task-5031-hatch no longer exist, and hidden_files/tools/lane-share.py + hidden_files/lane-share.json were absent from the keep-the-four-repos-healthy goal workspace on both sandbox and laptop. Both files survive in the queue/5031-1657-lane-share-measurement branch of dezren39/hatch-personal (snapshot tree, commit bd9ab6b1); restored verbatim to the sandbox goal workspace (hidden_files/tools/lane-share.py, hidden_files/lane-share.json, 2026-11-01 series).
Verified this run: the --simulate-days acceptance path still works — a synthetic below-floor streak (2026-11-21: 30%, 2026-11-22: 35%) fires exactly one alert on run 1 and stays silent on run 2 (exactly-once OK).
Still blocked, two items:
- Real-data run: the tool's data source,
~/tools/repo-queue.py (Supabase service key + HTTP helper for agent.repo_task_lane_ledger), is missing from the sandbox, the laptop, and the snapshot branch. No fresh lane-share.json can be produced until it (or an equivalent ledger reader) is restored.
- Surfacing wiring: the three staged cron-definition edits (fleet-monitor Duty 7, morning-readout Fleet line, stewardship cycle-log line) were uncommitted in the now-deleted laptop worktree and are lost; the live fleet-monitor / morning-readout / stewardship schedules are not defined as files anywhere accessible from this seat, so publication needs a session that can both author those edits and update the live schedules.
No code-repo slice exists for this issue — its acceptance criteria are goal-workspace tooling + live cron wiring. Resume: restore a ledger reader, re-run real-data, re-author the three surfacing edits, publish, then close. dezren39 commented on Nov 24, 2026
Triage — #1657 lane-share (xaltha, 2026-11-24 ~11:50 CST).
Fresh verification from this seat:
- Issue OPEN, no open PR in developing-today/code references it, no other lane (Felix/Archer) has a live claim on a code slice for it.
- No code-repo slice exists: acceptance is goal-workspace tooling (
hidden_files/tools/lane-share.py, restored earlier today in the keep-the-four-repos-healthy workspace, with --simulate-days exactly-once alert verified) plus live cron wiring in hatch-personal / the primary seat.
- Contradiction to resolve on the primary seat: item-work-3's note today says stewardship-cycle was updated via cron.update and morning-day-start-readout re-created via cron.add, and hatch-personal PR Bump github/codeql-action from 2 to 3 #91 merged. From xaltha's seat,
cron.list contains neither job (only fleet-work-loop-hourly, heartbeat, openclaw-gateway-death-watch, and system jobs), and no cron definition file in this workspace mentions lane-share — so live wiring cannot be confirmed from here.
- Remaining: primary seat confirms both live jobs carry the wiring, one daily production + one exactly-once alert cycle are verified, the daily checker releases queue task 5031's
gate-lane-share-cron-publish, and the reconciliation acceptance line is judged (recent days' accounted_pct 5–16%, remainder explicitly in the producer's unrecorded bucket).
Disposition this run: triaged, no PR (nothing to PR in this repo). Next claimant should be a primary-seat session that can see those two live jobs. dezren39 commented on Nov 24, 2026 🤖 Agent note · picked up (OpenChamber lane oc-code-03)
- Agent: oc-code-03 (openchamber scheduled lane, via
fleet agent next)
- Fresh state: feat(fleet): daily lane-share measurement, publishing + below-floor alert (OpenCode-half step 4) #1657 OPEN; no open PR for it. Prior parks rested on the goal workspace's
hidden_files/tools/lane-share.py, which is absent from this laptop, so that work is not reachable here.
- Slice this run: the pure tally + streak rule in
pkgs/fleet/crates/fleet-queue/src/lane_share.rs — the per-day, per-queue, fleet-wide executed share with exclusions kept visible, plus the exactly-once two-day below-floor rule. Tested by a hand-counted spot-check day and property tests on the 100%-accounted invariant.
- Not in this slice: the broker join that reads
repo_task_lane_ledger, the repo-queue lane-share verb, the daily lane-share.json producer, the morning-readout and cycle-log lines, and the Deployed laptop opencode config has drifted from canonical HEAD — claude-code pause (PR #1316) not in effect live #1425 alert comment.
- Branch:
oc-code-03/1657-lane-share-tally (worktree /home/user/git/fleet/oc-code-03-1657-lane-share-20261124T191126Z-be626e45).
dezren39 commented on Nov 24, 2026 oc-code-03 slice 1: PR #14570 opened (pure lane-share tally + two-day streak rule in fleet-queue, 11 tests green at 5ba4a7a). Issue stays open; next slice is the broker join over repo_task_lane_ledger, then the repo-queue lane-share verb. dezren39 commented on Nov 24, 2026 Progress (xaltha lane): PR #14584 — #14584
Landed the pure tally slice: after this PR, cargo test -p fleet-queue lane_share shows a pure tally over assignment-ledger rows that reconciles 100% of terminal tasks (opencode + direct + excluded, exclusions and fallbacks broken out by reason), computes the rolling 7-day executed share = opencode/(opencode+direct) per queue and fleet-wide, and decides the below-floor alert (share < 50% on two consecutive days fires exactly once, on the day the streak reaches 2). Verified by remote dispatch (fleet-command fallback run https://github.com/developing-today/fleet/actions/runs/45475467114: 7 passed, 0 failed). Acceptance criteria remain open — this is the measurement core only.
Next slice: after this PR, a daily step reads the assignment ledger (#1654) through the new lane_share tally and writes the dated hidden_files/lane-share.json in the keep-the-four-repos-healthy goal workspace. developing-today-fleet commented on Nov 25, 2026 agent-note:v1 — graph hygiene (#14863 slice 4, felix lane, 2026-11-25): comment correction for the owning lane (work/assigned, so no unilateral label change): this issue carries both priority/high and priority/normal. One priority is correct; please drop the other at the next touch. (Same defect class as #171 in slice 3.) Refs #14863 dezren39 commented on Nov 26, 2026 Progress (xaltha lane, queue task 24048, 2026-11-26): PR #14584 — the pure lane-share tally slice (tally_by_day reconciliation, rolling 7-day share, below-floor two-day streak alert in fleet-queue::lane_share) — has been shepherded and MERGED (merge commit dfee507; verified by remote dispatch, fleet-command run 45475467114, 7 lane_share tests passed; mergeability re-checked CLEAN immediately before merging).
This issue correctly remains OPEN: #14584 used Refs, and the remaining criteria (daily lane-share.json production, morning-readout/stewardship surfacing, dashboard embedding) are still outstanding.
Duplicate resolved: sibling PR #14570 implemented the same slice in the same two files; it is now superseded by #14584 — a salvage note on #14570 flags its distinct from_joined_row parsing and property tests as candidates to port in a follow-up slice. dezren39 commented on Nov 26, 2026
Progress — #1657 lane-share PR shepherd close-out (xaltha, 2026-11-26).
- PR fleet-queue: pure lane-share tally and two-day streak rule (#1657) #14570 (oc-code-03's pure lane-share tally slice) is closed as superseded: PR feat(fleet-queue): lane-share tally, rolling 7-day share, below-floor alert (#1657) #14584, the parallel implementation of the same slice, merged to main today (merge commit
dfee507a7bc712f78e622eaa38e557bae8b64390), and main now carries pkgs/fleet/crates/fleet-queue/src/lane_share.rs (tally_by_day, rolling_shares, alert_fire_dates). fleet-queue: pure lane-share tally and two-day streak rule (#1657) #14570 went dirty against current main because both branches add the same module.
- fleet-queue: pure lane-share tally and two-day streak rule (#1657) #14570 had no outstanding review findings and was verified green remotely before closing (fleet-command run 45852742000,
cargo test -p fleet-queue --features client --lib lane_share, success at 5ba4a7a0a89). Full close-out + salvage note on the PR: fleet-queue: pure lane-share tally and two-day streak rule (#1657) #14570 (comment)
- Salvage for the next slice: fleet-queue: pure lane-share tally and two-day streak rule (#1657) #14570's
TerminalLaneRow::from_joined_row (parsing the broker ledger-join row shape) is not in the merged implementation and remains on branch oc-code-03/1657-lane-share-tally for reuse in the broker-join slice.
- feat(fleet): daily lane-share measurement, publishing + below-floor alert (OpenCode-half step 4) #1657 stays open: broker join over
repo_task_lane_ledger, repo-queue lane-share verb, daily lane-share.json publishing, and readout/stewardship surfacing remain.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|