Spec: apps go live, revision 5 after Astra's fourth review
Round 4 (the last allowed) still found 4 P1s and 3 P2s. All addressed and marked as not re-reviewed: a type allowlist in the preview proxy, C8 aligned with the fence rules, head_sha kept on release, staged build contract changes, recovery by setup phase, Open in Equipo after a day unconfirmed, and post-merge lines without machinery words.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+49
−19
docs/superpowers/specs/2026-11-28-apps-go-live-design.md+49 −19
CI passed — run details
CI log
=== build === CGO_ENABLED=0 go build ./... === vet === go vet ./... === fmt-check === === staticcheck === go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./... === govulncheck === go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./... No vulnerabilities found. === gitleaks === [90m11:24PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net [90m11:24PM[0m [32mINF[0m [1m1 commits scanned.[0m [90m11:24PM[0m [32mINF[0m [1mscanned ~2927649 bytes (2.93 MB) in 406ms[0m [90m11:24PM[0m [32mINF[0m [1mno leaks found[0m === budget === go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size budget size: 22 directories within budget === script-test === scripts/prepare-apps_test.sh ok releases lookup failure stops before ship ok app owned elsewhere stops the script ok apps listing failure stops before create ok ambiguous release dir is refused ok explicit version resolves the ambiguity ok releases match is exact, not substring ok shipped version is only promoted, existing app not created ok fresh account creates, ships, promotes to edge, enables ok failing promote stops the script ok ship is retried while uploads are rate limited all passed hack/fonts_test.sh fonts_test: ok === test === go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -count=1 ./... receipt: test step 10.759s against a 60s target (the gate's other steps are not in this figure) receipt: 16 packages ran, 0 cached, 6 without tests, 0 failed receipt: slow package 9.669s amadan.net/oficina/base/internal/webtest receipt: slow package 630ms amadan.net/oficina/base/internal/equipo receipt: slow package 608ms amadan.net/oficina/base/internal/operations receipt: slow package 366ms amadan.net/oficina/base/internal/issuer receipt: slow package 203ms amadan.net/oficina/base/internal/consumer receipt: slow test 1.52s amadan.net/oficina/base/internal/webtest TestHomeDoesNotWaitOnAStalledSnapshot receipt: slow test 1.12s amadan.net/oficina/base/internal/webtest TestAskZoneIsToldOnce receipt: slow test 610ms amadan.net/oficina/base/internal/webtest TestAskUploadStalledBodyFreesItsSlot receipt: slow test 520ms amadan.net/oficina/base/internal/operations TestOperationsRefusals receipt: slow test 510ms amadan.net/oficina/base/internal/equipo TestUploadRefusals === native === strings: copy review's strings.json is not here (git-ignored); its comparison skipped strings: 120 in the catalog, 117 used worktree-lib_test: ok
diff --git a/docs/superpowers/specs/2026-11-28-apps-go-live-design.md b/docs/superpowers/specs/2026-11-28-apps-go-live-design.md| index 7a6f6ab..7f15b54 100644 |
| --- a/docs/superpowers/specs/2026-11-28-apps-go-live-design.md |
| +++ b/docs/superpowers/specs/2026-11-28-apps-go-live-design.md |
| @@ -1,6 +1,6 @@ |
| # Apps Equipo builds get tested, previewed and put live with an address |
| -Date: 2026-11-28. Paul approved the direction on 2026-11-28. Design only: nothing here is built, merged or deployed. Revision 4, after Astra's third review (see Review, at the end). |
| +Date: 2026-11-28. Paul approved the direction on 2026-11-28. Design only: nothing here is built, merged or deployed. Revision 5, after Astra's fourth and last review (see Review, at the end; the revision 5 changes have not been re-reviewed). |
| An addendum to the jobs design (`2026-11-20-jobs-that-keep-moving-design.md`, "jobs spec", K1 to K16) and its plan (`2026-11-25-jobs-that-keep-moving.md`, "jobs plan"), both on Base branch `jobs-rulings` 19e1897. It reads the abilities design (`2026-11-26-assistant-abilities-design.md` revision 8, branch `assistant-abilities` 291b252, "abilities spec") for the `build` and `go_live` gates, and Equipo's places design (`equipo:docs/superpowers/specs/2026-11-26-places-config.md` revision 3 and Paul's rulings of 2026-11-26, "places spec") for where sites go and who holds which CARLOS credential. Code references are to Equipo `origin/main` 57f370c5 (`equipo:`), the CARLOS CLI on docs-t1 (`carlos <verb> -h`), the platform docs (`carlos/platform/docs/site/cli.md`, "cli.md") and the CARLOS app spec (`carlos/spec/spec.md`, "app spec"). Every person-facing string is **DRAFT** and listed in the copy register at the end; none goes into code before copy review. |
| @@ -43,7 +43,9 @@ Every repository Equipo creates starts with checks that fit what it holds: build |
| The `go_app` template also writes a short `README.md` with the app spec's declaration headings (§0.5) left for Engineering to fill, and an `AGENTS.md` that states the app contract (A3). These are files, not checks. |
| -**One build contract for checks, preview and deploy.** Naming `release/app.json` in `gates.json` pins it in Equipo's Checks: the verdict always comes from `main`'s copy. The preview (B1) and the deploy (C3) read `release/app.json` from the same place, `main` at the candidate's base, never from the candidate, so the package checked is the package tried and shipped. A candidate that changes `release/app.json` gets no app preview, because nothing trusted says how to build it yet. Its card still offers "Put it live", with the line "It changes how the app is built, so it'll be checked again once it's in, before it goes live." (D2). The tap merges it. The merged commit is then `main`, so its Checks, Review and the boot check run under the new contract as trusted ones ("Checking it again", D1). If they pass, the deploy follows on the same tap, bound to the same snapshot; if they fail, the job stops with Fix it (D1). The person isn't asked twice for the same decision. |
| +**One build contract for checks, preview and deploy.** Naming `release/app.json` in `gates.json` pins it in Equipo's Checks: the verdict always comes from `main`'s copy. The preview (B1) and the deploy (C3) read `release/app.json` from the same place, `main` at the candidate's base, never from the candidate, so the package checked is the package tried and shipped. A candidate that changes `release/app.json` gets no app preview, because nothing trusted says how to build it yet. Its card still offers "Put it live", with the line "It changes how the app is built, so it will be tested again before it goes live." (D2). The tap merges it. The merged commit is then `main`, so its Checks, Review and the boot check run under the new contract as trusted ones ("Testing it again", D1). If they pass, the deploy follows on the same tap, bound to the same snapshot; if they fail, the job stops with Fix it (D1). The person isn't asked twice for the same decision. |
| + |
| +Because the verdict before the merge comes from the old contract, a contract change must be **staged**: the candidate that edits `release/app.json` must still build and pass under the old one. Moving the app from `.` to `cmd/app` is two changes: the first adds `cmd/app`, points `release/app.json` at it and leaves `.` building; once that is in and live, a second removes the old package. Engineering's app contract note (A3) says so. A candidate that removes the old package in the same change fails the old contract's checks and goes to a fix round like any failing change, so the merge gate (`mergegate/gate.go`, which refuses failed checks before it weighs the person's say) is never asked to make an exception. |
| ### A2. The same checks in both places, and where they differ |
| @@ -78,7 +80,8 @@ A new preview mode, `app`, beside today's static export: |
| - every response carries the static preview headers (`previewHeaders`) with `script-src 'none'`, `worker-src 'none'`, `form-action 'self'` and `connect-src 'none'`, plus `Cross-Origin-Opener-Policy: same-origin`, overwriting any the app sent; |
| - in HTML responses the proxy rewrites every URL that leaves the preview's origin, in `href`, `src`, `srcset`, `action`, `formaction`, `poster`, `<meta http-equiv="refresh">` and CSS `url()`, to the proxy's own page `/_leaving`, which shows the address as plain text and links nowhere (DRAFT line below); |
| - it refuses a redirect whose `Location` leaves the origin, removes the HTTP `Refresh` header unless its URL is the preview's own origin, removes `Link` headers, drops any `Set-Cookie` with a `Domain` attribute, and caps request bodies at 1 MiB and responses at 10 MiB; |
| - - a response it can't parse as HTML when it says it is HTML is replaced by a plain error page. |
| + - a response it can't parse as HTML when it says it is HTML is replaced by a plain error page; |
| + - only these types are served as they are: `text/html` (rewritten as above), `text/css` (its `url()` and `@import` rewritten), `image/png`, `image/jpeg`, `image/gif`, `image/webp`, `font/woff2`, `application/json` and `text/plain`, all with `nosniff`. Anything else, `image/svg+xml` and XML included (both can carry links that navigate without scripts), is served as `application/octet-stream` with `Content-Disposition: attachment`, so the browser downloads it and never renders it. |
| So nothing on the page can load from, post to or navigate to another origin; the person would have to copy an address by hand. Forms that post back to the app work. Parts of an app that need scripts don't run in the trial, and the pill says so (D2). If the proxy can't start, the preview fails closed. |
| - **One origin per attempt.** `carlos devbox share --socket <proxy socket> eq-app-<task>-<attempt>` publishes the proxy, never the app. A new attempt gets a new name, so cookies and storage from an earlier attempt don't carry over. |
| @@ -166,19 +169,28 @@ The owner's login is used for these steps only, and only at an owner's tap. |
| - `generation`, a counter; |
| - `pending`, the deploy **step** (not attempt) holding the fence while its outcome isn't known, with `pending_generation`, the generation it allocated, and `pending_sha`, the merge SHA it sends; |
| - `deployed_sha`, the merge SHA last confirmed live; |
| -- `head_sha`, the newest merge SHA that may be serving: `pending_sha` while a step holds the fence, else `deployed_sha`. |
| +- `head_sha`, the newest merge SHA that may be serving, stored on its own, never derived from the lock: set to `pending_sha` when a step takes the fence, and moved back only by a confirmed rollback (rule 5) or by a step refused before it sent anything. Releasing the lock never moves it. |
| The rules, each enforced by `authorizeAppDeploy` in the transaction that decides: |
| -1. **Taking the fence** (the step's start). The card's snapshot records `seen_generation` at the tap. The step may start only when no step holds `pending`, `generation` still equals `seen_generation`, and its merge SHA is a descendant of `head_sha` (or there is no `head_sha` yet). In the same transaction it sets `generation = generation + 1`, `pending` to itself, `pending_generation` to the new value and `pending_sha` to its merge SHA. Ancestry is what stops an older change: a delayed card for a commit that isn't a descendant of what may be live is refused, whenever it was answered. The generation is what stops a tap answered before a rollback or another deploy from acting on a state it didn't see. |
| +1. **Taking the fence** (the step's start). The card's snapshot records `seen_generation` at the tap. The step may start only when no step holds `pending`, `generation` still equals `seen_generation`, and its merge SHA is a descendant of `head_sha` (or there is no `head_sha` yet). In the same transaction it sets `generation = generation + 1`, `pending` to itself, `pending_generation` to the new value, and `pending_sha` and `head_sha` to its merge SHA. Ancestry is what stops an older change: a delayed card for a commit that isn't a descendant of what may be live is refused, whenever it was answered. The generation is what stops a tap answered before a rollback or another deploy from acting on a state it didn't see. |
| 2. **Every later command of that step** (region, deploy, mint) requires `pending` to be this step and `generation == pending_generation`. A step's own start never invalidates it, because it checks the generation it allocated, not the one the tap saw. |
| 3. **Its next attempt** (Try again on the same step, C6) inherits the fence: `pending` names the step, so the attempt doesn't have to take it again, and still checks rule 2. |
| -4. **Releasing.** Only when the outcome is known: confirmed live (`deployed_sha = pending_sha`), refused before any command that changes CARLOS was sent, or an owner's explicit release after reconciling (below). Then `pending` is cleared. "Not confirmed" keeps it held. |
| +4. **Releasing.** Only when the outcome is known: confirmed live (`deployed_sha = pending_sha`), refused before any command that changes CARLOS was sent (then `head_sha` goes back to what it was), or an owner's explicit release after reconciling (below). Then `pending` is cleared. "Not confirmed" keeps it held. An owner's release keeps `head_sha` at the unconfirmed SHA, so anything deployed next must descend from it: a commit between the last confirmed one and the unconfirmed one can never overwrite it, whether or not its rollout later finishes. |
| 5. **Rollback** (C7) is the one path allowed to go backwards. It takes the fence like a deploy, needs no ancestry, and sets `head_sha` to the version it restores once confirmed. |
| A refused start settles the step as superseded. If its change is already in what is live, the job is done with the address; if not, a new card asks again, which takes the fence afresh under rule 1. |
| -**Reconciling.** A step restarted after a phase that may have changed CARLOS, or one left "not confirmed", reconciles with **reads only**, as `siteReconcile` does with its marker (`site.go`): the runner's own `GET /version` on the address and, once P-B lands, each instance's serving build. It sends nothing, so it needs only the fence (rule 2), not `go_live`, and it may run while the switch is off. The instance re-runs it every 10 minutes for 24 hours while the step holds the fence. If it sees `<v>`, the step is live and releases the fence. If it doesn't, the outcome stays "not confirmed": before P-B, not seeing the version proves neither that nothing changed nor that a slow rollout won't finish. After 24 hours the job keeps "Not confirmed", and an owner can, on Equipo's task page, either send the same version again (Try again, under `go_live`) or release the fence after reading what CARLOS's console shows (audited as `app.deploy.released_unknown`). |
| +**Recovering by phase.** The step records a phase before each command, and a restart recovers by the phase it finds: |
| + |
| +| phase recorded | what may have happened | recovery | |
| +|---|---|---| |
| +| `setup_listing` (before `apps create`; the step has stored `carlos apps list`'s answer, which didn't hold the name) | nothing, or the app was created and the answer lost | list again: absent, go on; present with no releases and no instances, created after the stored listing, adopt it as this step's (the name is code-minted with a random suffix, so another writer choosing it is unlikely, and an app with releases or instances is never adopted); anything else, pick a new suffix and start again | |
| +| `setup_created` | the app exists, the region may not be set | run `apps region --set` again (setting the same region twice is harmless) | |
| +| `deploy_sent` (first or later) | a rollout may be under way | reconcile with reads only (below) | |
| +| `minting` | the key may have been minted and lost | as for sites: a lost key; the next deploy asks for setup's mint again | |
| + |
| +**Reconciling.** A step restarted in `deploy_sent`, or one left "not confirmed", reconciles with **reads only**, as `siteReconcile` does with its marker (`site.go`): the runner's own `GET /version` on the address and, once P-B lands, each instance's serving build. It sends nothing, so it needs only the fence (rule 2), not `go_live`, and it may run while the switch is off. The instance re-runs it every 10 minutes for 24 hours while the step holds the fence. If it sees `<v>`, the step is live and releases the fence. If it doesn't, the outcome stays "not confirmed": before P-B, not seeing the version proves neither that nothing changed nor that a slow rollout won't finish. After 24 hours reconciling stops; the job keeps "Not confirmed" and gains Open in Equipo (jobs spec K6's rows for stops only Equipo's pages can clear), where an owner can either send the same version again (Try again, under `go_live`) or release the lock after reading what CARLOS's console shows (audited as `app.deploy.released_unknown`; `head_sha` stays, rule 4). |
| ### C4. The address |
| @@ -220,7 +232,7 @@ Following abilities spec §6.3 and §6.4, with the same boundary: a switch is ch |
| - `build` covers every step of the job, as abilities §6.3 says, so starter checks, app previews and the upgrade check included: `Store.Authorize` refuses a preview step's start when the person lacks `build`. A preview already running when `build` goes off keeps running until it ends by its own rules (B2); no new one starts, and Try again is refused. |
| - `go_live` covers "Put it live" (the merge and the deploy as one decision), the second card for a changed merged result, every deploy step, Try again on a failed deploy, and rollback. |
| -- `authorizeAppDeploy` is the last check, beside `authorizePublish`, with its rules: the current attempt, on the creator's primary runner, of a task Equipo merged at exactly this merge SHA and didn't cancel, decided by the creator, who is still an owner; the snapshot still equal to the card's; the place and binding at the snapshot's revisions; the built digest exactly the recorded one; the deploy fence held by this attempt at the generation the tap saw (C3); the creator holding `go_live`. It runs at the step's start and again, each in the transaction that decides, before every command that changes CARLOS: `apps create`, `apps region --set`, `deploy` and the mint, with purposes `setup`, `region`, `deploy` and `mint`. The region purpose also checks the place's recorded region is still the snapshot's. Every decision is audited. |
| +- `authorizeAppDeploy` is the last check, beside `authorizePublish`, with its rules: the current attempt, on the creator's primary runner, of a task Equipo merged at exactly this merge SHA and didn't cancel, decided by the creator, who is still an owner; the snapshot still equal to the card's; the place and binding at the snapshot's revisions; the built digest exactly the recorded one; for the step's start, C3 rule 1 (no step holds the fence, the generation is the one the tap saw, ancestry against `head_sha`); for every later command and every later attempt of the step, C3 rule 2 (the fence is this step's and the generation is the one it allocated); the creator holding `go_live`. It runs at the step's start and again, each in the transaction that decides, before every command that changes CARLOS: `apps create`, `apps region --set`, `deploy` and the mint, with purposes `setup`, `region`, `deploy` and `mint`. The region purpose also checks the place's recorded region is still the snapshot's. Every decision is audited. |
| - So the switch going off after the tap but before a check refuses everything after that check. A command already sent finishes: an app already created stays (recorded, adopted by a later Try again), and a promote already sent can't be called back. Turning the switch off doesn't take an app down; that stays an owner's act. |
| - When the merge went in and the deploy is refused for `go_live`, the job reads "Didn't go live" with the approved-pending abilities line "Putting it live is turned off for you. {Owner} can turn it on." and keeps Drop it. Turning `go_live` back on doesn't deploy by itself: the person taps Try again. |
| @@ -231,7 +243,7 @@ Following abilities spec §6.3 and §6.4, with the same boundary: a switch is ch |
| A merged app task isn't finished until its deploy settles. `jobState` gains an app lifecycle for a task of a project with an app place, read before its "ended means done" rule, so a merged app never reads as done early (the recipes job's "finished"): |
| - from the tap until the deploy step reports, the job is working, status "Going live", and its preview stays up (`previewHeld` holds it while a deploy for its candidate is pending); |
| -- when the merged tree differs from the candidate, or the candidate changed the build contract (C1), the job is working, status "Checking it again", while the merged commit's Checks, Review and boot check run. If they pass, it goes on as C1 says. If they fail, can't run after the usual retries, or Review asks for changes, the job is stopped, "Didn't go live", with Fix it and Drop it, and its preview is released; |
| +- when the merged tree differs from the candidate, or the candidate changed the build contract (C1), the job is working, status "Testing it again", while the merged commit's Checks, Review and boot check run. If they pass, it goes on as C1 says. If they fail, can't run after the usual retries, or Review asks for changes, the job is stopped, "Didn't go live", with Fix it and Drop it, and its preview is released; |
| - when the deploy settles, the job takes C6's row; only "live" or a superseded deploy whose change is live makes it done; |
| - for a member who isn't an owner (C1), the job is ready with the owner line, and done is never reached through them. |
| @@ -244,12 +256,12 @@ A merged app task isn't finished until its deploy settles. `jobState` gains an a |
| | app preview ended | Ready to try | Your app's trial has ended. Try again for a fresh one. | | Try again, Put it live, Drop it | |
| | member, not an owner | Ready to try | Only an owner of this Base can put apps live for now. | Try your app, while up | Drop it, Dismiss | |
| | putting it live | Going live | Putting your app live. | Try your app, while up | none | |
| -| merged result checked again | Checking it again | Something else changed too, so it's being checked again before it goes live. | Try your app, while up | Drop it | |
| +| tested again after going in | Testing it again | Testing it once more, together with the latest version, before it goes live. (when another change landed) or Testing it once more, built the new way, before it goes live. (when it changed how the app is built) | Try your app, while up | Drop it | |
| | live | Done (approved) | Your app is live. | Open your app | Dismiss | |
| | a newer change went live first | Done | A newer version of your app is live. | Open your app | Dismiss | |
| | refused before anything changed | Didn't go live (jobs spec) | Your app didn't go live. Nothing about it changed. | | Try again, Drop it | |
| -| not confirmed | Not confirmed | Your app was sent, but it could not be confirmed. | | Try again (the same step's next attempt, holding the fence, under `go_live`); while `go_live` is off, none in Base: the line adds the abilities sentence, and the job counts as being retried (jobs spec T1) because reconciling goes on | |
| -| merged, then its checks or review failed | Didn't go live | It went in, but it didn't pass its checks afterwards, so it isn't live. | | Fix it, Drop it | |
| +| not confirmed | Not confirmed | Your app was sent, but it could not be confirmed. | | Try again (the same step's next attempt, holding the fence, under `go_live`); while `go_live` is off, none in Base: the line adds the abilities sentence, and the job counts as being retried (jobs spec T1) because reconciling goes on. After 24 hours: Open in Equipo, where an owner can send it again or release it (C3) | |
| +| tested again and failed | Didn't go live | It isn't live: together with the latest version, its tests failed. (tests failed) / It isn't live: it couldn't be tested again just now. (couldn't run after retries) / It isn't live: it needs changes before it can go live. (changes asked for) | | Fix it, Drop it | |
| | `go_live` off after the merge | Didn't go live | Putting it live is turned off for you. {Owner} can turn it on. (abilities register) | | Drop it | |
| Each action names its path: Put it live is C1's tap; Try again on a preview is `retryPreview` (B2); Try again on a deploy refused before anything changed is a new deploy step through `authorizeAppDeploy` (C3 rule 1); Try again on "not confirmed" is the same step's next attempt, which holds the fence and reconciles before it sends (rules 2 and 3); Fix it, for work that went in but failed its checks afterwards (C1), is a new path `fixAfterMerge`: the person's tap records a fix task in the same job and project, its brief the failing checks' or Review's findings (as `fixRound` builds feedback), followed by the job's hand-off; the failed merged result's preview is released. Its own Put it live then follows the usual path, and ancestry (C3 rule 1) holds because the fix starts from `main`. This keeps jobs spec T1 (no dead ends): every asking or stopped row offers an action that succeeds in that state. Once P-B lands, "Partly live" ("Your app is live in some places but not others.") and "The version before is still running." join the table (C6). |
| @@ -268,7 +280,7 @@ The go-ahead card and the ready pill carry one line saying what was checked. It |
| | checks passed, preview up, but the proxy has seen a `<script>` in one of its pages | Tested: its tests pass and it starts. In the trial, parts that need scripts don't run. | |
| | checks passed, no preview possible (`other` kind) | Its tests pass, but you can't try it before it goes live here. | |
| | no confinement on the person's machine (a Mac, or no user scope) | Its tests pass, but it can't be tried or put live from this computer yet. | |
| -| the candidate changes how the app is built (A1) | It changes how the app is built, so it'll be checked again once it's in, before it goes live. | |
| +| the candidate changes how the app is built (A1) | It changes how the app is built, so it will be tested again before it goes live. | |
| | no checks at all (`none`) | It hasn't been tested: there are no tests for it yet. | |
| | checks failed and fix rounds used | Its tests still fail, so it can't go live as it is. | |
| | checks need the network (`needs_network`) | Its tests couldn't run here because they need the internet. | |
| @@ -324,11 +336,14 @@ Equipo: |
| - `TestTrustedStarterChecks`: on a `go_app` repository, a candidate that deletes `10-go` or changes `release/app.json`'s package is judged by `main`'s steps; `BaseChecksSHA` is set; `trusted_base_checks` holds. `TestHubAndChecksDiverge`: the same candidate is green on a hub fake running its own files and red in Equipo, and D2 reads Equipo's verdict. |
| - `TestHostedCIOnAtCreate`: one fixed call after `Forge.Create`, none for an adopted repository. |
| - `TestAppPreviewConfinement` (Linux): the process sees no credential file, no network but loopback, only its four mounts and three variables; writing past 1 GiB in `/data`, a fork bomb past 64 tasks and an allocation past 512 MiB are each stopped; the seed runs inside the same limits; a runner that can't create the scope, a tainted runner and a Mac runner run none. |
| -- `TestAppPreviewProxy` (headless browser against a hostile fixture app): every response carries the headers; inline and same-origin scripts don't run, so a `window.location` navigation with data in the address never happens; a service worker can't register; links, forms, `srcset`, CSS `url()` and a meta refresh to another origin all land on `/_leaving`, which links nowhere; a cross-origin redirect, an HTTP `Refresh: 0; url=<another origin>?<posted values>` answered to a same-origin form post, a `Link` preload, a `Set-Cookie` with `Domain` and an oversized body are stopped; same-origin forms work; a second attempt's origin sees none of the first's cookies or storage; no proxy, no preview. |
| +- `TestAppPreviewProxy` (headless browser against a hostile fixture app): every response carries the headers; inline and same-origin scripts don't run, so a `window.location` navigation with data in the address never happens; a service worker can't register; links, forms, `srcset`, CSS `url()` and a meta refresh to another origin all land on `/_leaving`, which links nowhere; a cross-origin redirect, an HTTP `Refresh: 0; url=<another origin>?<posted values>` answered to a same-origin form post, a `Link` preload, an SVG or XML document with an outbound link returned to a form post (downloaded, never rendered), a `Set-Cookie` with `Domain` and an oversized body are stopped; same-origin forms work; a second attempt's origin sees none of the first's cookies or storage; no proxy, no preview. |
| - `TestAppPreviewScan`: a secret in the tree or the seed refuses the preview; a scanner that can't run fails it as `preview_scanner`. |
| - `TestAppPreviewLifetime`: stopped at 24 h, after 2 h idle, at job end and when a newer candidate's preview starts, each followed by the `ended` report that takes the link off the card and lets `previewRetryCheck` allow Try again; data deleted each time; the fourth waits; Try again starts the next attempt once per tap and is refused after a newer candidate; a crash leaves nothing running after the runner restarts. |
| - `TestAppUpgradeCheck`: run against `deployed_sha`, not `main`, when merged work never went live; a candidate whose `reads` page loads but no longer shows the seed's `expect` text fails; one that adds a table passes; without a seed or `reads`, D2 shows the narrower line; it runs in the deploy's checks with no interactive preview. |
| - `TestAppBuildContract`: a candidate that changes `release/app.json` gets no preview and a Put it live with the contract line; the person's tap merges it through `answerMerge`; the merged commit is checked under the new contract and, passing, deploys on the same tap without a second card; failing, the job stops with Fix it; checks, preview and deploy build the same package throughout. |
| +- `TestAppRecoveryByPhase`: a restart in each C3 phase recovers as its row says; an app found after a lost `apps create` answer is adopted only with no releases and no instances; a restart after the region command sets it again; reconciling never runs for a setup phase. |
| +- `TestAppNotConfirmedAfterADay`: with the clock past 24 hours, reconciling has stopped, the job offers Open in Equipo, and both owner actions there succeed; the release keeps `head_sha`, so a commit between the last confirmed one and the unconfirmed one is refused. |
| +- `TestAppPackageMove`: a candidate that adds `cmd/app`, points `release/app.json` at it and keeps `.` building passes and, merged, is tested again built the new way; one that also deletes `.` fails the old contract and goes to a fix round. |
| - `TestFixAfterMerge`: Fix it records one fix task in the same job from the failing findings, idempotent per tap; its own Put it live passes ancestry. |
| - `TestAppArtifacts`: the shipped artifact is a static ELF for the place's target and is never executed on the runner; the native twin from the same commit and flags passes the boot check; a twin that fails stops the deploy before anything is sent. |
| - `TestAppVersionToken`: `/version`, the release `--version` and the runner's check are the same 12 characters, and CARLOS's real probe matcher (a test against `carlos/platform`'s matcher, not a fake) accepts it and rejects an 11- or 13-character variant. |
| @@ -339,7 +354,7 @@ Equipo: |
| - `TestAppFirstDeploy` (fake carlos, its argument parsing taken from the real CLI's flag sets): `apps create --build-probe`, `apps region --set`, `deploy`, `services create`, in order, each behind its own final check; `go_live` off between create and region refuses the region; `CARLOS_CONFIG` names the runner's config and a hostile repository `.carlos/config` changes nothing; a region or target mismatch is refused; the secret only goes to the 0600 file; a taken name gets a suffix, at most three tries; a restart after `apps create` adopts the app. |
| - `TestAppRedeploy` (fake carlos): `deploy` with the deploy credential in the environment, never argv; `vet` is never called; each C6 row from its fake outcome, including an unconfirmed probe, and a restart mid-step that only reconciles. |
| - `TestAppDeployAbilityOff`: `go_live` off before each of `authorizeAppDeploy`'s checks refuses everything after it; a command already sent finishes; turning it back on deploys nothing until Try again; `build` off stops a new preview and leaves a running one to its end. |
| -- `TestJobGoingLive`: a merged app task reads "Going live" until its deploy settles, "Checking it again" while a changed merged result is checked, keeps its preview up meanwhile, and is done only once confirmed; every D1 row's actions succeed in that state (extend jobs spec T1); a member's job ends at the owner line; the done job's link is the address; `team_status` says "It is live at …"; nothing names machinery (extend `TestContractAssistantLaneLeaksNoMachinery`). |
| +- `TestJobGoingLive`: a merged app task reads "Going live" until its deploy settles, "Testing it again" while a changed merged result is tested, keeps its preview up meanwhile, and is done only once confirmed; every D1 row's actions succeed in that state (extend jobs spec T1); a member's job ends at the owner line; the done job's link is the address; `team_status` says "It is live at …"; nothing names machinery (extend `TestContractAssistantLaneLeaksNoMachinery`). |
| - `TestHonestStatusLines`: each D2 row from its inputs, always for the card's own candidate, never an older one's. |
| Base: |
| @@ -384,8 +399,9 @@ Equipo instance copy, shown in Base: |
| | `assistant.job.detail.app_live` | Your app is live. | |
| | `assistant.job.detail.app_superseded` | A newer version of your app is live. | |
| | `assistant.job.detail.app_not_live` | Your app didn't go live. Nothing about it changed. | |
| -| `assistant.job.status.app_checking_again` | Checking it again | |
| -| `assistant.job.detail.app_checking_again` | Something else changed too, so it's being checked again before it goes live. | |
| +| `assistant.job.status.app_testing_again` | Testing it again | |
| +| `assistant.job.detail.app_testing_again` | Testing it once more, together with the latest version, before it goes live. | |
| +| `assistant.job.detail.app_testing_again_built` | Testing it once more, built the new way, before it goes live. | |
| | `assistant.job.detail.app_not_live_kept` | Your app didn't go live. The version before is still running. (after P-B) | |
| | `assistant.job.status.app_partly` | Partly live (after P-B) | |
| | `assistant.job.detail.app_partly` | Your app is live in some places but not others. (after P-B) | |
| @@ -396,12 +412,14 @@ Equipo instance copy, shown in Base: |
| | `assistant.tested.all` | Tested: it builds, its tests pass and it starts. You can try it before it goes live. | |
| | `assistant.tested.upgrade` | Tested: its tests pass, it starts, and it still shows your existing records (checked with sample data). You can try it before it goes live. | |
| | `assistant.tested.upgrade_unchecked` | Tested: its tests pass and it starts, but whether it keeps your existing data wasn't checked. | |
| -| `assistant.job.detail.app_failed_after` | It went in, but it didn't pass its checks afterwards, so it isn't live. | |
| +| `assistant.job.detail.app_failed_after` | It isn't live: together with the latest version, its tests failed. | |
| +| `assistant.job.detail.app_untested_after` | It isn't live: it couldn't be tested again just now. | |
| +| `assistant.job.detail.app_changes_after` | It isn't live: it needs changes before it can go live. | |
| | `assistant.job.option.fix` | Fix it | |
| | `assistant.tested.no_preview` | Its tests pass, but you can't try it before it goes live here. | |
| | `assistant.tested.scripts_off` | Tested: its tests pass and it starts. In the trial, parts that need scripts don't run. | |
| | `assistant.tested.no_confinement` | Its tests pass, but it can't be tried or put live from this computer yet. | |
| -| `assistant.tested.contract_changed` | It changes how the app is built, so it'll be checked again once it's in, before it goes live. | |
| +| `assistant.tested.contract_changed` | It changes how the app is built, so it will be tested again before it goes live. | |
| | `preview.leaving` (the preview's `/_leaving` page) | This link goes outside the trial, to: {address}. Links outside are switched off while you try your app. | |
| | `assistant.tested.none` | It hasn't been tested: there are no tests for it yet. | |
| | `assistant.tested.failing` | Its tests still fail, so it can't go live as it is. | |
| @@ -464,3 +482,15 @@ Model-facing (not copy, reviewed as code): the app contract note (A3), Review's |
| 7. P2, failed checks after merge: "Didn't go live" with Fix it (`fixAfterMerge`) and Drop it, preview released (C1, D1). |
| 8. P2, the upgrade line could pass on an empty database: `reads` entries carry expected seed text, and the line is shown only with a seed and reads; otherwise a narrower line (B1, D2). |
| 9. P2, the persistence test promised too much: narrowed to replacing or truncating the file (§11). |
| + |
| +**Astra, round 4 (2026-11-28): not ready, 4 P1, 3 P2.** Round 3's fixes 1, 6, 7, 8 and 9 held; 2 to 5 held in part. The review cap for this spec is four rounds, so the changes below were made after round 4 and **have not been re-reviewed by Astra**: |
| + |
| +1. P1, SVG and other non-HTML documents could carry navigating links: the proxy serves only a short list of types and downloads everything else (B1, §11). |
| +2. P1, C8 still stated the old fence rule: it now names C3 rule 1 for the start and rule 2 for every later command and attempt (C8). |
| +3. P1, releasing an unconfirmed deploy forgot what may be serving: `head_sha` is stored on its own, set when a deploy takes the fence and kept on release, so nothing older can follow it (C3 rules 1 and 4). |
| +4. P1, moving the app's package had no merge path: contract changes are staged, with the old package still building until a later change removes it (A1, §11). |
| +5. P2, setup crashes were treated as rollouts: recovery by recorded phase, including a lost `apps create` answer (C3, §11). |
| +6. P2, after 24 hours "not confirmed" was a dead end: it gains Open in Equipo, where an owner can send again or release (C3, D1, §11). |
| +7. P2, the post-merge lines named machinery or misstated the cause: "Testing it again" and one line per cause, without "went in" or "checks" (D1, register). |
| + |
| +**Still open after round 4** (for the implementation plan's review, or Paul): everything in the list above, until a reviewer confirms it; Q1 to Q14. |