Repository navigation
fix(swarm): resolve agy runtime compatibility and register global hook guard - #2
Merged
Merged
Conversation
…me paths Add required trigger always_on frontmatter to the pstack-models.md template and add Step 4b in setup-pstack to merge pstack-swarm-guard into global ~/.gemini/config/hooks.json so native swarm workers enforce capsules and tool guards while sharing plugin_data state. Update plugin.json suggestedPrompts, README.md, docs/guide, and setup recipes for /agy-pstack-next:<skill> CLI namespacing, agy 1.5.8+ and Antigravity 2.0 naming, schema-gated swarm channels, narrator swarm_view/view.json fallback in ketchup, and sidecar ANTIGRAVITY_LS_ADDRESS and ~/.gemini/config/config.json rules in make-bot-ui.
…untime Gate swarm channel directives on live tool schema support with main-board lead-<area> fallback, pass explicit resolved plugin SKILL.md and role capsule paths in worker briefs, update evolve trials to impl-eval-* with --mode auto and .agents/skills copies, resolve watch-pr via <pstack-skill-dir>, page read_board on cold pickup while preserving monitor and narrator on teardown, and canonicalize symlink parent directories in the statechart launcher on macOS.
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.
Why
Users running
agy-pstack-nextonagyCLI1.5.8+and nativeswarmneed worker role capsules,PreToolUsesafety guards,pstack-models.mdmodel routing, and sibling skill delegation to work reliably without hijacking ordinary non-swarm chats. SyntheticSwarm Workersubagent specs skip user-pluginhooks.jsonand<skills>bundles while named rules underrules/*.mddrop silently withouttriggerfrontmatter.What changed
hooks/guard.mjs,hooks.json, androles/*.mdwith three-state session classification (worker,coordinator,unmanaged),O(1)member-map.jsonandnon-worker-roots.jsoncaching, sharedplugin_data/agy-pstack-nextdeduplication,run_workflowblocking, canonical temp-root confinement, and worktree shell-escape checks.skills/setup-pstack/SKILL.mdto writealways_onYAML frontmatter in~/.gemini/config/rules/pstack-models.mdand mergepstack-swarm-guardinto global~/.gemini/config/hooks.jsonwhile preserving existing user hooks.skills/**,docs/guide/**,README.md,.antigravity-plugin/plugin.json, andskills/statechart/scripts/statechartwith schema-gatedswarmchannels, explicit workerSKILL.mdbrief paths,/agy-pstack-next:<skill>CLI namespacing, narratorswarm_view/view.jsondiscovery,--mode autoeval flags, and macOS/private/varsymlink canonicalization.Scope
11verifiedagyCLI and nativeswarmruntime compatibility gaps across hooks, setup, skills, scripts, and docs.agybinaryspecInheritsUserPluginsbehavior unchanged by routing worker hook enforcement through global~/.gemini/config/hooks.jsonand explicitSKILL.mdbrief paths.Blast Radius
Ordinary non-swarm
agyconversations now run asunmanagedwith zero injected coordinator prompts, zero subagent tool blocks, andO(1)hook overhead. Swarm coordinators and workers share<appDataDir>/plugin_data/agy-pstack-nextstate without duplicate capsule injections when both plugin and globalhooks.jsonentries are active.Verification
agy plugin validate --strict --jsonexited0with0findings across the repository, installed plugin, and globalhooks.jsonconfiguration.node --test hooks/guard.test.mjspassed15/15suites andnode --testpassed126/126tests inskills/statechart/scripts/test/cli.test.ts(193/193across all zero-dependencystatechartsuites).Swarm Workerverification (ro-verify-3) confirmedSessionStartroles/research.mdinjection,/tmpscratch allowance, andPreToolUsepath-escape denial under global~/.gemini/config/hooks.jsonwithout restartingagy.