carlos / platform Public

carlos canary retire: delete an unfollowed canary pointer from the CLI open

On branch canary-retire-cli-1634

From 8a3d302 (coordinator), for Tito (carlos-infrastructure-e7).

Problem: carlos channels digests keeps listing a lapsed canary channel that nothing follows, and there is no supported way to retire it. The repair listing then never reaches "nothing to repair".

Case (Tito production, before its v0.44.1 roll): 72 of 73 repair rows were fixed (repeat promotes plus releases authorize). One row is left: bab's app canary/platform-adoption at ff61d3b-r2. Its release objects were rewritten on 08-03, after the 08-01 promote, so authorizing it would sign bytes that were never promoted. It was correctly held back. Nothing follows the channel.

Docs today (cli.md, carlos canary): canary rm deletes the instance record; "The channel itself remains, followed by nothing, and lapses at the end of its lease; there is no pointer to delete." So no supported command removes it, and the pointer object persists.

Ask (pick in design):

  1. The repair listing skips canary/<name> channels whose lease has lapsed and that no instance follows. A lapsed canary can't be staged anyway; confirm that in code first.
  2. Or carlos canary rm --channel (operator, release key) deletes a lapsed, unfollowed canary pointer, with its release objects left for GC.

(1) is smaller and also cleans up flagship-style canary rows. Hand-deleting the bucket object is not the supported answer.

Merged as 583fac44fb7ef7674d6fd27270c7a3b9c430e1b4 on main. carlos canary retire deletes an unfollowed canary pointer from the CLI. carlos channels digests marks lines of apps with no console row "(no app on this console)". The operator door for such apps is parked on canary-retire-orphan-1634: it needs box reports that name every route's app and channel first. It rides the next release on Paul's go.

Parked: the operator delete for canary pointers of apps with no console row (carlos channels retire). Decision by 8a3d302 (option B) after review round 2 on canary-retire-orphan-1634, where Astra invoked the stopping rule.

Why: the door's only evidence is the box status reports, and they are snapshots written every few minutes. A hand route created after a box's last report is invisible, and a box whose reporting fails while it keeps serving drops out of the listing after a day. The delete would therefore weaken "refuse while any box runs the app", and the pointer is harmless where it sits (nothing follows it).

Prerequisite for a delete: real exclusion. A retiring marker that boxes honour (no new route or adopt onto the channel while it stands) and acknowledge in their reports, with the delete allowed only once every listed box has acknowledged it. That is new box protocol and needs its own design.

What ships instead (canary-retire-orphan-1634): box reports name every route's account, app and channel (route_channels), and carlos channels digests shows, per app marked "no app on this console", which boxes last reported running it, on which channel and how old each report is. Read-only evidence; it also answers whether go.tito.io still follows bab/titogo canary/platform-adoption once boxes run the release.