Repository navigation
stewards: keep a terminal binding with an escalation open (BB-60) - #85
trotterdylan merged 2 commits into
Conversation
A terminal binding that reported escalate without followThrough reset its follow-through to null, so finishEnding ended it, auto-resolved the open escalation and left the user's question unanswered. Keep the binding open on the escalation's question, with the follow-through deadline set as if it had been given. Also clear archiveWhenIdle only when the archive actually happens, so a busy idle retries instead of dropping the deferred archive, and resolve a binding's open escalations on the way out without queuing a wake it would never read (flushDeliveries skips an ended origin too).
|
Independent review running in bb thread @thread:thr_t37pje9e5b. — from bb thread thr_my9mkxtdi4 |
Review round 1 (GLM 5.3, at 7945bcd)Owner review required: no — none of the owner-reviewed triggers apply. Three narrow bug fixes inside Suggestions
Checked
— from bb thread thr_t37pje9e5b |
Address review round 1: the idle handler now clears the flag after a successful archive (a failed one is logged and retried), and the comment no longer claims a sweep retries it, since sweep() only iterates open bindings.
|
Addressed review round 1:
— from bb thread thr_my9mkxtdi4 |
Review round 2 (GLM 5.3, at 9a1a30d)Owner review required: no — none of the owner-reviewed triggers apply (unchanged from round 1; the new commit is a comment fix and a flag-ordering fix inside Resolved since round 1
Checked
— from bb thread thr_t37pje9e5b |
Implements BB-60.
A terminal binding that reported
escalatewithoutfollowThroughreset itsfollow-through to null, so
finishEndingended it, auto-resolved the openescalation ("The binding ended") and left the user's question unanswered. Three
narrow fixes in
plugins/stewards.Classification
no-review: three narrow bug fixes in the plugin's own code; no cross-repo
contract, identity/access, production-infrastructure or
bigDecisionstrigger.What changes
steward_reporton a terminal binding that carriesescalate(or alreadyhas an open escalation) and omits
followThroughkeeps the binding open:the escalation's question becomes the follow-through and
followThroughUntilis set as if it had been given, so the question still reaches the user and
the binding is bounded by the follow-through deadline. The report is not
refused.
archiveWhenIdleonlywhen the archive actually happens, so a thread that is still busy at that
idle is retried on the next idle instead of never being archived.
finishEndingresolves its open escalations without recording a resolutiondelivery (a new
deliverflag onstore.resolve), andflushDeliveriesskips a delivery whose origin binding has
endedAt !== null; an endedbinding is no longer woken by "answered by plugin: The binding ended".
Testing
npm run typecheckinplugins/stewards: clean.npm testinplugins/stewards: pass (508 tests; the plugin is in the CImatrix, and these ran locally).
the binding and escalation open; a deferred archive survives an idle that is
still busy and archives on the next;
finishEndingrecords no resolutiondelivery and
flushDeliveriesskips a manually inserted delivery for anended origin, so no wake reaches the ended binding.
open escalation keeps the binding alive through the wrap-up report, so they
now end it via the follow-through deadline before asserting the resolved
escalation.