console remote instances: edges-file identities join no readings; retire restore hardened
Codex census review of cadd9fe9: - An edges-file owner cannot be dated (the box rewrites the file only on change, independently of its report), so an identity from the edges file alone joins the report's version, size, domains and status but never metrics readings; such an instance's health is "Can't tell right now" (a static site still reads Serving), on the pages and in carlos instances list. - Retire deletes only the pointer the check read (DeleteIfMatch on its etag): a promotion meanwhile refuses. The post-delete re-check and the restore run on a context the request's cancellation cannot end, and a failed restore is reported as a failure. Tests fail first; three mutants killed. Census re-proposed; handleRetireCanary re-digested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 files changed,
+101
−40
docs/superpowers/notes/census-proposal-console-remote-instances.md+1 −1docs/superpowers/notes/console-remote-instances.md+15 −7internal/console/apiinstances.go+10 −5internal/console/remoteinstances.go+12 −1internal/console/remoteinstances_round4_test.go+31 −4internal/console/server.go+27 −17internal/provision/console_remote_instances_census_test.go+1 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −1internal/provision/testdata/plan14-root-reads-console-remote-instances.tsv+3 −3
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-console-remote-instances.md b/docs/superpowers/notes/census-proposal-console-remote-instances.md| index 67ff05ac6..b95e1458c 100644 |
| --- a/docs/superpowers/notes/census-proposal-console-remote-instances.md |
| +++ b/docs/superpowers/notes/census-proposal-console-remote-instances.md |
| @@ -34,6 +34,6 @@ Recorded dispositions, which each change must still satisfy: |
| - `internal/console/apiinstances.go` `Server.instanceHealth`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route |
| - `internal/console/view.go` `Assemble`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route |
| -Seal: `0c4eabfe38e12b098285bdeb5ceb0b16e5333928f5b02e160a6b16b5fd9ce1e0` → `b173449e9f3369a83c6475acbbae8afba61660b7f77ecf5535e8c8ce7031ca94`. |
| +Seal: `0c4eabfe38e12b098285bdeb5ceb0b16e5333928f5b02e160a6b16b5fd9ce1e0` → `eb2d804f85fb8f771caa8b049e89912795f11dfa734d622e80dfa992746b07a5`. |
| Overlay: `internal/provision/testdata/plan14-root-reads-console-remote-instances.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/docs/superpowers/notes/console-remote-instances.md b/docs/superpowers/notes/console-remote-instances.md| index 265baec7a..c3857243a 100644 |
| --- a/docs/superpowers/notes/console-remote-instances.md |
| +++ b/docs/superpowers/notes/console-remote-instances.md |
| @@ -298,10 +298,11 @@ conservative rule. |
| 1. **Successor samples.** A remote row's readings are now bounded on both |
| sides: from the record's `created_at` up to when the box report it joined |
| - observed the host as this account's: the box report's generation, for a |
| - rollout entry and an edges-file entry alike (the box rewrites its edges |
| - file when a host changes hands, and the report beside it is the latest |
| - moment the console knows the box still named this owner). A |
| + observed the host as this account's: the generation of the box report |
| + whose rollout entry names this account and app. An identity from the |
| + edges file alone joins no readings at all: the box rewrites that file |
| + only when something changes and publishes it independently of its |
| + report, so nothing dates when its owner last held. A |
| hostname can change hands on the same box while the console still holds |
| the old ownership, and a newer sample may then be the successor's. The |
| current reading is the newest sample inside the window, and nothing at |
| @@ -316,15 +317,22 @@ conservative rule. |
| no lock that record writes take (the app-mutation runner is a claim-mode |
| admission, not a lock), so the retire door takes the app's record keys |
| and modification times before its check, again just before deleting the |
| - pointer, and once more right after: a change seen after the delete puts |
| - the pointer back (its own signed bytes, create-only) and refuses. A |
| + pointer, and once more right after. The delete is conditional on the |
| + pointer the check read (a promotion meanwhile refuses), and a change seen |
| + after it puts those very bytes back, create-only, on a context the |
| + request's cancellation cannot end; a restore that fails is reported as a |
| + failure, not as a refusal. A |
| record written after that last listing meets a channel with no pointer, |
| which is no different from creating one on a channel nobody promoted. |
| 3. **Identity for every route kind.** The rollout report covers only the |
| routes the rollout manages (never statics, non-hibernating instances or |
| unit-backed routes). Each box's edges file publishes the account and app |
| that own every host it serves. It is read with the box reports, in the |
| - same cached load, and identifies the hosts the rollout does not cover. |
| + same cached load, and identifies the hosts the rollout does not cover: |
| + their rows show the box's version, size, domains and status. Their |
| + readings do not join (above), so an instance identified this way reads |
| + "Can't tell right now" for health; a static site, served with no |
| + process, reads "Serving". |
| Where both sources speak and disagree, the host has no identity to join, |
| but the retire guard still counts either source naming the app as a |
| possible follower. |
diff --git a/internal/console/apiinstances.go b/internal/console/apiinstances.go| index 42218d7f2..bec2de7d3 100644 |
| --- a/internal/console/apiinstances.go |
| +++ b/internal/console/apiinstances.go |
| @@ -309,15 +309,17 @@ func (s *Server) instanceHealth(ctx context.Context, recs []provision.Record) ma |
| } |
| continue |
| } |
| - if rep.transient { |
| - // Starting or stopping on its box: not asleep, not up. |
| - out[rec.Host] = healthUnknown |
| - continue |
| - } |
| kind := rec.Kind |
| if kind == "" { |
| kind = "instance" |
| } |
| + if rep.transient || (rep.fromEdges && kind != "static") { |
| + // Starting or stopping on its box, or identified by the edges |
| + // file alone (whose readings cannot be dated to this owner): |
| + // not asleep, not up. |
| + out[rec.Host] = healthUnknown |
| + continue |
| + } |
| status := "ready" |
| if rep.down { |
| // Held down after a failed hold-mode build: "Failed", as the |
| @@ -328,6 +330,9 @@ func (s *Server) instanceHealth(ctx context.Context, recs []provision.Record) ma |
| Hibernate: rec.HibernateOrDefault(), Provisioned: true} |
| boxByHost[rec.Host] = rep.box |
| untilByHost[rec.Host] = rep.obsAt |
| + if rep.fromEdges { |
| + untilByHost[rec.Host] = time.Time{} // no readings |
| + } |
| if rep.awake { |
| if awake == nil { |
| awake = map[string]bool{} |
diff --git a/internal/console/remoteinstances.go b/internal/console/remoteinstances.go| index e9292486e..057104c8d 100644 |
| --- a/internal/console/remoteinstances.go |
| +++ b/internal/console/remoteinstances.go |
| @@ -224,6 +224,12 @@ type hostReport struct { |
| tenantKnown bool |
| account, app string |
| obsAt time.Time |
| + // fromEdges marks an identity taken from the edges file alone. The box |
| + // rewrites that file only when something changes, and publishes it |
| + // independently of its report, so nothing dates when it last held: such |
| + // a host joins the report's version, size, domains and status, never |
| + // metrics readings, and an instance's health stays unknown. |
| + fromEdges bool |
| // claims is every tenant either source names for the host, agreeing |
| // or not: the canary-retire guard's evidence of a possible follower. |
| claims [][2]string |
| @@ -319,7 +325,7 @@ func foldFleet(read fleetRead, now time.Time) fleetReports { |
| switch { |
| case !ok: |
| case !r.tenantKnown && r.account == "" && r.app == "": |
| - r.tenantKnown, r.account, r.app, r.obsAt = true, o[0], o[1], b.GeneratedAt |
| + r.tenantKnown, r.account, r.app, r.obsAt, r.fromEdges = true, o[0], o[1], b.GeneratedAt, true |
| case r.account != o[0] || r.app != o[1]: |
| r.tenantKnown = false |
| r.account, r.app = "conflict", "conflict" |
| @@ -466,6 +472,11 @@ func remoteRoute(rec provision.Record, rep *hostReport, f fleetReports, acct str |
| // Starting or stopping: not healthy sleep, and not up either. |
| rv.unknown = true |
| rv.metricsBox = rep.box |
| + case rep.fromEdges: |
| + // Identified by the edges file alone: no readings (they cannot |
| + // be dated to this owner), and an instance's health is unknown. |
| + // A static site is served with no process, so ready is enough. |
| + rv.unknown = kind != "static" |
| default: |
| rv.metricsBox = rep.box |
| rv.boxAwake = rep.awake |
diff --git a/internal/console/remoteinstances_round4_test.go b/internal/console/remoteinstances_round4_test.go| index 720867d87..dafa503b8 100644 |
| --- a/internal/console/remoteinstances_round4_test.go |
| +++ b/internal/console/remoteinstances_round4_test.go |
| @@ -23,7 +23,9 @@ const residentHost = "always.shop.example.com" |
| // P2 #3: a remote instance that never sleeps is outside the rollout report |
| // (rollout.Managed), so its identity comes from its box's edges file. Its |
| -// row shows the box's version, readings and health, not "Can't tell". |
| +// row shows the box's version. Its readings and health do not join: an |
| +// edges-file owner cannot be dated (the box rewrites the file only on |
| +// change), so a sample under that hostname may be a successor's. |
| func TestRemoteResidentInstanceIdentifiedByEdgesFile(t *testing.T) { |
| tb := newTwoBoxes(t) |
| no := false |
| @@ -44,11 +46,15 @@ func TestRemoteResidentInstanceIdentifiedByEdgesFile(t *testing.T) { |
| }) |
| report(t, tb.fx.rel, tb.regB, "box-b", "uk", time.Now(), nil, 4096) |
| row := instanceRow(t, tb.page(t, "/apps/shop/instances"), residentHost) |
| - if strings.Contains(row, "Can't tell") || !strings.Contains(row, "v3") || !strings.Contains(row, "Running") { |
| + if !strings.Contains(row, "v3") || !strings.Contains(row, "Can't tell right now") || strings.Contains(row, "27%") || strings.Contains(row, "Not responding") { |
| t.Fatalf("Running row for a resident remote instance = %s", row) |
| } |
| - if ov := tb.page(t, "/apps/shop"); !strings.Contains(ov, "27%") { |
| - t.Fatalf("overview has no readings for the resident remote instance:\n%s", ov) |
| + if ov := tb.page(t, "/apps/shop"); strings.Contains(ov, "27%") { |
| + t.Fatalf("overview joined readings on an edges-file identity:\n%s", ov) |
| + } |
| + if code, _, out := rawReq(t, http.MethodGet, instancesURL(tb.fx, tb.sqid, "shop"), tb.token, ""); code != http.StatusOK || |
| + !strings.Contains(out, `"host":"`+residentHost+`"`) || !strings.Contains(out, `"health":"Can't tell right now"`) { |
| + t.Fatalf("instances list = %d %s", code, out) |
| } |
| } |
| @@ -335,3 +341,24 @@ func TestBoxReportInvalidationDuringLoad(t *testing.T) { |
| t.Fatalf("box report listings = %d, want 2: the load that began before the invalidation was held", n) |
| } |
| } |
| + |
| +// Codex census review of cadd9fe9: a promotion of the canary between the |
| +// check's pointer read and the delete makes the delete conflict; the retire |
| +// is refused and the newer pointer stands. |
| +func TestRetireRefusesPointerChangedDuringCheck(t *testing.T) { |
| + tb := newTwoBoxes(t) |
| + shipAndPromote(t, tb.fx, tb.sqid, "shop", "v4", "canary/rc") |
| + tb.create(t, tb.token, tb.sqid, "shop", remoteHost, "uk", "stable") |
| + tb.reconcile(t, "v3") |
| + report(t, tb.fx.rel, tb.regB, "box-b", "uk", time.Now(), nil, 4096) |
| + ageRecords(t, tb) |
| + tb.fx.srv.boxReports.expire() |
| + tb.fx.srv.retireBeforeDeleteHook = func() { shipAndPromote(t, tb.fx, tb.sqid, "shop", "v5", "canary/rc") } |
| + if page := retireRC(t, tb); !strings.Contains(page, notSettled) { |
| + t.Fatalf("retire with the pointer promoted during the check:\n%s", page) |
| + } |
| + p, err := release.Channel(context.Background(), tb.fx.rel, tb.fx.pub, tb.sqid, "shop", "canary/rc") |
| + if err != nil || p == nil || p.Version != "v5" { |
| + t.Fatalf("the newer pointer did not stand: %+v %v", p, err) |
| + } |
| +} |
diff --git a/internal/console/server.go b/internal/console/server.go| index a1e9c7fc6..40b2de766 100644 |
| --- a/internal/console/server.go |
| +++ b/internal/console/server.go |
| @@ -5499,7 +5499,7 @@ func (s *Server) handleRetireCanary(w http.ResponseWriter, r *http.Request) { |
| ctx, cancel := context.WithTimeout(r.Context(), 15*time.Second) |
| defer cancel() |
| key := release.ChannelKey(acct.Sqid, app, channel) |
| - pointer, _, err := s.cfg.Releases.Get(ctx, key) |
| + pointer, pointerETag, err := s.cfg.Releases.Get(ctx, key) |
| if errors.Is(err, os.ErrNotExist) { |
| back("err", "No canary named "+name+" here.") |
| return |
| @@ -5522,7 +5522,13 @@ func (s *Server) handleRetireCanary(w http.ResponseWriter, r *http.Request) { |
| if !maps.Equal(before, after) { |
| return fmt.Errorf("%w: the app's records changed during the check", errRetireUnsettled) |
| } |
| - if err := s.cfg.Releases.Delete(ctx, key); err != nil { |
| + // Delete exactly the pointer read above: a promotion since then |
| + // conflicts, and the retire is refused rather than deleting bytes |
| + // this check never saw (and restoring older ones below). |
| + if err := release.DeleteIfMatch(ctx, s.cfg.Releases, key, pointerETag); err != nil { |
| + if errors.Is(err, release.ErrCASConflict) { |
| + return fmt.Errorf("%w: the canary's pointer changed during the check", errRetireUnsettled) |
| + } |
| return err |
| } |
| if h := s.retireAfterDeleteHook; h != nil { |
| @@ -5530,21 +5536,25 @@ func (s *Server) handleRetireCanary(w http.ResponseWriter, r *http.Request) { |
| } |
| // No lock covers record writes, so a follower can still land between |
| // that comparison and the delete. Compare once more after it: on any |
| - // change, put the pointer back (its signed bytes, as read) and |
| - // refuse. A record written after this listing meets a channel with no |
| - // pointer, which is no different from creating one on a channel |
| - // nobody has promoted yet. |
| - final, ferr := s.recordStamps(ctx, acct.Sqid, app) |
| - if ferr != nil || !maps.Equal(before, final) { |
| - if _, perr := s.cfg.Releases.Put(ctx, key, pointer, ""); perr != nil { |
| - log.Printf("console: retire %s %s: RESTORING THE POINTER FAILED after a concurrent record change: %v", app, channel, perr) |
| - } |
| - if ferr != nil { |
| - return ferr |
| - } |
| - return fmt.Errorf("%w: the app's records changed while retiring; the pointer was put back", errRetireUnsettled) |
| - } |
| - return nil |
| + // change, put the pointer back (the very bytes deleted, create-only) |
| + // and refuse. This runs on its own context, so a request cancelled |
| + // after the delete cannot leave the pointer gone. A record written |
| + // after this listing meets a channel with no pointer, which is no |
| + // different from creating one on a channel nobody has promoted yet. |
| + rctx, rcancel := context.WithTimeout(context.WithoutCancel(ctx), 15*time.Second) |
| + defer rcancel() |
| + final, ferr := s.recordStamps(rctx, acct.Sqid, app) |
| + if ferr == nil && maps.Equal(before, final) { |
| + return nil |
| + } |
| + if _, perr := s.cfg.Releases.Put(rctx, key, pointer, ""); perr != nil { |
| + log.Printf("console: retire %s %s: RESTORING THE POINTER FAILED after a concurrent record change: %v", app, channel, perr) |
| + return fmt.Errorf("the app's records changed while retiring, and putting the pointer back failed (%v); promote the canary again", perr) |
| + } |
| + if ferr != nil { |
| + return fmt.Errorf("could not re-check the app's records after retiring, so the pointer was put back: %w", ferr) |
| + } |
| + return fmt.Errorf("%w: the app's records changed while retiring; the pointer was put back", errRetireUnsettled) |
| }) |
| if errors.Is(err, errRetireUnsettled) { |
| log.Printf("console: retire %s %s: %v", app, channel, err) |
diff --git a/internal/provision/console_remote_instances_census_test.go b/internal/provision/console_remote_instances_census_test.go| index 301b6c5f5..60c7c1531 100644 |
| --- a/internal/provision/console_remote_instances_census_test.go |
| +++ b/internal/provision/console_remote_instances_census_test.go |
| @@ -53,7 +53,7 @@ func consoleRemoteInstancesWriteCensusInventory() []censusEntry { |
| {"internal/console/claim_retire.go", "Server.retireClaimHostRecord", "key-site", "key:claimRetireRecordKey", "3c30cfcad8f2edb3c38b7dd9e56697cd3e17ce3a7fa0e76eb815adf3dad7bd4d"}, |
| {"internal/console/remoteinstances.go", "Server.retireUnsettled", "key-site", "key:RecordsPrefix,key:SidecarsPrefix", "f8060eaf63710c2326b3bcb10b545b15f21d91c52d540b0245d0dc5b83548ab6"}, |
| {"internal/console/remoteinstances.go", "Server.pageRecords", "key-site", "key:RecordsPrefix", "5298e5713404c168fdc4cfdc9995f57a5d3d61893d4b6c17f985877de59f8896"}, |
| - {"internal/console/server.go", "Server.handleRetireCanary", "nonrecord", "sel:Put", "70c248a329b475c574abeda7714933219e8cb7f6b5c881cbfe387e0390f7caaa"}, |
| + {"internal/console/server.go", "Server.handleRetireCanary", "nonrecord", "sel:Put", "c18efa10c555c8093a8a572d93e030862a62c0ac421d7773dd0eb6b7b1be4da3"}, |
| {"internal/console/remoteinstances.go", "Server.recordStamps", "key-site", "key:RecordsPrefix,key:SidecarsPrefix", "c38f120e5be0e8c883b6da7d86df23a5b6b495a31732732e6cbe6efe5821ff43"}, |
| } |
| for _, r := range replacements { |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index f6fd191c1..e2d0ebff6 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -23,4 +23,4 @@ plan14-root-reads-plans-4a-store.tsv 72dc835c04caf5b2b49cc6ecbfd865bb3123b997ee9 |
| plan14-root-reads-plans-4-notices-grace.tsv 43e430a3b3edf9333bfe2c64f24ca9e4c04475dc45ae4983d4e8bcab6a9c0bc4 |
| plan14-root-reads-design-edge-rate-limit-358-decisions.tsv a067dcd9e32e6be2b7dd9c6a8256d1252ac4c737fd058c430823e382add340c4 |
| plan14-root-reads-design-edge-rate-limit-358.tsv 0c4eabfe38e12b098285bdeb5ceb0b16e5333928f5b02e160a6b16b5fd9ce1e0 |
| -plan14-root-reads-console-remote-instances.tsv b173449e9f3369a83c6475acbbae8afba61660b7f77ecf5535e8c8ce7031ca94 |
| +plan14-root-reads-console-remote-instances.tsv eb2d804f85fb8f771caa8b049e89912795f11dfa734d622e80dfa992746b07a5 |
diff --git a/internal/provision/testdata/plan14-root-reads-console-remote-instances.tsv b/internal/provision/testdata/plan14-root-reads-console-remote-instances.tsv| index 3736fafa4..4c4b56503 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-console-remote-instances.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-console-remote-instances.tsv |
| @@ -8,7 +8,7 @@ |
| @legacy aa852aec334f46af0b4bb16f7f81afa3d4690f0f12c6c80b2ab5cff4837367aa internal/console/metricsview.go buildUnitRows legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-console-remote-instances;basis=Each unit row also keeps its raw per-sample readings (float32 CPU, int64 memory) so an owner's graph can be redrawn from only their samples; reads nothing new. file:ReadBytes@315,file:ReadBytes@327 e7f942ea8d32626b6ead3313deec26c458a7d7c296e7120c7384dfc5f416c378 |
| @legacy 5ba3b725e417106dfbca90c2d28ca0ff116430d0ec8dcbdf9533464cbeda380b internal/console/server.go Server.channelHosts legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Canary-retire guard also counts the account's instance records (ListRecordsStrict) and sidecar records (listed, then each read with GetSidecarRecord; any read error refuses) naming the channel; with none, it refuses unless the app has settled (retireUnsettled). The registry read is as on main. Fails closed. registry:App@424,registry:Channel@441,registry:Host@472,whole:Route@410 966e1fb668d3910ccb102845f1c5c91a1aa2cfa857bbf0ca11d850945259c682 |
| @legacy 9c63018a0c60a52c55b2ef0159bc58cbf0f191e0166a53adf58feff954c6935e internal/console/templates/app_overview.html external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-console-remote-instances;basis=Running tile does not claim Served when a route's state is unknown and reads the existing 'no data right now' when every instance's state is unknown; Web addresses tile reads 'no data right now' instead of 'DNS & certs OK' for a domain with no reading; display only. file:external@0 2a112ff768c300894881b858e61465841c87810ca7cb1d98a0fe2a54155a0ca1 |
| -@legacy cba56de76bf077c160affcd94c48b66d948eeed985cc78e9845fb2bb4620f0b0 internal/console/apiinstances.go Server.instanceHealth legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Records with no local registry row get health only from a box report (rollout entry or edges-file owner) naming the record's own account and app and generated after the record existed (held down: Failed; transient, unidentified or unread: Can't tell right now), readings pinned to that box and bounded by the record's created_at and the report's observation. Builds registry.Route literals from the record; reads no registry for them. registry:Account@1987,registry:Account@2007,registry:App@1948,registry:App@1964,registry:Host@839,registry:Unit@2117,registry:Unit@2159,whole:Route@1151,whole:Route@2054,whole:Route@2075,whole:Route@2893,whole:Route@3649,whole:Route@4166,whole:Route@4219,whole:Route@4334,whole:Route@792,whole:Route@821,whole:Route@832,whole:Route@850 5824a71a58f5869ec8f0f90878b939d5a900399f42a504d6cc4c33210d55be6c |
| +@legacy 733d9fc6dd70099fbc4c72500e97b899134c2f31334e5a7ac2e54b1c31cfc7f6 internal/console/apiinstances.go Server.instanceHealth legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Records with no local registry row get health only from a box report (rollout entry or edges-file owner) naming the record's own account and app and generated after the record existed (held down: Failed; transient, unidentified or unread: Can't tell right now), readings pinned to that box and bounded by the record's created_at and the report's observation. Builds registry.Route literals from the record; reads no registry for them. registry:Account@1987,registry:Account@2007,registry:App@1948,registry:App@1964,registry:Host@839,registry:Unit@2117,registry:Unit@2159,whole:Route@1151,whole:Route@2054,whole:Route@2075,whole:Route@2893,whole:Route@3788,whole:Route@4387,whole:Route@4440,whole:Route@4555,whole:Route@792,whole:Route@821,whole:Route@832,whole:Route@850 e04d89743780fa7c27330e48ae6360336e797367b967c5998e61c4309521f15c |
| @legacy c4f85bcfbab5b09688918bfefae1eff1b8bf54e2659428cf33c2d4bafc9729ab internal/console/view.go Assemble legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Collects the set of local registry hosts (rt.Host) so a record host the registry has gets no remote row (its record's created_at bounds the local row's metrics history); adds rows from the account's records and tenant-named box reports when given a remote source. registry:App@1716,registry:App@1739,registry:App@2117,registry:App@2147,registry:Backing@2017,registry:Caps@1385,registry:Channel@960,registry:Environment@1942,registry:Hibernate@1859,registry:Host@1768,registry:Host@861,registry:Kind@1783,registry:Platform@1889,registry:Provisioned@2042,registry:Status@1800,registry:Unit@1999,registry:Version@1823,whole:Route@2092,whole:Route@2167,whole:Route@810,whole:Route@839,whole:Route@910 120ae8c042523f872fd1c19357b8bb830e4afe9da1e38ad202df2ada3ad52ada |
| internal/console/accountfleet.go Server.assembleAccountFleet legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Fleet tab: the shared-fleet app count also reads the account's own instance records (per app of the account, under its own prefix, region not a fleet placement); the registry read is unchanged. registry:Account@2350,registry:Account@4421,registry:App@2476,registry:Name@4814,registry:Region@2437,whole:Fleet@4006,whole:Fleet@4408,whole:Fleet@4522,whole:Route@2335 1b5ecf4066d067d721683d273e768d834df0bb9cb3cf5ff90648b1e6842bacc8 |
| internal/console/apiinstances.go Server.healthByHost legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Takes an awake set, a box pin per host and an ownership window per host (since, until) from the caller: readings only from that box and only from samples inside the window, via ownerAppMetricsFrom; registry reads unchanged. registry:Backing@1279,registry:Hibernate@1201,registry:Kind@1184,registry:Provisioned@1254,registry:Status@1061,registry:Unit@1270,registry:Unit@394,registry:Unit@429,whole:Route@1038,whole:Route@242,whole:Route@285,whole:Route@351 6d4e71f0460632bec27b64b948c6bea4fdf48c2ff5c15c252614a46643b81924 |
| @@ -19,7 +19,7 @@ internal/console/metricsview.go buildUnitRows legacy accepted-legacy accepted-le |
| internal/console/metricsview.go type UnitRow diagnostic H3 schema-only;rev3=census-ruling-console-remote-instances;basis=Two unexported fields carrying those raw per-sample readings; schema only. file:ReadBytes@133 db66030c5353fee88e0826786a424e0fee88d3191004deff380d00086bef5d62 |
| internal/console/server.go Server.channelHosts legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Canary-retire guard also counts the account's instance records (ListRecordsStrict) and sidecar records (listed, then each read with GetSidecarRecord; any read error refuses) naming the channel; with none, it refuses unless the app has settled (retireUnsettled). The registry read is as on main. Fails closed. registry:App@424,registry:Channel@441,registry:Host@472,whole:Route@410 966e1fb668d3910ccb102845f1c5c91a1aa2cfa857bbf0ca11d850945259c682 |
| internal/console/templates/app_overview.html external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-console-remote-instances;basis=Running tile does not claim Served when a route's state is unknown and reads the existing 'no data right now' when every instance's state is unknown; Web addresses tile reads 'no data right now' instead of 'DNS & certs OK' for a domain with no reading; display only. file:external@0 2a112ff768c300894881b858e61465841c87810ca7cb1d98a0fe2a54155a0ca1 |
| -internal/console/apiinstances.go Server.instanceHealth legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Records with no local registry row get health only from a box report (rollout entry or edges-file owner) naming the record's own account and app and generated after the record existed (held down: Failed; transient, unidentified or unread: Can't tell right now), readings pinned to that box and bounded by the record's created_at and the report's observation. Builds registry.Route literals from the record; reads no registry for them. registry:Account@1987,registry:Account@2007,registry:App@1948,registry:App@1964,registry:Host@839,registry:Unit@2117,registry:Unit@2159,whole:Route@1151,whole:Route@2054,whole:Route@2075,whole:Route@2893,whole:Route@3649,whole:Route@4166,whole:Route@4219,whole:Route@4334,whole:Route@792,whole:Route@821,whole:Route@832,whole:Route@850 5824a71a58f5869ec8f0f90878b939d5a900399f42a504d6cc4c33210d55be6c |
| +internal/console/apiinstances.go Server.instanceHealth legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Records with no local registry row get health only from a box report (rollout entry or edges-file owner) naming the record's own account and app and generated after the record existed (held down: Failed; transient, unidentified or unread: Can't tell right now), readings pinned to that box and bounded by the record's created_at and the report's observation. Builds registry.Route literals from the record; reads no registry for them. registry:Account@1987,registry:Account@2007,registry:App@1948,registry:App@1964,registry:Host@839,registry:Unit@2117,registry:Unit@2159,whole:Route@1151,whole:Route@2054,whole:Route@2075,whole:Route@2893,whole:Route@3788,whole:Route@4387,whole:Route@4440,whole:Route@4555,whole:Route@792,whole:Route@821,whole:Route@832,whole:Route@850 e04d89743780fa7c27330e48ae6360336e797367b967c5998e61c4309521f15c |
| internal/console/view.go Assemble legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Collects the set of local registry hosts (rt.Host) so a record host the registry has gets no remote row (its record's created_at bounds the local row's metrics history); adds rows from the account's records and tenant-named box reports when given a remote source. registry:App@1716,registry:App@1739,registry:App@2117,registry:App@2147,registry:Backing@2017,registry:Caps@1385,registry:Channel@960,registry:Environment@1942,registry:Hibernate@1859,registry:Host@1768,registry:Host@861,registry:Kind@1783,registry:Platform@1889,registry:Provisioned@2042,registry:Status@1800,registry:Unit@1999,registry:Version@1823,whole:Route@2092,whole:Route@2167,whole:Route@810,whole:Route@839,whole:Route@910 120ae8c042523f872fd1c19357b8bb830e4afe9da1e38ad202df2ada3ad52ada |
| -@coverage internal/console 864a523d52ff3db9c0587d1fbf6e47d8749d96bd318c5196196648d3699b5791 |
| +@coverage internal/console 75782e9b875f24c1713e2e4560f6c4d43fc7f6146a5be68c722ef3af29de1dcc |
| @coverage internal/console/templates 6e272e30e00be5785b3f364a947ea4ab86b2d96a0e8d21821b7812c45f0a636f |