Skip to content

Check each app build with an agent from another model family before its owner is asked to try it (GST-3025) - #4465

Merged
capy-ai[bot] merged 7 commits into
mainfrom
garrytan/first-use-check-before-owner-tries-a-build
Nov 17, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
garrytan/first-use-check-before-owner-tries-a-build

Conversation

@garrytan

@garrytan garrytan commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Adds gstack-first-use: before an app build reaches its owner as "ready to try", an agent from another model family plays that exact build, does the plan's first five day-one actions with a screenshot or video of each, and checks every link. Only then does it print the "try this build" message.
Why: a recent app build passed every review and its owner still found the first screen broken, because nothing tried the build the way the owner would.
Nothing to do now; the first real use is that app's next build.

What changed
  • gstack-first-use start freezes the first five rows of the plan's day-one table (the /autoplan table or the one-page list, one format) and the build fingerprint (commit plus TestFlight build or deploy version) into a write-once manifest. It refuses a missing or malformed table, a table with fewer than five complete rows, a row still marked assumed, a play spec missing any of the ten play-instruction parts, and a checker from the builder's model family.
  • brief prints the only thing the checker gets: device, account, play text and the five actions, with the commands to record each. Every value from the play spec in those commands is shell-quoted, so an account name with a quote, $ or backtick can't run anything. On Capy it plays on a cloud phone through the host's phone tools.
  • record, predict and links keep one write-once file per result (evidence copied in and hashed), the checker's predicted 1-10 score, and a dated check per link. Results and link checks are bound to the owner-equivalent account and the build's device class; any other audience is refused or ignored.
  • check and message pass only for the same build, unchanged day-one rows, a pass with intact evidence for every action, every link live within 15 minutes, and a predicted score. message prints the "try this build" text with all ten parts; it never shows the prediction.
  • score keeps the owner's score and exact words beside the prediction in the owner's private user-level Capy Drive folder, never in a repository. show prints the gap.
Docs

docs/first-use-check.md (steps, the pinned table format, the play-message requirements, where the record lives), troubleshooting anchors for the six new result codes, a README how-to row, and a short section in the Capy Captain guide.

