Skip to content

shared-plugin pool: heal empty slots after auto-update swap#3

Open
dywongcloud wants to merge 1 commit into
AnEntrypoint:mainfrom
dywongcloud:gm-pool-refill
Open

shared-plugin pool: heal empty slots after auto-update swap#3
dywongcloud wants to merge 1 commit into
AnEntrypoint:mainfrom
dywongcloud:gm-pool-refill

Conversation

@dywongcloud

Copy link
Copy Markdown

The plugin auto-update idle swap (modules.remove + release_shared_plugin) emptied the whole shared pool with no recovery path: dispatch hard-errors plugin X not loaded on an empty slot; a re-registering project hit the 'not yet compiled' skip (module gone) or the any_instantiated is_loaded shortcut (partial pool reads as loaded); only killing the daemon healed it. Live-witnessed for hours as intermittent per-dispatch plugin gm not loaded where exactly 1 of N concurrent verbs succeeded.

  • load_plugin fills EVERY empty slot (try_lock; a busy slot is by definition instantiated)
  • is_loaded requires ALL slots for shared pools so registration re-heals partial pools
  • the swap recompiles + refills the pool immediately (refill_shared_plugin; the root is non-binding — dispatch_on re-roots per call)

Verified live: rebuilt runner installed locally; 4/4 concurrent verbs succeed where the prior daemon dropped 2 of 3.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WjfHAjYisCpP5Tc2DpHra8

The plugin auto-update idle swap (modules.remove + release_shared_plugin)
emptied the whole shared pool with no recovery path: dispatch hard-errors
'plugin X not loaded' on an empty slot; a re-registering project hit the
'not yet compiled' skip (module gone) or the any_instantiated is_loaded
shortcut (partial pool reads as loaded); only killing the daemon healed it.
Live-witnessed for hours as intermittent per-dispatch 'plugin gm not
loaded' where exactly 1 of N concurrent verbs succeeded.

- load_plugin fills EVERY empty slot (try_lock; busy slot = instantiated)
- is_loaded requires ALL slots for shared pools so registration re-heals
- the swap recompiles + refills the pool immediately (refill_shared_plugin;
  root is non-binding, dispatch_on re-roots per call)

Verified live: rebuilt runner installed locally; 4/4 concurrent verbs
succeed where the prior daemon dropped 2 of 3.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WjfHAjYisCpP5Tc2DpHra8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant