You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Repository navigation
Commit ffcc52a
Browse filesBrowse the repository at this point in the historyBrowse files
cortexkit#2 (BLOCK, was a dead counter): the Pi grounding gate incremented toolCallCount
on a "tool_result_end" event that DOES NOT EXIST in Pi's vocabulary (confirmed
against Pi source via the PI peer — the real tool event is tool_execution_end).
The counter never fired, so every Pi refresh-primers answer was silently rejected
as closed-book. Replaced it with countToolCalls(), which sums "toolCall" content
parts across assistant message_end turns (role-filtered to assistant, counted on
message_end not message_update), reading agent_end's authoritative array when
present else the accumulated stream — robust to the tool-event name entirely.
cortexkit#1 (BLOCK, unanimous): the config-location migration lock used an Atomics.wait
busy-wait that could block plugin init up to ~5s under multi-instance contention
(and Atomics.wait can throw on the Node main thread). Migration is not
correctness-critical per run (loaders read-legacy-on-conflict when the shared
base is absent), so the lock now NEVER blocks init: a live competing holder
returns null immediately (skip this run, retry next init), and only a stale
(crashed-holder) lock is reclaimed in a single one-shot retry. No busy-wait, no
synchronous sleep. +live-holder no-block test.
cortexkit#7 (fast-follow): every command path ends in throwSentinel() (the 204 that
suppresses the log leak and stops the command reaching the LLM). A sendNotification
throw before it would skip the sentinel, forwarding the raw command to the model
plus logging an error. Wrapped sendNotification once at handler construction so a
delivery failure is logged and swallowed, never preempting the sentinel (covers
the handler and the standalone executeAugmentation/executeDreaming via the shared
deps ref).
Gate: plugin tsc clean, migrate-config-location 11/0, command-handler 20/0, Pi
subagent-runner 42/0, all lint clean.
Co-authored-by: Alfonso [Magic Context] <[email protected]>
0 commit comments