carlos / platform Public

console remote instances: undated edges identities confirm the record live; no pointer resurrection

Codex census review of 56e72aa5:
- An edges-file-only identity joins the box report only once that one
  record is read live from the bucket with the same created_at: a record
  that exists now means no successor holds the hostname, whichever
  console deleted anything. carlos instances list already reads records
  live.
- fromEdges is checked before the down/transient branches, and an edges
  identity takes no process state from a rollout entry that named no
  tenant.
- The retire re-reads the pointer just before its conditional delete and
  refuses if it is gone or changed, so a pointer someone else removed is
  never restored from older bytes.

Tests fail first; two mutants killed, one equivalent (the switch order
already blocks it). Census re-proposed; handleRetireCanary re-digested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 0719d06975c38c56da4c0af3feaf7ddebb01a930 parent 56e72aa
10 files changed, +138 −14
  • docs/superpowers/notes/census-proposal-console-remote-instances.md +1 −1
  • docs/superpowers/notes/console-remote-instances.md +7 −2
  • internal/console/apiinstances.go +2 −0
  • internal/console/remoteinstances.go +29 −5
  • internal/console/remoteinstances_round4_test.go +77 −0
  • internal/console/server.go +10 −0
  • internal/console/view.go +7 −1
  • internal/provision/console_remote_instances_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/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 b95e1458c..48d0fef01 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` → `eb2d804f85fb8f771caa8b049e89912795f11dfa734d622e80dfa992746b07a5`.
+Seal: `0c4eabfe38e12b098285bdeb5ceb0b16e5333928f5b02e160a6b16b5fd9ce1e0` → `91381ac20a7c806cdb36e7362850c6a45a196501e5768cbceef73fc3c0153102`.
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 c3857243a..088cc5f7b 100644
--- a/docs/superpowers/notes/console-remote-instances.md
+++ b/docs/superpowers/notes/console-remote-instances.md
@@ -318,7 +318,8 @@ conservative rule.
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. The delete is conditional on the
- pointer the check read (a promotion meanwhile refuses), and a change seen
+ pointer the check read, re-read just before (a promotion or removal
+ meanwhile refuses, so no older bytes are ever restored), 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
@@ -329,7 +330,11 @@ conservative rule.
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:
- their rows show the box's version, size, domains and status. Their
+ their rows show the box's version, size, domains and status, but only
+ once that one record has been read live from the bucket with the same
+ `created_at` (a record that exists now means no successor can hold the
+ hostname, whichever console deleted anything). A rollout entry that
+ names no tenant lends such a host no process state. 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".
diff --git a/internal/console/apiinstances.go b/internal/console/apiinstances.go
index bec2de7d3..35cb2db1b 100644
--- a/internal/console/apiinstances.go
+++ b/internal/console/apiinstances.go
@@ -313,6 +313,8 @@ func (s *Server) instanceHealth(ctx context.Context, recs []provision.Record) ma
if kind == "" {
kind = "instance"
}
+ // recs were read live a moment ago (ListRecordsComplete), which
+ // is the confirmation an undated edges-file identity needs.
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):
diff --git a/internal/console/remoteinstances.go b/internal/console/remoteinstances.go
index 057104c8d..4fb7d813e 100644
--- a/internal/console/remoteinstances.go
+++ b/internal/console/remoteinstances.go
@@ -326,6 +326,9 @@ func foldFleet(read fleetRead, now time.Time) fleetReports {
case !ok:
case !r.tenantKnown && r.account == "" && r.app == "":
r.tenantKnown, r.account, r.app, r.obsAt, r.fromEdges = true, o[0], o[1], b.GeneratedAt, true
+ // A rollout entry that named no tenant cannot be attributed:
+ // its process state is not this owner's to show.
+ r.down, r.transient, r.awake = false, false, false
case r.account != o[0] || r.app != o[1]:
r.tenantKnown = false
r.account, r.app = "conflict", "conflict"
@@ -397,6 +400,12 @@ func betterReport(a, b *hostReport) bool {
// boxes: a record reader already scoped to the viewed account, and the
// folded box reports.
type remoteRows struct {
+ // confirm reports whether acct/app's record for host still exists, read
+ // live from the bucket, with the given created_at. An identity from the
+ // edges file alone is undated; a record that exists now, unchanged
+ // since the report's generation, is what proves no successor can hold
+ // the hostname, so such a join waits on it. nil confirms nothing.
+ confirm func(app, host string, created time.Time) bool
// records reads app's records, skipping hosts in skip (the console
// box's registry hosts, which keep their local rows) without reading
// them.
@@ -463,6 +472,12 @@ func remoteRoute(rec provision.Record, rep *hostReport, f fleetReports, acct str
rv.dbBytes = rep.dbBytes
rv.aliases = rep.aliases
switch {
+ 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.
+ // Checked first: nothing below may enable readings for it.
+ rv.unknown = kind != "static"
case rep.down:
// Held down after a failed hold-mode build: the local rows'
// word for an instance that will not start, "Failed".
@@ -472,11 +487,6 @@ 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
@@ -553,6 +563,17 @@ func (s *Server) pageRecords(ctx context.Context, acct, app string, skip map[str
return recs, nil
}
+// confirmRecord is remoteRows.confirm for acct: one live GET of the record.
+func (s *Server) confirmRecord(ctx context.Context, acct, app, host string, created time.Time) bool {
+ if s.cfg.Releases == nil {
+ return false
+ }
+ cctx, cancel := context.WithTimeout(ctx, instanceStoreTimeout)
+ defer cancel()
+ rec, err := provision.GetRecord(cctx, s.cfg.Releases, acct, app, host)
+ return err == nil && rec.CreatedAt.Equal(created)
+}
+
// remoteSource builds Assemble's remote input for one page view of acct.
func (s *Server) remoteSource(ctx context.Context, acct string) *remoteRows {
if s.cfg.Releases == nil {
@@ -560,6 +581,9 @@ func (s *Server) remoteSource(ctx context.Context, acct string) *remoteRows {
}
read := s.pageFleet(ctx)
return &remoteRows{
+ confirm: func(app, host string, created time.Time) bool {
+ return s.confirmRecord(ctx, acct, app, host, created)
+ },
records: func(app string, skip map[string]bool) ([]provision.Record, error) {
rctx, cancel := context.WithTimeout(ctx, instanceStoreTimeout)
defer cancel()
diff --git a/internal/console/remoteinstances_round4_test.go b/internal/console/remoteinstances_round4_test.go
index dafa503b8..445b8efd2 100644
--- a/internal/console/remoteinstances_round4_test.go
+++ b/internal/console/remoteinstances_round4_test.go
@@ -362,3 +362,80 @@ func TestRetireRefusesPointerChangedDuringCheck(t *testing.T) {
t.Fatalf("the newer pointer did not stand: %+v %v", p, err)
}
}
+
+// Codex census review of 56e72aa5: an edges-file-only identity joins the
+// report only while the record demonstrably exists. With the record view's
+// snapshot still holding a record deleted behind the console's back, the
+// row joins nothing from the box.
+func TestEdgesIdentityNeedsLiveRecord(t *testing.T) {
+ tb := newTwoBoxes(t)
+ no := false
+ if err := provision.CreateRecord(context.Background(), tb.fx.rel, provision.Record{Schema: 1, Host: residentHost, Slug: "always",
+ App: "shop", Account: tb.sqid, Pool: "shop", Region: "uk", Channel: "stable", Hibernate: &no, CreatedAt: time.Now()}); err != nil {
+ t.Fatal(err)
+ }
+ tb.reconcile(t, "v3")
+ report(t, tb.fx.rel, tb.regB, "box-b", "uk", time.Now(), nil, 4096)
+ v := provision.NewRecordView(tb.fx.rel, release.NewChangeWatch(tb.fx.rel))
+ if err := v.Rebuild(context.Background()); err != nil {
+ t.Fatal(err)
+ }
+ tb.fx.srv.SetRecordView(v)
+ if row := instanceRow(t, tb.page(t, "/apps/shop/instances"), residentHost); !strings.Contains(row, "v3") {
+ t.Fatalf("fixture: the edges-identified row = %s", row)
+ }
+ if err := tb.fx.rel.Delete(context.Background(), provision.RecordKey(tb.sqid, "shop", residentHost)); err != nil {
+ t.Fatal(err)
+ }
+ tb.fx.srv.boxReports.expire()
+ if row := instanceRow(t, tb.page(t, "/apps/shop/instances"), residentHost); strings.Contains(row, "v3") {
+ t.Fatalf("a stale snapshot's record let an undated edges identity join: %s", row)
+ }
+}
+
+// Codex census review of 56e72aa5: a rollout entry that names no tenant
+// cannot lend its process state (down, transient, awake) or readings to an
+// identity the edges file supplies.
+func TestEdgesIdentityTakesNoUnnamedRolloutState(t *testing.T) {
+ now := time.Now()
+ boxes := []status.Box{{GeneratedAt: now, Label: "b", Metrics: &status.BoxMetrics{
+ RouteVersions: map[string]string{"h.example.com": "v2"},
+ Rollout: &status.RolloutReport{Hosts: map[string]status.HostRollout{
+ "h.example.com": {Attempt: status.AttemptDown, Awake: true},
+ }},
+ }}}
+ owners := map[string]map[string][2]string{"b": {"h.example.com": {"a", "shop"}}}
+ f := foldFleet(fleetRead{boxes: boxes, complete: true, owners: owners, at: now}, now)
+ rep := f.pick("h.example.com", "a", "shop", time.Time{})
+ if rep == nil || !rep.fromEdges {
+ t.Fatalf("fixture: %+v", rep)
+ }
+ rv, _ := remoteRoute(provision.Record{Host: "h.example.com", App: "shop", Account: "a"}, rep, f, "a", DNSTargets{})
+ if rv.Status == "failed" || rv.metricsBox != "" || rv.boxAwake {
+ t.Fatalf("an unnamed rollout entry's state reached the row: %+v", rv)
+ }
+}
+
+// Codex census review of 56e72aa5: the canary's pointer removed by someone
+// else during the check is not "restored" from this request's older bytes.
+func TestRetireDoesNotResurrectRemovedPointer(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() {
+ if err := tb.fx.rel.Delete(context.Background(), release.ChannelKey(tb.sqid, "shop", "canary/rc")); err != nil {
+ t.Error(err)
+ }
+ }
+ tb.fx.srv.retireAfterDeleteHook = followerRecord(t, tb, "late.shop.example.com")
+ if page := retireRC(t, tb); !strings.Contains(page, notSettled) {
+ t.Fatalf("retire with the pointer removed during the check:\n%s", page)
+ }
+ if rcPointer(t, tb) {
+ t.Fatal("a pointer removed by someone else was resurrected")
+ }
+}
diff --git a/internal/console/server.go b/internal/console/server.go
index 40b2de766..7fd849566 100644
--- a/internal/console/server.go
+++ b/internal/console/server.go
@@ -5522,6 +5522,16 @@ 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)
}
+ // The pointer must still be the one read above. DeleteIfMatch below
+ // treats an absent object as deleted, so absence is checked here: a
+ // pointer someone else promoted and removed meanwhile must not be
+ // "restored" from this request's older bytes.
+ if _, cur, gerr := s.cfg.Releases.Get(ctx, key); gerr != nil || cur != pointerETag {
+ if gerr != nil && !errors.Is(gerr, os.ErrNotExist) {
+ return gerr
+ }
+ return fmt.Errorf("%w: the canary's pointer changed during the check", errRetireUnsettled)
+ }
// 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).
diff --git a/internal/console/view.go b/internal/console/view.go
index 5742ddcda..6aeecef4d 100644
--- a/internal/console/view.go
+++ b/internal/console/view.go
@@ -731,7 +731,13 @@ func addRemoteRows(remote *remoteRows, acct, app string, localHosts map[string]b
}
continue
}
- rv, dv := remoteRoute(rec, remote.reports.pick(rec.Host, acct, app, rec.CreatedAt), remote.reports, acct, dns)
+ rep := remote.reports.pick(rec.Host, acct, app, rec.CreatedAt)
+ if rep != nil && rep.fromEdges && (remote.confirm == nil || !remote.confirm(app, rec.Host, rec.CreatedAt)) {
+ // An undated edges-file identity joins only while the record
+ // demonstrably still exists (remoteRows.confirm).
+ rep = nil
+ }
+ rv, dv := remoteRoute(rec, rep, remote.reports, acct, dns)
routes = append(routes, rv)
domains = append(domains, dv)
added = true
diff --git a/internal/provision/console_remote_instances_census_test.go b/internal/provision/console_remote_instances_census_test.go
index 60c7c1531..582153074 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", "c18efa10c555c8093a8a572d93e030862a62c0ac421d7773dd0eb6b7b1be4da3"},
+ {"internal/console/server.go", "Server.handleRetireCanary", "nonrecord", "sel:Put", "9cfb06e3245d41e7583df0e3a03520ced2bd79b271b9b3c5a4078001f7c102dd"},
{"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 e2d0ebff6..c2d071375 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 eb2d804f85fb8f771caa8b049e89912795f11dfa734d622e80dfa992746b07a5
+plan14-root-reads-console-remote-instances.tsv 91381ac20a7c806cdb36e7362850c6a45a196501e5768cbceef73fc3c0153102
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 4c4b56503..6e08e5319 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 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 f9afa7172609f539612d70a95d9cb6d9b094d3c171572994221367ae25da27ff 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@3920,whole:Route@4519,whole:Route@4572,whole:Route@4687,whole:Route@792,whole:Route@821,whole:Route@832,whole:Route@850 791a8e223123dd5361e927bf69023edda74f5f347a4a63a83c00d9b3d55872c8
@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@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/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@3920,whole:Route@4519,whole:Route@4572,whole:Route@4687,whole:Route@792,whole:Route@821,whole:Route@832,whole:Route@850 791a8e223123dd5361e927bf69023edda74f5f347a4a63a83c00d9b3d55872c8
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 75782e9b875f24c1713e2e4560f6c4d43fc7f6146a5be68c722ef3af29de1dcc
+@coverage internal/console cb41971c4ea35e636130328b6d3ad1783687f997bd8985a4e48069839d1d9b11
@coverage internal/console/templates 6e272e30e00be5785b3f364a947ea4ab86b2d96a0e8d21821b7812c45f0a636f