GeezerVison is showing github.com — fleet-queue: task_history foundation (Q1, Part of #14170), rebased on main by dezren39 · Pull Request #14700 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before: the Q1 task_history work sat on PR #14441, which had stalled since Nov 24 with merge conflicts against main, so Q2 to Q6 and Q8 of #14170 were all parked behind code that was never on main.
After: the same Q1 commits, with current main merged in, ready to land. Every lifecycle transition writes a task_history row in the same transaction as its event, /history-backfill fills history from existing events, and /history-since reads it.
The only conflict was the SCHEMA array length: main added 4 entries and Q1 added 3, so it is now 34 (counted entry by entry). No Q1 logic changed. This supersedes #14441, which will be closed once this merges.
How: merged origin/main into queue-q1-task-history (head aea7830973a), fixed the array length, and ran cargo test -p fleet-queue --features client,queue-broker --lib remotely through fleet queue dispatch.
Part of #14170
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Adds the task_history table (event_id UNIQUE, status/priority from-to,
actor, session, model marks, source) and two indexes; SCHEMA 27 -> 30.
event() writes the history row in the same BEGIN IMMEDIATE batch as the
events row for mapped lifecycle kinds; other kinds are unchanged.
verb_enqueue writes an enqueued event so the first transition is recorded.
Atomicity is the BEGIN IMMEDIATE batch pattern used by verb_reprioritize;
verified only by the fake harness until the remote run.
Drives enqueue, claim, park, wake, block, unblock, reprioritize and
complete through the real verbs on the fake pipeline harness and asserts
one history row per mapped event, to_status equal to the task's actual
status after each verb, and actor/session/model/priority on the rows.
…ow (#14170 Q1)
/history-backfill inserts one task_history row per mapped events row
without one (source='backfill', INSERT OR IGNORE on event_id) and
reports census, inserted and skipped. /history-since reads task_history
in id order, optionally per task and since a time. reprioritize writes
its history row in its existing BEGIN IMMEDIATE batch, gated on the
CAS update. Backfill and history-since tests added to the oracle module.
The first remote run on the real ref failed the oracle at enqueue
(packet must be a JSON object): enqueue takes a packet, not a task.
Use the packet shape from the enqueue tests and supply completion
evidence for the small_fix gate.
enqueue answers with the row envelope under "row", not "task".
The remote oracle caught the mapping: wake returns the task to the
queue (UPDATE status='queued'), it does not claim it. The oracle now
re-claims after wake and asserts the claimed row.
The small_fix completion gate requires result.disposition (checked_at,
source, issue, pulls, verdict); supply a merged_verified readback so
the scripted lifecycle reaches done.
coderabbitai
Bot
commented
Nov 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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 58 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:
fab2e774-3a8a-480e-8f87-f7d27a9e89d0
Commits
-
Reviewing files that changed from the base of the PR and between a9e6839 and 11bf68b.
Files selected for processing: 4
-
pkgs/fleet/crates/fleet-queue/src/turso_queue/claim.rs
pkgs/fleet/crates/fleet-queue/src/turso_queue/core.rs
pkgs/fleet/crates/fleet-queue/src/turso_queue/lifecycle.rs
pkgs/fleet/crates/fleet-queue/src/turso_queue/stacks_outbox.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|