Skip to content

fix(fleet-queue): bound the #14653 oracle slice at the trailing test modules - #16782

Closed
dezren39 wants to merge 1 commit into
mainfrom
xaltha/16777-oracle-slice
Closed

dezren39 wants to merge 1 commit into
mainfrom
xaltha/16777-oracle-slice

Conversation

@dezren39

@dezren39 dezren39 commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Closes #16777

Defect

The #14653 oracle in turso_queue.rs (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, falling back to EOF. verb_checkpoint is now the last pub(crate) fn in lifecycle.rs (line 2406), so the slice ran to EOF and swept the trailing #[cfg(test)] modules' lease_until fixtures (lifecycle.rs:2728, 2842, 3415) into the absence assertion — failing the test on unmodified main (sole failure in PR #16166's verification run 46250286869, 982 passed / 1 failed).

The guarded invariant is intact: verb_checkpoint's own body writes only progress/updated_at (verified firsthand). Test-oracle bug only; no behavior change.

Fix

End the slice at the next verb or the first trailing #[cfg(test)] module, whichever comes first. The slice still covers verb_checkpoint's entire body, so the oracle still fails if the verb itself gains a lease_until write (negative control dispatched separately).

Sibling slice sites in the same file (verb_enqueue / claimed_by oracles) use presence assertions against non-last verbs and are not affected; left untouched.

Unblocks

PR #16166's recorded wake (refresh + re-verify + merge) once this lands on main.

Verification: remote dispatch at exact head — cargo test -p fleet-queue --lib --features queue-broker (targeted oracle + full lib suite); results posted on this PR.

{
  "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:58:47Z",
    "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.

…modules (#16777)

verb_checkpoint is now the last pub(crate) fn in lifecycle.rs, so the
oracle's slice to the next verb ran to EOF and swept the #[cfg(test)]
fixtures' lease_until mentions into the absence check, failing the
test on unmodified main. End the slice at the next verb or the first
trailing #[cfg(test)] module, whichever comes first; the guarded
invariant (verb_checkpoint writes progress/updated_at only) is
unchanged and still fully covered by the slice.
@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 54 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: f607161f-3947-4afb-b9d4-8ff2dee705c0
Commits

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

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

@developing-today-fleet

Copy link
Copy Markdown
Contributor

Shepherd note (lane 0652-C, bravo SUSTAIN landings): this PR is a duplicate of PR #16779, which landed first and is the superset fix — same hunk in turso_queue.rs bounding the #14653 oracle slice at the first #[cfg(test)] module, plus a non-vacuity assertion (extracted slice must contain verb_checkpoint's UPDATE tasks SET progress = ? write) that this PR lacks. #16779 MERGED 2026-11-29T13:12:23Z, merge commit 083cb2a; its issue #16774 is CLOSED. The defect this PR's #16777 reports is therefore fixed on main. Recorded park: wake = author closes this PR and #16777 as superseded by #16779/#16774. Verified firsthand against main's lifecycle.rs: verb_checkpoint is the last pub(crate) fn, the bounded slice contains the progress write and no lease_until, the old EOF slice did contain lease_until. Key: 0652-C

@developing-today-fleet

Copy link
Copy Markdown
Contributor

Lane 0707-F — closing as duplicate (executing lane 0652-C's recorded wake). This PR is a duplicate of PR #16779, which landed first and is the superset fix: same hunk in pkgs/fleet/crates/fleet-queue/src/turso_queue.rs bounding the #14653 oracle slice at the first #[cfg(test)] module, plus a non-vacuity assertion this PR lacks. PR #16779 MERGED 2026-11-29T13:12:23Z, merge commit 083cb2ab7ea65c5e5eec07c5851d656bd18aad77; its issue #16774 is CLOSED, and this PR's issue #16777 is now closed as superseded with the same evidence (double-verified by this lane via two independent gh reads). No code from this branch is needed on main.

Key: 0707-F

@dezren39
dezren39 deleted the xaltha/16777-oracle-slice branch November 29, 2026 13:49
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 slices lifecycle.rs to EOF — verb_checkpoint is now the last pub(crate) fn, so the test fails on main

1 participant