diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 78bae86..1e8d9f9 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ "name": "pstack", "source": "./plugins/pstack", "description": "Cursor pstack for T3 Code: poteto-mode, principles, and the verified agent workflows, adapted to T3 orchestration for Claude and Codex.", - "version": "0.17.5", + "version": "0.17.6", "author": { "name": "Lauren Tan (pstack), pmwoz (T3 Code port)" }, diff --git a/package.json b/package.json index 49f18ab..6361d8a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "t3-pstack", - "version": "0.17.5", + "version": "0.17.6", "private": true, "type": "module", "scripts": { diff --git a/plugins/pstack/.claude-plugin/plugin.json b/plugins/pstack/.claude-plugin/plugin.json index c9b3982..3614726 100644 --- a/plugins/pstack/.claude-plugin/plugin.json +++ b/plugins/pstack/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "pstack", "displayName": "pstack", - "version": "0.17.5", + "version": "0.17.6", "description": "Cursor pstack for T3 Code: poteto-mode, principles, and the verified agent workflows, adapted to T3 orchestration for Claude and Codex.", "author": { "name": "Lauren Tan (pstack), pmwoz (T3 Code port)" diff --git a/plugins/pstack/.codex-plugin/plugin.json b/plugins/pstack/.codex-plugin/plugin.json index 0bd7783..39389d8 100644 --- a/plugins/pstack/.codex-plugin/plugin.json +++ b/plugins/pstack/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "pstack", - "version": "0.17.5", + "version": "0.17.6", "description": "Cursor pstack for T3 Code: poteto-mode, principles, and the verified agent workflows, adapted to T3 orchestration for Claude and Codex.", "author": { "name": "Lauren Tan (pstack), pmwoz (T3 Code port)" diff --git a/plugins/pstack/skills/poteto-mode/references/t3-adapter.md b/plugins/pstack/skills/poteto-mode/references/t3-adapter.md index 8a4eacc..a079d74 100644 --- a/plugins/pstack/skills/poteto-mode/references/t3-adapter.md +++ b/plugins/pstack/skills/poteto-mode/references/t3-adapter.md @@ -93,7 +93,7 @@ T3 has no cloud agents. Every lane is a `delegate_task` child on this machine or - **Shipping verdicts.** A verifier posts its verdict with `pull_request_review` and `verdict: "comment"`. The `body` holds `PASS`, `PASS+NOTES`, or `FAIL` and the head SHA it ran, and each finding with a file and line goes in `comments`. It never sends `approve` or `request-changes`, because T3 agents act as the user's forge account and a verdict is not a forge approval. - **Landing (Shipping step 4).** Merge with `pull_request_merge`, `method: "squash"`, and `expectedHeadSha` set to the full head SHA the verdict covers, so T3 refuses a head that moved. When the run is layers of a native GitHub stack (`stack.kind` is `native` in `list_thread_pull_requests`), land it with one call on the ceiling with `stack: true`, in place of one merge per PR. T3 pins each lower layer to its current head, not to its verdict, so run step 3's check on every layer first. A derived stack merges one PR at a time. Arm auto-merge with `auto: true` under step 4's rule, never with `stack`. A result `state` of `open` means auto-merge or a merge queue holds the PR. Read each PR back with `pull_request_read`. A landed PR reads `merged` with trunk as `baseBranch`. - **Babysit threads and CI.** Read review threads with `pull_request_read` and `include: ["threads"]`, and page with `cursor` until `nextCursor` is null. Reply with `pull_request_respond` and the thread's `reviewThreadId`. Set `resolved: true` on a bot's thread once the reply cites the fixing commit or a disproof. Leave escalated threads and human reviewers' threads open. Read a failing check with `ci_logs`, and spend a flake's one fresh build as `ci_rerun` with that `check`. -- **Opening a PR.** `pull_request_create` is the run's PR tool. Call it with `draft: false`, and with `base` for a stacked layer. It pushes the calling thread's branch when the remote lacks commits, opens the PR, and links it to that thread. Without it, create the PR with the resolved forge (`gh` or `origin`), ready for review, never draft. The root links every PR, each stack layer included, with `link_pull_request` for one PR or `link_pull_requests` for several in one call. A child that opens a PR returns its URL and head SHA, and the root links it. +- **Opening a PR.** `pull_request_create` is the run's PR tool. Call it with `draft: false`, and with `base` for a stacked layer. Pass `private: true` only when the user asks for a private PR, which only a host with private PRs, such as TanStack Source, accepts. It pushes the calling thread's branch when the remote lacks commits, opens the PR, and links it to that thread. Without it, create the PR with the resolved forge (`gh` or `origin`), ready for review, never draft. The root links every PR, each stack layer included, with `link_pull_request` for one PR or `link_pull_requests` for several in one call. A child that opens a PR returns its URL and head SHA, and the root links it. - **Linking issues.** The root links every issue the run works on or files, such as the tracker issue in benny's reproduce automation, with `link_issue`, so T3 shows it beside the thread. A child that works on or files an issue returns its URL, and the root links it. - **A merged dependency PR can end the run.** T3 settles a thread at a turn end once every PR linked to it has merged. Settling ends the session and kills its background commands, such as a push through a pre-push gate. A run that merges a dependency PR in another repo before it opens its own PR is exposed. Open and link the run's own PR before the dependency PR merges. If the dependency merged first, unlink it before you end a turn that still waits on work. Call `unlink_pull_requests` with `states: ["merged"]`, then `unlink_pull_request` on any merged dependency missing from its `unlinked` list, because the call trusts T3's last known state. Link them again after the run's own PR is linked. - **Several repositories in one project.** When your prompt carries a `` block, the project covers every repository it lists, so a run can change a dependency in another repository from its own thread. Run Git inside the repository you change, and commit in each one separately. `pull_request_create` opens a PR only from the thread's root folder. Open a PR in another listed repository with the resolved forge, run inside that repository, and the root links it with `link_pull_request`. @@ -140,6 +140,7 @@ T3 has no cloud agents. Every lane is a `delegate_task` child on this machine or - **Cursor's built-in `/babysit` and `/autopilot` PR watchers.** Not present. The Babysit playbook is the only PR watcher. The Autopilot playbooks are pstack's own, not this built-in. - **Plan Mode.** T3 interaction mode `plan`. - **Automations** (`automations/benny`). A webhook or fixed-time `schedule_task`. Each run handles one event. A run that only reads and replies, such as benny's triage, is created with `bindToCurrentThread: false` and `freshSession: true`: the first run makes the automation's thread in a new worktree, and every later run posts there in a fresh session without earlier runs' context. A run that changes code or opens a PR, such as benny's reproduce automation, takes only `bindToCurrentThread: false`, so each run gets its own thread and a fresh worktree from the default branch. With neither set, a task in the creating thread's own project binds to that thread, and every run continues that conversation. A task for another project then gets a new thread per run. Get webhook signing secrets with `request_secret`. To test an automation, call `run_scheduled_task_now`. When its `lastRunStatus` is `failed`, `lastRunError` says why. Put the trigger's conditions in the webhook schedule's `filters`, so other requests never start a run. For benny, `body.event.channel` equals the source channel. A path segment ending in `[]` checks each element of an array. `{path: "body.issue.labels[].name", op: "equals", value: "