open-pstack 0.9.149 → 0.9.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-pstack",
3
- "version": "0.9.149",
3
+ "version": "0.9.151",
4
4
  "description": "Install pstack into the agent harnesses on this machine: Claude Code, Codex, Pi, Copilot, Muse, OMP, Kimi, Grok, MiniMax, OpenCode, Antigravity, and the shared skills directory.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pstack",
3
- "version": "0.9.149",
3
+ "version": "0.9.151",
4
4
  "description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. Ported from cursor/plugins/pstack to Antigravity. Original pstack by Lauren Tan (poteto).",
5
5
  "author": "Michael Denyer",
6
6
  "logo": "assets/pstack-icon.png",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pstack",
3
3
  "displayName": "pstack (Claude Code port)",
4
- "version": "0.9.149",
4
+ "version": "0.9.151",
5
5
  "description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. Ported from cursor/plugins/pstack to Claude Code. Original pstack by Lauren Tan (poteto).",
6
6
  "author": {
7
7
  "name": "Michael Denyer",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pstack",
3
- "version": "0.9.149",
3
+ "version": "0.9.151",
4
4
  "description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. Codex port of the Claude Code plugin; skills are shared, tool names resolve via skills/poteto-mode/references/codex-tools.md. Original pstack by Lauren Tan (poteto).",
5
5
  "author": {
6
6
  "name": "Michael Denyer",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pstack",
3
3
  "displayName": "pstack (GitHub Copilot port)",
4
- "version": "0.9.149",
4
+ "version": "0.9.151",
5
5
  "description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. Ported from cursor/plugins/pstack to GitHub Copilot CLI and app. Original pstack by Lauren Tan (poteto).",
6
6
  "author": {
7
7
  "name": "Michael Denyer",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pstack",
3
- "version": "0.9.149",
3
+ "version": "0.9.151",
4
4
  "description": "pstack workflows and skills for Grok Build",
5
5
  "skills": [
6
6
  "./skills",
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "pstack",
4
4
  "displayName": "pstack (Muse port)",
5
- "version": "0.9.149",
5
+ "version": "0.9.151",
6
6
  "description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. Rigorous agent workflows you can parallelize with confidence. Muse port of the Claude Code plugin; skills are shared, tool names resolve via skills/poteto-mode/references/muse-tools.md. Original pstack by Lauren Tan (poteto).",
7
7
  "compat": {
8
8
  "source": "native",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pstack",
3
- "version": "0.9.149",
3
+ "version": "0.9.151",
4
4
  "private": true,
5
5
  "omp": {
6
6
  "extensions": ["./omp/index.mjs"]
@@ -21,6 +21,7 @@ Branch or PR CI is failing and needs a fast, iterative path to green checks.
21
21
  - Fix one actionable failure at a time.
22
22
  - Prefer minimal, low-risk changes before broader refactors.
23
23
  - Keep `gh pr checks` as the source of truth for overall PR CI state.
24
+ - When `gh pr checks` fails with a GraphQL refusal, as in a Claude Code cloud session, read the check runs and commit statuses on the PR's head with the REST commands in [Reading a PR from a Claude Code cloud session](../poteto-mode/references/cloud-session-pr-reads.md), and treat the two together as the source of truth there.
24
25
 
25
26
  ## Output
26
27
 
@@ -4,6 +4,8 @@ Resolve the driver skill through [poteto-mode's Non-negotiables](../SKILL.md#non
4
4
 
5
5
  **You own what lands. Verify each PR independently, land only the verified run from the root, then keep your hands off the stack.** Landing needs the user's landing authority, and each landing is confirmed before the next starts.
6
6
 
7
+ When GitHub refuses GraphQL, as in a Claude Code cloud session where the watcher exits 7 with `graphql-refused` and `ship-pr inspect` reports `unavailable`, nothing lands. Stop at merge-ready, report the limit, and read PR state with the REST commands in [Reading a PR from a Claude Code cloud session](../references/cloud-session-pr-reads.md).
8
+
7
9
  1. **Resolve the forge, then verify each PR independently before it lands.** GitHub CLI (`gh`) is the default. If `command -v origin` succeeds and Origin can resolve the repository, use `origin pr` for every PR operation. Otherwise stay on `gh` and record the fallback. Never require Graphite (`gt`). Capture the affected chain bottom-to-top, each head branch and SHA, base branch and SHA, and the intended destination repository and branch, and leave unrelated PRs alone. Read [Merge and restack safety](../references/merge-safety.md) before merging, arming, rebasing, or retargeting. Inspect pending merge requests on entry, and cancel and read back any that lack the verification gates in step 4 before a lengthy review. One verifier per PR, each a subagent in its own worktree, runs the change the way a user would through the driver skill, parent against head, and posts `PASS`, `PASS+NOTES`, or `FAIL` on that PR. Only a verdict from an agent that did not write the code counts, because an author checks what it meant to build. Green CI and an approving bot review are not verdicts, because neither runs the change as a user would. Record each verdict's head SHA, base SHA, base branch, and stable `git patch-id` of the base-to-head diff.
8
10
  2. **Land only the contiguous verified run rooted at the bottom.** Walk up from the lowest unmerged PR and stop at the first one without `PASS` or `PASS+NOTES`. The PRs below it are the run, and the top one is the ceiling. A verified PR above an unverified one waits, because it cannot land without the code below it. One whose branch neither holds nor needs that code can move onto trunk and land on its own. It needs a fresh verdict first, because its old one ran with that code beneath it and trunk does not have it.
9
11
  3. **Re-check that the verdicts still describe the code.** A verdict covers a patch, and a chain rebase moves every PR above it to a new SHA without failing any check. Compare `git patch-id` at the verdict SHA with the current head before trusting an older verdict. When the patches differ only in tests, docs, or lint config, a lane's result stands if what it ran builds the same at both SHAs apart from noise. Noise is a difference that also shows up between two builds of the verdict SHA, or an embedded commit SHA. Report each kind of noise with its files, so a reader can check the call. The change itself still gets fresh checks and a review, because the old verdict never saw it. A lane with no build output, such as a dev server, cannot show this, so rerun it, and re-verify anything else that drifted. A matching patch-id keeps a review only after you check that it applies to the new destination and dependencies, so re-verify changed behavior or uncertain applicability, and rerun checks and mergeability after every rewrite or retarget.
@@ -1,10 +1,10 @@
1
1
  # Reading a PR from a Claude Code cloud session
2
2
 
3
- A Claude Code cloud session's GitHub proxy refuses GraphQL with HTTP 403. `watch-pr` then exits 7 with a `graphql-refused` failure, and `gh pr view`, `gh pr list`, and `gh pr checks` fail with the same refusal. The proxy still serves REST for the repositories attached to the session. Use the reads below there, and nowhere else. Where GraphQL works, the watcher stays the source of PR status.
3
+ A Claude Code cloud session's GitHub proxy refuses GraphQL with HTTP 403. `watch-pr` then exits 7 with a `graphql-refused` failure, `ship-pr inspect` reports `unavailable`, and `gh pr view`, `gh pr list`, `gh pr checks`, and `gh pr merge` fail with the same refusal. The proxy still serves REST for the repositories attached to the session. Use the reads below there, and nowhere else. Where GraphQL works, the watcher stays the source of PR status.
4
4
 
5
5
  ## REST reads
6
6
 
7
- Each command was run in a cloud session on 2026-11-21 with `gh` 2.89.0.
7
+ Each command was run in a cloud session with `gh` 2.89.0, most recently on 2026-11-23.
8
8
 
9
9
  | Fact | Command |
10
10
  | ----------------------------------- | ----------------------------------------------------------------------------------------------- |
@@ -14,16 +14,23 @@ Each command was run in a cloud session on 2026-11-21 with `gh` 2.89.0.
14
14
  | Commit statuses on the head | `gh api "repos/<owner>/<repo>/commits/<head-sha>/status"` |
15
15
  | Check suites on the head | `gh api --paginate --slurp "repos/<owner>/<repo>/commits/<head-sha>/check-suites?per_page=100"` |
16
16
  | Actions runs on the head | `gh api "repos/<owner>/<repo>/actions/runs?head_sha=<head-sha>"` |
17
+ | Jobs and steps of an Actions run | `gh api "repos/<owner>/<repo>/actions/runs/<run-id>/jobs"` |
18
+ | Log of one Actions job | `gh api "repos/<owner>/<repo>/actions/jobs/<job-id>/logs"` |
19
+ | Summary of an Actions run | `gh run view <run-id>` |
20
+ | Log of an Actions run | `gh run view <run-id> --log` |
21
+ | Recent Actions runs | `gh run list` |
17
22
  | Reviews | `gh api "repos/<owner>/<repo>/pulls/<pr>/reviews"` |
18
23
  | Review comments | `gh api "repos/<owner>/<repo>/pulls/<pr>/comments"` |
19
24
  | Review threads and their resolution | `gh api "repos/<owner>/<repo>/pulls/<pr>/ccr/review_threads"` |
20
25
 
21
26
  Read `head.sha`, `draft`, `mergeable`, and `mergeable_state` from the first command. `mergeable` is `null` until GitHub computes it, so read again before you trust it.
22
27
 
28
+ `gh pr checks` lists both check runs and commit statuses, so read both. A check run is pending until its `status` is `completed`. Its `conclusion` then gives the result: `success` passes; `failure`, `timed_out`, and `action_required` fail; `cancelled`, `skipped`, and `neutral` neither pass nor fail. A commit status carries its result in `state`: `success`, `failure` or `error`, or `pending`. For an Actions check, `details_url` ends in `actions/runs/<run-id>/job/<job-id>`. GitHub answers a log read with HTTP 410 once the log has expired.
29
+
23
30
  `ccr/review_threads` is a route of the cloud session's proxy, not of GitHub's REST API. It returns one object for each thread, with `resolved`, `outdated`, `path`, `line`, and `comment_ids`. Match `comment_ids` to the review comments to read a thread's text.
24
31
 
25
32
  ## Limits
26
33
 
27
34
  - These reads are single snapshots. Nothing here replaces the watcher's rereads, its merge gates, or its check for a head that moved between reads. Reread the PR's head after the other reads, and start again when it changed.
28
- - `ship-pr` reads the PR through GraphQL, so Shipping and the merge-safety operations cannot run in a cloud session.
35
+ - Shipping and the merge-safety operations cannot run in a cloud session, because `ship-pr` and `gh pr merge` need GraphQL.
29
36
  - A repository the session has not attached answers every REST read with HTTP 403.
@@ -45,7 +45,7 @@ Then ask for the default reasoning effort, the `default effort` line. It is `ses
45
45
 
46
46
  ### 4. Choose whether the session hook routes tasks
47
47
 
48
- On Claude Code, the plugin's `SessionStart` hook injects the poteto-mode mandate on startup, resume, clear, and compact. Ask whether to keep the hook. The default is on. The answer is the `session hook` line in the current runtime's sheet: `on` or `off`. With no sheet or no line, the hook injects. The line is inert on other runtimes without a pstack routing hook. An environment that sets `PSTACK_SESSION_HOOK=off` keeps the hook off whatever the sheet says. A Claude Code cloud session (`CLAUDE_CODE_REMOTE=true`) starts with an empty home, so a user sheet written there does not reach the next session. To keep the hook off there, tell the user to set `PSTACK_SESSION_HOOK=off` in the cloud environment's settings or to commit a project sheet.
48
+ On Claude Code, the plugin's `SessionStart` hook injects the poteto-mode mandate on startup, resume, clear, and compact. Ask whether to keep the hook. The default is on. The answer is the `session hook` line in the current runtime's sheet: `on` or `off`. With no sheet or no line, the hook injects. The line is inert on other runtimes without a pstack routing hook. On Claude Code, and on Codex, GitHub Copilot, Muse, and Antigravity when the runtime passes the variable to its hooks, an environment that sets `PSTACK_SESSION_HOOK=off` keeps the hook off whatever the sheet says. A Claude Code cloud session (`CLAUDE_CODE_REMOTE=true`) starts with an empty home, so a user sheet written there does not reach the next session. To keep the hook off there, tell the user to set `PSTACK_SESSION_HOOK=off` in the cloud environment's settings or to commit a project sheet.
49
49
 
50
50
  ### 5. Validate
51
51
 
@@ -58,7 +58,7 @@ Write the current runtime's sheet with the shape below. Overwrite the whole file
58
58
  ```markdown
59
59
  # pstack model configuration
60
60
 
61
- Per-role model overrides for pstack skills. Each pstack SKILL.md names its defaults in a Models section; the values here override those defaults. Delete a line to fall back to the skill default. A value of `inherit-parent` or `auto` runs that role on the parent session's model (the `Agent` call omits `model`); an alias entry in a panel list still counts toward that panel's fan-out. A model may carry a reasoning effort, as in `opus @xhigh` (levels: low, medium, high, xhigh, max); the role's subagent then runs at that level, each entry of a panel list on its own. `default effort` sets the level for a value without one; `session` uses the runtime's platform mapping to start from the parent session's effort. On Codex this requires active-turn metadata or an explicit effort choice. `session hook: off` stops the supported runtime's pstack routing hook from injecting the poteto-mode mandate; any other value, or no line, leaves it on unless the environment sets `PSTACK_SESSION_HOOK=off`.
61
+ Per-role model overrides for pstack skills. Each pstack SKILL.md names its defaults in a Models section; the values here override those defaults. Delete a line to fall back to the skill default. A value of `inherit-parent` or `auto` runs that role on the parent session's model (the `Agent` call omits `model`); an alias entry in a panel list still counts toward that panel's fan-out. A model may carry a reasoning effort, as in `opus @xhigh` (levels: low, medium, high, xhigh, max); the role's subagent then runs at that level, each entry of a panel list on its own. `default effort` sets the level for a value without one; `session` uses the runtime's platform mapping to start from the parent session's effort. On Codex this requires active-turn metadata or an explicit effort choice. `session hook: off` stops the supported runtime's pstack routing hook from injecting the poteto-mode mandate; any other value, or no line, leaves it on. Setting `PSTACK_SESSION_HOOK=off` in the environment also keeps the hook off on Claude Code, and on Codex, GitHub Copilot, Muse, and Antigravity when the runtime passes the variable to its hooks; MiniMax Code passes its hooks a fixed set of variables, and the OMP, OpenCode, and Pi plugins read only the sheet.
62
62
 
63
63
  feature, refactoring: sonnet
64
64
  bug-fix: opus
@@ -83,7 +83,7 @@ On Claude Code, if `<config>/CLAUDE.md` does not already include `<config>/pstac
83
83
 
84
84
  ### 8. Confirm
85
85
 
86
- Tell the user where the override was written, how its model rows load, and whether the plugin hook is on. When `PSTACK_SESSION_HOOK` is `off` in the environment, say that it keeps the hook off over the sheet. Re-running this skill updates the override sheet.
86
+ Tell the user where the override was written, how its model rows load, and whether the plugin hook is on. When `PSTACK_SESSION_HOOK` is `off` in the environment on Claude Code, or on Codex, GitHub Copilot, Muse, or Antigravity when the runtime passes the variable to its hooks, say that it keeps the hook off over the sheet. MiniMax Code passes its hooks a fixed set of variables, and the OMP, OpenCode, and Pi plugins read only the sheet, so do not report it there. Re-running this skill updates the override sheet.
87
87
 
88
88
  ### 9. Offer a verification skill (optional)
89
89