Repository navigation
Wake an idle gated session before attesting follow-up deliveries - #149
Merged
Merged
Conversation
kagent suspends an idle actor but keeps its Session READY, so a fresh GetSession has no running association and every ordinary follow-up to a gated Session failed with runtime_unattested once the actor idled. The shared readiness path now calls kagent's fenced ResumeSession activation, which wakes only the Session's current generation and actor UID, before its fresh GetSession and full observation. Both the pre-admission and pre-send checks use it. The activation reply is never an observation. An unknown outcome is reconciled once through GetSession and never replayed; while kagent still holds the operation nothing is sent. Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com>
An uncertain activation leaves kagent's READY/RESUME operation in place until a ResumeSession joins it. The next delivery waited in ensure_ready for NONE and timed out, so the supported reconciliation was unreachable. Readiness now makes its one activation call first when the observed Session holds READY/RESUME, then waits and attests a fresh GetSession. A readiness failure in the send guard happens before any turn bytes. Record it as a failed, not-sent delivery instead of an uncertain one. Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com>
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.
What changed
runtime_unattested. Before attesting, Mainloop's shared readiness path asks kagent to wake the session's existing paused actor (ResumeSession, needs Wake a READY session's quiesced actor on ResumeSession kagent#23). It then re-reads the session and runs the full frozen-identity check. A message goes only to the same generation and actor UID, never to a replacement.failed/ "not sent", notuncertain.Proven / not proven
ensure_ready. 1404 backend tests pass, andmake lintis clean. Independent review and re-review accepted the change.