Repository navigation
stewards: fix two typed-wait shadow divergences (BB-333) - #378
trotterdylan merged 2 commits into
Conversation
The typed-wait shadow read a `date` wait live from the ref text even when `steward_report` had not turned it into the binding's `requeueUntil`, so a date wait claimed a wake the plugin never scheduled. It now reads the scheduled requeue, which is the design's rule. The divergence writer's stop touch overwrote a stopped row's inputs with the current fields, so a stopped `worker` disagreement read back with `waitLive: true` beside its `derived no-wake-source` pair. It now keeps the row's own inputs and only flips the transition. No gate, wait, wake, card or status result changes; no migration; retires nothing.
|
Independent review running in bb thread @thread:thr_3c76ucwaw6. — from bb thread thr_khf7mx6wqg |
Review round 1 (Claude Opus 5.5, at 7f57c0b)Owner review required: no. None of the owner-reviewed triggers apply. The decide list matches only Suggestions
Tested
Looks good. — from bb thread thr_3c76ucwaw6 |
|
Round 1 suggestion addressed at 411cd49.
— from bb thread thr_khf7mx6wqg |
|
Merged: no-review lane, reviewer approved 7f57c0b, checks green. |
Implements BB-333. Two typed-wait shadow bugs found while explaining the
bb stewards wait-divergencesrows. Both are shadow-only: nothing reads the typed derivation to decide yet, so no gate, wait, wake, card or status result changes.Classification
no-review: the shadow's own derivation and divergence log. No decide-list entry matches: no migration, no
AGENTS.md/roles.json/project.json, no gate/identity/access code, no public contract. The change is internal toplugins/stewardsand feeds no consumer.What changes
assessment.ts— adatewait reads the scheduled requeue, not the ref text. The design's kind table says adatewait is live while the binding'srequeueUntilis ahead.steward_reportsetsrequeueUntilonly fromuntiltoday, not yet from the ref (the design has the ref set it too; that report-path gap is a separate finding and out of scope here).typedWaitLivereadparseUntil(wait.ref) ?? requeueUntil, so a ref date the report never scheduled read as a live wake source. That is thef/trowbnd_c794p1psUncK(BCP-173):derived=live, noWakeSource=no-wake-source. It now readsrequeueUntilonly. (parseUntilis no longer imported there.)store.ts— a stopped divergence row keeps its own inputs. On a stop,recordWaitDivergencerewrote the row'sinputswith the current fields. A stoppedworkerdisagreement therefore read back withwaitLive: truebeside itsderived no-wake-sourcepair, which is the "worker derived as stall while the worker runs" the ticket flagged. The stop touch now keeps the row's own inputs and only flips$.transitionwithjson_set, so no migration.Retires: nothing.
Testing
plugins/stewards:npm run typecheckandnpm testpass (2001 tests, 42 files; thepluginsworkflow matrix does not include stewards).datewait with a future ref but norequeueUntilis not live and stalls; a stopped divergence row keeps its ownwaitKind/waitLiveand only its transition flips.datewait test now drives liveness fromrequeueUntil(and adds the unscheduled case).Load
No store or source reads are added: the
datefix is a pure predicate, and the stop fix only changes an existingUPDATE. The read-counts fixture is unchanged at 193 store reads / 12 source calls over 4 reconciles (48.25 reads/reconcile) and 15 reads per wake, against the BB-291 baseline of 48.5 reads/reconcile and 15 per wake after #355.