mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-26 09:54:19 +01:00
v1.92.23.0 stamp: train gate.train-fd8a8bf780ae-fd5fcb431884-dd7da2 S3 (#3786)
This commit is contained in:
commit
28aa13b288
120 files changed
+4504
-491
No files matched your search
+53
-9
@@ -2,7 +2,7 @@
|
||||
|
||||
gstack uses a declarative host config system. Each supported AI coding agent
|
||||
(Claude, Codex, Factory, Kiro, OpenCode, Slate, Cursor, OpenClaw, Hermes,
|
||||
GBrain, Copilot, Antigravity) is defined as a typed TypeScript config object built by the
|
||||
GBrain, Copilot, Antigravity, Gemini CLI) is defined as a typed TypeScript config object built by the
|
||||
`defineHost()` factory. Rendering a new host means creating one file and
|
||||
re-exporting it: the generator, tests, and validation pick it up. Installing
|
||||
it is not free: setup still has one install arm per installable host (see
|
||||
@@ -76,13 +76,13 @@ Inventory of every setup side effect, by phase (line numbers are approximate):
|
||||
|---|---|---|
|
||||
| Build | `browse/dist`, `design/dist`, `make-pdf/dist`, `bin/gstack-cso-*` in the source checkout | source |
|
||||
| Hosts record | `.gstack-installed-hosts` in the source checkout: every host setup installed from it, additive (#1694) | source |
|
||||
| Generation | renders for the recorded hosts only (`.agents/`, `.kiro/`, `.factory/`, `.opencode/`, `.cursor/`, `.copilot/`, `.agy/`) in the source checkout; `gstack-patch-names` rewrites Claude `name:` fields in place | source |
|
||||
| Generation | renders for the recorded hosts only (`.agents/`, `.kiro/`, `.factory/`, `.opencode/`, `.cursor/`, `.copilot/`, `.agy/`, `.gemini-cli/`) in the source checkout; `gstack-patch-names` rewrites Claude `name:` fields in place | source |
|
||||
| Render prune | renders of hosts the record does not name: links into the checkout removed, generated files moved to `$GSTACK_STATE_ROOT/backups/host-renders/<ts>-<id>/`, other files kept | source / state root |
|
||||
| Chromium | Playwright cache (`~/.cache/ms-playwright`), lock under the state root | machine |
|
||||
| Config | `skill_prefix`, `timeline_stop_hook`, team-mode keys in `$GSTACK_STATE_ROOT/config.yaml` | state root |
|
||||
| Claude arm | `~/.claude/skills/gstack` link, one dir per skill with a `SKILL.md` link, alias copies | selected host |
|
||||
| Codex arm | `${CODEX_HOME:-~/.codex}/skills/gstack` runtime root, `gstack-*` links into `.agents/skills`, `.agents/skills/gstack` sidecar | selected host |
|
||||
| Kiro, Factory, OpenCode, Cursor, Copilot, Antigravity arms | the host's `skills/gstack` runtime root (built beside the live one and swapped in) and `gstack-*` links | selected host |
|
||||
| Kiro, Factory, OpenCode, Cursor, Copilot, Antigravity, Gemini CLI arms | the host's `skills/gstack` runtime root (built beside the live one and swapped in) and `gstack-*` links | selected host |
|
||||
| OpenCode commands | `~/.config/opencode/commands/gstack-*.md` with a managed marker (#2629); user command files are never touched | selected host |
|
||||
| Registry | one row per activated install in `installs.tsv` | state root |
|
||||
| Migrations | whatever each `v*.sh` repairs; marker in the state root | state root |
|
||||
@@ -245,12 +245,15 @@ which Google's docs do not state, so the rendered text names no number.
|
||||
|
||||
**Shared `~/.gemini`.** Antigravity CLI and Gemini CLI both live under
|
||||
`~/.gemini`. Gemini CLI reads `~/.gemini/skills` (and `~/.agents/skills`);
|
||||
Antigravity CLI reads `~/.gemini/antigravity-cli/skills`. Setup writes only
|
||||
gstack entries in the latter, uninstall removes only gstack-managed entries
|
||||
there, and `--host auto` selects Antigravity only for `agy` on `PATH` or an
|
||||
existing `~/.gemini/antigravity-cli`, never for a bare `~/.gemini`.
|
||||
`test/setup-install-registry.test.ts` holds both directions. Gemini CLI as a
|
||||
host is not supported. Two overlaps remain: workspace `.agents/skills` is also
|
||||
Antigravity CLI reads `~/.gemini/antigravity-cli/skills`, and Google's
|
||||
migration table lists `~/.gemini/skills` as an Antigravity global path too.
|
||||
Each host's arm writes only gstack entries in its own directory, uninstall
|
||||
removes only gstack-managed entries in each, and `--host auto` selects
|
||||
Antigravity only for `agy` on `PATH` or an existing
|
||||
`~/.gemini/antigravity-cli`, and Gemini CLI only for `gemini` on `PATH`,
|
||||
never either for a bare `~/.gemini`. `test/setup-install-registry.test.ts`
|
||||
holds every direction, including both hosts installed together. Gemini CLI is
|
||||
its own host ("Gemini CLI" below). Two overlaps remain: workspace `.agents/skills` is also
|
||||
where a project-local Codex install puts its Codex-flavored `gstack-*`
|
||||
skills, which Antigravity will list in that repo, and the Antigravity 2.0 app
|
||||
and IDE read `~/.gemini/config/skills`, which this host does not install
|
||||
@@ -277,6 +280,46 @@ root's extra markdown files (`ETHOS.md`, `review/*.md`) as skills, the
|
||||
partial-read behavior of `view_file` on long skills, `ask_question` option
|
||||
handling, and an upgrade from an existing install.
|
||||
|
||||
## Gemini CLI (#1247)
|
||||
|
||||
Shipped as `experimental` (`hosts/gemini.ts`, `./setup --host gemini`, alias
|
||||
`--host gemini-cli`). Verified against Gemini CLI 0.66.0 (its bundled
|
||||
`docs/cli/skills.md` and `SkillManager.discoverSkills`) on 2026-10-31:
|
||||
|
||||
| Fact | Value | Source |
|
||||
|---|---|---|
|
||||
| User skills | `~/.gemini/skills/<skill>/SKILL.md`, and the `~/.agents/skills` alias, which wins inside the user tier | [Agent Skills](https://geminicli.com/docs/cli/skills/), `packages/core/src/skills/skillManager.ts` |
|
||||
| Workspace skills | `.gemini/skills` and the `.agents/skills` alias, loaded only in a trusted folder (`/trust`) | same |
|
||||
| Precedence | built-in < extension < user < workspace; same name: the higher tier wins | same |
|
||||
| Discovery | `<dir>/<name>/SKILL.md`, one level deep; symlinked skill dirs are followed; the name comes from frontmatter `name` | same |
|
||||
| Invocation | the model calls `activate_skill` after you approve; `/skills list` and `gemini skills list` show them | same |
|
||||
| Tool names | `run_shell_command`, `read_file`, `read_many_files`, `write_file`, `replace`, `grep_search`, `glob`, `list_directory`, `ask_user`, `invoke_agent`, `activate_skill`, `enter_plan_mode`, `exit_plan_mode`, `write_todos`, `web_fetch`, `google_web_search` | 0.66.0 bundle |
|
||||
| Context file | `GEMINI.md` | 0.66.0 bundle |
|
||||
|
||||
What the host does: skills in `~/.gemini/skills/gstack-*`, runtime root
|
||||
`~/.gemini/skills/gstack` with `.source-path` for `/gstack-upgrade`, `name:`
|
||||
equal to the `gstack-<skill>` directory, frontmatter limited to `name` and
|
||||
`description` (1024-character limit), the Gemini model overlay, and a
|
||||
one-paragraph tool glossary ahead of the preamble's STATUS rules. The glossary
|
||||
also names Antigravity's `run_command`, `view_file` and `ask_question`,
|
||||
because an Antigravity CLI that reads `~/.gemini/skills` sees these skills.
|
||||
The render directory is `.gemini-cli/` (gitignored), not `.gemini/`, so this
|
||||
repo's own trusted workspace never lists render output as skills. `--local`
|
||||
is refused: it installs only Claude, and Gemini CLI reads workspace skills only
|
||||
in trusted folders.
|
||||
|
||||
Overlaps: inside a trusted repo, a project-local Codex install's `.agents/skills`
|
||||
(Codex-flavored `gstack-*` skills) is the workspace tier, which outranks
|
||||
`~/.gemini/skills`, so Gemini CLI uses those there. gstack never writes
|
||||
`~/.agents/skills`: that alias is shared with other tools and outranks
|
||||
`~/.gemini/skills`. Antigravity's own install stays in
|
||||
`~/.gemini/antigravity-cli/skills`.
|
||||
|
||||
Unverified without a Gemini API key on the build machines (why it is not
|
||||
`full`): a live model run of any skill, `ask_user` option handling, and
|
||||
plan mode with gstack's plan-review skills. Discovery is verified:
|
||||
`gemini skills list` after `./setup --host gemini` lists the `gstack-*` skills.
|
||||
|
||||
## Instruction-only hosts and agent harnesses
|
||||
|
||||
Slate and GBrain have no install arm. OpenClaw and Hermes are harness hosts:
|
||||
@@ -313,6 +356,7 @@ hosts/
|
||||
├── gbrain.ts # GBrain
|
||||
├── copilot.ts # GitHub Copilot CLI
|
||||
├── agy.ts # Google Antigravity CLI
|
||||
├── gemini.ts # Google Gemini CLI
|
||||
└── index.ts # Registry: imports all, derives Host type
|
||||
```
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ gstack/
|
||||
│ ├── codex.ts, factory.ts, kiro.ts # Existing hosts
|
||||
│ ├── opencode.ts, slate.ts, cursor.ts, openclaw.ts # IDE hosts
|
||||
│ ├── hermes.ts, gbrain.ts # Agent runtime hosts
|
||||
│ ├── copilot.ts, agy.ts, gemini.ts # GitHub Copilot CLI, Antigravity CLI, Gemini CLI
|
||||
│ └── index.ts # Registry: exports all, derives Host type
|
||||
├── scripts/ # Build + DX tooling
|
||||
│ ├── gen-skill-docs.ts # Template → SKILL.md generator (config-driven)
|
||||
|
||||
@@ -241,7 +241,12 @@ keeps the lease. `bin/gstack-lease list` shows `alive|dead|stale`, and
|
||||
clone too, through `GSTACK_CAPY_CLONED`).
|
||||
2. Preflight: `git`, `curl`, `node`, `jq`, then Bun. The project's pins
|
||||
(`--project <path>`, default the git toplevel of the current directory) are
|
||||
read with the doctor's own parser (`bin/gstack-runtime-pins.ts`: engines,
|
||||
read (a `--project` inside a repository resolves to that repository's git
|
||||
toplevel, so `--project <repo>/<subdir>` means `<repo>`; outside a repository
|
||||
it resolves to the directory's real path, and a value that is not a
|
||||
directory, such as a repo slug, exits 2 with a usage error before anything
|
||||
runs; the pins, the doctor and the install verdict all use the resolved
|
||||
directory) with the doctor's own parser (`bin/gstack-runtime-pins.ts`: engines,
|
||||
packageManager, `.tool-versions`, `.bun-version` and CI `bun-version:` lanes
|
||||
for this platform). CI exact pins for this platform are alternatives: a
|
||||
repository may test several Bun versions (gstack's own CI pins 1.4.2 and
|
||||
|
||||
@@ -163,6 +163,14 @@ Antigravity only when `agy` is on `PATH` or `~/.gemini/antigravity-cli` exists,
|
||||
never for a Gemini-CLI-only `~/.gemini`. The Antigravity 2.0 app and IDE read
|
||||
`~/.gemini/config/skills`, which this host does not install.
|
||||
|
||||
Gemini CLI loads gstack skills itself when a task matches (`activate_skill`,
|
||||
after you approve); ask for `gstack-office-hours`, or list them with
|
||||
`/skills list`. Setup writes only `~/.gemini/skills/gstack*` and never
|
||||
`~/.agents/skills`, and `--host auto` selects Gemini CLI only when `gemini` is on
|
||||
`PATH`. Inside a repo with a project-local Codex install, Gemini CLI uses the
|
||||
Codex skills in `.agents/skills` (the workspace tier wins), and workspace skills
|
||||
load only in trusted folders (`/trust`).
|
||||
|
||||
Outside reviews require the selected CLI to be installed and authenticated: Claude Code when using gstack in Codex, or Codex on other harnesses. External harnesses discover these commands as `/gstack-claude-code` and `/gstack-codex`; each harness omits its own wrapper. Explicit provider requests keep that provider. The existing `codex_reviews` setting controls automatic outside reviews where supported, regardless of the provider selected.
|
||||
|
||||
`/claude` has been renamed to `/claude-code`. Re-run `./setup --host <name>` to migrate managed installations, including other harnesses sharing the checkout. Setup preserves the previous installation if replacement generation or installation fails and prints repair instructions.
|
||||
|
||||
@@ -376,7 +376,8 @@ The receipt's summary line prints `passes=<n> blocking_found=<k> deferred=<m>`,
|
||||
which is what a scorecard tracks (target: a median of 1 pass per PR). A
|
||||
receipt carried across a base merge or a test-only fix
|
||||
([ship-policy.md#receipt-carry](ship-policy.md#receipt-carry)) keeps these
|
||||
counters, because the reviewed product diff is unchanged.
|
||||
counters, because the reviewed product diff is unchanged or its only
|
||||
difference passed a scoped review.
|
||||
|
||||
## The scope knob
|
||||
|
||||
|
||||
+6
-2
@@ -1299,7 +1299,8 @@ receipt when the base moves:
|
||||
| What changed since /ship | The receipt |
|
||||
|---|---|
|
||||
| a merge of the base, product diff unchanged (tests, release metadata, registered outputs the pregate's regen check proved) | carries; no review reruns |
|
||||
| a merge of the base whose resolution changed product code | a fresh /ship (`RECEIPT_CARRY_PRODUCT_CHANGED`) |
|
||||
| a merge of the base that edited lines next to the branch's unchanged hunks (the branch's +/- lines identical and in the same places) | carries after one fix-check reviewer reads the hunks and comes back clean (`RECEIPT_CARRY_SCOPED_REVIEW`, then `carry --scoped-review <record.json>`) |
|
||||
| a merge of the base whose resolution changed product code, or moved the branch's lines elsewhere | a fresh /ship (`RECEIPT_CARRY_PRODUCT_CHANGED`) |
|
||||
| a rebase or force-push onto a tree the receipt covers, product diff against the new base unchanged | carries (`carry.ancestry: rewritten`) |
|
||||
| any other rebase or force-push | a fresh /ship (`RECEIPT_CARRY_TREE_MISMATCH`) |
|
||||
| a stacked PR whose parent landed (squash or merge), retargeted to the base with the base merged in, HEAD's product diff exactly the one reviewed against the parent branch | carries (reason `stack parent <branch> landed`) |
|
||||
@@ -1375,7 +1376,10 @@ skill=ship status=complete` line, and its summary line ends with
|
||||
|
||||
A changed product path, or a product patch-id that differs, is
|
||||
[`RECEIPT_CARRY_PRODUCT_CHANGED`](troubleshooting.md#receipt-carry-product-changed)
|
||||
(exit 3; the refusal names the paths), and a working tree with uncommitted
|
||||
(exit 3; the refusal names the paths), except when the only difference is
|
||||
base context next to the branch's unchanged hunks, which is
|
||||
[`RECEIPT_CARRY_SCOPED_REVIEW`](troubleshooting.md#receipt-carry-scoped-review)
|
||||
until one fix-check reviewer clears the packet; a working tree with uncommitted
|
||||
changes is [`RECEIPT_CARRY_REFUSED`](troubleshooting.md#receipt-carry-refused).
|
||||
|
||||
**Rewritten history.** `write` records `head_tree` (the reviewed head's tree)
|
||||
|
||||
+125
-4
@@ -1239,8 +1239,8 @@ git -C ~/.claude/skills/gstack update-ref -d 'refs/gstack/rescue/<oid>'
|
||||
<a id="setup-runtime-root-contains-checkout"></a>
|
||||
### `gstack setup: refusing to replace <root> for <host>: this runtime directory contains the source checkout setup runs from (<checkout>), so replacing it would delete the checkout. Nothing was changed.`
|
||||
|
||||
**Meaning.** Setup installs Codex, Factory, OpenCode, Cursor, Copilot and
|
||||
Antigravity by building a runtime root (such as `~/.cursor/skills/gstack`) and
|
||||
**Meaning.** Setup installs Codex, Factory, OpenCode, Cursor, Copilot,
|
||||
Antigravity and Gemini CLI by building a runtime root (such as `~/.cursor/skills/gstack`) and
|
||||
swapping it in for the old one, and Kiro by writing into `~/.kiro/skills/gstack`.
|
||||
Your gstack checkout lives at that root or inside it, so the swap would delete
|
||||
the checkout (#3084), and Kiro would link the checkout into itself. Setup refuses before
|
||||
@@ -2206,6 +2206,25 @@ anything.
|
||||
|
||||
---
|
||||
|
||||
<a id="setup-deps-migrate-failed"></a>
|
||||
### `gstack: WARN kept the full dependency install (SETUP_DEPS_MIGRATE_FAILED; ...): <cause>`
|
||||
|
||||
**Meaning.** Your install was made before v1.91.231.0, so it still carries the
|
||||
test and eval packages (about 520 MB, mostly the Claude Agent SDK). setup moved
|
||||
`node_modules` aside to install production dependencies only, that install
|
||||
failed, and setup put the full `node_modules` back. Nothing was removed, and
|
||||
gstack keeps working on the full install.
|
||||
|
||||
**Fix.** Fix the cause the warning names (no network, a proxy, a full disk),
|
||||
then run `./setup` again. Developing gstack in this checkout? Mark it, and
|
||||
setup keeps the dev packages from then on:
|
||||
|
||||
```bash
|
||||
git config gstack.contributor true
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
<a id="chromium-install-exit-127"></a>
|
||||
### `Chromium bootstrap: chromium-install — <bun> x playwright install chromium exited 127 (command not found); install Bun from bun.sh (winget Bun ships no bunx), or skip with ./setup --no-browser (Git Bash) or .\setup.ps1 --no-browser (PowerShell)`
|
||||
|
||||
@@ -2896,6 +2915,34 @@ fetching it cannot create that ref, so pass a branch that exists on `origin`
|
||||
(`git branch -r --list 'origin/*'` lists them). `gstack-pregate` says so in
|
||||
its fix instead of suggesting the fetch.
|
||||
|
||||
<a id="history-read-failed"></a>
|
||||
### `cannot read <path> at <ref>. <cause> (git version <v>). Fix: see docs/troubleshooting.md#history-read-failed (HISTORY_READ_FAILED)`
|
||||
|
||||
**Meaning.** A CI job or a local release tool read a file at an older commit
|
||||
and git could not produce it. The PR and train path jobs (Free Tests' plan, the Version Gate,
|
||||
and E2E Evals' route, screen summary, planner, slices, reruns, bisect and
|
||||
report) check out blobless clones (`filter: blob:none`): every commit and
|
||||
tree is there, but an older file's contents are fetched from GitHub the first
|
||||
time something reads them. When that fetch fails three times (a GitHub outage,
|
||||
a network drop), or the ref does not resolve at all, the read fails here
|
||||
instead of counting as "the file is absent". A file the commit really does not
|
||||
have still reads as absent, as before. No ship policy at the base means no
|
||||
train, and no VERSION means `0.0.0.0`. The route and backstop policy reads (inline
|
||||
in their workflows), `.github/scripts/history-read.sh` (the Version Gate's base
|
||||
`VERSION`) and `lib/history-read.ts` (the Version Gate's train classification)
|
||||
print this line. The Version Gate prints the same code when
|
||||
`git fetch origin <base>` fails three times. `gstack-restamp` and
|
||||
`gstack-ship-queue land` print it too when they cannot read the base branch's
|
||||
CHANGELOG, which they check fragments against (`lib/changelog-fragments.ts`
|
||||
reads it through `lib/history-read.ts`); outside a partial clone they do not
|
||||
retry.
|
||||
|
||||
**Fix.** Rerun the failed job once GitHub is reachable. If it fails the same
|
||||
way on a healthy network, check that the ref exists on `origin` and that the
|
||||
runner's git supports partial clone (`git --version` 2.22 or newer; the eval
|
||||
image asserts it at build time in `.github/docker/Dockerfile.ci`). For a local
|
||||
tool, run `git fetch origin <base>` and rerun it.
|
||||
|
||||
<a id="policy-invalid"></a>
|
||||
### `POLICY_INVALID`
|
||||
|
||||
@@ -3307,6 +3354,54 @@ makes the row a check rather than a claim.
|
||||
`REALITY: already-done pass 0 hits since 2026-10-09 for bin/gstack-doctor 91bbd9e`
|
||||
or `REALITY: surface-check finding bun upgrade --version absent on 1.3.14 bin/gstack-capy-install:52`.
|
||||
|
||||
<a id="office-hours-probe-refused"></a>
|
||||
### `OFFICE_HOURS_PROBE_REFUSED`
|
||||
|
||||
**Meaning.** The office-hours spec reviewer may check a cited flag with
|
||||
`gstack-office-hours-review probe --help <command> [<subcommand>]`, and nothing
|
||||
else runs. The command must be a gstack bin or one of the listed read-only CLIs
|
||||
(git, gh, bun, node, npm, pnpm, yarn, jq, rg, python3, uv, go, cargo, make,
|
||||
docker, claude, codex, gemini), found on PATH outside the repository; a gstack
|
||||
bin must handle `--help`. Subcommand words are allowed for git, gh,
|
||||
docker, cargo, go, npm and uv (one word for git, cargo and npm; up to two for gh, docker, go and uv), each from that CLI's list of built-in names in
|
||||
`lib/office-hours-probe.ts`; words that run a named program, script, image or
|
||||
extension (`uv run`, `docker run`, `go test`, `npm exec`, a gh extension) are
|
||||
refused. The probe never runs a shell or a repository-local program (PATH
|
||||
entries inside the repository are dropped), closes stdin, runs in an empty
|
||||
temporary directory, passes no keys or tokens in its environment and stops after
|
||||
10 seconds.
|
||||
|
||||
**Fix.** Nothing to repair. The claim stays unverified, not disproved; check it
|
||||
from the command's source or docs in the repository instead.
|
||||
|
||||
<a id="tasks-supersede-refused"></a>
|
||||
### `TASKS_SUPERSEDE_REFUSED`
|
||||
|
||||
**Meaning.** `gstack-tasks` refused a task list. Either `add` found a line in
|
||||
the rows file (`.gstack/tmp/tasks-<phase>-rows.jsonl`) that is not a valid
|
||||
task or disposition, or it leaves a task from the branch's earlier list neither
|
||||
carried nor closed (the error names each `<run_id>/<id>`), so nothing was written; or `supersede` was asked to retire the earlier lists
|
||||
but the new list (`--keep`) is missing, outside the tasks directory, has a
|
||||
malformed line, or holds a row for another phase or branch, so nothing was
|
||||
moved and both lists stay live.
|
||||
|
||||
**Fix.** Fix the line the error names in the rows file (`gstack-tasks --help`
|
||||
shows both row shapes), and rerun `gstack-tasks add --phase <phase>`.
|
||||
|
||||
<a id="reality-receipt-unresolved"></a>
|
||||
### `REALITY_RECEIPT_UNRESOLVED`
|
||||
|
||||
**Meaning.** `gstack-plan-reality check` opened a receipt and it is false in
|
||||
the checkout: the file is missing, it is a directory or a dangling link, the
|
||||
line is 0 or the range runs backward, or the cited line is past its end. The `RECEIPT_UNRESOLVED: <row> <receipt> <reason>` line names each
|
||||
one. A receipt the checkout cannot judge (a path outside every root, a bare
|
||||
file name no root has, a sha a shallow clone lacks) prints
|
||||
`RECEIPT_UNVERIFIABLE:` instead and never blocks.
|
||||
|
||||
**Fix.** Open the file and cite the line that holds the evidence. When the
|
||||
evidence lives in another checkout, run `check` with `--root <dir>` for it
|
||||
(repeatable; the default is the git top level of the working directory).
|
||||
|
||||
## Pre-gate: generated-file registry, gstack-pregate, issue links
|
||||
|
||||
Both tools read their pin file (`.gstack/generated.json`, `.gstack/pregate.json`)
|
||||
@@ -5481,11 +5576,37 @@ retargeted stacked PR the parent branch and the base.
|
||||
**Fix.** Run /ship on the new head. The receipt carries only across a
|
||||
conflict-only base merge, a test-only change, release metadata, a registered
|
||||
output the pregate's regen check proved, a rebase onto a covered tree with
|
||||
the recorded product diff, or a stacked PR's retarget once its parent fully
|
||||
landed on the base, which the
|
||||
the recorded product diff, a stacked PR's retarget once its parent fully
|
||||
landed on the base, or base context next to unchanged hunks after a clean
|
||||
scoped review ([`RECEIPT_CARRY_SCOPED_REVIEW`](#receipt-carry-scoped-review)), which the
|
||||
`carry` object in the carried receipt records with the product patch-id and
|
||||
the range-diff evidence ([unattended.md](unattended.md#the-terminal-line)).
|
||||
|
||||
<a id="receipt-carry-scoped-review"></a>
|
||||
### `RECEIPT_CARRY_SCOPED_REVIEW`
|
||||
|
||||
**Meaning.** Every product path the branch touches has the reviewed +/- lines
|
||||
in the same places, but the base edited context lines next to some of them, so
|
||||
the 3-line patches differ (GST-384: main reworded the line above the PR's
|
||||
hunk). The merge may have spliced the two, as in a JSON entry where the branch
|
||||
changed one key and the base the next, so the receipt does not carry silently.
|
||||
The refusal names the paths and a packet file with the hunks that differ and
|
||||
the base's own change. The same lines moved somewhere else are
|
||||
`RECEIPT_CARRY_PRODUCT_CHANGED`, not this code.
|
||||
|
||||
**Fix.** Dispatch one fix-check reviewer
|
||||
([review-policy.md](review-policy.md)) on the packet. When it comes back clean,
|
||||
write `{"head":"<HEAD>","paths":[...],"reviewer":"<model>","verdict":"clean"}`
|
||||
and rerun `gstack-ship-receipt carry ... --scoped-review <record.json>`; the
|
||||
carry reason records the reviewer and the paths. A blocking finding means /ship
|
||||
on the new head. `gstack-ship-release finish` stops the same way with
|
||||
`context=N` and takes `--context-reviewed <record.json>` bound to the tree;
|
||||
write that record beside the packet, outside the worktree, so it does not change
|
||||
the tree it is bound to. Finish also stops this way for test code changed since
|
||||
review with no gate edit (`tests=N`): the packet holds those test hunks, and the
|
||||
reviewer checks that each test still tests what it did. A packet that cannot be
|
||||
written (an unwritable `.git`) is a STOP or `RECEIPT_CARRY_REFUSED` naming the path.
|
||||
|
||||
<a id="receipt-prose-mismatch"></a>
|
||||
### `RECEIPT_PROSE_MISMATCH`
|
||||
|
||||
|
||||
+6
-2
@@ -237,8 +237,12 @@ and reruns carry with `--pregate .gstack/tmp/pregate.json`. `CARRY: carried from
|
||||
`GSTACK_RESULT: skill=ship status=complete run=<dir>` line means the receipt
|
||||
now names HEAD with a `carry` object holding the `git range-diff` evidence, and
|
||||
`ship-run.json` gains `carried_from` and `carry_reason`; the `review_loop`
|
||||
counters are kept, because the reviewed product diff is unchanged. `CARRY:
|
||||
current` means nothing moved. `CARRY: refused (RECEIPT_CARRY_PRODUCT_CHANGED)`,
|
||||
counters are kept, because the reviewed product diff is unchanged or its only
|
||||
difference passed a scoped review. `CARRY: current` means nothing moved.
|
||||
`CARRY: refused (RECEIPT_CARRY_SCOPED_REVIEW)` means the base edited context
|
||||
next to reviewed hunks: one fix-check reviewer reads the packet the refusal
|
||||
names, and a clean record reruns carry with `--scoped-review <record.json>`
|
||||
([troubleshooting](troubleshooting.md#receipt-carry-scoped-review)). `CARRY: refused (RECEIPT_CARRY_PRODUCT_CHANGED)`,
|
||||
`(RECEIPT_CARRY_TREE_MISMATCH)` or `(RECEIPT_CARRY_REFUSED)` with the refused
|
||||
result line means the product diff changed, or history was rewritten onto a
|
||||
tree no review saw, so /ship runs again;
|
||||
|
||||
@@ -54,6 +54,7 @@ rm -rf "${HERMES_HOME:-$HOME/.hermes}/skills/gstack" 2>/dev/null
|
||||
rm -rf ~/.cursor/skills/gstack* 2>/dev/null
|
||||
rm -rf ~/.config/opencode/skills/gstack* 2>/dev/null
|
||||
rm -rf ~/.gemini/antigravity-cli/skills/gstack* 2>/dev/null
|
||||
rm -rf ~/.gemini/skills/gstack* 2>/dev/null
|
||||
|
||||
# 6. Remove temp files
|
||||
rm -f /tmp/gstack-* 2>/dev/null
|
||||
|
||||
Reference in new issue
Block a user