Skip to content

feat(fleet-queue): lane-share verb publishing the lane-share.json document (#1657) - #16816

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/1657-lane-share-verb
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/1657-lane-share-verb

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Refs #1657 — the next independent slice after the pure tally (PR #14584) and the broker join (PR #16689), both merged.

What this adds:

  • fleet queue lane-share [--from <date>] [--through <date>] [--days <n>] [--out <path>]: calls the broker's /lane-share-rows for an inclusive range (default --days 8 ending today UTC), maps the rows into the pure tally, and prints the lane-share.json document. --out also writes it to a file — the daily producer's publish step.
  • lane_share::ledger_row_from_broker + lane_share::report_json in fleet-queue: the document carries per-day tallies fleet-wide and per queue (assignments by lane, fallbacks by reason, exclusions by reason — every tally reconciles), the rolling 7-day executed share, the below-floor alert fire dates, and the latest day's rolling share as the headline.
  • Verb registered everywhere its siblings are: client dispatch, TOP_USAGE + per-verb usage, fleet-registry subcommand inventory, docs/verbs.md, and the fleet book (builtins list + a queue-lifecycle section).

Tests (oracle-named, in lane_share.rs):

  • lane_share_broker_rows_map_without_dropping_rows — broker-shaped rows (executed opencode/direct, terminal-cancelled exclusion, unrecorded, unknown-lane) all accounted; tally reconciles.
  • lane_share_report_publishes_days_rolling_and_alert — hand-computed rolling shares (4/6 above floor, 4/10 below), one-day streak does not fire, second consecutive below-floor day fires exactly once.

Verification (fleet-command, developing-today/fleet):

  • Run 46265033702: cargo test -p fleet-queue lane_share — 9 passed / 0 failed (LIB_EXIT=0); cargo test -p fleet-registry — green (REGISTRY_EXIT=0).
  • The client-feature usage-parity tests could not execute in the executor: its image has no OpenSSL dev files, so the client build dies in openssl-sys before compiling (runs 46264146152, 46265033702 — an environment gap, tracked by the executor issues, not a code failure). A retry with nix-provided openssl.dev is run 46268345889, queued behind today's executor jam at the time of writing; its result will be added here when it lands. The verb's TOP_USAGE line and usage synopsis were written to the exact flag-parity the parity test enforces (same shape as staleness / manual-only-update).

Remaining on #1657 after this: the daily producer wiring that calls this verb (the goal-workspace lane-share.py lineage / monitor step) and the readout + stewardship surfacing — separate slices.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T14:06:52Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "ac3f377b7f752f50918f491d7443b79e95b5dc34"
    },
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 598486e9-fb79-42b7-a7a6-db3c5ff62651

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants