Skip to content

Adopt the PR and CI tools in the adapter - #94

Merged
pmwoz merged 1 commit into
mainfrom
t3/adopt-pr-ci-tools
Nov 20, 2026
Merged

pmwoz merged 1 commit into
mainfrom
t3/adopt-pr-ci-tools

Conversation

@pmwoz

@pmwoz pmwoz commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Adopts the five opportunities listed in #93 in t3-adapter.md, Pull requests section, and bumps the plugin to 0.17.2. No upstream file changes, so drift.json is untouched.

What changed

  • PR tools. pull_request_update has no base parameter, so Shipping's retarget to trunk stays on gh pr edit --base or origin pr edit --base.
  • Shipping verdicts (O4). A verifier posts PASS, PASS+NOTES, or FAIL with pull_request_review and verdict: "comment", with findings as line comments. It never approves or requests changes, because T3 agents act as the user's forge account.
  • Landing, Shipping step 4 (O1, O2). Merges use pull_request_merge with method: "squash" and the full expectedHeadSha the verdict covers. A run on a native GitHub stack lands in one call on the ceiling with stack: true. T3 pins lower layers to their current heads, not to their verdicts, so step 3's check runs on every layer first. A derived stack merges one PR at a time, because T3 refuses stack there. Auto-merge is auto: true under step 4's rule, never with stack. A result state of open means queued, and pull_request_read confirms the landing.
  • Babysit threads and CI (O3, O5). Threads are read with pull_request_read conversation and answered with pull_request_respond. Only a bot's thread is resolved, and only once the reply cites the fixing commit or a disproof. Failing checks are read with ci_logs, and a flake's one fresh build is ci_rerun on that check.

O1 in #93 named autopilot-stack too. That playbook never merges, so only Shipping uses stack: true.

Facts taken from T3 at 59651c1: the merge handler's stackMergeScope (rejects auto, requires a host stack, pins lower layers to host heads) and docs/user/source-control.md (GitHub stacks).

Checks

bun run check, bun test tools (40 pass), and bun run typecheck pass.

@pmwoz
pmwoz merged commit 3e62dbb into main Nov 20, 2026
1 check 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