Skip to content

Feat(skills): merge upstream workflow rigor across seven shared skills - #27

Merged
jtaroreh merged 1 commit into
mainfrom
feat/agystack-pr4-shared-skills
Nov 23, 2026
Merged

jtaroreh merged 1 commit into
mainfrom
feat/agystack-pr4-shared-skills

Conversation

@jtaroreh

Copy link
Copy Markdown
Owner

Why

Upstream pstack tightened several shared workflow skills around empirical checks, schema-derived typing, convergence gates, read-only reporting, and commit-SHA verification. This change merges those improvements into agystack without breaking Antigravity invariants or exceeding the skill byte budget.

Scope

In scope across seven files, stacked on feat/agystack-pr3-empirical-verification:

  • skills/correct/SKILL.md: adds the two-occurrence mistake-class threshold (A class counts once it has happened twice), real past-mistake failure proof for new checks, line-level exception expiry rules, and an Antigravity rule-to-enforcer table tied to hooks.json.example and tests/.
  • skills/typescript-best-practices/SKILL.md and skills/typescript-best-practices/references/patterns.md: prefers existing runtime schema libraries (such as Zod z.infer) over hand-rolled guards, restricts branded type creation to verifying type guards (input is AgentId) instead of raw as casts, and removes return data as User; // OK, earned cast.
  • skills/arena/SKILL.md: adds the Phase E convergence-vs-divergence gate and cross-judge model-tier and family diversity via arena cross-judge pool in agystack-models.md, while preserving TimerCondition: "never", ZERO tool calls, send_message, {PARENT_CONVERSATION_ID}, and arena_synthesis.md.
  • skills/ketchup/SKILL.md: adds read-only turn enforcement, number verification against source facts, per-action-item schema, and the scaling word budget (~30 words per item), while preserving decisions.tsv, walkthrough.md, native carousel blocks, and generative_ui.
  • skills/cloud-swarm/SKILL.md and skills/poteto-mode/references/antigravity-tools.md: adds the commit SHA plus measurement-method echo gate and N-1 dropout and gap-accounting rules to cloud-swarm and the Local fan-out recipe in antigravity-tools.md, while preserving name: cloud-swarm, Cloud Run Active Liveness & Non-Blocking Monitoring (Cloud Run Swarms Only), zero-push GCS patch harvesting, Surface Precedence Hierarchy, permissioned-github, reactive wakeup rules, and the legacy tool table.

Out of scope: runtime Python or TypeScript code changes and unrelated skills or playbooks.

Tradeoffs

Kept existing Antigravity frontmatter fields (name and description without adding Cursor paths: metadata) so skill discovery matches sibling agystack workflow skills. Kept prose concise to stay under the 72,479-byte ceiling (69,038 bytes total, +11,559 bytes over trunk 57,479).

Blast Radius

Markdown skill guidance only. Zero runtime scripts, hooks, or tests were altered. test_antigravity_invariants.py and test_reactive_coordination_rules.py verify zero Cursor leakage and all Antigravity coordination contracts.

Verification

Ran every gate locally after the final edit on a8a4ce49aaa3a3a4400a655c8507fb5411fbc45e:

  • Byte budget (wc -c): 69,038 bytes total across the seven files (< 72,479 limit).
  • Cursor leak check (grep -rnE "pstack-models\.mdc|AskQuestion|claude-opus-5-5" skills/): zero leaks outside the allowed antigravity-tools.md:30 legacy table row.
  • uv run ruff check .: passed.
  • make lint: ruff and bash -n passed (shellcheck not installed on PATH).
  • make typecheck: tsc --project tsconfig.json --noEmit --strict passed.
  • uv run pytest -v tests/: 412 passed, 3 skipped, 153 subtests passed (3 live GCS bucket tests skip when AGYSTACK_LIVE_BUCKET is unset).
  • bun test in skills/poteto-mode/scripts: 61 pass, 0 fail across 4 files.
  • make test-statechart: 229 pass, 0 fail, 0 skipped.
  • python3 skills/setup-agystack/scripts/setup_runtime.py --doctor: status: "OK".
  • bash scripts/package-plugin.sh --test: verified agystack-0.17.0.zip archive (agy CLI absent on PATH, strict CLI validation skipped).

@jtaroreh

Copy link
Copy Markdown
Owner Author

Verification Verdict: CLEAN at a8a4ce49aaa3a3a4400a655c8507fb5411fbc45e

  • Unit & Gates: ruff check ., pytest -v tests/ (412 passed, 3 skipped, 153 subtests), bun test (61 passed), make test-statechart (229 passed), setup_runtime.py --doctor (OK), and scripts/package-plugin.sh --test all exited 0.
  • Live (10/10 PASS): test_antigravity_invariants.py + test_reactive_coordination_rules.py (16 passed), test_skill_catalog.py (10 passed), correct/SKILL.md, typescript-best-practices (zero earned cast), arena/SKILL.md, ketchup/SKILL.md, cloud-swarm + antigravity-tools.md, Cursor leak grep (only legacy mapping row antigravity-tools.md:30), make test-statechart + bun test, and package-plugin.sh --test. Receipts in /tmp/swarm-pr4/.
  • Perf (PASS): Combined 7-file byte size is 69,038 bytes vs trunk 57,479 bytes (+11,559 bytes, well within < 15 KB).
  • Lean Audit (PASS): Strict 7-file boundary verified; Antigravity invariants intact; zero Cursor leaks; zero Bugbot/review comments.
  • Stack position: Appended as PR Feat(skills): merge upstream workflow rigor across seven shared skills #27 above PR fix(verification): port watch-pr, worktree-audit, and skill rigor fixes #25 (feat/agystack-pr3-empirical-verification).

