Skip to content

"rolled" means the deployment's new pods are ready, not the old one still terminating - #37

Merged
shaz merged 17 commits into
mainfrom
fix/rolled-means-the-new-pods
Dec 1, 2026
Merged

shaz merged 17 commits into
mainfrom
fix/rolled-means-the-new-pods

Conversation

@shaz

@shaz shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Found on prod today, kobo v0.3.81 → v0.3.86 through the UI (run 2 on the prod profile): the run said "rolled, 1/1 pods on sha256:e8068497…" at 20:41:55Z. At that moment the old pod was terminating (still reporting ready), the new pod did not exist yet (created 20:42:15Z, ready 20:43:32Z) and the deploy run was still in flight. The done check read the deployment's template image (already the new digest once CI applied it) and counted every ready pod in the namespace.

What changes

  • pods_ready(ns, image="") reads each pod's deletionTimestamp, image and container ready flags. A pod being deleted is never counted. With the deployment's image given, only pods of that repo count, and a pod is ready only when it runs that exact image.
  • wait_rolled passes the deployment's image, so done is the deployment's own live pods ready on the new digest.
  • The install's namespace-wide "N/N pods ready" keeps its meaning minus terminating pods.
  • pods_summary is a pure function the fake uses too, so the test counts pods the way the installer does.

Done when

  1. With the template already on the new digest and the old pod still ready on the old image, the upgrade does not report rolled.
  2. With the old pod terminating (still ready), it does not report rolled.
  3. With the new pod present but not ready, it does not report rolled.
  4. With the new pod ready on the new image, it reports "rolled, 1/1 pods" and finishes.
  5. Another deployment's pods in the same namespace (openfga beside bab) never count toward an app's roll.

make check: ruff, mypy 31 files, 190 passed. Mutations: wait_rolled counting the namespace again fails test 1; the helper counting deleting pods fails the helper test.

Not run through Inkling: found and fixed mid-upgrade with Shaz as the tester.

Ember (SRE AI)

🤖 Generated with Claude Code

shaz and others added 3 commits November 30, 2026 15:46
…till terminating

kobo's upgrade on prod (2026-11-30, run 2): the setup PR's CI applied the
deployment, whose template now named the new digest, and under Recreate the
old pod began terminating. Its containers still reported ready, so
wait_rolled read "template on the digest, 1/1 pods ready" and said rolled at
20:41:55Z. The new pod was created at 20:42:15Z, ready at 20:43:32Z, and
the deploy run was still in flight. The receipt was the old pod.

pods_ready(ns, image="") now parses each pod's deletionTimestamp, image and
container ready flags; pods_summary (pure, shared with the fake) drops any
pod being deleted, and with the deployment's image given counts only pods of
that repo, ready only when on that exact image. wait_rolled passes the
image. The install's namespace-wide "N/N pods ready" keeps its meaning but no
longer counts a terminating pod.

Tests drive the real upgrade path with a per-poll pods script: old pod ready
on the old image, old pod terminating, new pod not ready, new pod ready —
done at the fourth poll only. Two mutations fail it: wait_rolled counting the
namespace again, and the helper counting deleting pods.

Signed-off-by: Shaz Chaudhri <shahzad@mac.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The form's one box a stranger had to type was the path to `cbl`, cabal's
command-line client, built from a cabal checkout. The installer called it
twice: `cbl login` to trade the bootstrap code for an operator token, and
`cbl token mint-service` to mint the tokens liminal and kobo hold. Both are
HTTP calls (POST /auth/bootstrap, POST /admin/token/mint-service with the
bearer) to the cabal Service, through the port-forward the installer already
opens for them.

HttpCabal makes the two calls itself, keeps the operator token for the run
and writes it nowhere; the tunnel logic is unchanged. The --cbl flag,
$STACK_CBL, the profile's cbl box and the preflight row are gone; the
Profile keeps a cbl field so older profiles files still load. Tests: the two
calls against a small HTTP stand-in (paths, bodies, the bearer, a refused
code, a mint before login); the tunnel test moves to HttpCabal.

Signed-off-by: Shaz Chaudhri <shahzad@mac.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… for

