A Kubernetes operator that runs Claude Code sessions on long-horizon work
simmer plans api-group.md
1.8 kB 41 lines
Markdown
at main

The API group simmer.guid.foo #

This is a stub. simmer's API group is simmer.foo, and its siblings use a group under guid.foo: gofer.guid.foo and lanyard.guid.foo. The group should become simmer.guid.foo. Nothing here is built, and the steps below are not yet a design.

What carries the name #

  • The group of every kind, in api/v1alpha1 and in each CRD under deploy/crds/.
  • The labels and annotations that the operator writes and selects on, such as simmer.foo/session, simmer.foo/mandate, and simmer.foo/hook. api/v1alpha1/api.go holds them.
  • The rules of deploy/rbac.yaml.
  • Every manifest of a cluster that runs simmer: its Mandates, Duties, Signals, and the rest, and each NetworkPolicy and PodMonitor that selects pods by a simmer.foo/ label.

What makes it more than a rename #

A CRD's group cannot change. The new group is a second set of CRDs, so every object has to be made again under it, and the old ones deleted.

  • Sessions hold state that only the operator writes: their keys, turns, and follow-ups. A Session that waits on an event must either finish under the old group or be copied, with its status, to the new one.
  • Jobs, ServiceAccounts, and bindings carry the old labels, and the operator finds its own objects by them. The data plane lets a pod in by its simmer.foo/session label.
  • The store of events and transcripts names Sessions by namespace and name, which do not change.

Questions to settle first #

  • Whether the operator serves both groups for a time, or a cluster moves in one step under a Stop, with no Session waiting.
  • Whether the labels move with the group or stay, since a label's prefix need not match the group.
  • What a cluster owner runs to move: a command of simmer, or a documented sequence of kubectl steps.