Skip to content

Remove tracked agent instruction files - #1252

Merged
poitee merged 1 commit into
mainfrom
chore/remove-tracked-agent-instructions
Oct 27, 2026
Merged

poitee merged 1 commit into
mainfrom
chore/remove-tracked-agent-instructions

Conversation

@poitee

@poitee poitee commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Agent skills and rules now come from the local tstack set, which isn't tracked. This PR removes the 31 tracked agent-instruction files, plus scripts/autopilot-pr-state.test.mjs, which only tested the removed autopilot helper.

CI depended on some of the removed files

Three CI proofs ran helpers inside the skill directories:

  • desktop-runtime.yml ran verify.py end to end and the test_launch.py ForceKillTest against the built pp-server.
  • desktop-native-macos.yml ran the same ForceKillTest.
  • Web CI's test:runtime ran control-print-partner.test.mjs.

Deleting them would have dropped those checks. Instead the helpers move out of the agent paths, and no check is removed or skipped:

  • .cursor/skills/verify-print-partner-rust/helpers/{verify.py,test_launch.py,test_verify_repo_root.py,health-runtime-shape.json} move to scripts/verify-rust-gateway/ with no content change. verify.py finds the repo root with git rev-parse.
  • .cursor/skills/verify-print-partner/helpers/{control-print-partner.mjs,control-print-partner.test.mjs,compose.verify.yml} move to scripts/verify-print-partner/. Only the repo-root and compose paths change.
  • The workflows, the native prefix in scripts/ci-path-filter.py and its test, and web/package.json point at the new paths. Job selection stays the same: a helper-only change still selects native and not rust. Web CI's old .cursor filter lines are removed because scripts/** already covers the new path.

Other fallout

  • .gitignore ignores all of .cursor/ again, and no longer re-allows .cursor/skills/. AGENTS.md stays ignored.
  • Dead links are dropped from README.md, docs/README.md (the Agent workflows section) and docs/development/building.md. A comment in plansList.ts that pointed at CONTEXT.md is reworded.
  • CHANGELOG.md, docs/audits/, docs/triage/, cursor-plugin/, docs/playbooks/ and rust/rules/ are unchanged.

No Linear ticket covers this chore.

Evidence

git diff --stat -M origin/main...HEAD: 24 deletions from the list plus 7 moves out of it (31 files), and scripts/autopilot-pr-state.test.mjs deleted.

 .agents/CONTEXT.md                                                          |   33 -
 .agents/skills/autopilot/SKILL.md                                           |   87 --
 .agents/skills/autopilot/agents/openai.yaml                                 |    4 -
 .agents/skills/autopilot/references/cursor-automation.md                    |   46 -
 .agents/skills/autopilot/references/printpartner-ci.md                      |   23 -
 .agents/skills/autopilot/scripts/fixtures/pr263-evidence-checks.json        |  210 ----
 .agents/skills/autopilot/scripts/pr-state-current-checks.test.mjs           | 1853 -----------------------------------
 .agents/skills/autopilot/scripts/pr-state.mjs                               | 1007 -------------------
 .agents/skills/verify-printpartner/README.md                                |    9 -
 .cursor/skills/verify-print-partner-rust/SKILL.md                           |  102 --
 .cursor/skills/verify-print-partner/SKILL.md                                |  265 -----
 .cursor/skills/verify-print-partner/agents/openai.yaml                      |    4 -
 .cursor/skills/verify-print-partner/features/README.md                      |   51 -
 .cursor/skills/verify-print-partner/features/checkoff.md                    |   42 -
 .cursor/skills/verify-print-partner/features/live-lan-walk.md               |   42 -
 .cursor/skills/verify-print-partner/features/plan.md                        |   50 -
 .cursor/skills/verify-print-partner/features/production.md                  |   43 -
 .cursor/skills/verify-print-partner/features/sources.md                     |   48 -
 .cursor/skills/verify-print-partner/features/theme.md                       |   34 -
 .github/workflows/desktop-native-macos.yml                                  |    2 +-
 .github/workflows/desktop-runtime.yml                                       |    8 +-
 .github/workflows/web-ci.yml                                                |    2 -
 .gitignore                                                                  |    4 +-
 README.md                                                                   |    2 +-
 docs/README.md                                                              |    9 -
 docs/agents/autopilot.md                                                    |   21 -
 docs/agents/domain.md                                                       |   51 -
 docs/agents/issue-tracker.md                                                |   45 -
 docs/agents/triage-labels.md                                                |   15 -
 docs/development/building.md                                                |    2 +-
 rust/scripts/AGENTS.md                                                      |    7 -
 scripts/autopilot-pr-state.test.mjs                                         |  454 ---------
 scripts/ci-path-filter.py                                                   |    2 +-
 scripts/test_ci_path_filter.py                                              |    8 +-
 .../helpers => scripts/verify-print-partner}/compose.verify.yml             |    2 +-
 .../helpers => scripts/verify-print-partner}/control-print-partner.mjs      |    7 +-
 .../helpers => scripts/verify-print-partner}/control-print-partner.test.mjs |    0
 .../helpers => scripts/verify-rust-gateway}/health-runtime-shape.json       |    0
 .../helpers => scripts/verify-rust-gateway}/test_launch.py                  |    0
 .../helpers => scripts/verify-rust-gateway}/test_verify_repo_root.py        |    0
 .../helpers => scripts/verify-rust-gateway}/verify.py                       |    0
 web/apps/web/src/lib/plansList.ts                                           |    2 +-
 web/package.json                                                            |    4 +-
 43 files changed, 20 insertions(+), 4580 deletions(-)

No references to the removed paths remain in CI or scripts:

$ git grep -nE "\.agents/|\.cursor/skills|docs/agents|rust/scripts/AGENTS|autopilot-pr-state|pr-state" -- .github scripts web/package.json justfile package.json; echo "exit=$?"
exit=1

Local runs at e06955b:

python3 -B -m unittest discover -s scripts -p 'test_*path_filter.py'           -> Ran 6 tests, OK
python3 -B -m unittest discover -s scripts/verify-rust-gateway -p test_verify_repo_root.py -> Ran 3 tests, OK
python3 -B -m unittest discover -s scripts/verify-rust-gateway -p test_launch.py -> Ran 36 tests, OK (skipped=1)
(cd web && npm run test:release)                                               -> 23 pass, 0 fail
node --test scripts/verify-print-partner/control-print-partner.test.mjs        -> 2 pass, 0 fail

CI on e06955b: 23 pass, 13 skipping. All 5 required checks pass: actionlint, zizmor, rust (linux), rust (windows), Lint Evidence block. The checks that run the moved helpers pass too: rust-verify (verify.py end to end), runtime (test_launch ForceKillTest) and web (control-print-partner test).

🤖 Generated with Claude Code

Agent skills and rules now live in the untracked tstack set. Delete the
.agents/ and .cursor/skills/ trees, docs/agents/, rust/scripts/AGENTS.md and
the autopilot pr-state test, and stop .gitignore from re-allowing
.cursor/skills/.

CI still runs three of the old skill helpers, so they move instead of going:
the Rust gateway verify.py, test_launch.py and their fixture move to
scripts/verify-rust-gateway/, and the web control-print-partner helper and
its test move to scripts/verify-print-partner/. Only their path references
change. Workflows, the native path filter and its test, and web/package.json
point at the new paths. Dead links in README.md, docs/README.md,
docs/development/building.md and one code comment are dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@poitee
poitee merged commit a75afa0 into main Oct 27, 2026
36 checks 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