The add form's other box a stranger could not place was "Gojira checkout":
the README told them to clone tenishai/gojira beside the installer, and the
form asked where they had put it. Install Gojira needs the checkout (its
install script, terraform, manifests), the App card reads its
docs/github-app-setup.md and the env form its gojira.env.example; none of
that needs the person to choose a directory.

The stack file names the release: gojira.version, a tag of tenishai/gojira
(the stranger file says v1.3.1, the latest release). Adding a profile
fetches it once, a shallow clone into ~/.cache/stack/gojira/<version>
($STACK_CACHE overrides), and the three readers take it from there; a page
render never clones, and a press whose fetch failed says why. A developer's
own checkout is still gojira_repo on the settings form, and the repos dir's
gojira clone still wins, so the dogfood keeps installing from main.

The quickstart loses its git clone line. Tests: adding fetches once and
renders never refetch; a stack file without a version is refused with the
key's name; a failed fetch does not break the add and is a sentence on the
press.

Signed-off-by: Shaz Chaudhri <shahzad@mac.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@shaz

shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Two more commits on this branch, at Shaz's ask, so one gh pr checkout 37 carries the whole dogfood round:

fc42eb1 — cabal is spoken to over HTTP; the stranger no longer builds a cbl. The installer made two calls through cabal's CLI (login with the bootstrap code, mint the service tokens). Both are HTTP calls to the cabal Service through the port-forward the installer already opens, so HttpCabal makes them itself; the token lives in the run and is written nowhere. --cbl, $STACK_CBL, the profile's cbl box and the preflight row are gone. Tested against an HTTP stand-in (paths, bodies, the bearer, a refused code, a mint before login).

7fef2fb — the Gojira checkout is fetched at the stack file's version, not asked for. gojira.version in the stack file (the stranger file says v1.3.1); adding a profile fetches it once into ~/.cache/stack/gojira/<version>, and Install Gojira, the App card and the env form read from there. The box leaves the add form; a developer's gojira_repo stays on the settings form and the repos dir's clone still wins, so the dogfood keeps installing from main. The quickstart loses its git clone … ../gojira line.

Done when, added

  1. The add form has no cbl box and no Gojira checkout box: Name, Cluster, Kubeconfig, Google account, Stack file, Gojira env file, and Repo clones under a fold.
  2. An install of a stack with bootstrap: cabal logs in and mints with no cbl on the machine.
  3. Adding a profile whose stack file names gojira.version fetches that release once; renders never clone; a stack file without a version is refused by name on Install Gojira; a failed fetch is a sentence there, not a broken add.

make check: ruff, mypy 33 files, 195 passed. The real fetch of v1.3.1 takes 0.4 s; the branch's add form rendered on :8098 shows exactly the seven inputs of item 7.

Ember (SRE AI)

The stranger, on the add-profile form: the stack file box says the shipped
one is right as it is, so why look at a list I cannot edit? And does it
matter where the Gojira env file goes? No to both. A new profile reads the
stack file that ships with the installer and writes Gojira's values to
~/.config/stack/<name>/gojira.env; neither is asked. Profile settings keep
both boxes for someone with their own copy, and a typed path still wins.

The add form is now Name, Cluster, Kubeconfig, Google account, with Repo
clones folded away. The env-page test that wanted a profile without an env
file makes one through the profiles file, as an older file would.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Fourth commit on this branch, from the stranger run: 992b8f1 The add form stops asking for the stack file and the env file.

The stranger's two questions on the add form: "the stack file box says the shipped one is right as it is, so why do I need to look at a list I can't edit?" and "does it really matter where the Gojira env file gets put?" No to both. A new profile reads the stack file that ships with the installer and writes Gojira's values to ~/.config/stack/<name>/gojira.env; neither box is on the add form any more. Profile settings keep both for someone with their own copy; a typed path wins.

Done when (added to the list above):

  1. The add form asks Name, Cluster, Kubeconfig and Google account, with Repo clones folded away; a profile added with a name alone has stack_file = the shipped examples/stack.yaml and env_file = ~/.config/stack/<name>/gojira.env; the settings form still shows and edits both; a typed env_file on the add POST is kept. (tests/test_profile_form.py::test_a_name_alone_makes_a_profile_on_the_shipped_file_with_an_env_file_under_it; fails at 7fef2fb with a 422, since stack_file was a required field.)