Tests
  • bun test test/first-use.test.ts: 22 pass, 0 fail (made-up owner and app; pins the day-one table, every refusal including fewer than five rows and an empty cell, a spec whose values hold ", $ and a backtick, and the CLI end to end under a temporary HOME and drive)
  • CI free suite at this tree (run 44192453838): 1688 files, exit 0
Agent notes

GST-3025 item 2, plan in the GStack Minder drive (handoffs/GST-3025/plan.md), approved by the owner on 2026-11-17 ("do it", K1-T1). Touches nothing GST-2944 or GST-2947 pin: it reads parseDayOne from lib/autoplan-owner-text.ts unchanged, and the pin test fails if that format moves. Not a /ship or review change.

Open in Capy

Why

The owner's words on the failed build were that it passed every check and the first screen still didn't work. This makes a cold player from another model family try the build the way the owner will, on the same kind of device, before anyone asks the owner to.

Blast radius

New files plus one new result code family: bin/gstack-first-use, lib/first-use.ts, lib/first-use-message.ts, six FIRST_USE_* codes, and doc rows. It reads parseDayOne from lib/autoplan-owner-text.ts unchanged and nothing calls the new code yet, so no existing workflow changes (callers read by grep at ac9e513; test/first-use.test.ts 22 pass).

Pre-Landing Review

One full review pass (combined specialist reader and red team), one follow-up read of its fixes, the native adversarial read and a second-model review (openai/gpt-6.1-sol) ran on the first heads. The second-model review found two blockers: the brief put the account, run directory and model id into shell commands without quoting, and start accepted fewer than five day-one rows. Both are fixed in ac9e513 with tests, and one more read scoped to that commit found nothing blocking.

Review notes

Below the blocking floor and not fixed in this PR:

  • INFORMATIONAL lib/first-use.ts:209 liveFetcher counts any 2xx/3xx as live: a full or expired TestFlight invite still returns 200
  • INFORMATIONAL lib/first-use.ts:159 the cross-family guarantee rests on a self-reported --by
  • INFORMATIONAL lib/first-use.ts:72 modelFamily: a routing prefix still wins for families without a model word
  • INFORMATIONAL lib/first-use.ts:315 link freshness passes NaN or future-dated link checks; renderPlayMessage Math.min throws with no links
  • INFORMATIONAL lib/first-use.ts:191 evidence kind comes only from the extension; one screenshot can serve all five actions; lstat/read race
  • INFORMATIONAL docs/troubleshooting.md:1 troubleshooting page omits same_family and raw buildFingerprint reasons
  • INFORMATIONAL bin/gstack-first-use:77 start's NEXT line still puts the operator-chosen run dir in double quotes; not reachable from the play spec
Documentation

Status: current. The docs already match this branch, so no edits were needed.

Scope: base da98d0a to head ac9e513, 15 committed files, with nothing staged, unstaged or new. The audit covered the new gstack-first-use CLI and its docs, checked against lib/first-use.ts, lib/autoplan-owner-text.ts, lib/result-codes-capy.ts and bin/gstack-first-use.

Documentation health:

  • README.md: current (the first-use-check row is in the docs table)
  • docs/first-use-check.md: current (limits, refusal reasons, heading titles and record layout match the code)
  • docs/troubleshooting.md: current (all six FIRST_USE_* anchors match lib/result-codes-capy.ts)
  • capy/skill/gstack/captain.md: current (§5 matches the CLI)
  • changelog.d/first-use-check-before-owner-tries-a-build.md: reviewed, not edited

Coverage debt: gstack-first-use has reference, how-to and troubleshooting coverage but no tutorial, a minor gap. No critical gaps.

Diagram drift: none, because no architecture diagrams cover this surface.

Agent notes

GST-3025 item 2, plan in the GStack Minder drive (handoffs/GST-3025/plan.md), approved by the owner on 2026-11-17 ("do it", K1-T1). Touches nothing GST-2944 or GST-2947 pin: it reads parseDayOne from lib/autoplan-owner-text.ts unchanged, and the pin test fails if that format moves. Not a /ship or review change.

Refs p1/red-team#2
Refs p1/red-team#4

REVIEW_LOOP: passes=1 blocking_found=2 deferred=0 noted=3 fixed=4 scope=frozen fix_checks=2 dispatches=2
Gate edits: none detected (5 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: openai/gpt-6.1-sol completed on 409c89f (2 CRITICAL: p1/outside-voice#1, p1/outside-voice#2, both fixed in ac9e513 and confirmed by fix-check fc2)
Round grant: Captain GStack Minder (GSTA-36), one scoped fix-check after round 2 (approval a-5074b9e0cb3b, review_loop_grant 409c89f)

Approvals

Approved: yes (record r-5ffee88d9d14). The full approval record stays private.

{
  "schema_version": 1,
  "pr": 4465,
  "head": "f4bc2891695f3ad07396d36a852e9470fa9f4099",
  "version": "1.100.0.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1688,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 44192453838,
      "attempt": 1,
      "tree": "61942e49bbd59b1f362b9f32fa1b40aec1fc1482"
    }
  ],
  "calls": 9,
  "session_kind": "unattended",
  "run": "ship-4465-fu02",
  "head_tree": "9225226689260f75469eec5baf5b5ee8a82abbb9",
  "product_patch_id": "d2e18accaa1828ec4cab376d0b0e6b6e8492aff6",
  "gstack_version": "1.100.0.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 617,
    "rules": "eea6cc4231b53b9e",
    "base": "d3d35019a07e010c9411030377ec79aa7f6aae0b",
    "registry": "d3d35019a07e010c9411030377ec79aa7f6aae0b",
    "gate_scan": {
      "tagged": 0,
      "head": "f4bc2891695f3ad07396d36a852e9470fa9f4099"
    },
    "reasons": [
      "risk:security",
      "runtime=617"
    ],
    "risk": [
      "security"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @922522668926 (8 checks, current for f4bc2891695f)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44195721967/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44195721967/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44195721880/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=922522668926 tests=37625 skipped=105 runs=44195721967/1 profiles=ci-reuse/free-tests heads=f4bc2891695f verified=2026-11-17T23:14:19.550Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, docs/, capy/skill/gstack/ (first-use CLI docs, troubleshooting anchors, captain guide section)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 2,
    "deferred": 0,
    "noted": 3,
    "fixed": 4,
    "scope": "frozen",
    "fix_checks": 2,
    "rounds": 3,
    "dispatches": {
      "specialist": 1,
      "red-team": 1
    }
  },
  "review_round_grants": [
    {
      "kind": "extra-round",
      "head": "ac9e51357fb85f7158564333817190f39259b82d",
      "pr": 4465,
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "one scoped fix-check for outside-voice #1 and #2 after the round cap",
      "at": "2026-11-17T22:44:38.376Z",
      "approval": "a-3386296d6d9e"
    }
  ],
  "gate_dispositions": [],
  "carry": {
    "from": "ac9e51357fb85f7158564333817190f39259b82d",
    "reason": "base merge + test-only change + release metadata",
    "product_patch_id": "d2e18accaa1828ec4cab376d0b0e6b6e8492aff6",
    "changed_paths": [
      "product:TODOS.md",
      "product:bin/gstack-founder-resources",
      "metadata:changelog.d/approvals-mirror-stays-inside-fixtures.md",
      "metadata:changelog.d/nested-tsconfig-path-aliases.md",
      "metadata:changelog.d/office-hours-resources-lookup.md",
      "product:docs/pregate.md",
      "product:docs/troubleshooting.md",
      "product:lib/approval-record.ts",
      "product:lib/founder-resources.ts",
      "product:lib/pregate/import-graph.ts",
      "product:office-hours/sections/design-and-handoff.md",
      "product:office-hours/sections/design-and-handoff.md.tmpl",
      "test:test/approval-record.test.ts",
      "test:test/fixtures/founder-resources-pool.txt",
      "test:test/founder-resources-bin.test.ts",
      "test:test/founder-resources-optout.test.ts",
      "test:test/helpers/free-fixtures-data.ts",
      "test:test/pregate-import-graph-paths.test.ts"
    ],
    "merge_commits": 1,
    "range_diff": "1:  573b9f157 = 1:  573b9f157 Check each app build with an agent from another model family before its owner is asked to try it (GST-3025)\n2:  2ad6fd006 = 2:  2ad6fd006 Regenerate the install check's result-code anchors for the first-use codes\n3:  ac7c00053 = 3:  ac7c00053 Register the first-use test fixtures as free-only so the fixture inventory test passes\n4:  de726dfd9 = 4:  de726dfd9 Bind first-use link receipts and results to the owner-equivalent account and device class\n5:  409c89f61 = 5:  409c89f61 fix: pre-landing review fixes\n6:  ac9e51357 = 6:  ac9e51357 Require five complete day-one rows and shell-quote the commands in the first-use brief",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ],
    "ancestry": "linear",
    "trees": [
      "61942e49bbd59b1f362b9f32fa1b40aec1fc1482"
    ]
  }
}
{"head":"ac9e51357fb85f7158564333817190f39259b82d","version":"1.100.0.0","gstack_version":"1.100.0.0","run":"ship-4465-fu02","review_loop":{"passes":1,"blocking_found":2,"deferred":0,"noted":3,"fixed":4,"scope":"frozen","fix_checks":2,"rounds":3,"dispatches":{"specialist":1,"red-team":1}},"depth":"full"}

