refactor(agent): fold agentInterruptReasonOf into loop-private slot invariants
The public classifier existed to defend an exported reader against arbitrary signals, but its only production caller is the loop reading its own machine-private turn signal, where cancel() is the sole aborter and always writes one frozen canonical cause. Delete the export and its 15-line structural validation: settle() states the slot invariant with one cast, the boolean call sites ask signal.aborted directly, and the retry veto drops entirely because a requested window already implies a live signal (cancel() retires the window before aborting). The abort(reason) channel and first-wins semantics are unchanged; only the reader's publicness is gone, and with it the paranoia it required.
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write
|
||||
core.md: e6e289315be286f8651ca7e948f9efa08c2919aa
|
||||
core.zh.md: 3f904e4b2d9f4bbe98dc8a7a48674b3e12e0f3b3
|
||||
core.md: 3c4742253c884536ffde1df34ffc35d10369b92e
|
||||
core.zh.md: 23398beb9fad565648eeaee4c8ec2b386117728a
|
||||
|
||||
Reference in New Issue
Block a user