Receipts: make check 196 passed on the branch; a live stack ui on an empty profiles file renders exactly the labels Name, Cluster, Kubeconfig, Google account, Repo clones.

Ember (SRE AI)

With the stack file and the env file gone, the kubeconfig was the last path
on the add form, and it follows from the cluster pick: a cluster kubectl on
this machine already knows is read through the machine's own kubeconfig; a
cluster the install makes gets ~/.kube-<name>/config, so it stays out of the
person's other kubectl work. The add form is Name, Cluster, Google account.
Profile settings keep the box; a typed path wins.

Found on the way: two UI tests reached a real kubectl through a kubeconfig
that happens to exist on the development machine and points at a cluster that
is gone, so they hung for a minute each. The UI tests now name a kubeconfig
path that exists on no machine, and the whole check runs in 18 s instead of
32. The env-page test that wants a profile with no kubeconfig makes one
through the profiles file, as an older file would.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Fifth commit, from the stranger run: The add form stops asking for the kubeconfig too (Shaz: "I think kubeconfig can go too").

The kubeconfig follows from the cluster pick: a cluster kubectl already knows is read through the machine's own kubeconfig; a cluster the install makes gets ~/.kube-<name>/config. The add form is now Name, Cluster, Google account. Profile settings keep the box; a typed path wins.

Done when:

  1. A profile added with a name and a new cluster has kubeconfig: ~/.kube-<name>/config; one added on a picked context has the machine's default kubeconfig; the add form has no kubeconfig box, the settings form does. (Extends test_a_name_alone_… and test_picking_a_gke_cluster_… in tests/test_profile_form.py; both fail at 992b8f1, where an unasked kubeconfig was stored empty.)

Found on the way: two tests in tests/test_ui.py reached a real kubectl through ~/.kube-dogfood/config, a file that exists on the development machine and names a cluster that is gone, and hung for a minute each. The UI tests now name a kubeconfig path that exists on no machine; make check runs in 18 s (was 32).

Receipts: make check 196 passed; a live stack ui on an empty profiles file renders exactly Name, Cluster, Google account, Repo clones.

Ember (SRE AI)

…place

After the kubeconfig box left the add form, the stranger's reload showed
~/.kube/config in the Google account box. The server sent it empty: the
browser restores a reloaded form's boxes by position, and the third box used
to be the kubeconfig. The add form is autocomplete=off and resets itself on
pageshow, so what the server sent is what the page shows.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Sixth commit: A reload never restores a removed box's text into the one now in its place. After e3bf014 the stranger's reload showed ~/.kube/config in the Google account box; the server sent it empty (checked with curl). Browsers restore a reloaded form's boxes by position, and the third box used to be the kubeconfig. The add form is now autocomplete="off" and resets itself on pageshow.

Done when: 12. The add form carries autocomplete="off" and a pageshow reset (asserted in test_the_add_form_offers_the_clusters_kubectl_knows_and_prefills_the_rest; fails at e3bf014). make check 196 passed.

Ember (SRE AI)

The stranger asked what "Building the apps from source" was about. It is
--repos: a directory of the apps' own checkouts for someone developing them.
The shipped stack file installs published images and needs none, so the box
is on Profile settings only, beside the Gojira checkout. The add form is
Name, Cluster, Google account and nothing folded away.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Seventh commit: The repo-clones box is a developer's; it leaves the add form. The stranger asked what "Building the apps from source" was about. It is --repos, for someone developing the apps; the shipped stack file installs published images and needs none. The box is on Profile settings only. The add form is Name, Cluster, Google account, nothing folded away.

Done when: 13. The add form has no repos box; the settings form does (asserted in tests/test_profile_form.py; fails at 4f265c9). make check 196 passed; a live render shows exactly the three labels.

Ember (SRE AI)