@jtaroreh

Copy link
Copy Markdown
Owner Author

Independent Verification Verdict: PASS+NOTES

  • PR: Feat(skills): merge upstream workflow rigor across seven shared skills #27 (feat/agystack-pr4-shared-skills -> feat/agystack-pr3-empirical-verification)
  • Verified Head SHA: a8a4ce49aaa3a3a4400a655c8507fb5411fbc45e
  • Diff Patch ID (git patch-id --stable): 7d2d1e6db8a0f8365943b3a286a2fe66cb4523ac
  • Changed Files: 7 markdown files (162 insertions(+), 101 deletions(-)):
    • skills/arena/SKILL.md
    • skills/cloud-swarm/SKILL.md
    • skills/correct/SKILL.md
    • skills/ketchup/SKILL.md
    • skills/poteto-mode/references/antigravity-tools.md
    • skills/typescript-best-practices/SKILL.md
    • skills/typescript-best-practices/references/patterns.md

Diff & Invariant Audit

  • Antigravity invariants preserved: cloud-swarm naming preserved (no /swarm collision), TimerCondition: "never" + ZERO tool calls yield + send_message reactive wakeup preserved in arena/SKILL.md and antigravity-tools.md, and carousel + generative_ui primary visual layer + Brain Artifact contracts preserved in ketchup/SKILL.md.
  • Cursor leakage: None observed across the diff or via test_zero_cursor_leakage_across_skills.
  • Internal links & path integrity: Verified all markdown and repo-relative paths across the 7 files resolve in this checkout (including [/bro](../bro/SKILL.md) -> skills/bro/SKILL.md, references/patterns.md, rules/AGENTS.md, hooks.json.example, agystack-models.md, hook scripts, and all test files referenced in correct/SKILL.md).

Commands Run & Observed Results

  • ruff check .: PASS (All checks passed!)
  • uv run pytest -v tests/: PASS (412 passed, 3 skipped, 153 subtests passed in 85.25s; the 3 skipped tests are tests/test_live_cloud_bidirectional.py requiring live GCS).
    • Note on initial bare pytest -v tests/ run: 1 transient failure in tests/test_simulation_scenario.py::TestSimulationScenarioWorkflow::test_cli_execution_clean_exit (Error delivering steering instruction: GCS sequence resolution failed, unrelated to this markdown-only PR; uv run pytest -v tests/test_simulation_scenario.py subsequently passed 8 passed and full uv run pytest -v tests/ passed 412 passed, 3 skipped, 153 subtests passed).
  • (cd skills/poteto-mode/scripts && bun install --frozen-lockfile && bun run typecheck && bun test): PASS (tsc --noEmit --strict exited 0; 61 pass, 0 fail, 182 expect() calls across 4 files).
    • Note: bun run typecheck requires bun install --frozen-lockfile first in a fresh worktree (matching .github/workflows/ci.yml) so bun-types is present.
  • python3 skills/setup-agystack/scripts/setup_runtime.py --doctor: PASS ("status": "OK", model_config 22 roles OK, skill_collisions false).
  • bash scripts/package-plugin.sh --test: PASS (Package archive dry-run verified for agystack v0.17.0; agy CLI not on PATH so strict CLI validation was skipped).
  • gh pr view 27: mergeable: MERGEABLE, mergeStateStatus: CLEAN, reviewDecision: "", statusCheckRollup: [] (no CI check runs attached to this PR targeting feat/agystack-pr3-empirical-verification).

@jtaroreh
jtaroreh force-pushed the feat/agystack-pr3-empirical-verification branch from b933bb3 to 0b96076 Compare November 23, 2026 00:51
@jtaroreh
jtaroreh changed the base branch from feat/agystack-pr3-empirical-verification to main November 23, 2026 00:53
Port upstream pstack improvements into skills/correct, skills/typescript-best-practices, skills/arena, skills/ketchup, skills/cloud-swarm, and skills/poteto-mode/references/antigravity-tools.md while keeping Antigravity runtime invariants, Brain Artifacts, reactive subagent coordination, and Cloud Run GCS patch harvesting intact.
@jtaroreh
jtaroreh force-pushed the feat/agystack-pr4-shared-skills branch from a8a4ce4 to 65beb1d Compare November 23, 2026 00:53
@jtaroreh
jtaroreh merged commit 9d3f370 into main Nov 23, 2026
2 checks passed
@jtaroreh
jtaroreh deleted the feat/agystack-pr4-shared-skills 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