carlos / platform Public

host: re-pin Edge.Reload in the group-name class census

CI dc2229af failed TestGroupNameClassCensus: the six tenant proxies'
response hook is now wrapped by classifyMoveStreams, which reads only the
response head to mark a stream for a move's cut. It derives, publishes
and routes no name, so the name class is unchanged; the inventory hash
is re-pinned with a note.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 6237d799464535c9413bbc5fc651a5fd158725d2 parent dc2229a
1 file changed, +4 −1
  • internal/host/group_names_test.go +4 −1

CI passed — run details

Intent

Human

<task-notification> <task-id>a6c39a8eacbb36307</task-id> <tool-use-id>toolu_01UvAfe9G2Q1PTV4GCRUwyj6</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/a6c39a8eacbb36307.output</output-file> <status>completed</status> <summary>Agent "Build held-move-speed F1+F2" is waiting on its own background work</summary> <note>This agent stopped with background work of its own still running. It may resume on its own when that work completes or reports, and the same task-id notifies again if it does; the result below may be interim.</note> <result>Waiting for the background test runs to finish.</result> <usage><subagent_tokens>333708</subagent_tokens><tool_uses>29</tool_uses><duration_ms>582687</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>a6c39a8eacbb36307</task-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/a6c39a8eacbb36307.output</output-file> <status>completed</status> <summary>Agent "Build held-move-speed F1+F2" 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 graceful SSE end is gone. A move now cuts every long-lived stream on the host at its start by cancelling the request's context. Nothing was amended or pushed, my worktree is clean and my scratch files are removed. One deviation from your brief: the classification lives in `Edge.Reload`, not inside `responseModifier`. **Commits** - `0cd626d2` handover: cut a moving host's streams; drop the graceful SSE end - `dc2229af` census: re-propose held-move-speed after the round 2 cut The tip is `dc2229af`. It sits on top of `b787e829` ("ci: run the gate on the round 1 fixes"), which was already on the branch and isn't mine. **What changed** - **Removed:** `eventBoundaryBody`, its watcher, the shared close and the boundary detection. - **`responseModifier`:** `internal/edge/cookiescope.go` is byte for byte what it is on main, so nothing new touches the trailer wrappers. - **Where classification lives:** you asked for it in the existing response hook, but also for `responseModifier` to match main exactly. Both can't hold, so I kept `responseModifier` identical. The six tenant proxies in `Edge.Reload` now use `classifyMoveStreams(e.responseModifier(t))` as their response hook. That wrapper reads only the response head (a 101, or `text/event-stream` of any encoding), sets a flag on the request's `StreamEnd`, and then runs the unchanged hook. It never touches the body. The cost is that `Edge.Reload` now has a census body change instead of `responseModifier`. - **The cut:** ending a stream cancels its request context. That covers SSE of any encoding and upgraded connections; `CloseHeldHost` stays for edge-held streams. A stream classified mid-move is cut at once. Ordinary requests are untouched and keep the 10 s bound. - **Spec:** §25.8 now says, in one sentence, that streams (SSE and upgraded connections) are cut at the move's start and clients reconnect, which is today's connection-drain behaviour. §25.4 step 2 and the §25.15 note match. No em dashes. - **F2 (snapshot):** unchanged. **Tests (all pass)** - **Trailer guard:** `TestMoveCutKeepsTheTrailerScrubs` keeps Astra's check as a test. It runs through the real `responseModifier`, `http.Transport` and `httputil.ReverseProxy`. The app sends chunked SSE with announced and unannounced platform trailers and a wide-domain `Set-Cookie` trailer, timed against the move's cut; 30 rounds, also under `-race`. - **Guard is not vacuous:** with the scrubs taken out of the hook, `X-Carlos-Holder` reaches the client, so the test does fail when it should. - **No body wrapping:** `TestClassifyMoveStreamsMarksStreamsOnly` checks that only stream heads are marked, End cuts only those, a stream marked after End is cut, and the hook never wraps the body. - **Activator tests adapted to the cut:** SSE, gzip SSE (client sends `Accept-Encoding: gzip`), WebSocket and mid-move stream all keep the in-flight wait under 1 s. The ordinary request still holds the full bound. - **Boundary-reader tests:** deleted. - **Runs:** - edge with `-race` (filtered to `Classify|MoveCut|Held|Drain|Cookie|Upgrade|Trailer|Holder|Purge|PageMark`): ok, 412 s - activator `TestMove|TestDrain|TestIdleStop`: ok - host `TestMoveEndsStreams|TestDrain`: ok - lease `Snapshot|Release|Marker|Finish`: ok - provision census tests: ok - darwin and windows builds: ok **Mutations (each failed as expected)** - `StreamEnd.End` no longer cancels: the activator SSE, gzip SSE and WebSocket tests each wait out the bound (about 10.1 s). - `EndMoveStreams` removed from `moveOne`: the drain takes 10.00 s. - A body wrapper put back in the hook: `TestClassifyMoveStreamsMarksStreamsOnly` fails. **Census:** `census-propose NAME=held-move-speed` re-run. `Edge.responseModifier` drops off the card because it matches main, and `eventBoundaryBody.Read` is listed as removed. The card is now `type Service`, `BeginMove`, `Edge.Reload` (new), `moveOne`, `serve` and `releaseHAClean`. Envelopes re-pinned: activator, edge, host and lease. New seal `96c79cc1…`. **CI failures you asked about** - `TestSingleAddrWithHealthGets503Semantics` passes on the new tip: 20 of 20 alone, and `-run 'SingleAddr|503|Health' -count=3` passes. The response-hook wrapper that might have caused it is gone, so I didn't bisect the old tip against base. - `TestPDFDoorEngineDown` is in the console, which the branch doesn't touch. I saw no link and only note it. **Not done, or worth knowing** - **Census verdict:** the independent reviewer's verdict on the new card and tip is still owed, and so is the #280 record. - **Trailer guard limits:** it exercises real ordering races but not every interleaving. Its job now is a regression guard, since no move code touches the body any more. - **Lock file left in place:** `git commit` printed a `packed-refs.lock: File exists` error in the shared `.git`, probably from another session. Both commits landed, the branch ref is right and the status is clean. I didn't remove the lock because it isn't mine. - **Live check still owed:** the live witness on dev has not been run.</result> <usage><subagent_tokens>337121</subagent_tokens><tool_uses>33</tool_uses><duration_ms>931223</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bizephlf9</task-id> <tool-use-id>toolu_018jpqevAprx38SEsgqgAGXV</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/bizephlf9.output</output-file> <status>completed</status> <summary>Background command "Astra review round 3 (background)" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>bty9egy0y</task-id> <tool-use-id>toolu_01TCyLRmqAtp7HQzXUpCpMuH</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/bty9egy0y.output</output-file> <status>completed</status> <summary>Background command "Wait for CI on dc2229af" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>baxfgopoy</task-id> <tool-use-id>toolu_01ST3GurszVx8yCu86oA9i5u</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/baxfgopoy.output</output-file> <status>completed</status> <summary>Background command "Wait for the CI result" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 41.1 g CO₂e (5,457,026 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on held-move-speed, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/internal/host/group_names_test.go b/internal/host/group_names_test.go
index 85984bf4e..e321b405c 100644
--- a/internal/host/group_names_test.go
+++ b/internal/host/group_names_test.go
@@ -436,7 +436,10 @@ var groupNameProducerInventory = map[string]string{
// proxy is built over an existing exact console row and publishes no name.
// Edge page cache slice 1: Reload also keeps the rows it read
// (pageRoutes) for the page reload hook; no entry is added or renamed.
- "../edge/edge.go:*Edge.Reload": "6c745d037af79adfccc1de8254c7f8fd2eba7e549287a4359d1ba0b3da55437d",
+ // Held requests move speed: the six tenant proxies' response hook is
+ // wrapped by classifyMoveStreams, which reads only the response head to
+ // mark a stream for a move's cut; no name is derived, published or routed.
+ "../edge/edge.go:*Edge.Reload": "9dc1db78179479c5d2d1ac25c5c696c09edf86e6a088f7a6145db11c6ac6f1a9",
// Edge page cache slice 1: routeScope builds an in-memory upstream only to
// read the route's page scope (account, app, primary host). It publishes,
// registers and routes no name; no name class.