…ts owner is asked to try it (GST-3025)

gstack-first-use freezes the first five day-one actions and the exact build, has a checker from another model family play it with evidence for each action, checks every link within 15 minutes of sending, and prints the try-this-build message only when all of it passes. The owner score and words stay in the owner private drive beside the predicted score.

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

trunk-io Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 6 commits November 17, 2026 22:06
…codes

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

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

A link receipt now records the audience it was checked for, the play spec account and the build platform; links refuses any other audience, record refuses results from another account, and the gate counts only receipts and results for that audience.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/red-team#2 reader=red-team
Review-Finding: p1/red-team#4 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e first-use brief

A day-one table with fewer than five rows, or an empty cell in the first five, now refuses with FIRST_USE_PLAN_UNREADY. Every value the checker brief puts into its record and predict lines is single-quoted, so an account, run path or model id with quotes, $ or backticks cannot break the line or run a command.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…eck-before-owner-tries-a-build

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

# Conflicts:
#	test/helpers/free-fixtures-data.ts
@capy-ai
capy-ai Bot merged commit dd4266d into main Nov 17, 2026
57 checks passed
This was referenced Nov 18, 2026
capy-ai Bot added a commit that referenced this pull request Nov 18, 2026
- A test, or a scratch repository in the temp directory, can no longer write approval rows into your real Capy Drive (GST-3027). (#4466)
- An unattended /autoplan run on Claude Code no longer says the publication guard is off while it is on. (#4481)
- A phase report written only in reasoning now gets a denial that says so and names the fix. (#4481)
- `gstack-autoplan revise` no longer refuses a plan that the first `next` accepted. (#4470)
- `revise --plan` with a different file now says the run follows that file. (#4470)
- A second-model plan review in `/autoplan` is no longer reported as unavailable when it actually ran (GST-3051). (#4471)
- The /ship conductor trial plan now lets case reverts that conflict with later code be resolved by hand in docs, tests and the planted file, so large pull requests can be cases (GST-3003). (#4460)
- A locked plan for a trial of /ship without its separate conductor subagent (GST-3003). (#4456)
- A driven /ship now runs each phase as one command, counts its calls, and stops itself at 100 minutes. (#4451)
- /ship stops asking owners to clear two kinds of bookkeeping noise: base-side merge text and a reviewer's confirmation prose. (#4458)
- A base merge that only touched base-side text no longer stops `/ship` finish for an owner's grant. (#4458)
- A reviewer's confirmation prose no longer becomes a Critical finding that only an owner can clear. (#4458)
- A CI run that passed only after its failed jobs were re-run is now marked wherever gstack reuses it. (#4473)
- /ship reuses CI's passing test run when merging the base changed no file, and stops instead of quietly starting hour-long test runs or reviewing an empty diff (GST-3019). (#4461)
- /ship on Codex no longer stops at the test coverage audit. (#4489)
- A cold first-use check before an app build reaches its owner (GST-3025). (#4465)
- `skill_prefix=true` now survives updates when gbrain is installed. (#4454)
- The OpenClaw docs no longer send you to ClawHub, which held only April 2026 builds of office-hours, ceo-review and retro and no longer has gstack skills (the docs also said four skills while listing three). (#4454)
- `gstack-issue-links` no longer reads other repositories' issues as gstack's. (#4454)
- /ship's pre-gate finds the tests of a monorepo app that imports through its own `@/` alias. (#4464)
- /office-hours explains why it recommends a mode. (#4450)
- /office-hours keeps its 34 founder videos and essays out of the skill file. (#4463)
- Two `gstack-owner-answers add` runs for the same answer no longer collide. (#4490)
- A Captain can check an ask against the owner's earlier answers before sending it. (#4467)
- `gstack-post` stops reading /ship's own receipt identifiers as phone numbers, so posting a /ship PR body no longer needs a confirm. (#4488)
- GitHub release notes now list every change in plain words, with a link to its pull request. (#4390)
- gstack's router no longer gives bug reports a special rule, so the model fixes a bug the way it would without gstack. (#4442)
- /ship's review plan now sorts Swift and Xcode files by risk instead of sending every iOS PR to the full review panel (GST-3041). (#4469)
- /ship's review plan now sends Swift code that touches private user data to the full review panel (GST-3052). (#4472)
- A round grant at /ship's review round cap now buys the fix round it names, in the same run or the next (GST-2968). (#4479)
- The secrets check stops flagging three kinds of ordinary code as a secret, and catches two misses. (#4457)
- A security finding's location and reason no longer go into a PR body. (#4486)
- The token-capped /ship child on Claude Code now starts its prompt with the typed `/ship` command, so the skill actually loads. (#4487)
- A /ship receipt now counts the second-model review's blocking findings, and refuses to be written while one is still open. (#4485)
- A `/ship` with a token cap on Claude Code no longer stops at its first handoff. (#4452)
- /ship's push step now always ends with one line that says whether it pushed (GST-3053). (#4474)
- A PR's review-round count can no longer be overwritten by the body `/ship` posts. (#4440)
- One queued record with a malformed path no longer stops artifacts sync for every project. (#4455)
- A failed artifacts push stays reported until a push succeeds. (#4455)
- The /sync-gbrain memory row no longer says OK when pages failed to import. (#4455)
- ### Tests (#4495)
- A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI. (#4495)
- CI now uploads free-suite test results to Trunk with analytics-uploader v2.1.8 and analytics-cli 0.17.0, up from v2.1.6 and 0.16.2. (#4453)
- Packing a checkout for a Ubicloud run no longer fails when git beside it is rewriting a ref. (#4447)
- The /plan-ceo-review HOLD SCOPE eval no longer fails a review because its follow-up question didn't repeat the mode name. (#4447)
- Unattended /autoplan now records the owner's relayed gate reply instead of refusing it. (#4484)
- Unattended /autoplan now runs the second-model review you turned on, and waits for it instead of ending the session. (#4459)
- Two /autoplan runs started in the same second no longer share a run id. (#4459)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant