mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-01 04:13:55 +01:00
A first version's public copy keeps out the owner's short quotes, and phone first-use checks install a build the phone can run (GST-3646) (#4772)
A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. Why: a one- or two-word quote or a leave-out reason could reach the public copy through the gate's choice titles, and the phone check named a TestFlight build the cloud phone can't install. Phone checks now need `--phone-build ` on `gstack-first-use start`; phone runs started before this change must be started again. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p2/specialist-batched#1 reader=security
This commit is contained in:
1 parent
7c321fff5d
commit
84b4eab0a9
10 files changed
+139
-22
No files matched your search
@@ -25,6 +25,8 @@ Each bullet is who, when, the words in quotes, then an arrow (`→` or `->`) and
|
||||
| `does it` | this version does what the words ask | a reviewer who finds it does less files a `narrows_quote` finding, and the gate asks |
|
||||
| `choice` | this version doesn't fully do it yet | one lettered choice quoting the words: a) build it in this version, b) leave it out. It recommends a, unless the line says `leave out: <reason>`, shown on the choice. `size: <n>` is shown as the cost |
|
||||
|
||||
A public export (`gstack-autoplan export --public`) drops the owner's words: every quote, however short, wherever it appears in quote marks, and every `leave out:` reason, wherever the gate shows it. A quote of three or more words is also caught where it is repeated without quote marks.
|
||||
|
||||
A cut under `### What it won't do yet` that drops a quoted line becomes that quote's choice and leaves the list. On a first version every other cut gets its own letter. The owner brief shows the quotes and their lines first, then the day-one table, then the remaining cuts.
|
||||
|
||||
The day-one table needs a heading named `Day one` (any level; `Day-one page` also works) followed by a table with these seven columns, in any order:
|
||||
@@ -43,14 +45,14 @@ Run these from the thread that owns the build (on Capy, a Captain or the agent b
|
||||
|
||||
```bash
|
||||
gstack-first-use start --app plantpal --plan plan.md --play play.json \
|
||||
--platform ios --commit <full commit sha> --testflight 17 \
|
||||
--platform ios --commit <full commit sha> --testflight 17 --phone-build <mobile build id> \
|
||||
--holding "TestFlight build 16" --holding-defects "the care card shows yesterday's date" \
|
||||
--builder anthropic/claude-opus-5-5 --checker openai/gpt-6.2-sol
|
||||
```
|
||||
|
||||
Platforms are `ios`, `android`, `web`, `macos` (a Mac app or helper) and `server` (software on the owner's box); give `--deploy <version>` for anything not on TestFlight. `--holding none --holding-defects none` marks a first build. `start` freezes the owner's quotes, the play spec's numbered steps followed by the five day-one actions, and the try-it text into a write-once `manifest.json`, with a hash over the rows and the text of every quote, and prints `FIRST_USE_RUN: <dir>`. It refuses a plan whose table or quotes are missing or malformed, a play spec that misses a part, and a checker from the builder's model family.
|
||||
Platforms are `ios`, `android`, `web`, `macos` (a Mac app or helper) and `server` (software on the owner's box); give `--deploy <version>` for anything not on TestFlight. An ios or android check also needs `--phone-build <id>`: the 26-character id of Capy's mobile build (`tools.mobile.build`) of the same commit. The cloud phone installs only that kind of build, never a TestFlight or store number, so `start` refuses a phone build without it. gstack can't check that this build is the same code TestFlight ships. The builder names it, and the brief records which one the checker installed. `--holding none --holding-defects none` marks a first build. `start` freezes the owner's quotes, the play spec's numbered steps followed by the five day-one actions, and the try-it text into a write-once `manifest.json`, with a hash over the rows and the text of every quote, and prints `FIRST_USE_RUN: <dir>`. It refuses a plan whose table or quotes are missing or malformed, a play spec that misses a part, and a checker from the builder's model family.
|
||||
|
||||
2. **Hand the checker its brief.** `gstack-first-use brief --run <dir>` prints everything the checker gets: the target and its rules, the exact try-it message, and each step with what it writes and the commands to record it. Give it to one fresh agent on the `--checker` model and nothing else about the build: no plan, no code, no notes. On Capy, start a subagent with that model on `machine: "fresh"`. For a phone build it attaches a cloud phone (`tools.capy.phone`) pointed at the target; for a Mac build on the owner's own Mac it drives Aside over Tailscale; for a server build it works over the box's shell. It runs its own gstack install check first.
|
||||
2. **Hand the checker its brief.** `gstack-first-use brief --run <dir>` prints everything the checker gets: the target and its rules, the exact try-it message, and each step with what it writes and the commands to record it. Give it to one fresh agent on the `--checker` model and nothing else about the build: no plan, no code, no notes. On Capy, start a subagent with that model on `machine: "fresh"`. For a phone build it attaches a cloud phone (`tools.capy.phone`), installs the `--phone-build` build on it and points it at the target; for a Mac build on the owner's own Mac it drives Aside over Tailscale; for a server build it works over the box's shell. It runs its own gstack install check first.
|
||||
|
||||
3. **The checker records each step and predicts the score.**
|
||||
|
||||
@@ -107,7 +109,7 @@ On the owner's real setup the checker only reads: the brief forbids sending anyt
|
||||
|
||||
The record holds the owner's own scores and words, so it stays private. On Capy it lives in the owner's user-level Capy Drive folder (`~/.capy/drive/user-*/first-use/<app>/<run>/`), which every thread the owner has opened can read and nobody else's can. If none or several such folders are mounted, the tool refuses rather than fall back to the machine's throwaway folder. Off Capy it lives under the gstack state root (`first-use/`). `GSTACK_FIRST_USE_DIR` overrides both. Nothing from a run belongs in a public repository or a PR body.
|
||||
|
||||
A run directory holds `manifest.json`, `results/`, `evidence/`, `links/`, `prediction.json` and `owner/`. Every file is written once; to check again (a new build, changed day-one rows or quotes, a new prediction), start a new run. Runs started before the try-it steps were checked (schema 1) refuse with a line saying to start a new one.
|
||||
A run directory holds `manifest.json`, `results/`, `evidence/`, `links/`, `prediction.json` and `owner/`. Every file is written once; to check again (a new build, changed day-one rows or quotes, a new prediction), start a new run. Runs started before the try-it steps were checked (schema 1), and ios or android runs started without `--phone-build`, refuse with a line saying to start a new one.
|
||||
|
||||
## How we'll know it helps
|
||||
|
||||
|
||||
@@ -2520,7 +2520,7 @@ whose Plan line differs from the PR body's current line.
|
||||
<a id="first-use-record-invalid"></a>
|
||||
### `gstack-first-use: ... (FIRST_USE_RECORD_INVALID)`
|
||||
|
||||
**Meaning.** A value or file is invalid: a bad `--commit`, `--platform`, `--step`, `--verdict`, `--line` or score, missing `--holding` or `--holding-defects`, an `--account`, `--target` or `--device-class` that isn't the run's owner-equivalent audience and target, a run directory outside the record root, evidence that is not a screenshot, short video or terminal capture (or is empty, a link, or over 100 MB), an unreadable manifest or a schema-1 run from before the try-it steps were checked, or a second prediction on a run. Exit 1. **Fix.** Correct the value. Run files are written once; to redo a check, or to continue from a schema-1 run, start a new run.
|
||||
**Meaning.** A value or file is invalid: a bad `--commit`, `--platform`, `--step`, `--verdict`, `--line` or score, missing `--holding` or `--holding-defects`, an ios or android `start` without `--phone-build <id>` (the 26-character id of Capy's mobile build of `--commit`, which is what the cloud phone installs; a TestFlight or store number can't be installed there), an `--account`, `--target` or `--device-class` that isn't the run's owner-equivalent audience and target, a run directory outside the record root, evidence that is not a screenshot, short video or terminal capture (or is empty, a link, or over 100 MB), an unreadable manifest, a schema-1 run from before the try-it steps were checked, an ios or android run started before `--phone-build` existed, or a second prediction on a run. Exit 1. **Fix.** Correct the value. Run files are written once; to redo a check, or to continue from a schema-1 run or an older phone run, start a new run (with `--phone-build` for a phone).
|
||||
|
||||
<a id="first-use-refused"></a>
|
||||
### `gstack-first-use check|message: ... (FIRST_USE_REFUSED)`
|
||||
@@ -6028,7 +6028,10 @@ is a quote wherever it appears whole, and from 8 words any 8 consecutive words
|
||||
are one, compared across punctuation, line breaks, JSON escapes, entities, HTML and
|
||||
Markdown markup, invisible format characters, contractions and case; replies
|
||||
of 1 or 2 words are not scanned for, and words the owner echoed from earlier
|
||||
text he didn't write are not his (the words a reply adds to an echo still are). See
|
||||
text he didn't write are not his (the words a reply adds to an echo still are).
|
||||
A plan quote of any length is also one wherever it appears directly inside quote
|
||||
marks, and so is its `leave out:` reason after `leave out:`, `leave it out for
|
||||
now:` or `reason to leave it out:`, in any case. See
|
||||
[the public copy](unattended.md#the-public-copy). `gstack-artifact validate --public <dir> --private
|
||||
<run>/run.json` reports each quote with file:line, and `gstack-autoplan export
|
||||
--public` runs that check on a staging copy and writes nothing when it fails.
|
||||
|
||||
@@ -386,6 +386,11 @@ owner's own words: nothing a person wrote leaves without their click (GST-1243).
|
||||
wherever it appears whole; from 8 words, any 8 consecutive words of it are a
|
||||
quote too. Replies of 1 or 2 words ("yes", "do it") are not scanned for:
|
||||
they are codes or grammar, and the field itself is already dropped. A quote
|
||||
under the plan's `### Owner's words` heading is redacted at any length
|
||||
wherever it appears directly inside quote marks, and the reason on its
|
||||
`leave out:` line wherever it follows `leave out:`, `leave it out for now:`
|
||||
or `reason to leave it out:`, in any case; a bare mention of a short quote's
|
||||
words outside quote marks stays. A quote
|
||||
extends over the neighboring words that also belong to that reply, and the
|
||||
marker replaces the original characters from its first word to its last.
|
||||
- **Echoes stay.** Words the owner repeated from text recorded before the reply,
|
||||
|
||||
Reference in new issue
Block a user