carlos / platform Public

registry: classify ApplyPaths' chunked SQL in the route-writer inventory

TestRouteWriterInventoryIsComplete found two SQL arguments with no
constant value in pathsgen.go:ApplyPaths: the multi-row upsert into
route_paths and the multi-row delete from route_paths, each built per
chunk with groupPlaceholders. Both write route_paths only, never routes,
so the entry is writesRoutes false.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev d68a410642866fa854a0c8e73bb7564852353137 parent 3839304
1 file changed, +1 −0
  • internal/registry/forward_inventory_test.go +1 −0
diff --git a/internal/registry/forward_inventory_test.go b/internal/registry/forward_inventory_test.go
index bd0907356..e92191de2 100644
--- a/internal/registry/forward_inventory_test.go
+++ b/internal/registry/forward_inventory_test.go
@@ -119,6 +119,7 @@ var unresolvedRouteSQL = map[string]unresolvedSQL{
"forward.go:PutForward": {true, "putForwardSQL, the forward row's own writer (an exception), built once from ForwardForbidden"},
"homelink.go:migrateHomeLink": {false, "ALTER TABLE home_link ADD COLUMN unlink_pending|rotate_pending: a schema migration of the home_link table, writes no row"},
"links.go:activeLinkMap": {false, "SELECT link_id, token_hash|account FROM link_channels WHERE status = 'active', from LinkChannelAuth and LinkOwners: a read of link_channels"},
+ "pathsgen.go:ApplyPaths": {false, "INSERT INTO route_paths ... ON CONFLICT(host, prefix) DO UPDATE and DELETE FROM route_paths WHERE (host, prefix) IN (VALUES ...), each with groupPlaceholders rows per chunk in one transaction: writes route_paths only, never routes"},
}
// sqlMethods are the database calls whose argument at the index is SQL.