Skip to content

Feat(poteto-mode): merge upstream worker guarantees and forge-agnostic playbooks - #28

Merged
jtaroreh merged 2 commits into
mainfrom
feat/agystack-pr5-poteto-playbooks
Nov 23, 2026
Merged

jtaroreh merged 2 commits into
mainfrom
feat/agystack-pr5-poteto-playbooks

Conversation

@jtaroreh

Copy link
Copy Markdown
Owner

Why

Align poteto-agent, poteto-mode, six workflow playbooks, and bugbot-triage.md with upstream pstack standing guarantees while keeping Antigravity primitives, gh or origin pr defaults without required Graphite, and the 26,539-byte ceiling on agents/poteto-agent.md plus skills/poteto-mode/SKILL.md.

What changed

  • Folded upstream worker.md standing rules (operator primacy, kickoff bar discipline, head-only holds, <=40-line PR bodies, delegate ask_question ban) into agents/poteto-agent.md and skills/poteto-mode/SKILL.md.
  • Added first-message goal restatement, fresh-spawn versus send_message worker boundaries, updated Attack the Premise and Explain the Number triggers, and links to /maintain-formal-verification-skill and Mode 1 TLC /statechart in skills/poteto-mode/SKILL.md.
  • Updated autopilot-full.md, autopilot-stack.md, babysit.md, shipping.md, opening-a-pr.md, and bugbot-triage.md to default to gh or origin pr without requiring gt, preserving Antigravity schedule watchdogs (TimerCondition: "never"), /goal, /loop, invoke_subagent, send_message, and orchestrate.md.
  • Added pre-existing base-problem non-blocking rules (autopilot-full.md, babysit.md), selective trunk-impact merge checks (autopilot-full.md), refined git patch-id noise rules (shipping.md), ## What changed (opening-a-pr.md), and -b <pr-base-ref> (worktree-cleanup.md).

Scope

In scope across 9 markdown files stacked on feat/agystack-pr4-shared-skills. Out of scope are orchestrate.md, runtime scripts, hooks, and tests.

Tradeoffs

Folded worker.md directly into agents/poteto-agent.md and skills/poteto-mode/SKILL.md instead of adding a new file so OneHarness subagents inherit standing rules within the existing layout (25,267 combined bytes vs 26,539 limit).

Blast Radius

Markdown agent definitions, playbooks, and reference docs only. Existing tests in test_agent_definitions.py, test_antigravity_invariants.py, and test_skill_catalog.py validate tools, Cursor leaks, and skill indexing.

Verification

  • wc -c agents/poteto-agent.md skills/poteto-mode/SKILL.md outputs 25,267 bytes (2,200 + 23,067, limit 26,539).
  • grep -rnE "gt submit|gt merge|gt ls -s" skills/poteto-mode/ exited 1 with zero matches.
  • make lint (uv run ruff check . and bash -n) passed (shellcheck absent on PATH).
  • uv run pytest -v tests/ reported 412 passed, 3 skipped, 153 subtests passed (3 live GCS tests skip when AGYSTACK_LIVE_BUCKET is unset).
  • bun test in skills/poteto-mode/scripts and make typecheck reported 61 pass, 0 fail and clean tsc --noEmit --strict.
  • make test-statechart reported 229 pass, 0 fail, 0 skipped standalone.
  • python3 skills/setup-agystack/scripts/setup_runtime.py --doctor returned status: "OK", and bash scripts/package-plugin.sh --test verified agystack-0.17.0.zip (agy CLI absent on PATH).

@jtaroreh

Copy link
Copy Markdown
Owner Author

Verification Verdict: CLEAN at b7b5e1b03d3737ff4d727e8043d3df61f22f7a0c

  • Round 2 Fixes Verified: Removed invalid /loop 1h and standing /loop misrouting across autopilot-full.md, autopilot-stack.md, babysit.md, and shipping.md in favor of /goal + schedule (DurationSeconds=1800 / CronExpression), and changed -f body=@ to -F body=@ in babysit.md:26.
  • Unit & Gates: ruff check ., pytest -v tests/ (412 passed, 3 skipped, 153 subtests), bun test (61 passed), tsc --noEmit --strict, make test-statechart (229 passed standalone), setup_runtime.py --doctor (OK), and scripts/package-plugin.sh --test all exited 0.
  • Live (10/10 PASS): Agent & invariant tests (15 passed), catalog/rules/hooks tests (59 passed, 137 subtests), poteto-agent.md & poteto-mode/SKILL.md invariants, zero mandatory gt or invalid /loop 1h / -f body=@ (exit 1), shipping.md patch-id rule + autopilot-full.md base-problem rules, opening-a-pr.md What changed + worktree-cleanup.md -b, orchestrate.md untouched (0 diff), bun test + make test-statechart, and package-plugin.sh --test. Receipts in /tmp/swarm-pr5/ (audit-r2.log).
  • Perf (PASS): agents/poteto-agent.md (2,200 B) + skills/poteto-mode/SKILL.md (23,067 B) = 25,267 B vs trunk 24,539 B (+728 B, well within <= +2,000 B).
  • Audit & Interrogate (PASS): Strict 9-file scope verified; zero Cursor leaks; zero broken relative links; zero Bugbot/review comments.
  • Stack position: Appended as PR Feat(poteto-mode): merge upstream worker guarantees and forge-agnostic playbooks #28 above PR Feat(skills): merge upstream workflow rigor across seven shared skills #27 (feat/agystack-pr4-shared-skills).