Shaz, as the stranger: "can we also have a picker for the google logins?
Those are usually in the same place." They are: gcloud auth list names
every account this machine is logged in as and gcloud config says which one
it uses now. The box is a pick of those with the current one selected, so a
profile is pinned to an account from the start and survives a later
`gcloud config set account`. A machine without gcloud still gets a box to
type into. The settings pick shows the profile's own account even when
gcloud no longer lists it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Eighth commit: The Google account is a pick, the one gcloud uses now picked (Shaz: "can we also have a picker for the google logins? Those are usually in the same place"). gcloud auth list names the accounts and gcloud config says which one is current; the box is a pick of those with the current one selected. No gcloud → a box to type into. The settings pick still offers a profile's own account when gcloud no longer lists it.

Done when: 14. With several accounts the add form renders <select name="cloud_account"> with every account and the current one selected and marked "(gcloud uses it now)"; a chosen account is stored; the settings form shows the profile's own account selected, even one gcloud no longer lists; without gcloud the box is a text input. (test_several_accounts_are_a_pick_with_the_one_gcloud_uses_now_picked, test_an_account_gcloud_no_longer_lists_is_still_offered_on_settings; both fail at a1ef0ad.) make check 197 passed; the live form on this machine lists three accounts with the current one picked.

Ember (SRE AI)

Shaz, after the add form: "do you think you can apply similar changes to
this page?" The profile page met him with a red box ("needs values for
{org}… or pass --set") above the card about to ask for exactly those, a
paragraph about tokens, env files and contracts, a button that wrote "the
env file", and a table of GOJIRA_* keys "not written yet".

Now: no red box while the card asks (the tokens-missing reading is the
page's first step, not an error); one sentence on top; the GitHub
organization is a pick of the orgs gh belongs to and the GCP project a pick
of the projects the Google account sees, with "pick one" presumed for
neither, a box to type into when the tool offers none, and a saved value
the tool no longer lists still offered; each box has one line saying what
it is; the button says Save; what was written for Gojira is a folded
receipt once something is. The strip names the apps, not the stack file's
path. GitHubClient gains orgs() (gh api user/orgs).

Every test site that renders a profile page now passes fakes for gh and
gcloud, so no test reaches the real tools for the picks.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Ninth commit: The four-things card speaks to a stranger (Shaz: "given all that we've done with the first page, can you apply similar changes to this page?"). One pass with the same lens; he critiques the result as the stranger.

  • No red box while the card asks: the stack file's tokens having no values yet is the page's first step, not an error.
  • One sentence on top instead of tokens, env files and contracts.
  • GitHub organization = a pick of the orgs gh belongs to (gh api user/orgs, new GitHubClient.orgs()); GCP project = a pick of the projects the Google account sees. "pick one" presumed for neither; a box to type into when the tool offers none; a saved value the tool no longer lists is still offered.
  • Each box has one line saying what it is; the button says Save; "What was written for Gojira" is a folded receipt once something is written.
  • The strip names the apps, not the stack file's path.

Done when: 15. A profile page whose stack file needs the four shows no class="err" and no "needs values for"; with fakes offering orgs and projects it renders <select name="org">/<select name="gcp_project"> with "pick one" selected on both; after Save the picks are selected and the receipt appears; a saved org no longer offered is still selected; without orgs/projects both are text inputs. (test_the_card_asks_the_four_and_the_stack_file_reads_only_with_them, test_the_org_and_the_project_are_picks_when_gh_and_gcloud_offer_them; both fail at 6434f55.)

Also: every test site that renders a profile page now passes fakes for gh and gcloud (the picks would otherwise call the real tools from the tests). make check 198 passed; a live render of a fresh profile shows no red box, the org and project picks, Save, no receipt.

Ember (SRE AI)

…nts a checkout

Shaz, at the App card after the four things. What he met: red text; "save
the .pem next to your Gojira checkout" (he has none, the release is fetched
for him); a path into ~/.cache for the walkthrough; 1234567 and
./github-app.pem in the boxes as if set (the example's placeholders, copied
into a fresh env file); and a link to make the App in tenishai, the apps'
upstream org, rather than the org he had just named.

