demo-referrer-same-origin
Prompts
<task-notification> <task-id>a41a0170c84874e4a</task-id> <tool-use-id>toolu_01GdE1jEgDXUNcrYFz5YHyLK</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/922e5421-5be4-4525-bbbf-75f2657df9b6/tasks/a41a0170c84874e4a.output</output-file> <status>completed</status> <summary>Agent "Claim account picker: one-line rows" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Both P2s are fixed with tests and pushed to `claim-picker-rows`; nothing is merged. New tip is `c08007542bfdb6fe03c9d03ffd4306ea1b18cb6c` ("console: claim console link needs membership; commit ends rollback"). The full `-run 'DemoClaim'` suite ran with only `TestDemoClaimStatusDoor` failing, because it pins the status payload's exact keys. I updated it for the new field and it now passes, but I didn't rerun the whole suite after that. **P2 1: console link (invariant: status access does not establish console access)** - "Open in the console" now shows only when the person signed in right now is a member of the destination account and the app exists there. Any role counts, viewer included, because the console's app pages accept any member. - The claim's status cookie still shows the result and the live address link. - New test `TestDemoClaimDoneConsoleLinkNeedsMembership` covers six cases: | Case | Console link | Live address link | |---|---|---| | member | shown | shown | | viewer | shown | shown | | membership removed | hidden | shown | | a different person signed in | hidden | shown | | app deleted | hidden | shown | | signed out | hidden | shown | **P2 2: commit boundary (invariant: browser progress reflects the server's irreversible commit)** - **Status payload:** while a claim is in progress, the status JSON now includes `committed` (true only past the commit). The page also tells the browser how many seconds have passed since the commit, read from the `demo_claim_commits` table. - **After the commit:** the page never shows the "a move that does not finish is undone" box. The progress bar moves to its last stretch (90% onwards) and the rotating "starting" lines stop, since placing and checking are already done. - **Timing for a slow committed claim:** the page shows a "yours, still finishing" box 2 minutes after the commit, once at least two status checks have come back. This is not an error state; it keeps checking every 10 s and the finish still lands. I chose 2 minutes because after the commit the server's retries back off and can end up minutes apart, and the deadline no longer applies. - **Tests:** `TestDemoClaimStatusCommitted` checks the payload and the page marker in four phases. A browser test covers a claim committed 5 minutes ago, 1000 s past its deadline: the finishing box appears after two checks, the rollback box never does, and the text never says "undone". Screenshots are `committed-finishing-*` in `~/.cache/claim-picker-rows/`. **Back/reload replay (Astra's note):** - A reload, or going back without the browser's page cache, now shows the progress view with nothing left to post again. `TestDemoClaimSelectStepUpRoundTrip` asserts this. - If the browser restores the pre-post loading view from its page cache, the script now reloads the claim instead of leaving it stalled. That path has no browser test, only the code guard. **New strings for another copy review** (in `demo_claim_copy.go`; the 25 approved strings are unchanged): | Const | Text | Where | |---|---|---| | CLAIM-FINISHING-HEADING `demoClaimFinishingHeading` | "Your app is yours now. It is still finishing." | finishing box, committed claim slow to finish | | CLAIM-FINISHING-DETAIL `demoClaimFinishingDetail` | "The move is done and stays done. The last steps are taking longer than usual." | same box | The box's button reuses the approved "Check again". **Other notes:** - The footer golden-digest test pins the page's exact bytes, which include the script's asset hash. I retook the values again and noted that in the file. Any future change to the script will need them retaken too. - An untracked `.impeccable/config.json` appeared in the worktree, most likely written by the design hook. I didn't commit or delete it.</result> <usage><subagent_tokens>388545</subagent_tokens><tool_uses>52</tool_uses><duration_ms>1027926</duration_ms></usage> <worktree><worktreePath>/home/paulca/amadan.net/carlos/platform/.claude/worktrees/agent-a41a0170c84874e4a</worktreePath><worktreeBranch>worktree-agent-a41a0170c84874e4a</worktreeBranch></worktree> </task-notification>
<task-notification> <task-id>bn3k9bwe2</task-id> <tool-use-id>toolu_01MQCaRgNHEQTdzimvKwARNc</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/922e5421-5be4-4525-bbbf-75f2657df9b6/tasks/bn3k9bwe2.output</output-file> <status>completed</status> <summary>Background command "Wait for CI on the rebased referrer fix" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a3a71504e5c11f704</task-id> <tool-use-id>toolu_015d7Jq2rsjDnz6vrkhv1fst</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/922e5421-5be4-4525-bbbf-75f2657df9b6/tasks/a3a71504e5c11f704.output</output-file> <status>completed</status> <summary>Agent "Merge and release gVisor fix to dev" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>The fix is merged, released as v0.34.47, rolled to dev canary only, and dev demo box-1 is back on gVisor with a passing Rastrillo witness. **Census (#280).** Astra rejected the first round with one P2. The new connection counter also counted refused connections, so after 2^31 of them it could wrap and start accepting again. That would also have weakened the old one-connection limit for systemd units. I fixed it in b67319de: the count now only grows when a connection is admitted, and a new test covers it. Round 2 was approved, and the verdict is recorded on #280. The out-of-scope weakness (loglistener.go:109) is filed as #936. **Merge.** Main moved while I worked (929f7868, member backups slice 1), so I merged it in and re-ran the census and CI. The squash is **01110d22** ("activator: tee every log connection of a gVisor run unit"), and main's own run on it is green. **Release.** **v0.34.47**, tag 1b4c0e6f, points at 01110d22. - It is published as Latest with 24 assets, checked from the public side. The Homebrew tap is PR #136. The GitHub mirror has the tag, and its main was fast-forwarded. There is no apt, per 8a3d302. - It also carries member backups slice 1, the lease fix 50f6bc76, and two test/docs commits. 8a3d302 approved carrying member backups. - Luna reviewed the notes and I applied its rewrites. - The referrer fix (e8a36b14) merged after I had cut and published, so it is not in v0.34.47. **What rolled where.** Only the dev canary channel moved: sophie and demo box-1, promoted at 23:37:43Z under a #421 lock (now released). - **Boxes:** both run the new build with no restarts or errors. sophie's update drained properly (66 s). Its edges file had 47 hosts, and held-1/held-2 answered 10/10 with 200, before and after. - **Probe gap:** my per-second probe went through DNS straight to the boxes, not through the IE load balancer. It saw 000/503 for about a minute while sophie drained, which is expected for direct traffic. The load-balancer path itself wasn't probed this roll. - **Console:** the dev console was unreachable for about 40 s during sophie's restart. **Box-1 back on gVisor.** Switched at 23:44:42Z after backing up host.env (host.env.pre-gvisor-20261111T234442Z). It reports `configured=gvisor effective=gvisor ready=true`, and the five runtime files match the pinned set. The bakery recording had already finished (SUMMARY2.md at 22:56). The "not nested by default" note from the startup race cleared on the box at 23:54:45, as it did on 11-09. **Witness: pass.** - **Build and start:** a new demo, light-goose-97, built from the bakery's Rastrillo source under gVisor. It started in its gVisor unit, and "rastrillo: serving" reached the journal at 23:47:09Z. - **Serving:** it served GETs (X-Carlos-Version v0.0.0-demo.1), saved a same-origin order, and the log had no SIGPIPE or failed-wake lines. - **Bakery demo:** floral-garden-22 woke under gVisor with its earlier order intact. - **Browser POSTs:** the `Origin: null` POST still returns 403 until the referrer fix ships. - **Not run:** the browser form-POST witness and the screenshot you asked for, since that fix isn't in this release. **Left for 8a3d302 (all sent to it):** - Ship e8a36b14 (the referrer fix, flagship included) in the next release. - Dev stable (leo, dennis, fleet box-1) is still on v0.34.46. The dev console still needs the member backups UI. Also owed: the IE HA group, apt, and all of flagship. The memory notes are updated: gvisor-demos.md, the release recipe's state line, and the MEMORY.md index. The scratch worktree and scratch directory are removed. Files are in /home/paulca/.cache/release-v0.34.47: - roll-log.md - witness/ - NOTES.md - luna-notes.md</result> <usage><subagent_tokens>303323</subagent_tokens><tool_uses>130</tool_uses><duration_ms>4022522</duration_ms></usage> </task-notification>
<task-notification> <task-id>bvng50e0e</task-id> <tool-use-id>toolu_01S27J87h53KS537mNpV6VyN</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/922e5421-5be4-4525-bbbf-75f2657df9b6/tasks/bvng50e0e.output</output-file> <status>killed</status> <summary>Background command "Wait for the finishing-box copy review" was stopped after reaching its background time limit</summary> <note>If the work in progress still needs it, start it again with `run_in_background` and a longer `timeout`. If it already had the longest `timeout` allowed, do not restart it. Either way, report that it was stopped.</note> </task-notification>
I don’t think we need “check again”… unless it takes a really long time. I guess that makes sense?
<task-notification> <task-id>a41a0170c84874e4a</task-id> <tool-use-id>toolu_01C3Y2yFVh8kHPqVx1d2eBYJ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/922e5421-5be4-4525-bbbf-75f2657df9b6/tasks/a41a0170c84874e4a.output</output-file> <status>completed</status> <summary>Agent "Claim account picker: one-line rows" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>The finishing box no longer has a button, and "Check again" now appears only on the stuck box. Pushed to `claim-picker-rows`, not merged. New tip is `610eac192692d7ff4f6ee7216715acdc244f6d1d` ("console: claim finishing box drops its button; Check again stays on stuck"). - **Finishing box** (shown 2 minutes after the commit): just the heading and the detail line. The page keeps checking every 10 s on its own and the finish lands by itself. - **Stuck box** (deadline + 90 s, about 6.5 minutes in): unchanged, with "Check again" as its only action. - **Very long finishing:** I didn't add a "Check again" for a finish still pending after 10 minutes, to keep it simple. The page never stops checking, so a late finish still shows up. - **No new strings**, and the box text is unchanged. **Tests:** the browser test now checks that the finishing box has no link or button and that status checks continue while it shows. It also checks that the stuck box has exactly one link, pointing to `/demo/claim`. That browser test passes, along with the footer, CSP, status and progress-and-outcome tests. The footer golden values didn't need retaking, because the script and stylesheet didn't change. I didn't rerun the full `DemoClaim` suite for this template-only change. **Screenshots:** I re-took `committed-finishing-*` and `stuck-*` at 360 px and 1280 px, light and dark, in `/home/paulca/.cache/claim-picker-rows/`. **Worktree:** `git status` shows `copy-review/result.json` deleted and `copy-review/strings.json` modified. I didn't make those changes, so I left them alone; they probably come from the copy-review run in this worktree. If that deletion wasn't intended, check before the copy-review result is needed.</result> <usage><subagent_tokens>399328</subagent_tokens><tool_uses>8</tool_uses><duration_ms>154810</duration_ms></usage> <worktree><worktreePath>/home/paulca/amadan.net/carlos/platform/.claude/worktrees/agent-a41a0170c84874e4a</worktreePath><worktreeBranch>worktree-agent-a41a0170c84874e4a</worktreeBranch></worktree> </task-notification>
<task-notification> <task-id>b12y809zt</task-id> <tool-use-id>toolu_01WbX8tnVYhFYpSqD1BCfszV</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/922e5421-5be4-4525-bbbf-75f2657df9b6/tasks/b12y809zt.output</output-file> <status>completed</status> <summary>Background command "Watch again for the finishing-box review result" completed (exit code 0)</summary> </task-notification>