carlos / platform Public

host: hold the path upsert fault over a map that needs a write

TestAuthorityTable/path_upsert_failing held a failing route_paths
INSERT/UPDATE trigger over an unchanged claim. Before Task 1 every pass
rewrote every path row, so the fault fired; since a18e3547 an unchanged
republish writes no row (spec §6), so nothing hit the fault and the
pass stayed complete. The case now republishes the map with one prefix
added, as the delete case and the alias and wildcard upsert cases do,
so the pass must write a row and the fault refuses it. The assertions
are unchanged; a mutation that ignores a failed ApplyPaths fails both
path cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c31fe018f25a108c6f8a728ea99999bb5a0b090e parent 995a08e
1 file changed, +8 −1
  • internal/host/assetpublish_test.go +8 −1

CI failed — run details

diff --git a/internal/host/assetpublish_test.go b/internal/host/assetpublish_test.go
index 659f8e42a..c7e4db337 100644
--- a/internal/host/assetpublish_test.go
+++ b/internal/host/assetpublish_test.go
@@ -1267,10 +1267,17 @@ func TestAuthorityTable(t *testing.T) {
b.failDelete("wildcard_domains", "host = 'wild.example.com'")
b.unclaim("wild.example.com")
}},
+ // The pass writes only the path rows that differ (spec §6: an
+ // unchanged republish writes none), so the fault is held over a
+ // map that needs a row written, as the delete case below is.
{"path upsert failing", func(b *authorityBox) {
pathRoutes(b)
pathClaim(b, map[string]string{"api": "api.example.com"})
- }, func(b *authorityBox) { b.failUpsert("route_paths", "host = 'blog.example.com'") }},
+ }, func(b *authorityBox) {
+ b.failUpsert("route_paths", "host = 'blog.example.com'")
+ b.unclaim("blog.example.com")
+ pathClaim(b, map[string]string{"api": "api.example.com", "docs": "api.example.com"})
+ }},
{"path delete failing", func(b *authorityBox) {
pathRoutes(b)
pathClaim(b, map[string]string{"api": "api.example.com"})