Skip to content

poteto-mode: say where its playbooks are (2.5.3) - #72

Merged
chhoumann merged 5 commits into
mainfrom
fix/playbook-path-base
Nov 20, 2026
Merged

chhoumann merged 5 commits into
mainfrom
fix/playbook-path-base

Conversation

@chhoumann

@chhoumann chhoumann commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Why

A Codex agent following poteto-mode should open the playbook it matched on the first try. The Playbooks section says to open a playbook's steps at playbooks/<title>.md and names no base, while the head of the file gives bundled skills as ../<name>/SKILL.md from this file. A Codex agent that reads a playbook in one shell call with sibling skills gives the playbook that skills/ base too, as in cat <plugin>/skills/how/SKILL.md <plugin>/skills/playbooks/investigation.md. That read fails with No such file or directory, and the agent spends a turn finding skills/poteto-mode/playbooks/. @adryanev reported it and diagnosed it in #71.

What changed

  • One anchored substitution in tools/substitutions.json. The sentence now reads "open its steps at playbooks/<title>.md from this file (skills/poteto-mode/playbooks/<title>.md), with the title in kebab case." "From this file" is how the head of the file states its base, and the parenthetical is a suffix that holds in the plugin cache and in a repo checkout.
  • Re-anchored after Lauren's 0.15.43. This PR first anchored on "open its full steps at playbooks/<title>.md,". Lauren's pstack 0.15.43 (cursor/plugins 2f87c85) reworded that to "open its steps at playbooks/<title>.md, with the title in kebab case.", so the old rule matched nothing on main. The new rule anchors on the current sentence, which is the same at the pin 0b46ec3 and at cursor/plugins main as of aaeb0ea.
  • The forked SKILL.md carries the rule's text. tools/forks.json declares poteto-mode's SKILL.md a fork, and the sync keeps a fork's copy, so the copy needs the same words.
  • Release 2.5.3. VERSION, the CHANGES.md entry with the evidence below, the stamped manifests, and the README's two tag examples. The notices keep 0b46ec3, since this release syncs nothing.
  • Merged up to main. The branch merges main (2.5.2) and drops its stale 2.2.9 entry and stamps. Main's version history wins.

Evidence

  • poteto-mode: agents read playbooks from skills/playbooks, which does not exist #71's own logs. 16 failures from 2026-11-04 to 2026-11-08, across 15 sessions, all Codex shell reads, 13 on 2.2.1 and 3 on 2.2.8.
  • This Mac's Codex logs. From 2026-10-15 to 2026-11-08, 33 Codex sessions read a playbook from an installed t3-pstack 93 times. 6 of those reads used skills/playbooks/<title>.md, in 3 sessions, on 2.0.0-rc.5, rc.9, rc.15, rc.17, 2.1.0, and 2.2.0. 5 of the 6 ran on gpt-6.1-sol and 1 on gpt-6-astra, and 5 of the 6 read the playbook in the same call as a sibling skill. Each was followed by a read of the right path 5 to 29 seconds later. In each case Codex had handed the model the whole SKILL.md, Playbooks sentence included, a few seconds before, so a cut read does not explain it.
  • Claude Code. Its sessions on this Mac show no such read. Claude Code names a skill's base directory when it loads the skill.
  • Other relative paths. The playbooks name each other as playbooks/<title>.md, from poteto-mode's directory rather than their own, and Babysit names ../references/bugbot-triage.md. No session on this Mac shows a failed read of either kind, so this PR leaves them.

Proof

12 fresh Codex threads on T3 0.1.8-nightly.20261108.4367 tested this PR's first draft, whose suffix is the same, against 2.2.8 as the control. Each ran in its own throwaway git repository and was asked a question for the Investigation playbook. Three ran per arm on codex/gpt-6-astra and three on codex/gpt-6.1-sol, all at xhigh. The counts come from each thread's Codex rollout, not from its reply.

Arm codex/gpt-6-astra xhigh codex/gpt-6.1-sol xhigh
First draft 3 of 3 opened <checkout>/plugins/pstack/skills/poteto-mode/playbooks/investigation.md first try 3 of 3 first try, one in the same cat as why and unslop
2.2.8 control 3 of 3 first try 3 of 3 first try

The control did not reproduce the failure. That fits the logs' rate of 6 in 93, at which six runs see no failure about two times in three. So these runs show that the new words resolve to the right file, including in the batched read where the failures happened. They do not measure the rate drop, which would take hundreds of runs per arm. These runs were not repeated on 2.5.3's wording.

