Repository navigation
fix(swarm): resolve agy 1.5.9 compatibility bugs, guard escapes, and swarm-capacity gaps - #3
Merged
Merged
Conversation
…echart tests Align role capsules, pstack topologies, sibling skills, guide docs, and statechart test suites with the agy 1.5.9 native swarm audit while preserving full swarm worker autonomy. - Require @<target> [done] completion prefixes across poteto-agent, research, comment-sicko, and topologies so the Swarm UI marks parked workers done, and standardize gate verdicts on PASS, PASS+NOTES, ISSUES, and BLOCKED. - Document staging neutral /tmp/<pack-id> plugin trees with PSTACK_PLUGIN_ROOT and PSTACK_CACHE_DIR in evolve trials, default RUN_ID to $$ in verify-gen and statechart scratch paths, honor active <user_rules> in interrogate and crucible without disk reads, and pass verbatim open_board lines on mid-flight coordinator replies. - Load fast-check dynamically in differential.test.ts and resolve cached render packages before npm install with os.tmpdir() fallback and clean offline skip in render.test.ts. Verified with node --test hooks/guard.test.mjs (15/15 passed), node --test skills/statechart/scripts/test/*.test.ts (10 files, 334 tests, 0 failures), agy plugin validate --strict --json . (0 findings), and 269/269 relative markdown links.
…n detection Resolve the shell-variable, evolve-isolation, verifier-sharding, and confinement findings from the agy 1.5.9 swarm audit without restricting worker swarm autonomy or codemod capacity. - Track active segment environments across shell redirects, expand HOME, defaulted shell variables, and safe runtime tokens in resolveShellTargetPath, and anchor canonicalTempRoots strictly to outer host env. - Delegate hook runs through PSTACK_PLUGIN_ROOT and isolate deduplication state via PSTACK_CACHE_DIR for evolve trials, strip numeric suffixes on *-verifier worker groups, and detect forkStep memory markers plus swarm.json anchors. - Confine mutating git, download, archive, find, and temp-script calls across ro-*, author, adversary, and sicko-* roles while preserving dynamic in-worktree codemod and fuzzer loops, /tmp harness expressions, and cross-worktree donor fetches.
caelaxie
commented
Nov 14, 2026
caelaxie
left a comment
Contributor
Author
There was a problem hiding this comment.
bar pass on 8a12063.
layout stays the sanctioned v2 tree (top-level skills/, .antigravity-plugin/, hooks, roles). no cursor-team-kit mention, no .cursor/skills. control-cli and control-ui still load. hook and skill edits stay on the 1.5.9 audit (shell vars, evolve staging, numbered *-verifier, confinement, @target [done], open_board, statechart test hygiene). dropping swarm-tool coordinator promotion is tested: spontaneous swarm roots stay unmanaged.
ci run 8 is green on this head with agy 1.5.9: validate, agy plugin install ., list shows 13 skills including control-cli and control-ui plus hook pstack-swarm-guard, guard tests 21/21, statechart 334 tests 0 fail. no issue to link.
squash-merging.
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
Make
agy-pstack-nextfully compatible withagy1.5.9native swarm while keeping every workflow swarm-centered and preserving full worker autonomy. Liveagy1.5.9audits uncovered shell-variable false denials oncontrol-cli,evolvehook-isolation collisions when globalhooks.jsonis active, sharded*-verifiermisclassification, shell and temp-script confinement escapes inhooks/guard.mjs, missing[done]completion prefixes in role capsules, and brittle optional dependencies instatecharttests.What changed
hooks/guard.mjsandhooks/guard.test.mjs. Track scoped per-segment shell environments across subshells, pipelines, short-circuits, and loops incollectInvocationsandresolveShellTargetPath, delegate staged trial packs viaPSTACK_PLUGIN_ROOTandPSTACK_CACHE_DIR, strip numeric suffixes on*-verifiergroups inclassifyWorkerMember, detectforkStepmarkers andswarm.jsonanchors, and enforce role confinement acrossgit, archive, download,find, preload flags, and/tmpscripts while preserving dynamic codemod or fuzzer loops,/tmpPlaywright and PTY harnesses, and cross-worktreegit fetchimports.roles/*.md,skills/**, anddocs/guide/07-overnight.md. Require@<target> [done]completion prefixes and unifiedPASS,PASS+NOTES,ISSUES, andBLOCKEDverdicts across capsules and topologies, documentPSTACK_PLUGIN_ROOTandPSTACK_CACHE_DIRstaging inskills/pstack/topologies/evolve.md, defaultRUN_IDto$$inverify-genandstatechart, honoralways_on<user_rules>without disk reads, and pass verbatimopen_boardlines on mid-flight coordinator replies while keeping native swarm tools (swarm,post_message,read_board,swarm_wait,schedule, andmanage_task) unrestricted across all roles.skills/statechart/scripts/test/{differential,render}.test.ts. Resolvefast-checkdynamically inside property tests and check cached render packages withos.tmpdir()fallback and clean offline skip before runningnpm install.Scope
hooks/guard.mjs,hooks/guard.test.mjs, all fourroles/*.mdcapsules,pstacktopologies, siblingSKILL.mdguides,docs/guide/07-overnight.md, andstatecharttest hygiene.~/.gemini/config/*files untouched in user home directories until operators pull and sync the updated plugin.Blast Radius
Affects
SessionStart,PreInvocation, andPreToolUsehook decisions inhooks/guard.mjsplus prompt instructions injected into managed swarm coordinators and workers. Non-swarm conversations remainunmanagedand pass through untouched.Verification
agy plugin validate --strict --json .exited0with0findings (13skills,1hook),269/269relative markdown links resolved across92.mdfiles, androles/*.mdpassed zero-colon and zero-dash checks.node --test hooks/guard.test.mjspassed21/21suites (9top-level groups) with0hostplugin_datamutations, plus239/239independent sandbox probes across all confinement, shell-variable,forkStep,evolvedelegation, and swarm-capacity paths.node --test skills/statechart/scripts/test/*.test.tsexited0across all10files (334tests,0failures), including standalonedifferential.test.tswithoutfast-checkand offline unwritable-cacherender.test.ts.