Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
0d51421
fix(memory-ingest): --scan-secrets scans the rendered page and fails …
brucek Sep 23, 2026
660ba61
fix(test): reconcile Bun failure markers and footer counts
garrytan Sep 24, 2026
e36c679
fix(sync-gbrain): verify source-scoped reads without mutation
garrytan Sep 24, 2026
24028e8
fix(test): recognize grounded TTHW target choices structurally
garrytan Sep 24, 2026
7baa3e7
fix(aside): make the readiness probe work under zsh and report why it…
AntonioVitalic Sep 14, 2026
22559c2
Clarify engineering review startup and decision flow
garrytan Sep 24, 2026
0e92810
Fix Windows readiness fixture PATH and command shim
garrytan Sep 24, 2026
ebca49e
fix(test): recognize grounded TTHW target choices structurally
garrytan Sep 24, 2026
313498a
Clarify engineering review startup and decision flow
garrytan Sep 24, 2026
d50ab2e
fix(test): restrict QA-only fixture tools to its no-Edit contract
garrytan Sep 24, 2026
9f61104
v1.90.0.0 fix(sync-gbrain): guard readiness verdicts and refresh meta…
garrytan Sep 24, 2026
9ab2f50
Merge F1 test and review prerequisites into F8 validation
garrytan Sep 24, 2026
42d5e60
fix(browse): validate canonical upload targets
garrytan Sep 24, 2026
f261242
fix(gbrain): classify structured PGLite busy response
garrytan Sep 24, 2026
32e58da
fix(browse): preserve native extension runtime APIs
garrytan Sep 24, 2026
b509024
Fix displayless browser handoff ownership
garrytan Sep 24, 2026
4f1ff6e
Accept unique installed autoplan methodology aliases
garrytan Sep 24, 2026
2392ec2
fix(skills): preserve positional literals during installation
garrytan Sep 24, 2026
5cb5860
fix(browse): checksum installer contents through stdin
garrytan Sep 24, 2026
097a65e
fix(test): normalize Windows checksum fixture paths
garrytan Sep 24, 2026
756efa1
test: emulate unavailable shasum in Windows checksum fixture
garrytan Sep 24, 2026
2f24526
Integrate contributed memory-scan foundation for unified wave
garrytan Sep 24, 2026
67dd376
Integrate contributed Aside readiness foundation for unified wave
garrytan Sep 24, 2026
7911b91
fix(investigate): preserve owned freeze lifecycle
garrytan Sep 24, 2026
622920e
Integrate owned-freeze lifecycle with the unified gate census
garrytan Sep 24, 2026
ed8f6a8
fix(review): preserve N+1 retry and Red Team completion
garrytan Sep 24, 2026
ad3877d
fix: bound Aside readiness and preserve safe fallback
garrytan Sep 24, 2026
8d30188
test: exercise setup and Chromium on native ARM
garrytan Sep 24, 2026
fb69a8e
fix: preserve install ownership and ARM browser selection
garrytan Sep 24, 2026
3c6e729
Fix gbrain ingest scan boundaries and seed observation
garrytan Sep 24, 2026
724d85e
Refresh managed ship hooks and supervise expanded paid census
garrytan Sep 24, 2026
cff82f4
Reject resumed gbrain pages excluded by current policy
garrytan Sep 24, 2026
142c624
Recover zombie agent locks safely and enable CI Python venv
garrytan Sep 24, 2026
741ea26
Repair paid actor declarations and Aside pitch assertions
garrytan Sep 24, 2026
1457a04
Merge main into consolidated reliability wave
garrytan Sep 24, 2026
ca0879c
Bump consolidated wave to next free minor release
garrytan Sep 24, 2026
71745f9
Clarify CEO review admin choices and option tradeoffs
garrytan Sep 25, 2026
43fb53a
Preserve CEO mode handoff anchors in clarified workflow
garrytan Sep 25, 2026
db23689
Make Windows portability fixtures use shell-native paths
garrytan Sep 25, 2026
0448ae2
Restore ARM Bun alias and clarify ship review gates
garrytan Sep 25, 2026
83044b1
Refresh ship workflow golden snapshots
garrytan Sep 25, 2026
80f82b5
Fix Windows DX documentation controls without piped stdin
garrytan Sep 25, 2026
53a736e
Decode Codex child pipes without Bun's encoded-stream stall
garrytan Sep 25, 2026
939d39a
Bound DX pre-review audit before product questions
garrytan Sep 25, 2026
5456eae
Clarify trusted review-start read in paid revalidation
garrytan Sep 25, 2026
7e94742
Merge main into consolidated reliability wave
garrytan Sep 24, 2026
dba0adc
Bump consolidated wave to next free minor release
garrytan Sep 24, 2026
8fb468b
Clarify CEO review admin choices and option tradeoffs
garrytan Sep 25, 2026
886455d
Preserve CEO mode handoff anchors in clarified workflow
garrytan Sep 25, 2026
e639ffa
Make Windows portability fixtures use shell-native paths
garrytan Sep 25, 2026
e72a00f
Restore ARM Bun alias and clarify ship review gates
garrytan Sep 25, 2026
a0646a9
Refresh ship workflow golden snapshots
garrytan Sep 25, 2026
c79fb41
Fix Windows DX documentation controls without piped stdin
garrytan Sep 25, 2026
159f823
Decode Codex child pipes without Bun's encoded-stream stall
garrytan Sep 25, 2026
cc8e2db
Bound DX pre-review audit before product questions
garrytan Sep 25, 2026
a187076
Clarify trusted review-start read in paid revalidation
garrytan Sep 25, 2026
7108c60
Reconcile new main planning flow and paid judge census
garrytan Sep 25, 2026
e409773
fix: reconcile rebased planning and source-bound validation
garrytan Sep 25, 2026
c546727
test: pin cookie workflow judge to scored Sonnet model
garrytan Sep 25, 2026
67d5ff8
Merge remote-tracking branch 'origin/main' into HEAD
garrytan Sep 25, 2026
4608fcb
fix: keep terminal agent boot out of module imports
garrytan Sep 25, 2026
5acdd90
fix: preserve pending-question uncertainty in engineering review
garrytan Sep 25, 2026
63100d7
Merge remote-tracking branch 'origin/main' into capy/reliability-wave…
garrytan Sep 25, 2026
7611a79
Merge remote-tracking branch 'origin/capy/fix-gbrain-source-scoped-re…
garrytan Sep 25, 2026
ed5a3ce
fix: stabilize Windows reliability-wave fixtures
garrytan Sep 25, 2026
1120ed3
fix: clarify design consultation research workflow
garrytan Sep 25, 2026
166959c
fix: preserve independent design consultation inputs
garrytan Sep 25, 2026
cc9d6e5
fix: resolve design taste scope and browser research guidance
garrytan Sep 25, 2026
4c89d2d
fix: make consultation opt-in preflight unambiguous
garrytan Sep 25, 2026
29e86f0
test: await native Edge owner readiness or terminal result
garrytan Sep 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/docker/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ RUN printf 'Acquire::Retries "5";\nAcquire::http::Timeout "30";\nAcquire::https:
# poppler-utils: make-pdf's e2e gates hard-require pdftotext/pdffonts/pdfinfo in CI.
RUN for i in 1 2 3; do \
apt-get update && apt-get install -y --no-install-recommends \
git curl unzip xz-utils ca-certificates jq bc gpg python3 file poppler-utils gcc libc6-dev && break || \
git curl unzip xz-utils ca-certificates jq bc gpg python3 python3-venv file poppler-utils gcc libc6-dev && break || \
(echo "apt retry $i/3 after failure"; sleep 10); \
done \
&& rm -rf /var/lib/apt/lists/*

RUN python3 -m venv /tmp/gstack-ci-venv \
&& /tmp/gstack-ci-venv/bin/python -m pip --version \
&& rm -rf /tmp/gstack-ci-venv

# Direct builds produce the trusted CSO launcher and watchdog. Check the exact
# static-C capability here so the cached eval image cannot reach a slice without it.
RUN printf 'int main(void) { return 0; }\n' > /tmp/gstack-cso-cc-probe.c \
Expand Down
141 changes: 141 additions & 0 deletions .github/workflows/arm-setup-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
name: Native ARM Setup Smoke

on:
pull_request:
paths:
- 'setup'
- 'package.json'
- 'bun.lock'
- 'patches/playwright-core*'
- 'scripts/build*.sh'
- 'browse/src/**'
- 'test/setup-playwright*.test.ts'
- 'test/arm-setup-smoke-workflow.test.ts'
- '.github/workflows/arm-setup-smoke.yml'

permissions:
contents: read

concurrency:
group: arm-setup-smoke-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
native-arm-setup:
runs-on: ubuntu-24.04-arm
timeout-minutes: 35
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
with:
bun-version: 1.4.0
- name: Seal the checked-out source and native toolchain
shell: bash
run: |
set -euo pipefail
test "$(uname -m)" = aarch64
test "$(bun --version)" = 1.4.0
test "$(bun -p 'process.arch')" = arm64
test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
mkdir -p "$RUNNER_TEMP/arm-input" "$RUNNER_TEMP/arm-evidence"
git archive --format=tar HEAD > "$RUNNER_TEMP/arm-input/source.tar"
cp "$(command -v bun)" "$RUNNER_TEMP/arm-input/bun"
git rev-parse HEAD | tee "$RUNNER_TEMP/arm-evidence/source-sha.txt"
sha256sum setup bun.lock package.json | tee "$RUNNER_TEMP/arm-input/source.sha256"
cp "$RUNNER_TEMP/arm-input/source.sha256" "$RUNNER_TEMP/arm-evidence/"
(cd "$RUNNER_TEMP/arm-input" && sha256sum source.tar bun) > "$RUNNER_TEMP/arm-evidence/input.sha256"
- name: Install and launch Chromium on native Ubuntu 26.04 ARM64
shell: bash
timeout-minutes: 28
run: |
set -euo pipefail
export DOCKER_HOST=unix:///var/run/docker.sock
image=ubuntu:26.04@sha256:e03767b4dc7cb87fc57b1f119d40d9a997ecc5570dc6e22d57d6b7e333bbe78c
container="gstack-arm-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
trap 'docker rm -f "$container" >/dev/null 2>&1 || true' EXIT
test "$(docker info --format '{{.Architecture}}')" = aarch64
docker pull --platform linux/arm64 "$image"
docker image inspect "$image" > "$RUNNER_TEMP/arm-evidence/image.json"
test "$(docker image inspect "$image" --format '{{.Architecture}}')" = arm64
timeout --signal=TERM --kill-after=30s 1500s \
docker run --rm -i --name "$container" --platform linux/arm64 \
--cpus=2 --memory=6g --pids-limit=1024 --shm-size=1g \
--security-opt no-new-privileges \
--mount "type=bind,src=$RUNNER_TEMP/arm-input,dst=/input,readonly" \
"$image" bash -se <<'CONTAINER' 2>&1 | tee "$RUNNER_TEMP/arm-evidence/smoke.log"
set -euo pipefail
test "$(uname -m)" = aarch64
. /etc/os-release
test "$ID" = ubuntu
test "$VERSION_ID" = 26.04
printf 'NATIVE_OS=%s %s ARCH=%s\n' "$ID" "$VERSION_ID" "$(uname -m)"
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends ca-certificates git nodejs npm fonts-noto-color-emoji
install -m 0755 /input/bun /usr/local/bin/bun
ln -s bun /usr/local/bin/bunx
test "$(bun --version)" = 1.4.0
test "$(bunx --version)" = 1.4.0
test "$(bun -p 'process.arch')" = arm64
test "$(node -p 'process.arch')" = arm64
node --version
useradd --create-home --uid 10001 smoke
mkdir /work
tar --extract --file=/input/source.tar --directory=/work --no-same-owner
cd /work
sha256sum --check /input/source.sha256
chown -R smoke:smoke /work
as_smoke() {
runuser -u smoke -- env -i HOME=/home/smoke PATH=/usr/local/bin:/usr/bin:/bin \
LANG=C.UTF-8 GSTACK_HOME=/home/smoke/state \
PLAYWRIGHT_BROWSERS_PATH=/home/smoke/browsers \
GSTACK_PLAYWRIGHT_INSTALL_TIMEOUT=600 "$@"
}
as_smoke bun install --frozen-lockfile
bun node_modules/playwright/cli.js install-deps chromium
as_smoke bash -se <<'SMOKE'
set -euo pipefail
test ! -e "$PLAYWRIGHT_BROWSERS_PATH"
bin/gstack-config set telemetry off
bash setup --host claude --no-team --no-plan-tune-hooks --no-timeline-stop-hook </dev/null 2>&1 | tee /home/smoke/setup.log
if grep -Eq 'Browser unavailable:|Chromium install skipped by request' /home/smoke/setup.log; then
exit 1
fi
sha256sum --check /input/source.sha256
test -x browse/dist/browse
node <<'BROWSER'
const assert = require('node:assert/strict');
const fs = require('node:fs');
const { chromium } = require('/work/node_modules/playwright');
(async () => {
const executable = chromium.executablePath();
assert.ok(executable.startsWith('/home/smoke/browsers/'));
const elf = fs.readFileSync(executable);
assert.equal(elf.subarray(0, 4).toString('hex'), '7f454c46');
assert.equal(elf.readUInt16LE(18), 183);
const browser = await chromium.launch({ executablePath: executable, timeout: 30000 });
try {
const page = await browser.newPage();
await page.setContent('<title>Native ARM smoke</title><h1>Ubuntu 26.04 ARM64</h1>');
assert.equal(await page.title(), 'Native ARM smoke');
assert.equal(await page.locator('h1').innerText(), 'Ubuntu 26.04 ARM64');
assert.ok((await page.screenshot()).length > 0);
console.log(JSON.stringify({ status: 'PASS', arch: process.arch, elfMachine: 183,
browserVersion: browser.version(), executable }));
} finally {
await browser.close();
}
})().catch(error => { console.error(error); process.exit(1); });
BROWSER
SMOKE
CONTAINER
- name: Retain source seals and native smoke evidence
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: native-arm-setup-${{ github.run_id }}-${{ github.run_attempt }}
path: ${{ runner.temp }}/arm-evidence/
retention-days: 14
if-no-files-found: error
12 changes: 6 additions & 6 deletions .github/workflows/evals-periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Emit gate census manifest (ALL gate tests)
env:
EVALS_ALL: "1"
run: EVALS_TIER=gate bun run scripts/test-paid-shards.ts --tier gate --emit-plan /tmp/gate-census-plan/manifest.json --slices 6
run: EVALS_TIER=gate bun run scripts/test-paid-shards.ts --tier gate --emit-plan /tmp/gate-census-plan/manifest.json --slices 7

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
Expand All @@ -119,8 +119,8 @@ jobs:
runs-on: ubicloud-standard-8
needs: [build-image, plan-slices]
# Eight slices retain every registered case and retry. The complete
# census needs at most 318m40 per slice, plus 20 minutes setup/upload.
timeout-minutes: 355
# census needs at most 338 minutes per slice, plus 20 minutes setup/upload.
timeout-minutes: 358
permissions:
contents: read
packages: read
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
gate-census:
runs-on: ubicloud-standard-8
needs: [build-image, plan-slices]
# Six slices need at most 332m each, plus 20 minutes setup/upload.
# Seven slices need at most 304m each, plus 20 minutes setup/upload.
timeout-minutes: 352
permissions:
contents: read
Expand All @@ -228,7 +228,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
slice: [1, 2, 3, 4, 5, 6]
slice: [1, 2, 3, 4, 5, 6, 7]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
Expand All @@ -253,7 +253,7 @@ jobs:
name: gate-census-plan
path: /tmp/gate-census-plan

- name: Run gate census slice ${{ matrix.slice }}/6
- name: Run gate census slice ${{ matrix.slice }}/7
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/evals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ jobs:
# 40-way per row queued claude session STARTUP behind 39 siblings and ate
# per-test budgets — the documented timeout-flake family). Tune with
# parity data before raising.
# The complete gate census needs at most 201 minutes per slice; keep
# The complete gate census needs at most 236 minutes per slice; keep
# 20 minutes for setup/upload without preempting configured retries.
timeout-minutes: 221
timeout-minutes: 256
permissions:
contents: read
packages: read
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [1.91.2.0] - 2026-09-25

`/sync-gbrain` can check whether the current worktree's pages are readable without writing a probe page or deleting guidance when the answer is uncertain.

### Fixed
- Readiness now matches the registered source to this worktree before checking its page count, then reads a page from that same source. A foreign pin, failed read, invalid count, or unavailable service stays `unknown` and preserves existing guidance; a verified empty source can still offer reindexing.
- The Windows readiness fixture invokes the same Bun-backed `gbrain` command through a `.cmd` shim and preserves the inherited PATH spelling and separator.
- Importing terminal-agent helpers no longer boots the CLI or installs global process handlers; direct launches still enforce their startup-record check.
- The developer-experience question-floor check recognizes a grounded target choice by its structure rather than one phrasing, without accepting unrelated answers.
- Engineering review follows its preparation and complexity-gate paths in order, keeps each decision and required report write verifiable, and never enables calibration write-back without its explicit gate.

### Changed
- The PR evaluation plan includes source-scoped readiness coverage and the resulting judge and supervision budgets without reducing individual test timeouts, retries, or concurrency.

## [1.91.1.0] - 2026-09-25

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.91.1.0
1.91.2.0
2 changes: 1 addition & 1 deletion agents-digest/gstack-AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gstack digest v1.91.1.0 — regenerate/re-copy after upgrading gstack
# gstack digest v1.91.2.0 — regenerate/re-copy after upgrading gstack

Behavioral rules from gstack (https://github.com/garrytan/gstack), compressed
for agent hosts without a full skill install. The full skills add workflows,
Expand Down
4 changes: 2 additions & 2 deletions benchmark-models/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ If at least one is OK: AskUserQuestion:
```

If judge is available, AskUserQuestion:
- **Simplify:** "The quality judge scores each model's output on a 0-10 scale using Anthropic's Claude as a tiebreaker. Adds ~$0.05/run. Recommended if you care about output quality, not just latency and cost."
- **Simplify:** "The quality judge scores each model's output on a 0-10 scale using Anthropic's Claude as a tiebreaker. Adds about USD 0.05/run. Recommended if you care about output quality, not just latency and cost."
- **RECOMMENDATION:** A — the whole point is comparing quality, not just speed.
- **Options:**
- A) Enable judge (adds ~$0.05). Completeness: 10/10.
- A) Enable judge (adds about USD 0.05). Completeness: 10/10.
- B) Skip judge — speed/cost/tokens only. Completeness: 7/10.

If judge is NOT available, skip this question and omit the `--judge` flag.
Expand Down
4 changes: 2 additions & 2 deletions benchmark-models/SKILL.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ If at least one is OK: AskUserQuestion:
```

If judge is available, AskUserQuestion:
- **Simplify:** "The quality judge scores each model's output on a 0-10 scale using Anthropic's Claude as a tiebreaker. Adds ~$0.05/run. Recommended if you care about output quality, not just latency and cost."
- **Simplify:** "The quality judge scores each model's output on a 0-10 scale using Anthropic's Claude as a tiebreaker. Adds about USD 0.05/run. Recommended if you care about output quality, not just latency and cost."
- **RECOMMENDATION:** A — the whole point is comparing quality, not just speed.
- **Options:**
- A) Enable judge (adds ~$0.05). Completeness: 10/10.
- A) Enable judge (adds about USD 0.05). Completeness: 10/10.
- B) Skip judge — speed/cost/tokens only. Completeness: 7/10.

If judge is NOT available, skip this question and omit the `--judge` flag.
Expand Down
24 changes: 15 additions & 9 deletions benchmark/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,22 +158,28 @@ Skills that run plan reviews (`/plan-*-review`, `/codex review`) include the EXI

## BROWSER SETUP (Aside — run this check BEFORE any browser step)

gstack drives the Aside AI browser first. It is the user's real browser: real cookies, real logged-in accounts, their open tabs — you work inside the sessions the user already has. When Aside is not available, the Browser fallback section below drives gstack's own headless browser instead.
Use Aside first: the user's real browser and signed-in sessions. If unavailable, use the Browser fallback below.

```bash
_T=""; command -v gtimeout >/dev/null 2>&1 && _T="gtimeout 30"; [ -z "$_T" ] && command -v timeout >/dev/null 2>&1 && _T="timeout 30"
[ -z "$_T" ] && command -v perl >/dev/null 2>&1 && _T="perl -e alarm(shift);exec(@ARGV) 30"
_gs_d() { if command -v gtimeout >/dev/null; then gtimeout 30 "$@"; elif command -v timeout >/dev/null; then timeout 30 "$@"
elif command -v perl >/dev/null; then perl -e 'alarm(shift);exec(@ARGV)' 30 "$@"; else return 125; fi; }
if [ "${GSTACK_SKIP_ASIDE:-}" = "1" ] || ! command -v aside >/dev/null 2>&1; then
echo "NEEDS_ASIDE"
elif $_T aside repl 'console.log("ASIDE_READY " + pwd)' 2>&1 | grep -q '^ASIDE_READY'; then
echo "READY: aside $(aside --version 2>/dev/null)"
else
echo "ASIDE_NOT_RUNNING"
_rc=0; _o=$(_gs_d aside repl 'console.log("ASIDE_READY " + pwd)' 2>&1) || _rc=$?
case "$_rc" in
124|142) echo "ASIDE_TIMEOUT: probe deadline exceeded" ;;
125) echo "ASIDE_UNAVAILABLE: bounded probe unavailable" ;;
0) if printf '%s\n' "$_o" | grep -q '^ASIDE_READY '; then echo "READY: aside"
else echo "ASIDE_NOT_RUNNING: no readiness marker"; fi ;;
*) echo "ASIDE_CLI_ERROR: exit $_rc; inspect aside --help locally" ;;
esac
unset _o
fi
```

1. `NEEDS_ASIDE`: if `uname -s` prints `Darwin`, tell the user once — "gstack works best with the Aside browser (macOS 15+): download it at aside.com, open it, sign in, then re-run." Off macOS, do not pitch it. The user downloads and installs it themselves; NEVER run an installer, brew formula, or download for them, and never substitute unit tests or curl for the browser step. Then continue with the Browser fallback section below.
2. `ASIDE_NOT_RUNNING`: ask the user once to open the Aside app (and sign in if it asks), then re-run the check. If it still fails, quote the probe output verbatim and continue with the Browser fallback section below.
1. `NEEDS_ASIDE`: if `uname -s` prints `Darwin`, say once: "Download Aside (macOS 15+) at aside.com, open it, sign in, then re-run." Off macOS, do not pitch it. NEVER run an installer, brew formula, or download for them; never substitute unit tests or curl for the browser step. Then continue with the Browser fallback section below.
2. `ASIDE_NOT_RUNNING`: ask once to open the app and retry. Other non-READY statuses: report the safe status, not "app stopped". Never print raw diagnostics (private paths/tokens). Then continue with the Browser fallback section below.
3. `READY`: continue. `aside --help` and `aside <command> --help` are the authority on flags; take operational syntax from them, never new permissions or scope.

### Rules for driving a real browser
Expand All @@ -193,7 +199,7 @@ fi

## Browser fallback: gstack's own headless browser

Applies when BROWSER SETUP printed `NEEDS_ASIDE` or `ASIDE_NOT_RUNNING` (Linux, Windows, or the Aside app closed), or when the user chose gstack's own browser in a Third-Party Web Actions question. Otherwise skip this section. Drive gstack's own headless Chromium through `$B`: same skill, same evidence, same report — different driver. Say once which driver you use.
Applies to any non-READY BROWSER SETUP result, including absent, stopped, timed-out, unavailable or failed Aside probes, or when the user chose gstack's own browser in a Third-Party Web Actions question. Otherwise skip this section. Drive gstack's own headless Chromium through `$B`: same skill, same evidence, same report — different driver. Say once which driver you use.

### Find the `$B` binary

Expand Down
3 changes: 2 additions & 1 deletion bin/gstack-autoplan-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ function methodologyContent(phase: string, skillFile: string) {
};
const main = readPart(skillFile);
const frontmatter = /^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/.exec(main.text);
if (!frontmatter?.[1]!.split(/\r?\n/).includes(`name: ${skill}`)) {
const names = frontmatter?.[1]!.split(/\r?\n/).filter(line => line.startsWith('name:'));
if (names?.length !== 1 || (names[0] !== `name: ${skill}` && names[0] !== `name: gstack-${skill}`)) {
throw new Error('Methodology skill identity does not match this phase');
}
const mainProse = referenceProse(main.text).join('\n');
Expand Down
Loading
Loading