Now the card is not red, the App is made in the org the four things named,
the key is kept somewhere on this machine (the profile's config dir is
suggested), the walkthrough is a link to the doc at the release the stack
file names, and a file seeded from gojira.env.example starts with both App
lines blank; a file still holding the example's pair reads as no App. The
apps table's column is "Version", not "Running": it is what the stack file
names.

Found underneath: Install Gojira was gated on profile.gojira_repo, which a
stranger's profile has not had since the release is fetched at
gojira.version; the page would have said "Set the profile's Gojira
checkout" right after Done. The env file is the only gate now.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Tenth commit: The GitHub App card speaks to a stranger; Install Gojira no longer wants a checkout.

At the App card the stranger met: red text; "save the .pem next to your Gojira checkout" (he has no checkout, the release is fetched for him); a path into ~/.cache for the walkthrough; 1234567 / ./github-app.pem in the boxes as if set (the example's placeholders, copied into the fresh env file); and a link to make the App in tenishai (the apps' upstream org) instead of the org he had just named.

Now: not red; the App link goes to the org the four things named; the key is kept "somewhere on this machine" with the profile's config dir suggested; the walkthrough links to docs/github-app-setup.md at the release the stack file names; a fresh env file starts with both App lines blank and a file still holding the example's pair reads as no App. The apps table's column is "Version", not "Running".

Found underneath, a real stop: Install Gojira was gated on profile.gojira_repo, which a stranger's profile has not had since 7fef2fb. Right after Done the page would have said "Set the profile's Gojira checkout (Profile settings)". The env file is the only gate now.

Done when:

  1. After Save of the four, the App card links organizations/<his org>/settings/apps/new, shows empty id and pem boxes, says nothing about a Gojira checkout, and links the walkthrough on GitHub at gojira.version; an env file holding the example's 1234567 / ./github-app.pem shows empty boxes too (test_the_app_card_after_the_four_speaks_to_the_stranger).
  2. A no-cluster-yet profile with no gojira_repo still offers Install Gojira (test_install_gojira_is_offered_without_a_checkout_on_the_profile).

Both fail at 263b3ed. make check 200 passed. Live: a fresh profile through the four things renders zero red paragraphs, the App link in the named org, the doc link at v1.3.1, both boxes empty, and the env file carries GOJIRA_GITHUB_APP_ID= / GOJIRA_GITHUB_APP_PEM= blank.

Ember (SRE AI)

… card put it

Shaz, after Done on the App card, saw "no Gojira on this cluster yet" and
an Install Gojira that promised to install onto the cluster. There was no
cluster. His profile pins ~/.kube-<name>/config, which terraform has not
written yet; kubectl with that file talks to nothing, and its "no" to a
namespace probe looks exactly like an empty cluster's. The page now lists
the namespaces first and a cluster that cannot be listed is unreadable,
which with GOJIRA_TERRAFORM=1 and a CLUSTER in the env file is "no cluster
yet": the button says it makes the cluster first. Check says the same in
plain words, "no cluster yet: Install Gojira makes <cluster> in <project>
(<region>)", where it used to fail with "Is KUBECONFIG the install's".

The same Check warned that ~/.config/stack/github-app.pem was not there:
the stack file named a place for the App's key while the card had stored
its real path. A file: path may now say {app_pem}, the key wherever the
App card put it (GOJIRA_GITHUB_APP_PEM in the env file), read by the run
and by Check; Stack.load lets that one late token stand in a stack file.
The shipped stack file says file:{app_pem}.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Eleventh commit: No cluster yet reads as no cluster yet; the App's key is wherever the card put it. Three findings from the stranger's screen after Done:

  1. The page thought a cluster existed. His profile pins ~/.kube-<name>/config, not written until terraform runs; kubectl with that file talks to nothing and answers a namespace probe with the same "no" as an empty cluster. The page said "no Gojira on this cluster yet" and offered to install onto it. Now the namespaces are listed first; unlistable + GOJIRA_TERRAFORM=1 + CLUSTER = "no cluster yet", and the button says it makes the cluster first.
  2. Check failed the same thing with a KUBECONFIG riddle. It now warns "no cluster yet: Install Gojira makes in ()" and the app rows say "Install Gojira first".
  3. The stack file named a place for the App's key (file:~/.config/stack/github-app.pem) while the card had stored ~/tenish-room.pem; Install would have paused for a copy. A file: path may say {app_pem}: the key at GOJIRA_GITHUB_APP_PEM in the env file, resolved by the run and by Check. The shipped file says file:{app_pem}.

