Skip to content

feat(fleet-queue): expose complete terminal lane-share rows - #16689

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
oc-code-05/1657-20261129
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
oc-code-05/1657-20261129

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Summary

terminal tasks in date range
  LEFT JOIN repo_task_lane_ledger
  preserve missing/invalid lane metadata as explicit exclusions

Adds the /lane-share-rows broker read surface with inclusive, validated UTC date bounds. It enumerates done/cancelled/failed tasks from tasks first, so missing lane-ledger rows are returned as unrecorded instead of omitted. Cancelled and failed tasks are explicit exclusions.

Refs #1657

Evidence

  • Before: recent production cited on feat(fleet): daily lane-share measurement, publishing + below-floor alert (OpenCode-half step 4) #1657 reports 0.0–5.6% accounted because terminal tasks can be absent from the assignment ledger.
  • After: cargo test -p fleet-queue --features queue-broker lane_share_rows -- --nocapture is dispatched as Fleet run dezren39/fleet#46247644166; result pending while the PR is opened. The added SQLite-backed broker tests assert all terminal tasks in range are returned, missing ledger entries remain visible, non-terminal rows are excluded, and invalid/reversed date windows fail closed.

Merge Danger

Door: two-way

The endpoint is read-only and parameterized; it does not mutate task or ledger state.

Blast Radius: narrow

{
  "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-29T09:34:34Z",
    "session_id": "ses_e5dd9672312ffeBSOqwJ2ACYHj",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/oc-code-05-1657-20261129T092022Z-aa04bcae",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/oc-code-05-1657-20261129T092022Z-aa04bcae",
      "repo": "developing-today/code",
      "branch": "oc-code-05/1657-20261129",
      "sha": "ba56d74a49914c09d5f5601a6120f72c9578e420"
    },
    "auth_subject": "oc-code-01",
    "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: 3c3a9bd3-d5f1-49ec-8566-bba938402ba1

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