Skip to content

browse: per-agent session tabs; phone emulation and touch input for QA (#1961, #3058) - #3773

Closed
garrytan wants to merge 26 commits into
mainfrom
gsta227-tabs-touch
Closed

garrytan wants to merge 26 commits into
mainfrom
gsta227-tabs-touch

Conversation

@garrytan

@garrytan garrytan commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3773,
  "head": "11c7b92a5e33a04ff2c12df6e038910c5a29956d",
  "version": "1.92.61.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 1172,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "82e9097d256dce4d71c18f6ca9f0d302ce283603",
  "product_patch_id": "13f6b72be2dfe8b732cf6d7caa01517195ed26b0",
  "gstack_version": "1.92.61.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 1043,
    "rules": "551486253e156572",
    "base": "dd9834d44d2650818cb6d8e17c57f795cb56bf98",
    "registry": "dd9834d44d2650818cb6d8e17c57f795cb56bf98",
    "gate_scan": {
      "tagged": 0,
      "head": "11c7b92a5e33a04ff2c12df6e038910c5a29956d"
    },
    "reasons": [
      "gate-class",
      "risk:auth",
      "risk:secret",
      "risk:security",
      "runtime=1043"
    ],
    "risk": [
      "auth",
      "secret",
      "security"
    ]
  },
  "pregate": "requires-remote cleared @82e9097d256d (1 checks, current for 11c7b92a5e33)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/41397274532",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41397274532",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41397274820",
    "pregate.json/remote_gate: remote-gate tree=82e9097d256d tests=26733"
  ],
  "issues": {
    "fixes": [
      1961
    ],
    "refs": [
      3058
    ],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "dd9834d4..a7c7cca4: README.md, BROWSER.md, docs/*.md; qa templates; generated command list and llms.txt (audit gsta227-docs-6)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 7,
    "deferred": 0,
    "noted": 3,
    "fixed": 7,
    "scope": "frozen",
    "fix_checks": 8,
    "rounds": 9,
    "dispatches": {
      "specialist": 5,
      "red-team": 1
    }
  },
  "review_targeted": {
    "classes": [
      "auth",
      "secret"
    ],
    "rules": "baeb8f7ef7da92d0",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "13f6b72be2dfe8b732cf6d7caa01517195ed26b0",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

What changed

Four agents at once on one browse daemon: before, 15 of 20 reads saw another agent's page; after, 0 of 20

Four agents share one browse daemon, and every call runs in a fresh shell. Each agent opens its own page and reads it back five times. Before (main 4eff47c), 15 of 20 reads saw another agent's page. After (this PR), each agent gets its own tab, and 0 of 20 reads cross over.

Text version
Before (main 4eff47c): 15 of 20 reads saw another agent's page
  agent1 round3 saw agent3
  agent2 round1 saw agent3
  ...
After (this PR): 0 of 20 reads saw another agent's page
  [2] agent3 - p3.html?r=5 (session:agent-32573)
  [3] agent1 - p1.html?r=5 (session:agent-32571)
  [4] agent4 - p4.html?r=5 (session:agent-32574)
  [5] agent2 - p2.html?r=5 (session:agent-32572)
Before: plain viewport resize After: $B device "iPhone 15", then swipe and tap
Before: 393 px wide, fine pointer, no touch points, mouse click only After: iPhone 15 at dpr 3, coarse pointer, 5 touch points, touchstart and touchend events; the swipe moved the carousel and the tap fired once

The same test page in both shots. Before, QA could only resize the viewport: the page saw a mouse (pointer: fine, maxTouchPoints: 0) and only click events. After, device gives the tab a real phone profile (dpr 3, coarse pointer, iPhone user agent), swipe left moves the carousel to item 1, and tap fires the button once with touchstart and touchend.

Text version
Before: width 393 css px, dpr 1; pointer: fine (mouse); maxTouchPoints: 0; events: click (mouse); carousel item 0; shots 0
After:  width 393 css px, dpr 3; pointer: coarse (touch); maxTouchPoints: 5; UA iPhone OS 17_5;
        events: touchstart on f, touchend on f, click, touchstart on c, touchend on c; carousel item 1; shots 1

Evidence so far

  • Four agents on one daemon: before, 15 of 20 reads saw another agent's page; after, 0 of 20.
  • Whole browse/test suite: 3679 pass, 0 fail.

Security read

browse/src/session-name.ts runs ps (macOS) or reads /proc (Linux) to find the agent harness pid. It is read-only, has a timeout and hides its window. Only the root token can name a session. session: client ids are reserved. The new verbs are not on the tunnel allowlist. No workflow, setup, install or dependency changes.

Open in Capy

Why

"Parallel agents share one browser tab" (#1961): when two agents drive the same browse daemon, one agent's goto moves the page the other is reading, so their checks pass or fail on the wrong page. Now each agent process gets its own tab on its first command, and you can name a session with --session or BROWSE_SESSION. "QA: no way to test touch controls" (#3058): /qa could only show a page at phone size. Now $B device emulates a phone on one tab and tap, swipe, pinch and touch send real touch events, on gstack's bundled Chromium.

Blast radius

The change touches the browse daemon's tab routing (browser-manager.ts, server.ts, the CLI), its command table, the generated browse and devex-review skill docs, and /qa's report template. What keeps that safe is that a command with no session keeps today's behavior. The root token drives the shared active tab exactly as before, and only a named or automatic session gets a scoped tab. The whole browse/test suite passed at 48bba66 (3679 pass, 0 fail, script ran), and the four-agent before/after above is a live repro. #3739 (GSTA-217) also edits browse/src and is still open, so whichever lands second needs a trial merge.

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-31 Build F1 (per-agent browser tabs, #1961) and F3 (phone emulation and touch on bundled Chromium, #3058) from the GSTA-227 plan “Do it” (Garry (via GStack Minder)) approved the reviewed GSTA-227 plan, every recommendation; F3 on bundled Chromium only; build cap $100 none
2026-11-01 One more fix-check past the review cap on the two hunks in 59bed0f “Rule 23 granted: one Opus fix-check on the two hunks in 59bed0f.” (GStack Minder) approved one fix-check (rule 23) none
2026-11-01 One fix-check on CI fixes 6cf64ab and 45903c1 “A: rule 23 grant for one single-reviewer fix-check on 6cf64ab and 45903c1.” (GStack Minder) approved one fix-check (rule 23) none

Source: gstack-approvals record for gsta227-tabs-touch (display only; not an approval citation).

Summary

Agents that share one browse daemon kept reading each other's pages, and QA had no way to test touch. Each agent process now gets its own tab. The CLI finds the agent harness process and names a session after it, so an agent's goto, snapshot, click and chain commands stay on its own tab. --session and BROWSE_SESSION name a session by hand, and BROWSE_TAB and --tab-id pins no longer move the shared active tab. Idle sessions close after 120 minutes, and at most 16 run at once (oldest idle first).

Phone emulation and touch are per tab: $B device "iPhone 15" (or --list) sets the size, scale, user agent and touch support, and tap, swipe, pinch and multi-finger touch down/move/up/cancel send real touch events. Touch refuses with a fix line when no device is set. This is bundled Chromium only, not WebKit or iOS Safari. /qa gains a touch pointer and a Phones row, and the Aside cookbook gains a touch recipe.

Security read: browse/src/session-name.ts runs ps (macOS) or reads /proc (Linux) to find the agent harness pid. It is read-only, has a timeout and hides its window. Only the root token can name a session, session: client ids are reserved, and the new verbs are not on the tunnel allowlist. No workflow, setup, install or dependency changes.

Test Coverage

Every new path has a test: per-session tab isolation, pins, headed mode, LRU and the session cap, idle expiry, state save and load, device profiles, each touch verb and its refusals, and the render and sidebar opt-outs (browse/test/session-tabs.test.ts, session-name.test.ts, touch-commands.test.ts, token-registry.test.ts). Each fixed review finding got a test that failed before its fix (evidence kept with the run).

Tests ran: focused 963

Pre-Landing Review

Every blocking finding was fixed, each with a test that failed first: 4 from the specialist pass, 9 from the adversarial and outside voices, and 2 from a fix-check. The last six fix-checks (on 59bed0f, on the CI fixes 6cf64ab and 45903c1, on the qa trim 17325ba, on the result-code list merge resolution 1e7a628, on the doctor-fixture merge resolution 3411b0f, and on the result-code merge plus the BROWSE_TAB_UNRECOVERABLE row move a7c7cca) found nothing. The auth and secret targeted reader found nothing.

REVIEW_LOOP: passes=1 blocking_found=7 deferred=0 noted=3 fixed=7 scope=frozen fix_checks=8 dispatches=6

Outside review (gpt-6.1-sol): ran; its blocking findings were fixed in 48bba66.

Review notes

  • browse/src/snapshot.ts:434: on a device tab, a CDP failure while snapshot reasserts the device can leave the annotation overlays on the page (the heatmap path too). It takes a CDP error to reach this, and page.screenshot already had the same exposure.
  • Automatic sessions under sandboxed agent shells are not verified: if a wrapper such as timeout or bwrap sits between the shell and $B, each call could get its own session, or none in a pid namespace. No gstack skill wraps $B that way.
  • The Aside touch recipe was checked by the build lane on Aside 1.26, not by this ship run.

Exploratory QA

Report-only QA on the CLI at fd38148 (isolated state file and fixture server): --session and BROWSE_SESSION isolation, device success and --list, argument checks, and every touch verb passed. It found one defect: touch cancel with no held fingers leaked a raw CDP error. That was fixed in ecc40fe with a test. The automatic agent session was not probed in that QA run, but the four-agent repro above covers it.

Issues

Fixes #1961
Refs #3058

#3058 also asks for WebKit and real iOS Safari, which this PR leaves out by design (bundled Chromium only), so it stays open.

TODOS

Documentation

Status: updated (one factual edit, no blockers)

Scope: branch gsta227-tabs-touch, diff dd9834d..a7c7cca (46 files: per-session browse tabs #1961, per-tab phone emulation and touch #3058, the browse result-code split). No staged, unstaged or new files.

Doc diff preview

Documentation health

Documentation health:
  docs/troubleshooting.md          Updated (#3058 'Fixed in' lines -> v1.92.61.0; all 8 browse anchors present)
  BROWSER.md                       Current (sessions, phone emulation + touch, env vars match session-tabs.ts defaults 120/16)
  docs/REMOTE_BROWSER_ACCESS.md    Current (session: client names reserved)
  browse/sections/command-list.md  Current (generated; matches commands.ts)
  gstack/llms.txt                  Current (generated)
  qa/SKILL.md.tmpl                 Current (touch pointer)
  qa/templates/qa-report-template.md Current (Phones row)
  changelog.d/gsta227-tabs-touch.md Current (not edited; parent owns changelog)
  TODOS.md                         Current (not edited; #1961 shipped, #3058 Safari half open)
  README.md                        Current (BROWSER.md and troubleshooting reachable)

Documentation Debt

  • Common gap: per-session tabs (--session, BROWSE_SESSION) have reference docs (BROWSER.md, troubleshooting) but no how-to for running parallel subagents that share one agent process.
  • Common gap: $B device / tap / swipe / pinch / touch have reference docs plus a one-line /qa pointer, but no walkthrough of a multi-finger flow.
  • Diagram drift: none found.

Suggested follow-up: /document-generate for a how-to on browse sessions.

Test plan

  • focused lane at 11c7b92 (26 files: session, touch, tab external close, token, server-auth, content-security, sidebar, parity, qa lazy sections, pr-dependencies, the four doctor files, size guards, fence lint, placeholders, plan-tune, timeline hook): 1172 pass, 0 fail
  • after merging main dd9834d: gen:skill-docs dry run 0 stale, typecheck clean. lib/result-codes.ts went over the 800-line module ratchet (802), so the existing BROWSE_TAB_UNRECOVERABLE row moved unchanged into lib/result-codes-browse.ts (796 lines now)
  • qa parity after an earlier main merge: union 95988 bytes (ratio 1.142, over the cap) before the trim, 95975 (1.1419) after; the cap was not raised
  • whole browse/test at 48bba66: 3679 pass, 34 skip, 0 fail
  • remote pregate on tree 82e9097 (Ubicloud, whole free tier): 26733 tests, 0 failed
  • CI at 11c7b92: all checks green

garrytan and others added 15 commits October 31, 2026 23:07
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e shared active tab (#1961)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…, swipe, pinch, touch; #3058, GSTA-227 F3)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… Aside 1.26, report Phones row (GSTA-227 F3, #3058)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…abs-touch

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	docs/troubleshooting.md
#	lib/result-codes-browse.ts
…arity cap

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…to-session rows

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…r's tab, pinned rebuild and state load rebind the scope

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…no-op)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…, CLI retry keeps --session, rebuild id remap, --json notice, evicted-session reset, device kept after annotated captures, render opts out of sessions, session: client ids reserved)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tab opts out of sessions

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ent ids reserved; TODOS #1961/#3058 shipped

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 1, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

garrytan and others added 2 commits November 1, 2026 00:35
… result-code modules

lib/result-codes.ts imports ./result-codes-browse, so fixtures with an explicit
lib list failed with 'Cannot find module'. pr-dependencies lists it with the other
reason-code modules as selection data. GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…h a numeric grammar

The generated-bash lint (INV-3) rejected the free-text <x>/<y> placeholders. GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 1, 2026 01:33
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 57/57 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 6m19s · cost $17.60 known + 10 of 81 trial(s) cost unknown

76 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $17.60 rule/judge cost | reconcile exit: 0

Profile: pr / mode pr; selected behaviors: 57, judges: 24. Deferred to scheduled/release coverage: 204 behaviors and 1 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $0.91
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $0.88
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.1
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $0.86
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $0.79
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $0.86
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $0.67
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.34
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.13
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.4
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $0.26
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $0.43
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.17
e2e-review/skill-e2e-review 1/1 0 1 0 ✅ $0.19
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $0.39
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $0.56
e2e-skillify/skill-e2e-skillify 1/1 0 1 0 ✅ $0.07
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $0.83
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $0.72
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.19
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.31
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $0.43
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $0.72
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.09
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.06
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $1.03
e2e-session-intelligence/skill-e2e-session-intelligence 1/1 0 1 0 ✅ $0.06
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.14
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.08
e2e-browse/skill-e2e-bws 3/3 0 3 0 ✅ $0.17
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.1
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.16
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.09
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.07
e2e-third-party-actions/skill-e2e-third-party-actions 2/2 0 2 0 ✅ $0.17
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.24
llm-judge/skill-llm-eval 24/24 0 24 0 ✅ $1.44
e2e/skill-e2e-workflow 3/3 0 3 0 ✅ $0.35
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.28
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $0.86
Fail-closed reconciliation
s.test.ts#ship-exploratory-unavailable
  slice 6  passed             76s  test/skill-e2e-qa-functional.test.ts
  slice 6  passed             77s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-stale-after
  slice 6  passed             32s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 6  passed             14s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 7  passed             26s  test/skill-e2e-review.test.ts
  slice 7  passed             73s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-recovery
  slice 7  passed             55s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-late-result
  slice 7  passed             51s  test/skill-e2e-plan-ceo-plan-mode.test.ts
  slice 7  passed             52s  test/skill-e2e-docsync-spawned.test.ts
  slice 7  passed             45s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-asset
  slice 7  passed             28s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 7  passed             22s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 8  passed             35s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 8  passed             38s  test/skill-e2e-bws.test.ts
  slice 8  passed             18s  test/skill-e2e-third-party-actions.test.ts
  slice 8  passed             21s  test/skill-e2e-plan-tune.test.ts
  slice 8  passed             29s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 8  passed             22s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 8  passed              8s  test/skill-e2e-session-intelligence.test.ts
  slice 8  passed             32s  test/skill-e2e-ship-hook-consent.test.ts
  slice 8  passed             28s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 8  passed             19s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 8  passed             19s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 8  passed             11s  test/skill-e2e-learnings.test.ts
  slice 8  passed             14s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 76 executed, 0 reused; 76 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (76 attempt records from 40 collectors; every record counts)
[test:paid] deselected testcases, zero credit (193):
[test:paid]    175  sibling case of a case shard (its own shard runs it)
[test:paid]     13  outside the run's case selection
[test:paid]      5  periodic-tier case (this lane runs gate)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 57/57 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 6m19s · cost $17.60 known + 10 of 81 trial(s) cost unknown
[test:paid] exercised-path map (shadow, non-blocking): 6 MAP_GAP line(s) over 53 executed case(s) with recorded commands
  MAP_GAP plan-review-report bin/gstack-plan-reality: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP review-gate-integrity browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-exploratory-small-cli bin/gstack-review-plan: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP test-audit-report-only design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
[test:paid] report: every planned shard accounted and passed

Sliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry.

Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit 900f59ca896c09af0094ec2b1a494d2da7295574.

garrytan and others added 9 commits November 1, 2026 02:43
… size cap after the main merge

qa's union was 95988 bytes (ratio 1.142 > maxSizeRatio 1.142, train 75). Now 95975 (1.1419). GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e main merge

GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Keeps both result-code splits: result-codes-plan (main) and result-codes-browse (this PR) in lib/result-codes.ts, the fixture copy lists and pr-dependencies selection data; bin/gstack-doctor-components.sh regenerated. GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e main merge

GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
test/gstack-doctor.test.ts takes main's split (setup moved to test/helpers/doctor-fixture.ts); the helper's copy list adds lib/result-codes-browse.ts. GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e main merge

GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Keeps main's result-codes-autoplan and this PR's result-codes-browse in lib/result-codes.ts, pr-dependencies and the fixture copy lists; regenerates bin/gstack-doctor-components.sh. BROWSE_TAB_UNRECOVERABLE moves into result-codes-browse.ts so lib/result-codes.ts stays within the 800-line module ratchet. GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e main merge

GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Frozen in wave browse-7bde476eb22d (branch wave/browse-7bde476eb22d) at 11c7b92. Push nothing here: a moved head drops this PR from the wave. Fixes go on the wave branch through its integrator.

@capy-ai

capy-ai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Frozen in wave browse-20c099776dd6 (branch wave/browse-20c099776dd6) at 11c7b92. Push nothing here: a moved head drops this PR from the wave. Fixes go on the wave branch through its integrator.

capy-ai Bot added a commit that referenced this pull request Nov 2, 2026
* feat(loadouts): Opus 5.5 lite loadout with explicit model detection (GSTA-161)

modules/loadouts.json gains the lite loadout (eleven coaching preamble
pieces dropped; upgrade-check and brain-sync kept) and a models map that
sends only claude-opus-5-5 (and its dated snapshots) to it. Detection is
explicit: Capy passes --model to the installer, Claude Code opts in with
./setup --loadout lite; anything unmapped, invalid or unreadable serves full.
The checkout always stays the full render.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs(loadouts): Opus 5.5 lite, detection order, Capy SKILL_ROOT, setup --loadout; troubleshooting anchors; changelog fragment (GSTA-161)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(loadouts): claude_loadout read through CONFIG_BIN; capy skill context ceiling for the --model line (GSTA-161)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (prune keeps a reused loadout folder, GSTACK_LOADOUT_SKILL_ROOT, claude_loadout guard test) (GSTA-161)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (Capy skill passes the model as GSTACK_MODEL so an older installer ignores it) (GSTA-161)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (prune only owned, unused folders; full root from the canonical Claude install; fallback reason and source) (GSTA-161)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: loadout source example, install and resolve commands, Capy launch-file note (GSTA-161)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* feat(autoplan): --ceo-only runs the CEO review alone with zero questions (GST-537)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test: classify autoplan-ceo-only in the Codex host metadata

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: select autoplan-ceo-only on the skills it runs; say it needs Claude Code

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test: run autoplan-ceo-only in the marathon lane

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: changelog entry for /autoplan --ceo-only

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test: count the autoplan-ceo-only paid file in the shard inventory

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* feat: gstack-autoplan next --ceo-only runs the CEO review alone and ends reviewed (GST-537)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: budget and close recover a budget-stopped CEO-only run; reviewed is at rest for checkpoints

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: CEO-only finish leaves owner-only cap items undecided, refuses marker phase flags and a plan at the report path, and replaces ceo-review.md atomically

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: the CEO-only report-path guard compares real paths and refuses at the finish when the report file is the plan

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: CEO_ONLY_CONFLICT covers a plan linked to the report path

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(browse): failing-first device and touch tests (GSTA-227 F3, #3058)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: the report-path guard keeps the lexical check, skips safe hard links and compares bigint file ids

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* browse: per-session tabs for parallel agents; tab pins stop moving the shared active tab (#1961)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* browse: keep the server.ts tab-pin anchor comment for source guards

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* feat(browse): per-tab phone emulation and touch input ($B device, tap, swipe, pinch, touch; #3058, GSTA-227 F3)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test: copy lib/result-codes-autoplan.ts into the fixtures that copy the result-code tables, and keep it out of derived closures

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs(qa, aside): touch pointer in /qa, Aside touch recipe verified on Aside 1.26, report Phones row (GSTA-227 F3, #3058)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* browse: drop the sessions paragraph from /browse to stay inside the parity cap

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* changelog: F3 phone emulation and touch entry

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* browse: hide the ps window in the session harness walk

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: the decisions.jsonl status list names auto_kept

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(browse): session cap, LRU eviction, headed release and scoped auto-session rows

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* browse: sessions keep tab <id> picks, sidebar claude stays on the user's tab, pinned rebuild and state load rebind the scope

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (touch cancel with no finger held is a no-op)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: Step 11 review fixes (headed tab adoption, pinned viewport reset, CLI retry keeps --session, rebuild id remap, --json notice, evicted-session reset, device kept after annotated captures, render opts out of sessions, session: client ids reserved)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: headed viewport auto keeps the user's active tab; render's closetab opts out of sessions

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: sessions, phone emulation and touch in BROWSER.md; session: client ids reserved; TODOS #1961/#3058 shipped

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test: copy lib/result-codes-browse.ts into the fixtures that copy the result-code modules

lib/result-codes.ts imports ./result-codes-browse, so fixtures with an explicit
lib list failed with 'Cannot find module'. pr-dependencies lists it with the other
reason-code modules as selection data. GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* feat: gstack-clean reclaims per-repo .gstack scratch and logs, dry run by default (#2627)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* browse: name the Aside touch recipe's coordinates <tap-x>/<tap-y> with a numeric grammar

The generated-bash lint (INV-3) rejected the free-text <x>/<y> placeholders. GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(clean): leave hard-linked and unreadable logs alone; cut through a no-follow descriptor checked against the evaluated inode

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(clean): tests that expect tmp removal see a quiet ps, so a codex elsewhere on the host cannot flake them

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(clean): an unlistable tmp/ skips its group; liveness asked once per group on apply; BROWSER.md says which logs reset at daemon start

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(clean): write output synchronously so --json reaches a pipe whole; test fixes for root, wrapper git and the ps stub

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(clean): every change rechecks the verified folder and the measured file; full writes; EPIPE ends output quietly

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(clean): the early-close test checks the bin's own exit status

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: list gstack-clean among the standalone CLIs

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(clean): copied-install fixtures and the dependency list carry lib/result-codes-clean.ts

The remote pregate failed 11 cases in gstack-doctor, plan-tune-cathedral and
timeline-stop-hook-slug: each copies an explicit list of lib/result-codes-*.ts
files into a temp install, and lib/result-codes.ts now imports
./result-codes-clean. Same lists GSTA-168 extended for result-codes-eval.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* chore: regenerate gstack-doctor-components.sh for the gstack-clean result codes

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* qa: fold the touch pointer into the Phases sentence to fit the parity size cap after the main merge

qa's union was 95988 bytes (ratio 1.142 > maxSizeRatio 1.142, train 75). Now 95975 (1.1419). GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: #3058 troubleshooting 'Fixed in' lines name v1.92.10.0 after the main merge

GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(clean): classify gstack-tasks rows files (tasks-*) as kept, after main added the producer

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: #3058 troubleshooting 'Fixed in' lines name v1.92.20.0 after the main merge

GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (restore the lib/result-codes-plan.ts ratchet row the base merge dropped)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(clean): the producer scan ends a name at a colon, so prose after a path names the file (train 78)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: #3058 troubleshooting 'Fixed in' lines name v1.92.30.0 after the main merge

GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* outside-voice-api: caller receipts, stop_reason, OpenAI max_completion_tokens

A caller can write its own egress receipt (sink, consent, payload class);
the default stays the outside-voice receipt, so existing callers send and
record the same bytes. The result carries the provider's stop reason, and
an OpenAI request gets max_completion_tokens only when the caller sets an
output limit (GST-537 PR 3).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* autoplan gate: item classes and the owner's answer provenance

Gate items carry item_class, ruleKept() names the keep-direction pick, and
answered decision rows record owner_mode, owner_named, rec_hash and
answered_role parsed from the owner's own words (GST-537 PR 3).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* autoplan: shadow-mode decider module, frozen prompt and spend accounting

The switch (off by default, fixed at init), the lease, one model call per
gate with a page retry and a truncation retry under one deadline, the
once-per-revision record with its journaled sha256, the 10% audit mark,
and shadow-labeled ledger rows that count against the cap, show as
shadow= on GATE_SPEND and stay out of the per-voice price (GST-537 PR 3).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* gstack-autoplan: shadow every published gate, the shadow export, config and docs

Every driver command that prints a gate records the shadow first and
checkpoints after it; answer waits for a live lease and records a dead
one retrospectively; gstack-autoplan shadow exports answered revisions
for taste-replay R2 (SHADOW_BEFORE_ANSWER otherwise); gstack-config
autoplan_shadow / autoplan_shadow_model; gstack-artifact validate checks
the record's hash (GST-537 PR 3).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* changelog: shadow mode for the CEO-only decider (GST-537 PR 3)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* autoplan shadow: /ship review fixes

- register test/fixtures/shadow-fake-model.ts in FREE_FIXTURES (free-fixtures inventory failed)
- withRunLock: count dead-owner reclaims apart from waitMs iterations, so a long wait can still reclaim
- buildPage: fill the decider template in one pass, so slot names inside the plan stay plan text
- revise regate: the shared publish step prints the GATE and ESCALATE lines once

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* autoplan shadow: reply files never follow a link; the retry reserves against the current cap

- a model reply is written by temp file and rename, so a link at the reply path is replaced, not written through
- each shadow reservation reads the run's current spend cap, so a budget change during the call is not undone

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* outside-voice-api: write the egress receipt under the caller's env

callModel resolved the receipt's state root from process.env even when the caller passed env, so the shadow
tests wrote to the real ~/.gstack (the free-suite home-containment guard caught it). The receipt now uses
req.env; the shadow tests give the fake model a private HOME, GSTACK_HOME and GSTACK_STATE_ROOT, and the receipt
test no longer sets process.env to pass.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(autoplan): CEO-only runs leave main's open Critical/High finding items to the owner (no decision row)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(autoplan): shadow pages carry main's finding items; a finding item is never ceo_eligible

After merging #3767 (main 90a170c), open Critical/High findings are gate items
(item_class finding). The shadow records one row per gate item, so its pages now
include them. A CEO-only run leaves those items to the owner, so their rows are
ceo_eligible false (rule_pick was already null). The shadow fixtures follow
main's gate (items, counts, "Do it" tokens); the two merge adapters follow
main's doNext(out, rest, price) and its per-voice reservation (--estimate-usd).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs: #3058 troubleshooting 'Fixed in' lines name v1.92.61.0 after the main merge

GSTA-227

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(investigate): drop the five-phase step procedure (GST-938)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* changelog: GST-938 fragment wording

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(investigate): keep the web-search sanitize guard; update BROWSER.md and docs/skills.md (review pass 1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* changelog: GST-938 wording

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(investigate): pin the web-search guard; changelog size (adversarial review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(clean): classify restamp-staging.json, the restamp producer main gained after #3779's base (wave browse)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (wave browse): scoped newtab keeps a concurrent tab switch; shadow validate catches a deleted record; a failed shadow publish is journaled

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: a failed shadow publish journals under the run lock and never throws (wave browse review pass 2)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* docs(unattended): shadow publish failures and the missing-record validate check (wave browse docs audit)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* changelog: wave browse integrator fixes fragment

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: shadow reader dedupes by run folder, so two runs started in the same second both count (wave browse CI free-suite 16)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* chore: regenerate doctor result anchors in generator order (wave browse rebuild without #3818)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* changelog: name the wave fragment after the rebuilt wave

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Landed in wave #3858 as v1.93.0.0 (9d9d4c3), merged from this PR's pin 11c7b92. Integrator changes touching this PR's files: 721cee5 (merge of #3779, resolved by hand: bin/gstack-doctor-components.sh, lib/result-codes.ts, scripts/pr-dependencies.ts, test/gstack-doctor.test.ts, test/plan-tune-cathedral.test.ts, test/timeline-stop-hook-slug.test.ts), a683bb4 (merge of #3817, resolved by hand: bin/gstack-config, bin/gstack-doctor-components.sh), a0dcb82, f9db102.

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.

Per-session tab isolation for multiple local agent sessions (foundation already shipped)

1 participant