console: judged record reads for subdomains; count the new closed doors
CI at dd16273a. TestNoUnjudgedRecordReads: subdomainCheckRecord and channelFlashHost read instance records raw (provision.GetRecord); both now use s.readRecord, the console's judged reader under the context's judge. TestEveryClosedDoorRefusesAServiceCredential: the four subdomain doors added in T6 were in closedDoors but the pinned count stayed 97; it is 101 now, and the door text names them. No census unit changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
internal/console/apisubdomain.go+1 −1internal/console/canonical.go+1 −1internal/console/svcroutes_test.go+2 −2
CI failed — run details
Intent
<task-notification> <task-id>a0b449ae6ab46e7ca</task-id> <tool-use-id>toolu_01NggJnLBkAvdJgE5kMkJSRf</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/709ac745-ee81-4971-97b8-321e18b19cf6/tasks/a0b449ae6ab46e7ca.output</output-file> <status>completed</status> <summary>Agent "Final-review fix wave" 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>**Status:** DONE. The fix is test-only; nothing is pushed. A short note with the run output is appended to `final-fix-report.md`. **Commit:** `dd16273a` test: signal paused requests after they read the namespace claim **What changed:** Both paused-request tests now signal "view loaded" only after the admitted request has read the namespace claim's body, not just after the claims listing. The rollback or remove can therefore no longer change the claim before the request sees it as active. `TestSubdomainRetiredInterleaving` had the same race as `TestSubdomainRollbackRestartsCooldown`, so I fixed it the same way. All changes are in `internal/console/subdomain_retire_test.go`. **Tests:** With `-count=20`, both tests pass 20 out of 20. The full `TestSubdomain` set in `internal/console` also passes. **Census items needing a ruling:** none new. This is test-only, so no pinned source changed. The round-2 items Astra approved stand: write census pins `93653b4a…` and `de037943…`, root-read seal `bc306a42…`. **Concerns:** none new. The stale `.git/packed-refs.lock` (not mine) is still there.</result> <usage><subagent_tokens>419950</subagent_tokens><tool_uses>4</tool_uses><duration_ms>122722</duration_ms></usage> </task-notification>
<task-notification> <task-id>bqadbyk0r</task-id> <tool-use-id>toolu_01JdreDtTHYwMcaGHtrSixqu</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/709ac745-ee81-4971-97b8-321e18b19cf6/tasks/bqadbyk0r.output</output-file> <status>completed</status> <summary>Background command "Wait for CI to finish on the branch tip" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 35.0 g CO₂e (4,588,294 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-account-name-hosts, 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/console/apisubdomain.go b/internal/console/apisubdomain.go| index 07b4b4cb9..6c1484c31 100644 |
| --- a/internal/console/apisubdomain.go |
| +++ b/internal/console/apisubdomain.go |
| @@ -249,7 +249,7 @@ func (s *Server) subdomainCheckRecord(ctx context.Context, account, name string) |
| break |
| } |
| read++ |
| - rec, err := provision.GetRecord(ctx, s.cfg.Releases, h.Account, h.App, h.Host) |
| + rec, _, err := s.readRecord(ctx, h.Account, h.App, h.Host) |
| if err != nil || rec == nil { |
| log.Printf("console: subdomain set %s %s: check host %s: %v", account, name, h.Host, err) |
| continue |
diff --git a/internal/console/canonical.go b/internal/console/canonical.go| index 90a756eff..978dd2dfb 100644 |
| --- a/internal/console/canonical.go |
| +++ b/internal/console/canonical.go |
| @@ -210,7 +210,7 @@ func (s *Server) channelFlashHost(ctx context.Context, c *hostCanon, acct, app, |
| if s.cfg.Releases == nil { |
| return host |
| } |
| - rec, err := provision.GetRecord(ctx, s.cfg.Releases, acct, app, host) |
| + rec, _, err := s.readRecord(ctx, acct, app, host) |
| if err != nil || rec == nil || !derivesName(true, false, rec.Role == "replica", rec.KindOrDefault()) { |
| return host |
| } |
diff --git a/internal/console/svcroutes_test.go b/internal/console/svcroutes_test.go| index 7d111bbc7..54bccfb5a 100644 |
| --- a/internal/console/svcroutes_test.go |
| +++ b/internal/console/svcroutes_test.go |
| @@ -1746,8 +1746,8 @@ func TestEveryClosedDoorRefusesAServiceCredential(t *testing.T) { |
| } |
| seen++ |
| } |
| - if seen != len(closedDoors) || seen != 97 { |
| - t.Errorf("walked %d closed doors, want all %d (and 97 today: three domain purchase doors, two managed admission doors, the fleet show door, two managed configuration doors, three environment ownership doors, instance-token, three door-key doors, the routes door, the regional placements write, instances-manifest, the app update policy, sidecars-manifest, the route-channel move, three instance update settings doors, two db replica doors, the forwarded db read, seven fleets, the fleet secrets key door, the two person link doors (list and unlink), the six home link doors, four services, two email credentials, email pause, the build probe, the swap policy, the copy count, the interactive setting, the interactive session door, two app policy doors, two app region doors, the live tenancy read, the layout read, the activation-cancel door, ten system doors, three deployment-wide antivirus, the PDF status door, three platform geoip doors, two pointer digest doors, the hostname history status, the channel resign, two release authorize doors, four store-entitlement doors, two account plan doors, two billing problem doors, the billing revenue and payments doors, the billing house door, and the claimed source door)", |
| + if seen != len(closedDoors) || seen != 101 { |
| + t.Errorf("walked %d closed doors, want all %d (and 101 today: three domain purchase doors, two managed admission doors, the fleet show door, two managed configuration doors, three environment ownership doors, instance-token, three door-key doors, the routes door, the regional placements write, instances-manifest, the app update policy, sidecars-manifest, the route-channel move, three instance update settings doors, two db replica doors, the forwarded db read, seven fleets, the fleet secrets key door, the two person link doors (list and unlink), the six home link doors, four services, two email credentials, email pause, the build probe, the swap policy, the copy count, the interactive setting, the interactive session door, two app policy doors, two app region doors, the live tenancy read, the layout read, the activation-cancel door, ten system doors, three deployment-wide antivirus, the PDF status door, three platform geoip doors, two pointer digest doors, the hostname history status, the channel resign, two release authorize doors, four store-entitlement doors, two account plan doors, two billing problem doors, the billing revenue and payments doors, the billing house door, three account subdomain doors, the subdomain inventory, and the claimed source door)", |
| seen, len(closedDoors)) |
| } |
| } |