Repository navigation
TL-11 support: silent follow-ups with owners, audit and job release - #39
Merged
Merged
Conversation
Part of #11 (A side; C owns the benchmark) and TL-05's deferred callback ownership. Additive only: new tables, reducers and views; existing reducer arguments and results are unchanged. - `openCheckinRound(roundKey, incidentId, householdId)` (coordinator): starts one round per household, due after the follow-up interval. The opener is the default callback owner. - `sweepFollowups` (scheduled, internal only): rechecks each open round; due with no reply since it opened -> round `silent` plus a `followup` with owner, due time and the household's last evidence. Overdue follow-ups escalate and keep their owner. - A verified reply (`ingestCheckin` for the household) closes its round and cancels the follow-up at once; the sweep repeats the check. - `claimFollowup(followupId, expectedVersion)` (coordinator), audited. - `setFollowupInterval(seconds)` (owner): demo knob; default 300 s. - `releaseJob(jobId, expectedVersion)` (coordinator): after delivery, frees the battery and driver; the job stays `delivered`. - Views: `coordinator_rounds`, `coordinator_followups`, `coordinator_followup_audit`. Proof: `npm run stdb:reset:local && npm run check:tl11`; expect `PASS: TL-11 follow-ups and release` (about 12 s). TL-01, TL-05, TL-06 and TL-09 still pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 8, 2026
SJAryan
added a commit
that referenced
this pull request
Nov 8, 2026
After delivery the drawer offers 'Release BAT-01 and Ana for the next household', calling A's releaseJob (#39) with the job's version. Once the battery and driver no longer hold the job it says they are free. Merged main for the TL-11 bindings. A confirmed delay report now gets its own report ID, reused only when retrying that same report, so a later report on the route is not treated as a duplicate. Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #11 (A side; C owns the benchmark) and TL-05's deferred callback ownership. Additive only: new tables, reducers and views; existing reducer arguments and results are unchanged.
openCheckinRound(roundKey, incidentId, householdId)(coordinator): starts one round per household, due after the follow-up interval. The opener is the default callback owner.sweepFollowups(scheduled, internal only): rechecks each open round; due with no reply since it opened -> roundsilentplus afollowupwith owner, due time and the household's last evidence. Overdue follow-ups escalate and keep their owner.ingestCheckinfor the household) closes its round and cancels the follow-up at once; the sweep repeats the check.claimFollowup(followupId, expectedVersion)(coordinator), audited.setFollowupInterval(seconds)(owner): demo knob; default 300 s.releaseJob(jobId, expectedVersion)(coordinator): after delivery, frees the battery and driver; the job staysdelivered.coordinator_rounds,coordinator_followups,coordinator_followup_audit.Proof:
npm run stdb:reset:local && npm run check:tl11; expectPASS: TL-11 follow-ups and release(about 12 s). TL-01, TL-05, TL-06 and TL-09 still pass.Status: live locally. On Maincloud, a publish that keeps data needs
spacetime call --server maincloud time-left-hackutd26 set_followup_interval 300once afterwards to start the sweep.Next: D shows the Silent lane and callback owner from these views; C points HouseholdCase.round at coordinator_rounds.
🤖 Generated with Claude Code