Done when:

  1. A kubectl whose namespace listing is None and whose namespace probe says False renders "no cluster yet" and "makes the cluster first", never "no Gojira on this cluster yet" (test_a_kubeconfig_that_reads_nothing_is_no_cluster_yet_not_an_empty_cluster).
  2. preflight with an unlistable cluster and an env file saying terraform + CLUSTER gives a warn Gojira row with those exact words and "Install Gojira first" app rows, no KUBECONFIG (test_no_cluster_yet_is_a_warn_naming_what_install_gojira_makes).
  3. file:{app_pem}: Check warns "App card … not set yet" without an env file, ok when the env file names an existing key, warn naming the path when it does not; the run reads the key's bytes from that path and stops with "no env file" without one; the shipped example says file:{app_pem} (test_the_apps_key_is_read_where_the_app_card_stored_it, test_a_file_source_at_app_pem_reads_the_key_the_app_card_stored, test_the_stranger_file_loads_only_with_the_four_and_then_holds_no_token).

Negative: the four page/preflight/site tests fail at 1c8294b; the steps test cannot be run against the old code without a stub because the old run pauses for up to an hour waiting for a file literally named {app_pem} (which is the defect). make check 204 passed. Live, a fresh profile with a new cluster, the four saved and a Check run: the page says "no cluster yet"; Check's Gojira row is the warn above and the kobo key row says the App card stores its path.

Ember (SRE AI)

…ath it finds

Shaz pressed Install Gojira. Terraform made the cluster, then install.sh
stopped: "pem not found at ~/tenish-room.pem". The card had stored the
path as he typed it; Done passed because Python expands ~, and Gojira's
preflight tests the same string in the shell, where ~ is a character.

The card stores the expanded path. Install Gojira reads the env file
before running and, when GOJIRA_GITHUB_APP_PEM starts with ~, writes the
full path into the file (losslessly) and says so on a run line, so a file
an older card wrote works on the next press without a hand edit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Twelfth commit: The App card stores the key's full path; Install Gojira repairs a ~ path it finds. The stranger's first Install Gojira press: terraform made the cluster (run 7, 19:37–19:41), then install.sh stopped with "pem not found at ~/tenish-room.pem". The card had stored the path as typed; Done passed (Python expands ~) and Gojira's preflight tests the string in the shell.

Done when: 21. Done with ~/… typed stores the expanded path (test_done_stores_the_keys_full_path_not_a_tilde); Install Gojira on a file holding GOJIRA_GITHUB_APP_PEM=~/… rewrites it to the full path before running and says so on a run line (test_install_gojira_expands_a_tilde_pem_path_before_running). Both fail at f40db3e. make check 206 passed.

Ember (SRE AI)

The stranger, watching Install all 4: "nothing changes, I don't really know
what's happening and wonder if it's actually doing anything or stuck". The
run had ten lines and was quietly polling a deploy run on GitHub for
minutes; a quiet page and a stuck page look the same.

Every wait in the engine (Gojira provisioning, a setup or pin PR, the
deploy run on GitHub, pods, a fresh bootstrap code, the setup command in
the pod) now tells the run what it waits on, with the link where there is
one and for how long, through Options.now; the wait clears it when it
ends. The run keeps it as Run.now, never written to the run's file, and
the lines block shows it as a "now" line under the lines while the run
runs. The CLI ignores it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Thirteenth commit: The run page says what it is waiting on, and for how long. The stranger, watching Install all 4 sit on ten lines: "nothing changes, I don't really know what's happening and wonder if it's actually doing anything or stuck". It was polling a deploy run on GitHub.

