Skip to content

feat(plugin): sync global hooks, release finished locks, restore script tests, and trim kernel - #9

Merged
caelaxie merged 6 commits into
mainfrom
feat/runtime-polish-and-tests
Nov 16, 2026
Merged

caelaxie merged 6 commits into
mainfrom
feat/runtime-polish-and-tests

Conversation

@caelaxie

Copy link
Copy Markdown
Contributor

Why

Eliminate post-PR #8 upgrade drift, sticky coordinator locks after swarm completion, monitor and read_board turn overhead, unmanaged transcript re-parsing, duplicated coordinator prompt text, and missing script test suites across agy-pstack-next 2.1.0.

What changed

  • Added skills/setup-pstack/scripts/sync-hooks.mjs, coordinator SessionStart global hooks.json drift detection, finished-swarm coordinator lock release, unforkedRoot state caching, dual-hook PLUGIN_ROOT short-circuiting, and legacy cache cleanup in hooks/guard.mjs (0 regexes, 0 sandboxing) and bumped .antigravity-plugin/plugin.json to 2.1.0.
  • Switched skills/pstack/scripts/watch-pr CLI flag parsing to strict util.parseArgs, ported watch-pr.test.mjs, check-plan.mjs, check-plan.test.mjs, worktree-audit.sh, and decision-log.sh, and wired skills/statechart/scripts/bun.lock plus cached TLA2TOOLS in .github/workflows/ci.yml.
  • Trimmed skills/pstack/SKILL.md from 20,139 bytes to 8,961 bytes, added monitor fast-tier model defaults and seqs/$PWD worker rules, scoped goal preambles to new tasks, set disable-model-invocation on setup-pstack, reflect, and verify-gen, and restored image-generator visuals, fade warnings, and blind crucible judging.

Scope

  • Covers improvements 1, 2, 3, 4, 5, and 7 across hooks/, skills/, roles/, docs/guide/, README.md, .antigravity-plugin/plugin.json, and .github/workflows/ci.yml.
  • Intentionally leaves item 6 (RO_BLOCKED_GIT_SUBCOMMANDS, GH_MUTATING_ACTIONS, --delete refspecs, underscored MCP server names, and member-map.json eviction) unchanged per request.

Blast Radius

  • Updates lifecycle hook caching and deduplication for root and worker sessions, watch-pr CLI validation (--flag=false now exits 64), CI test execution, and skill frontmatter visibility for the three operator maintenance skills.

Verification

  • node --test hooks/guard.test.mjs skills/pstack/scripts/watch-pr.test.mjs skills/pstack/scripts/check-plan.test.mjs passed 85 of 85 tests across 17 suites with 0 regexes and 0 OS sandbox calls.
  • Clean HOME agy plugin validate --strict ., agy plugin install ., installed-copy strict validation, bash -n on both .sh scripts, sync-hooks.mjs --check probes, and a 296-link scan across 93 markdown files all exited 0.
  • bun install --frozen-lockfile && bun run test in skills/statechart/scripts passed 267 of 267 local tests (0 failures).

@caelaxie
caelaxie merged commit fe3d1b9 into main Nov 16, 2026
1 check passed
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