carlos / platform Public

edge: republish process inputs when a departed instance returns

TestRouteDepartureResetsAndClearsMark/row_deleted re-added the row and
expected a page miss, but the finding-6 reload now drops a departed
host's process inputs, and nothing in the test republished them. In
production a returning instance spawns before it serves and the spawn
publishes them; the test now does the same (s.publish). The assertion
is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 218d4fb2e79025648d3333777681f0e401ee3b07 parent fcb64b8
1 file changed, +3 −0
  • internal/edge/pagecache_reload_test.go +3 −0

Intent

Human

<task-notification> <task-id>bygoyvnag</task-id> <tool-use-id>toolu_011J4YVHoTGfY1t8xopq2TJv</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/d79ef2b4-4291-4945-bd45-b3f16796c4ba/tasks/bygoyvnag.output</output-file> <status>completed</status> <summary>Background command "Wait for CI on the final tip" completed (exit code 0)</summary> </task-notification>

diff --git a/internal/edge/pagecache_reload_test.go b/internal/edge/pagecache_reload_test.go
index 417939818..161c29a51 100644
--- a/internal/edge/pagecache_reload_test.go
+++ b/internal/edge/pagecache_reload_test.go
@@ -176,6 +176,9 @@ func TestRouteDepartureResetsAndClearsMark(t *testing.T) {
s.rt.App, s.rt.Account = "blog", "abc"
s.mu.Unlock()
s.rewrite(func(*registry.Route) {})
+ // A returning instance spawns before it serves, and the spawn
+ // publishes its inputs; a departure dropped the old ones.
+ s.publish()
s.wantMarked(false, "after the return")
s.wantLRUIsTodays("/q")
wantCache(t, s.get("/p"), "miss")