Repository navigation
fix(swarm): harden inline Python confinement and align skills with agy 1.5.9 - #5
Merged
Merged
Conversation
…, reflection, and aliased FS imports
…te aliased FS imports and Path subclasses
…pped Path or FS receivers
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
Verify and align
agy-pstack-nextwith theagy 1.5.9native swarm runtime across hook confinement, plugin metadata, role capsules, and skills. Read-onlyro-*workers hit falsePreToolUsedenials on multi-argument inline Pythonstr.replacecalls, while.replaceand.renamechecks missed destination escapes, unboundPathand subclass calls, format-string interpolations, reflection dispatch, and wrapped module receivers.What changed
hooks/guard.mjsandhooks/guard.test.mjs. Allow multi-argumentstr.replaceon non-Pathand non-module receivers incheckInlinePythonFs, validate destination arguments onPath.renameandPath.replace, normalize comments, line continuations, and parenthesized member chains, tokenize nestedfandtformat-string interpolations inscanPythonTokensRange, propagatePathsubclasses and aliasedos,posix, andshutilimports to fixed point incollectPythonSymbolBindings, block reflection (getattr,vars,__dict__,methodcaller), and block container, conditional, boolean, lambda, and function-return wrappedPathor filesystem module escapes..antigravity-plugin/plugin.json,roles/*.md, andskills/**. Remove unsupportedlicenseandkeywordsfields from.antigravity-plugin/plugin.json, alignskills/pstack/SKILL.md,skills/pstack/topologies/hillclimb.md,roles/coordinator.md,roles/poteto-agent.md, androles/research.mdwithagy 1.5.9swarm(title,tasks,n, builtin skill nameswarm, and comma-separated model pool rules), check.system_generated/swarm/view.jsonand highest-numbered livenarrator-Nentries first inskills/ketchup/SKILL.md, and add/agy-pstack-next:<skill>trigger syntax across all 13skills/*/SKILL.mddescriptions.Scope
hooks/guard.mjs,hooks/guard.test.mjs,.antigravity-plugin/plugin.json,roles/*.md, andskills/**(19 files).~/.gemini/config/hooks.jsonand~/.gemini/config/rules/pstack-models.mdoutside the repository until/agy-pstack-next:setup-pstackis run on each host.Tradeoffs
Tokenizes inline Python expressions, format-string spans, and symbol bindings to fixed point instead of adding a regex exemption for
.replace(, because naive.replace(exemptions allow unboundPath.replace(Path('/tmp/src'), '/outside/dst')andf"{Path.replace(...)}"path escapes.Blast Radius
Affects
PreToolUseinline Python command checks inhooks/guard.mjsacrossro-*,impl-*,adv-*, andsicko-*swarm workers plus prompt and manifest metadata. Unmanaged non-swarm sessions and plain/swarmsessions remain unaffected.Verification
node --test hooks/guard.test.mjspassed29/29tests across10suites, and52adversarial and legitimate inline Python probes passed208/208evaluations across all4worker roles with0mismatches.agy plugin validate --strict --jsonexited0with0findings (13skills,1hook).npm --prefix skills/statechart/scripts testexited0(267passed,0failed,67TLC-jar tests skipped).