Skip to content

fix(fleet-queue): bound the #14653 oracle's verb_checkpoint slice at the next top-level item - #16779

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/16774-oracle-slice
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/16774-oracle-slice

Conversation

@dezren39

@dezren39 dezren39 commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Closes #16774. Refs #14653, PR #16166.

Problem

lease_renewal_guidance_names_heartbeat_only_14653 extracts verb_checkpoint's body from turso_queue/lifecycle.rs by slicing to the next pub(crate) fn. Since the file reorganisation, verb_checkpoint is the last verb in the file — the slice ran to EOF and swept the #[cfg(test)] modules' lease_until SQL fixtures into the judged body, so the oracle fails on unmodified main (sole failure in run 46250286869's musl static leg, 982 passed / 1 failed, attributed by lane 0305-W-A). The guarded invariant is intact: the verb's own body writes progress/updated_at only.

Change (test-only, one file)

  • Bound the extraction at the earliest of the next pub(crate) fn or the first #[cfg(test)] module, so the oracle judges the production body only.
  • Assert the extracted slice contains the verb's UPDATE tasks SET progress = ? write, so it can never pass vacuously on an empty extraction.

Verification

Remote dispatch at exact head + an unmodified-main control with the same command (results posted on the PR). This fires the wake recorded on PR #16166: with the oracle repaired on main, that branch refreshes and re-dispatches.

{
  "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-29T12:56:44Z",
    "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": "aa5a503c40005914ca3676c21a1da732e7aeb3d7"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

…the next top-level item (#16774)

verb_checkpoint is now the last pub(crate) fn in lifecycle.rs; the
oracle sliced to the next verb, found none, and ran to EOF, sweeping
the #[cfg(test)] modules' lease_until fixtures into the judged body.
The test failed on unmodified main while the guarded invariant
(verb_checkpoint writes progress/updated_at only) is intact.

Bound the extraction at the earliest of the next verb or the first
#[cfg(test)] module, and assert the progress write is present so the
slice can never pass vacuously.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 17ff6b4b-966a-4978-9fed-41e577636815
Commits

Reviewing files that changed from the base of the PR and between 5b48d26 and 7f97820.

Files selected for processing: 1

  • pkgs/fleet/crates/fleet-queue/src/turso_queue.rs
  • 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

@dezren39

Copy link
Copy Markdown
Member Author

Verification dispatched (lane 0647-L09), same command both runs — cargo test -p fleet-queue --lib lease_renewal_guidance_names_heartbeat_only_14653 via fleet-command.yml:

Merge on branch PASS + CLEAN/MERGEABLE at this head.

@dezren39

Copy link
Copy Markdown
Member Author

Verification round 1 (runs 46264887230 / 46264892088) failed in the harness, not the code: the executor runs the command under bash -euo pipefail, and my command's leading apt-get install exited 100, killing the run in ~30ms before cargo started (target HEAD was confirmed correct: 7f97820). Re-dispatched without the apt prefix: branch run https://github.com/developing-today/fleet/actions/runs/46267895633 , unmodified-main control https://github.com/developing-today/fleet/actions/runs/46267901837 .

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.

fleet-queue: #14653 oracle test slices verb_checkpoint to EOF and fails on main (test-oracle bug, invariant intact)

1 participant