Every wait in the engine reports what it waits on, with the link where there is one and the elapsed time, through a new Options.now; the run holds it as Run.now (never written to the run's file) and the lines block shows it as a "now" line while the run runs, gone when the wait ends or the run does.

Done when: 22. A perform that calls now("…") makes /runs/<id>/lines show that text on a line now while running and not after (test_the_run_page_says_what_the_run_is_waiting_on_while_it_waits); wait_ready and wait_run set now on each poll with the thing and "(for N s)" and clear it on exit (test_every_wait_tells_the_run_what_it_waits_on_and_for_how_long). Both fail at 2fb57a2. make check 208 passed.

(What the stranger's run was actually stuck on is not the page: the v1.3.1 generator reads the org variable CI_RUNNER, still spark on tenishai from September, and no such runner exists. Fix = delete the org variable; lasting fix = Gojira v1.4.0, whose generator reads GOJIRA_CI_RUNNER.)

Ember (SRE AI)

…map is updated

Run 10 of the stranger's install stopped at its last wiring step: "cabal
mint failed: mint-service doesn't mint operator tokens; use bootstrap or
POST /auth/renew". cabal 0.5.2 (its #403) refuses to mint a long-lived
operator token over HTTP, and kobo's CABAL_OPERATOR_TOKEN is exactly that:
kobo reads it once at boot and never renews it. The old cbl path had hidden
the refusal behind the same words.

Scope `operator` in a cabal-token source is now the operator token this run
traded the bootstrap code for, which is what cabal's message says to do;
the stranger's cabal identity sets operator_token_ttl_seconds to 90 days
so that login lasts as long as the service tokens the run mints. kobo
should renew its token itself one day; until then this is honest about
what it holds.

cabal on the stranger's cluster was already up with the one-hour identity,
and "configmap exists" would have left it there. A configmap whose file now
says something else is updated and its app restarted to read it, before the
bootstrap login that follows.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Fourteenth commit: kobo gets the operator token the run logged in with; a changed configmap is updated. The stranger's run 10 got litellm, cabal and liminal up and stopped at kobo's token: cabal 0.5.2 refuses to mint long-lived operator tokens (#403), kobo 0.3.86 reads CABAL_OPERATOR_TOKEN once and never renews it, and the old cbl path had hidden the refusal.

  • Scope operator in a cabal-token: source = the operator token the run traded the bootstrap code for (cabal's own advice). CabalClient.operator_token(); the fake refuses operator scope on mint the way cabal does.
  • examples/stack/cabal-identity.toml sets operator_token_ttl_seconds = 7776000 (90 days), with the why.
  • A configmap whose file changed is updated and the app restarted to read it ("exists" used to leave the old one), so the already-running cabal picks up the new identity before the login.

Done when: 23. The whole-stack install mints only liminal's token and writes kobo's CABAL_OPERATOR_TOKEN as the login's token with a line saying so (test_installs_the_whole_stack… extended); a configmap created, left alone when equal, updated with a restart when its file changed (test_a_changed_configmap_is_updated_and_the_app_restarted_to_read_it); the stranger identity names the TTL (test_the_stranger_file_loads_only_with_the_four…). All fail at 6b4a1c5. make check 209 passed.

For kobo/cabal upstream (to file): kobo should renew its operator token via POST /auth/renew before expiry, or cabal should offer a narrower long-lived scope for a room's switchboard calls.

Ember (SRE AI)

…it asks

Two more from the stranger's run 11.

Every press rewrote one file in each deploy repo and provisioned the app
again. Each upstream's k8s/base/deployment.yaml carries an arm64 node
selector from the dogfood on spark; Gojira's setup PR strips it, since
placement is Gojira's, and the installer copied the upstream's file back
on the next press. A base file the deploy repo already has is Gojira's now
and is left alone on reruns; gojira.yaml stays the installer's and is kept
current; a base file the repo lacks is added.

The restart after cabal's ConfigMap changed stopped the run with "did not
answer in 60s": restart asked kubectl to wait five minutes for the rollout
and the wrapper around kubectl allowed sixty, while cabal's pod sat Pending
for a node on Autopilot. The wait gets the time it asks for.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Fifteenth commit: A base file Gojira rewrote is left alone; a restart waits as long as it asks. From run 11.

  • Every press rewrote one file per deploy repo and re-provisioned: each upstream's k8s/base/deployment.yaml has an arm64 node selector (dogfood on spark), Gojira's setup PR strips it, the installer copied it back. A base file the deploy repo already has is Gojira's and is left alone; gojira.yaml is kept current; a missing base file is added.
  • The restart after cabal's ConfigMap changed stopped with "did not answer in 60s": kubectl was asked to wait 300 s inside a 60 s wrapper while the pod was Pending for an Autopilot node. The wait gets the time it asks for.

Done when: 24. After Gojira rewrites k8s/base/deployment.yaml in a deploy repo, a rerun pushes nothing and provisions nothing, while a contract change still reaches gojira.yaml and a new upstream base file is added (test_a_base_file_gojira_rewrote_in_the_deploy_repo_is_left_alone); KubectlCLI.restart runs its rollout wait with a timeout of at least 300 s (test_restart_waits_as_long_as_it_asks_kubectl_to). Both fail at f2bab3c. make check 211 passed.

Upstream note (not filed): the arm64 selector and toleration in k8s/base/deployment.yaml of litellm-deploy, cabal, liminal and kobo are a dogfood leftover; the contract's arch: is where that belongs.

Ember (SRE AI)

Found while reading the org.yaml kobo's bootstrap wrote on the stranger's
cluster: cabal_url and agent_endpoint_template were null. The kobo config
template named the tool gateway (liminal) but never cabal, so a shared
thread between two agents would have said "the switchboard is not
configured" (the dogfood set both by hand in its org repo, 2026-10-08).
Both are in the template now; {name} there is kobo's own token, which the
install's filler leaves alone.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Sixteenth commit: The stranger's kobo config names the switchboard. cabal_url and agent_endpoint_template were missing from examples/stack/kobo-config.template.yaml (the dogfood had set them by hand in its org repo), so a shared thread would have said "the switchboard is not configured". Pinned in test_the_stranger_file_loads_only_with_the_four…. make check 211 passed.

Found on the way, for kobo (to file, Kyle's): the stranger's kobo booted, cloned tenishai/kobo-config by name, and GitHub's rename redirect handed it the archived August dev file; the room merged those values over its deployment config, and the bootstrap then rendered the brand-new tenishai/kobo-config from the merged config, so the fresh repo carries another project's cluster, buckets and WIF pool, and the skills step 403'd on tenishai-skills. Two defects there: render_org_yaml should render from the deployment config, not the merged one; and clone follows a rename redirect while repo_exists does not, so the two disagree about the same name.

Ember (SRE AI)

Shaz, after the room read another cluster's org.yaml: "there's nothing in
the installer that tells me what needs to be there". kobo reads
<org>/kobo-config when it starts and makes one only when the name answers
nothing. On the stranger's cluster the name answered: an archived repo
from another cluster, renamed, still forwarded by GitHub, and the room
merged its values over the install's own and wrote them into the fresh
repo it then made.

Check now has a row for every app whose config template names an org_repo:
absent, and the app's first run makes it; present and naming this
install's project and cluster; present and naming another's, with what it
says and what to do; or a rename forward, which is a stop, since a clone
follows it. GitHubClient.repo_resolves answers the name GitHub gives after
any forward.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Shahzad Chaudhri <shahzad@mac.com>
@shaz

shaz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Seventeenth commit: Check names the org config repo kobo reads at boot (Shaz: "there's nothing in the installer that tells me what needs to be there"). A row per app whose config template names an org_repo: absent → ok, "first run makes it"; present and naming this install's project and cluster → ok; present and naming another's → warn with what it says and what to do; the name forwards to a renamed repo → fail, since a clone follows the forward. New GitHubClient.repo_resolves.

Done when: 25. check_org_repos gives those four rows for the four states, and no row when the four are not set yet (test_the_org_config_repo_an_app_reads_at_boot_is_a_row; fails at 760c747). make check 212 passed.

Ember (SRE AI)

@shaz
shaz merged commit aa3cef8 into main Dec 1, 2026
3 checks passed
@shaz
shaz deleted the fix/rolled-means-the-new-pods branch December 1, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant