Skip to content

TL-11 support: silent follow-ups with owners, audit and job release - #39

Merged
gholapksh merged 1 commit into
mainfrom
a/tl-11-followups
Nov 8, 2026
Merged

gholapksh merged 1 commit into
mainfrom
a/tl-11-followups

Conversation

@gholapksh

Copy link
Copy Markdown
Collaborator

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.

Status: live locally. On Maincloud, a publish that keeps data needs spacetime call --server maincloud time-left-hackutd26 set_followup_interval 300 once 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

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]>
@gholapksh
gholapksh merged commit 849f85e into main 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]>
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.

1 participant