Repository navigation
sweep: the stall ladder spares a seat waiting on a human and a stale stamp ends nothing; #59 re-land confirmed; #60 reviewed (7.183.0) - #245
Merged
Conversation
…board-answer (dp#60 review) PR #158 (dp#60) merged without review. Its review (reviewer-medium on the merge's first-parent range, 2026-10-18) found that _liveness reads every status outside working/blocked/idle/error as dead, which at the time took the lease from a worker parked with `sminos mark awaiting-human`. `mark` and its judgment statuses left in 7.125.0 (#185), so nothing writes that status now and no live run can be affected; what remains is board-answer.sh still accepting it. Logged as row 33 rather than fixed. The review's other finding, the merge shipping under its first parent's version, was superseded long ago.
… stale hand-off stamp ends nothing (dp#58) (7.183.0) Two defects PR #151's review left live, both on main. A SEAT WAITING ON A HUMAN READ AS A DEAD TURN. sminos renders the last assistant message that carries text and APPENDS the pending-AskUserQuestion or harness-prompt marker after it, and maps an ended-blocked turn to status idle. A worker woken after a 429 whose next turn stopped at a prompt before writing a word therefore rendered as the 429 then the marker; _stall_step matched the first line, nudged (interrupting the very call the human is asked about) and charged a rung — the case dp#58's Shape names as one to leave alone. Either marker, line-anchored anywhere in the turn, is now a `human` verdict decided before the lock: nothing is marked, cleared or charged, so a standing ladder neither advances nor resets while the seat waits. The _stall_reply comment that claimed sminos already kept these from reading as errors is corrected, and the suite pins both marker openings at sminos's source so a rewording there fails a test instead of reopening this. A STALE HAND-OFF STAMP ENDED A WORKING RUN. phase_stall reads `idle` outside the registry lock and _stall_step re-checked only run_id under it, so a wake landing in between got a rung charged or the hand-off stamped on it. And phase_renew's arm ended the run on the stamp alone, with no sync and no idle re-check — since the hand-off ends the run and retires the meta, a worker woken after its stamp lost its run mid-turn. The same arm also ended a worker that had answered as itself and gone idle again, because phase_renew runs before phase 1b can clear the stamp. Now _stall_step re-reads status under the lock (`busy`: nothing written), phase_renew syncs first (the liveness call, which promotes a natively woken seat) and its arm asks _handoff_due: a gone session hands off as before; otherwise the seat must read idle and its turn goes back through _stall_step — `spent` hands off, `clear` keeps the run and clears the ladder and the ticket's cycles as phase 1b would, and `human`, `busy` or an unreadable turn keep it for this tick. Drills (test-sweep-stall.sh): u-askq, u-hprompt and u-midladder for the markers; u-gap, a wake in the window between the candidate read and the step; u-revived, u-recovered and u-waiting for the arm. u-endfail's fixture gains the turn its stamp describes, since the arm now reads one. Against main's _sweep_api.sh, 17 of the 20 new behavioural assertions fail (6 of 7, 2 of 3, 9 of 10; the rest show each drill reaches its shape) and no existing one does. Suite: 133 ok, PASS.
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.
Board tickets #58, #59 and #60, decided by the owner on 2026-10-18.
#59: the PR #153 re-land is complete. Each of the eight commits on
origin/qa/59-review-wave-1-fixes(heada114651f) is on main through #242's mergedc29ec69. Each has exactly one main commit carrying itscherry picked fromtrailer, with an identicalgit patch-id --stable. No commit since has touched_sweep_api.shortest-sweep-resume.sh.e356965cindex read551ac760bc770fd3no follow-tagsb0d1bf4216d92eabprocess-group deadline23a951df67bd53a9re-filled seatc2151acdda7074cfdetached HEADc06d3e96eb7c4fefno base ref6a8cbc6895ffa8a1second reclaim469ab63ba114651fpinned reseteeda4a1f#58: two defects PR #151's review left live, both still on main (
fb6b08fd,_sweep_api.shandtest-sweep-stall.sh).idle. So a worker woken after a 429, whose next turn stopped at a prompt, rendered as the 429 followed by the marker. The tick nudged it, which interrupts the call the human is being asked about, and charged a rung. Either marker anywhere in the turn is now ahumanverdict that marks, clears and charges nothing. The suite also pins both marker openings at sminos's source.phase_stallreadidleoutside the registry lock, and_stall_stepre-checked onlyrun_idunder it.phase_renew's hand-off arm ended the run on the stamp alone, with no sync and no idle re-check. That took the run from a worker woken after its stamp. It also took it from one that had answered as itself and gone idle again, becausephase_renewruns before phase 1b can clear the stamp._stall_stepre-reads the status under the lock.phase_renewsyncs first._handoff_due) re-decides an idle seat's turn through_stall_step:spenthands off,clearkeeps the run and clears the ladder, andhuman,busyor an unreadable turn keep the run for this tick. A session the harness no longer has is handed off as before.u-askq,u-hprompt,u-midladder,u-gap,u-revived,u-recovered,u-waiting): against main's script, 17 of the 20 new behavioural assertions fail. The other three only show each drill reaches its shape, and no existing assertion fails.u-endfailgains the turn its stamp describes, because the arm now reads one.#60: review of PR #158, which merged without one. I ran reviewer-medium on the merge's first-parent range (
74a981c0^1..74a981c0):d3bc0728, TECH-DEBT row 33):_livenessreads every status outside working/blocked/idle/error as dead. When api tick: a renew learns from a refusal instead of repeating it #158 merged, that took the lease from a worker parked withsminos mark awaiting-human.markand its statuses left in 7.125.0 (sminos: a family chat per host; say/chat, the reach rule, retire --cascade; board verbs retired (7.125.0) #185), so nothing writes that status now, and any old record's run was reclaimed long ago. What remains is thatboard-answer.shstill accepts the status.Verification
ci-gateatfb6b08fd: GREEN, https://github.com/SSFSKIM/doperpowers/actions/runs/39157000694 (repo-checks, shell-lint, claude-code, issue-tracker, board-api).test-sweep-stall.sh: PASS, 133 ok. Lint on both shell files is clean.Left open: the review notes that a native wake can still land after the sync, or after
_stall_stepreleases its lock, and race a nudge or a run-end. The change narrows that window; closing it would need a protocol between sminos and the tick.Version 7.183.0.