On this branch, deriving poteto-mode's SKILL.md from upstream at 0b46ec3 with the substitutions gives this line:

Match the task to a playbook and open its steps at `playbooks/<title>.md` from this file (`skills/poteto-mode/playbooks/<title>.md`), with the title in kebab case. Copy its steps into the todolist tool first. Large, cross-cutting, or unattended work, or a task no playbook fits, routes to the **figure-it-out** skill.

Diffed against the forked copy, the derived file shows only the four declared fork rules: the deploy-skill trigger, stopping an abandoned agent, the closed review gate, and the .audit/<task-slug>.todo.md fallback. That is the same diff as on main, with the new words on both sides.

Verification

On macOS 27.0:

  • bun tools/generate.mjs --check passes, with 14 generated files current.
  • GIT_CONFIG_GLOBAL=/dev/null bun test tests/ --timeout 30000 gives 545 pass, 56 skip, 0 fail.
  • T3_PSTACK_E2E=1 GIT_CONFIG_GLOBAL=/dev/null bun test tests/install-e2e.test.mjs --timeout 300000 passes 18 of 18 with Claude Code 2.1.329 and Codex 0.171.0.
  • node tools/validate-skills.mjs plugins/pstack/skills keeps every local link inside the skills tree.
  • bun tools/sync.mjs <component> 0b46ec3 --dry-run for pstack, cursor-team-kit, and thermos exits 0, and each report matches main's line for line, so there is no undeclared fork and no rule that matches nothing.
  • Neither hooks file changes.

Closes #71


Note

Low Risk
Documentation and substitution text only in poteto-mode guidance; no runtime, auth, or installer logic changes beyond version bumps.

Overview
Patch 2.5.3 fixes Codex agents opening the wrong playbook path when poteto-mode’s Playbooks line only gave a relative playbooks/<title>.md, which led batched shell reads to try non-existent skills/playbooks/… (#71).

The Playbooks instruction and a new tools/substitutions.json rule (re-anchored after upstream rewording) now state the path from this file and include the explicit suffix skills/poteto-mode/playbooks/<title>.md. Version stamps and README tag examples move to 2.5.3; CHANGES.md documents the failure mode, evidence, and verification. No upstream sync beyond existing pins.

Reviewed by Cursor Bugbot for commit c28b1f3. Bugbot is set up for automated code reviews on this repo. Configure here.

The Playbooks section said to open a playbook at `playbooks/<title>.md`
without a base, while the head of the file gives bundled skills as
`../<name>/SKILL.md` from this file. Codex agents that read a playbook in
one shell call with sibling skills gave it that skills/ base and opened
skills/playbooks/<title>.md, which does not exist (#71).

An anchored substitution now says the path is from this file and spells
out skills/poteto-mode/playbooks/<title>.md. poteto-mode's SKILL.md is a
declared fork, so its copy carries the substitution's text, and its own
lines against derived upstream are unchanged.
Main's version history wins, so the merge drops the branch's 2.2.9 entry
and stamps. Its rule anchored on "open its full steps at
`playbooks/<title>.md`,", which Lauren's pstack 0.15.43 reworded, so it
matched nothing on main and goes too. The next commit re-anchors it.
…rent sentence

poteto-mode's Playbooks section names `playbooks/<title>.md` with no base,
while bundled skills are `../<name>/SKILL.md` from this file. Codex agents
that read a playbook in one shell call with a sibling skill give it the
skills/ base and open skills/playbooks/<title>.md, which does not exist
(#71, by @adryanev).

The rule now anchors on the sentence Lauren's 0.15.43 wrote, "open its
steps at `playbooks/<title>.md`, with the title in kebab case.", and adds
"from this file (`skills/poteto-mode/playbooks/<title>.md`)". The forked
SKILL.md carries the same words, so derived upstream at 0b46ec3 differs
from it by the four declared fork rules alone, as on main.
poteto-mode says where its playbooks are (#71). README names v2.5.3.
The notices keep cursor/plugins 0b46ec3, since this release syncs nothing.
@chhoumann chhoumann changed the title poteto-mode: say where its playbooks are (2.2.9) poteto-mode: say where its playbooks are (2.5.3) Nov 20, 2026
@chhoumann
chhoumann merged commit d444bf1 into main Nov 20, 2026
12 checks passed
@chhoumann
chhoumann deleted the fix/playbook-path-base branch November 20, 2026 15:35
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.

poteto-mode: agents read playbooks from skills/playbooks, which does not exist

1 participant