Conversation
…anielmiessler#2074) The late-ISA row fired once at call 25 and its only reset lived inside the run-closed branch, so a session that never registered a run, the exact condition the row exists to notice, was nudged once and then never. Adds LATE_ISA_REARM (3x the threshold, 75 calls): while no run is registered the row re-arms once that many calls have passed since its last fire, still subject to the existing per-type cooldown; a registered run clears the latch. State gains lateISAFiredAtCalls. Hook version 3.2.2 -> 3.3.0. Verified with a harness driving the hook 200 calls on a synthetic primary session with the cooldown lifted after each fire: fires at calls 25, 100, 175. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KdVkxUPGxFm91bsNDxyi5M
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.
Fixes #2074.
The problem
The late-ISA row fired once at call 25 and its only reset lived inside the run-closed branch. A session that never registers a run, the exact condition the row exists to notice, was nudged once and then never again, however long it ran.
The change
hooks/AlgorithmNudge.hook.ts3.2.2 → 3.3.0:LATE_ISA_REARM = 3 * LATE_ISA_THRESHOLD(75 calls): while no run is registered, the row re-arms once that many calls have passed since its last fire, still subject to the existing per-type cooldown, so it cannot become a naglateISAFiredAtCallsThis follows the reporter's stated direction: re-arm on a tool-call budget, and treat "no run ever registered" as a condition the row can revisit.
Verification
A harness drove the hook 200 calls on a synthetic primary session with the cooldown lifted after each fire. Fires at calls 25, 100 and 175, which is the threshold plus two re-arms.
bun build --no-bundle --target=bunpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01KdVkxUPGxFm91bsNDxyi5M