@jtaroreh

Copy link
Copy Markdown
Owner Author

Independent verification review on PR #28 (feat/agystack-pr5-poteto-playbooks -> feat/agystack-pr4-shared-skills).

Verdict: PASS+NOTES
Verified head SHA: b7b5e1b03d3737ff4d727e8043d3df61f22f7a0c
Patch ID (git patch-id --stable vs origin/feat/agystack-pr4-shared-skills): ccc1cc669686b41f421ba9f6a2182374aa0b011e

Diff & Invariant Review (9 files)

  • agents/poteto-agent.md: inheritCustomizations: false, inheritMcp: true, model: inherit, send_message in tools and instructions, and standing delegate rules intact.
  • skills/poteto-mode/SKILL.md, playbooks/{autopilot-full,autopilot-stack,babysit,opening-a-pr,shipping,worktree-cleanup}.md, and references/bugbot-triage.md: forge-agnostic gh / origin pr flows (no hard gt requirement), schedule watchdogs (DurationSeconds / CronExpression, TimerCondition: "never"), send_message iteration + fresh spawns on phase shifts/retries, zero Cursor/legacy leakage, all relative links (../maintain-formal-verification-skill/SKILL.md, ../statechart/SKILL.md, references/antigravity-tools.md, playbook/reference paths) verified present, and gh / watch-pr / worktree-audit.sh flags verified against installed CLIs.
  • skills/poteto-mode/playbooks/orchestrate.md: untouched.

Verification Commands

  • ruff check .: passed (All checks passed!, exit 0).
  • pytest -v tests/: 412 passed, 3 skipped, 153 subtests passed on full re-run (3 live-GCS tests in tests/test_live_cloud_bidirectional.py skipped without live GCS config). Note: first full run hit a transient flake in tests/test_simulation_scenario.py::TestSimulationScenarioWorkflow::test_cli_execution_clean_exit (GCS sequence resolution failed), which passed consistently on targeted re-runs (8 passed under uv run pytest and pytest) and on the subsequent full suite run.
  • (cd skills/poteto-mode/scripts && bun run typecheck && bun test): passed after bun install --frozen-lockfile (tsc --noEmit --strict exit 0; 61 pass, 0 fail, 182 expect() calls across 4 files). Without installing node_modules in a fresh worktree, typecheck and watch-pr/cli.test.ts fail on missing bun-types / commander.
  • python3 skills/setup-agystack/scripts/setup_runtime.py --doctor: "status": "OK", platform.ok: true, roles_count: 22, skill_collisions.collision: false.
  • bash scripts/package-plugin.sh --test: passed (Package archive dry-run verified for agystack v0.17.0; agy CLI not on PATH, strict CLI validation skipped).
  • gh pr view 28: mergeable: MERGEABLE, mergeStateStatus: CLEAN, reviewDecision: "", statusCheckRollup: [].

Notes

@jtaroreh
jtaroreh force-pushed the feat/agystack-pr4-shared-skills branch from a8a4ce4 to 65beb1d Compare November 23, 2026 00:53
@jtaroreh
jtaroreh changed the base branch from feat/agystack-pr4-shared-skills to main November 23, 2026 00:54
@jtaroreh
jtaroreh force-pushed the feat/agystack-pr5-poteto-playbooks branch from b7b5e1b to 0aaa0d5 Compare November 23, 2026 00:55
@jtaroreh
jtaroreh merged commit 5428775 into main Nov 23, 2026
2 checks passed
@jtaroreh
jtaroreh deleted the feat/agystack-pr5-poteto-playbooks branch November 23, 2026 01:00
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