Development Plans¶
This section contains forward-looking roadmaps for Shaken Fist development. These documents describe planned features and architectural directions.
Forward-Looking Statements
Plans describe intended future work and may change based on implementation experience, community feedback, or shifting priorities. Check the status table below to see what has been implemented.
Plan sequencing¶
The bring-your-own-infrastructure thread had to land in a particular order. All of it has now landed, and the sequence is kept as a record of that order and why:
- Network operations facade — complete. Landed via the
network-facadebranch. - Retire etcd — (absorbed into BYO MariaDB and sf-database tier phase 0; the standalone
PLAN-remove-etcd.mdhas been removed.) Done. The data drain was already complete (theDATA_MIGRATIONSdict is empty), and the supporting machinery —shakenfist/etcd.py,etcd3gw, the etcd proto stubs, the drain test files, the migration-erasf-ctlaliases — was deleted as a single sweep by the BYO-MariaDB plan. Theetcd_masteransible group rename landed withPLAN-remove-primary. What survives is deliberate: the vestigialis_etcd_masterflag is pinned False for one release as a rollback fallback. - Health checks, readiness, and graceful drain — complete. A precondition for the BYO load-balancer story in remove-primary being operationally honest. Delivered sf-api
/livez//readyz//healthzwith SIGTERM drain, dependency-awaregrpc.health.v1on sf-database, systemdWATCHDOGliveness on the worker/elected daemons (which also closes the cluster-lock proof-of-life gap), and operator LB/upgrade docs. Landed on thehealth-checksbranch. Node resource health is a sibling (complete) on a different axis — it drivesnode.statefrom the health of the storage/resource dependencies a node's hosted object types declare, so a dead disk or hung NFS mount takes a node out of scheduling. It was not sequenced against the BYO thread; it grew out of the sf-6 blob-NVMe incident and landed independently on thenode-resource-healthbranch. - Remove the primary node — the BYO-infrastructure scope reduction. Complete: the deployer-level
etcd_master→database_noderename landed with one-release fallbacks, and the deployer is now theshakenfist.shakenfistcollection. Naturally followed by a wipe-and-redeploy of Mikal's production cluster against the new shape. - BYO MariaDB and
sf-databaseas a tier — lifted out of remove-primary because it grew into its own master plan. Removes MariaDB-server install from the deployer entirely, reshapessf-databaseinto a deployer-chosen tier of equal stateless instances reached via client-side gRPC load balancing (not leader election), and carves schema/migration execution out of daemon startup into an operator-runsf-ctl ensure-mariadb-schemacommand. Complete. It landed in parallel with remove-primary's remaining phases, and its first phase performed the scope-shift edit to remove-primary itself.
Remove syslog forwarding (ship logs to Loki) delivered the "Loki-shipper story" that remove-primary phase 1 was gated on — it added structured-JSON logging and an in-process, on-disk-spooled Loki push (modelled on the eventlog spool/drainer) before deleting the rsyslog wiring. It landed in parallel with the other BYO work and ahead of remove-primary phase 1, which it realised.
The remaining incomplete plans — Embrace TLS, Sticky blob transfers, Replace exec'd network commands with netlink, the connected Generic allocator / Network service ports / Network carrier model triple, and the not-yet-drafted OpenTelemetry instrumentation thread — are intentionally not ordered relative to each other here. They each have specific dependencies on either remove-primary having established the BYO shape (the operator-provides-PKI surface for TLS, the streaming-proxy baseline for sticky transfers, the sf-database election pattern for the others) or network-facade having landed (the netlink plan, whose privilege-separation phases need network-facade's single-mutator property), but among themselves the order is a triage decision still to be made now that remove-primary has landed.
Database load reduction sits outside that triage: it addresses a measured production problem (the sf-database tier serving ~527 ops/second at idle, 57% of it one polling loop). All eight phases are complete. Phases 1–6 took that to ~102 ops/second on a quiet cluster, largely by removing fixed-rate idle polling and restoring the etcd-era “objects are cacheable, attributes of objects are not” principle in a MariaDB form. Its phase 4 (caller attribution via gRPC metadata and a per-caller counter) is also the first concrete slice of the OpenTelemetry instrumentation thread — the caller-identity plumbing is what a later span-propagation phase would reuse, it is designed to compose with the mTLS peer-identity model from Embrace TLS rather than duplicate it, and it is what made every subsequent diagnosis possible. Phase 6 chased what looked like a rot back to ~142 ops/second and found that most of it was the counter learning to see two more nodes and the cluster daemon (#3708) rather than new load — so the earlier “target met” reading is withdrawn, though the hunt still turned up two real defects worth ~21 ops/second (#3814, #3655). Its durable output is a load model with a per-node term, and phase 7 made regression detection against that model something any deployer can run rather than something only our own operations tooling can see. Phase 8 then audited the whole plan as one body of work under PUSH-AUDIT.md, which nine separate pull request reviews never did: the blocking findings were fixed on the way through, the remainder filed as #3942, #3943 and #3944, and the automated review of the audit’s own fixes found two further defects — one of them predicted by a test-coverage gap the audit had written down and not acted on.
The generic-allocator / network-service-ports / network-carrier-model triple is internally ordered. Generic-allocator is the foundational refactor (replaces five ad-hoc allocators with one primitive and is independently shippable). Network-service-ports builds on the allocator to expose per-network DNAT'd ports for managed services (web consoles, transfer agents, managed VPN endpoints). Network-carrier-model layers a smeared lease-based per-network carrier role with VIP advertisement on top, removing the network-node singleton; it depends on both prior plans and is the largest of the three. The triple supersedes the "network node failover" thread that was previously a not-yet-drafted line item.
Declarative API input validation is independent of all of the above and gated on nothing, so it can start whenever there is appetite. It closes a cluster of reported issues going back to 2020 (#528 and #936 are the parent issues) whose common cause is that request body values reach handlers untyped. It is drafted now because a per-endpoint fix for one instance of it (#3609) was attempted and abandoned: seven hand-rolled guards, two of them wrong on the first attempt, and the defect class still not covered. Its one coordination point is with the API query batching roadmap, which needs the same bounded limit/offset parameter types for #1974.
Agent operation deadlines and progress detection is similarly independent and gated on nothing. It is driven by CI reliability, but the defect is user-facing too: the #3516 sf-sidechannel wedge (a get-file stuck in executing until the client times out, with the agent-side trigger tracked as #2240) is one of the two most frequent merge-queue flakes as of 2026-08, and because each instance runs at most one executor, a wedged operation also blocks every other agent operation against that instance until the 900-second backstop fires. It adds client-propagated wall-clock deadlines and per-command progress timeouts to agent operations, plus a retry path for operations that fail in executing. Its API-facing phase follows the parameter declaration rules that Declarative API input validation enforces, but does not depend on that plan's remaining phases. Its follow-on, Dependency-aware agent operations, extends the cluster operation depends_on/runs_after vocabulary to agent operations (including cross-instance edges, enabling fire-and-await fleet orchestration such as rolling updates) and elevates documentation-with-worked-examples to a deliverable, with client-python-k3s as the first of an example-application suite; it was gated on the deadlines plan landing, which it now has, so the follow-on has run: five of its seven phases are complete, and the sixth, the first example application in client-python-k3s, is in flight as two pull requests. That gate was recorded as "dependency waiting relies on deadline expiry to break user-created cycles", which phase 0's survey found to be the wrong reason -- cycles cannot be created at all, because the API assigns each agent operation's UUID and an edge is static at creation, so an edge can only name an operation which already exists. What the follow-on actually needs from the deadlines plan is queue-time expiry, the terminal-only queue pop, the node-local reaper and the capability token which lets a new terminal state be introduced without hanging a released client's await.
Bound the size of DatabaseService gRPC replies is independent and gated on nothing, but it is driven by a production defect rather than an ambition, so it should not sit indefinitely. Several DatabaseService replies are unbounded by construction and the only ceiling on them is gRPC's message size limit, which the sfcbr cluster has now crossed twice from two daemons on two RPCs (#3638). A stopgap has raised the client cap and made the affected callers honest about failed reads — including one that was using an unreadable list as a licence to delete a node's blob store — but the protocol still permits replies whose size we discover by having one fail. Its phase 2 (sweep callers ask for a bounded page rather than everything) is small and independently shippable; its phase 3 is a protocol change and inherits the eventlog plan's deferred cursor-pagination work.
Right-size the CI test clouds is independent of all of the above and gated on nothing. It is driven by measurement rather than ambition: the five-hypervisor test cloud each CI job builds was an arbitrary choice that had never been checked, and checking it found that what binds is the scheduler's admission ledger (a 4 vCPU node yields 6 admitted vCPU, a 4 vCPU network node yields 3) rather than real CPU or memory, which sit at roughly 18% and 50% of allocation. The three-node slim-tier topology is below that line and passes 19% of merge runs, which is where the #3772 507 family comes from. The plan instruments headroom first, converts the coverage we currently get from scarcity by accident into explicit tests, and only then reshapes the topologies -- deliberately, because a bigger cloud would otherwise close #3772 and #3907 by silencing them. #3565 left that corpus when scheduler-reservations phase 6 closed it on a test change: test_affinity now skips rather than passes when the candidate set collapsed before affinity was scored, so a bigger cloud can no longer turn it green by hiding the question.
A capacity refusal is transient is the sibling that plan and scheduler-reservations both deferred to: what the system does about "no capacity right now" once the ledger is correct and the cloud is the size it should be. It was written on 2026-09-08 from a journal reading of six post-#4106 failing merge runs, which found that every sufficient_idle_cpu refusal was a pinned create onto a 4-thread infra hypervisor whose ledger of 3 was genuinely full while the cluster was not, that #4106's one-shot reconcile fires before any hypervisor has published and so leaves the warm-up window open in CI, and that a node keeps refusing for a metrics period after its instances are deleted. It closes the window for real, makes the functional suite wait for the node it needs and report how long it waited, publishes node metrics when the running-domain set changes, gives the API a Retry-After and a machine-readable transient marker, and defers the question of a server-side placement queue -- a reversal of scheduler-reservations D8 -- to a decision phase fed by the suite's own wait numbers. It owns nothing the sizing plan owns: topology is that plan's phase 4, and the evidence here is written into it.
The blob-storage roadmap, the SQL-pushdown plan and the network-facade plan ran on their own cadence and are not part of this sequencing. Neither are the plans which appear only in the table below: sf-netserv, CI node-exec assertions, attribute field masks, retry transient artifact fetches, fix cluster_operation_targets uniqueness, Kerbside VDI console tokens and blobs as containers — the first is a thoughtbubble, the last a placeholder, and the rest are self-contained pieces of work that were never sequenced against this thread.
Status vocabulary¶
The Status column below holds exactly one of these terms and nothing else. It is the
whole-plan status, so it only reads Complete once every phase has landed. Where a plan
is In progress or Blocked for a reason the Phases column does not make obvious, that
reason belongs in the plan itself rather than in this table. The canonical wording is the
plan-status-vocabulary shared block in
PLAN-TEMPLATE.md.
| Status | Meaning |
|---|---|
| Proposed | Written down as a concept, not yet scheduled. |
| Not started | Scheduled, but no work has begun. |
| In progress | Work has begun and has not finished. |
| Blocked | Cannot proceed until something outside the plan changes. |
| Complete | The work is done. |
| Abandoned | Deliberately dropped without being done. |
| Superseded | Replaced by another plan, which the plan names. |
Master plans¶
Most master plans track their own phases -- a phase plan and a status for each -- in their
own Execution table, and the Phases column here is arithmetic over that table; follow the
plan link for what each phase covers, and for why a plan is where it is. It counts
completed phases, so a plan whose phases were abandoned or superseded rather than done can
read Complete without the two numbers meeting, and — means the plan has no enumerated
phases yet, or has a table which is still a placeholder rather than a phase list.
Two plans are counted by hand because they do not keep a phase table: blob storage and API query batching carry their phases as headings. Three more publish no arithmetic because their tables are placeholders: owning more of the QEMU stack names three phases and then an ellipsis, and artifact UX rework and blobs as containers a decisions pass and "(later phases)". These five are the checker's blind spot, and the only numbers here it cannot recompute.
A plan linked by a pinned blob/<sha>/ URL has been retired, and its
row is marked (retired). Its reasoning now lives in the docs/ page
that owns the topic; the pinned copy is frozen history rather than a
maintained document, so it may state things a later phase overturned.
| Date | Plan | Intent | Status | Phases |
|---|---|---|---|---|
| 2026-01-08 | Blob storage roadmap | Composite blobs, lazy deduplication and content-defined chunking | In progress | 1 of 4 |
| 2026-01-10 | API query batching | Batch and prefetch related objects so list endpoints stop issuing per-object queries | Not started | 0 of 4 |
| 2026-04-23 | SQL-pushdown filtering (retired) | Push object filtering into MariaDB instead of scanning and filtering in Python | Complete | 7 of 7 |
| 2026-05-06 | Replace last_cluster_operation (retired) |
Trade the single-pointer gate for an append-only cluster_operation_targets history |
Complete | 5 of 5 |
| 2026-05-14 | Fix cluster_operation_targets uniqueness (retired) |
Composite UNIQUE so a multi-target operation records all of its target rows | Complete | — |
| 2026-05-15 | Network operations facade (retired) | Split Network into a queue-enqueuing facade and a single-mutator worker |
Complete | 10 of 10 |
| 2026-05-16 | Embrace TLS | Operator-provided PKI and TLS on every internal and external listener | Not started | 0 of 9 |
| 2026-05-16 | Recurring cluster operations | A cron-like framework absorbing the scheduled-task loops, plus user-facing recurrence | Proposed | 0 of 8 |
| 2026-05-16 | Remove the primary node (retired) | Retire the special primary node in favour of a BYO-infrastructure deployer | Complete | 5 of 7 |
| 2026-05-16 | Sticky blob transfers | Session affinity for blob transfers, deferred until OpenTelemetry supplies upload-path numbers | Not started | 0 of 6 |
| 2026-05-17 | Retry transient artifact fetches (retired) | A per-operation retry budget, so a network blip during a fetch no longer errors the artifact | Complete | — |
| 2026-05-17 | Health checks, readiness and drain (retired) | /livez, /readyz, /healthz, gRPC health, watchdog liveness and SIGTERM drain |
Complete | 5 of 5 |
| 2026-05-20 | Replace exec'd network commands with netlink | Native netlink calls in place of shelling out to ip, bridge and friends |
Not started | 0 of 8 |
| 2026-05-22 | Eventlog direct to MariaDB (retired) | Remove the eventlog service and write events straight to MariaDB | Complete | 7 of 7 |
| 2026-05-22 | Generic allocator | Replace five ad-hoc finite-resource allocators with a single primitive | Not started | 0 of 8 |
| 2026-05-22 | Network carrier model | A lease-based per-network carrier with VIP advertisement, retiring the network-node singleton | Not started | 0 of 13 |
| 2026-05-22 | Network service ports | Per-network DNAT'd ports for managed services | Not started | 0 of 8 |
| 2026-05-22 | Atomic scheduling via reservations | Guarded-UPDATE capacity counters and namespace claims in place of read-then-place scheduling. Phase 5 landed three of its four steps as #4800 -- the duplicated placement walk consolidated onto one Instance.place_on_candidates(), and the admin capacity view off the Scheduler object -- and held the fourth, the flip of claim ceilings from advisory to binding, because the calibration its own D16 gates on had not been re-run. Phase 5a carries that flip, and its survey found seven of the superseded step's premises wrong or stale: there is no claim stage to split out of the transient set, because one constant covers every guard denial, so a stage has to be created; the create path refuses only after walking every candidate and holds a dict of denials rather than one exception, which makes a 403 well defined only because the claim guard runs before either node guard and is namespace-denominated; and the denial path never fills in the claim uuid the refusal body is supposed to name. The conditions phase 4c set for the flip are now met -- claim sizes read the cluster's own high-water mark rather than a reconstruction that understated real use by 2.12x to 5x, and every namespace but system holds a live claim where once every claim was created and deleted by the same test -- but exact sizing ships on at five runs, so some dimensions are claimed at their measured peak with no headroom at all and three claims were read sitting at 100% of their ceiling. Hard enforcement there has no tolerance by construction, so the phase gave that arm its own tighter threshold and pre-registered the whole decision rule before the measurement window was read, rather than choosing what counts as a residue after seeing it. Read on 2026-11-13, that rule says Hold: the aggregate over-limit rate fell 47x, from 33.4 a day to 0.71 against the 10x it required, but the row written as a structural 0 reads 5 -- five namespaces admitted a single instance larger than the whole claim it was charged to, every one kerbside / sf-e2e's 12-cpu nested VM landing on a claim a combination had sized for a smaller lane. That is mis-assignment rather than mis-measurement, so it is private-ci's to fix (private-ci#311), and under enforcement those creates would be permanent refusals rather than delays. Phase 5a is therefore complete on its reading (3797716023, #4917) and phase 5b carries the flip. Its gate is now open: the per-job binding landed as kerbside#727 on 2026-11-15 AEDT and private-ci's phase 3g read the seven days that followed on 2026-11-25, finding the mis-assignment class gone -- zero runs held an instance larger than the claim it was charged to, across 3,738 joined runs, against five in the week before. A pass rather than a Hold leaves 5b's shape unchanged, so it carries phase 5a's step briefs; but 5b's own survey found every file reference in them moved, mariadb.py's by 1,342 lines, because placeable-capacity phase 3 landed 1,900 lines there in between, and found their scope short by three surfaces nobody had looked for: docs/operator_guide/capacity_refusals.md, the 290-line page whose whole job is the refusal contract and which mentions claims nowhere; the create endpoint's OpenAPI response list, where a 403 that is not declared is absent from the published specification; and docs/release_notes/v07-v08.md, which 5a proposed leaving as history and which is not history, because the newest tag is v0.8.0-rc4 and the line describes the release being prepared. The gating window is the binding-anchored one and not the episode-free week that opens on 2026-11-29: the 2026-11-21 contention episode was claim-creation refusals, which appear in no row of the decision rule, and contention can only raise the rows it touches, so stepping around it would be choosing a window that flatters the flip. The window was read on 2026-11-26 against the rule as written and says Flip: over-limit admissions 0.00 a day against at most 3.3, no instance larger than its claim across 3,738 joined runs against a required 0, no claim-logic failure, and 3,913 claims created against a floor of 500. The flip would have refused nothing on that week's traffic, but 61.9% of runs sit at exactly their claim, so what it costs is future footprint growth, which has no slack to grow into. Phase 5b is therefore complete on its reading: claim ceilings are binding, a create refused at the claim stage on every candidate is a 403 and a mixed refusal stays a 507, and the one thing still outstanding was the cluster CI test, which runs only in the merge queue -- the queue has since run it, and the Debian 13 cluster lane of run 45877310889 passed it. Phase 9, the push audit, is the last row and is now planned. Its survey found the master plan's audit range superseded by a rule written a month after it: PUSH-AUDIT.md gained a range section on 2026-09-13 which rules out the cumulative ea3c9bf63..develop union the master plan asked for, in favour of one pass per recorded merge, pooled -- so the audit runs over thirty-one in-repository ranges plus two in client-python, with the path list the union needed dropped as unnecessary. Ten of those ranges contain nothing but plan files, because phase 0 was a decisions document and phase 4c's code lives in shakenfist/private-ci, so twenty-one carry the roughly 35,000 non-plan insertions the judgment lenses read in nine fixed groups rather than range by range. Two premises of the audit were owed to it rather than wrong: phase 5b's Merged cell was blank, which PUSH-AUDIT.md says makes a plan unauditable, and phase 4b's client range was never recorded at all -- both are filled by this phase's first commit. The phase declines to re-run pre-commit against each of the thirty-one merge commits, which the transient-capacity-refusals audit did for its ten: four months on, the answer for the older ranges is dominated by hooks that did not exist in August, so what runs per range is the ten grep-level commands where a range-specific defect actually shows. What the phase exists for is the lens no per-phase audit could run, and its motivating defect is concrete: phase 4 shipped the claims API without the capability string that lets a client feature-detect claims, found by a passing question at close-out rather than by any review. It ran on 2026-11-28 and found no blocking defect in production code -- the admission transaction, its release mirror, the reconciler and the claim CRUD transactions are correct on every question put to them, the authorisation holds including against a body-override attack closed in three places, and the three orphan defect fixes belonging to no phase row are all still in place. What it did find is three places where one phase falsified another, all of them phase 5b's hard-ceiling flip, which was landed with a sweep for the word "advisory": thorough where it ran, blind to two paraphrases that do not contain the word, so one page called a claim exceedance "a warning, not a refusal" four hundred lines from its own heading "The ceiling is enforced". Each page was correct when its own phase edited it, which is the argument for a whole-plan audit, demonstrated twice. The motivating defect's mirror image is also open: the capability string is now advertised and pinned, and nothing reads it -- the client's five base claim verbs gate on no capability where two later methods in the same file gate on their own tokens, so the plan learned to publish its contracts and not to consume them. Eight issues carry the advisory findings (shakenfist#5110-#5116, client-python#464); two more dissolved under a sweep as repository-wide conditions older than the plan, one already tracked by its own tooling; and one lens contradicted another, the deeper being right, which the record keeps because the site read as a defect. Five documentation and comment corrections were graded blocking; they landed as #5119, with two ARCHITECTURE.md sentences of the same kind its review found, and it closed the phase and the plan |
Complete | 18 of 18 |
| 2026-05-24 | Queue performance and coalescing | Batched dequeue and cluster-operation coalescing. The wait tail is gone and explicit fairness was not needed, though those numbers were measured while coalescing was inert -- a push audit found it had never worked (#3878), and review of that fix found it would have folded per-node mesh ops across nodes (#3884). Reopened for three phases: proving coalescing works on a running cluster and measuring what it costs, the flat 15 second dependency wait (#3863), and a multi-column fold key (#3884). Phase 9 has now measured sfcbr for 42 hours: the fold costs a 3.7 ms median rather than the ~200 ms the code asserted, and it matched 7 times in 1,335 attempts -- so coalescing is confirmed working and confirmed nearly inert on this workload, and the functional test is known to fail when coalescing is disabled. Phase 10 decomposed wait_seconds and withdrew phase 9's unexplained 15-17 second population: that was pre-#3916 traffic in a window whose published label was ten hours out, and after the back-off fix there is no such population at all. The deep tail that remains is queue sit and not deferral -- over 90% of the operations waiting 15 seconds or more never deferred once, mostly blob transfers on a lane saturated with their own work. One networknode/background incident, 12 operations drained serially 31 minutes late while the same dispatcher served that lane throughout, cannot be diagnosed from the events we retain, and carries forward as #3974, which asks for the two timestamps that would separate database queue sit from time inside the daemon. Phase 11 has built the multi-column coalescing key (#3884), scoped to network_ensure_mesh on sf-net only, because network_apply_create_hypervisor runs on sf-queues, whose worker pool has no per-target routing and so cannot support the fold safely -- that half is deferred to #4017. Both coalescing guards became key-aware and family-aware rather than merely key-aware, after two mid-phase corrections: a None key value has to bind IS NULL or widening the key would have silently disabled the only coalescing the cluster already does, and a key naming node_uuid turned out to be necessary but not sufficient, since the queue family decides which dispatcher drains the work. Verified against a real database: a node A survivor folds only node A's sibling, and narrowing the key back to the network alone reproduces the phase 8 cross-node bug exactly. Step 11h has now measured two equal 19 hour sfcbr windows either side of the deployment and the result is a clean negative: the guard the phase existed to remove went from 2,243 refusals to zero and the fold now runs 1,524 times on per-node network queues, but those folds collapsed no siblings at all, and the enqueue-side dedup did not absorb the work either (210 reuses before, 196 after). Survey finding 1's 62% ceiling was a far looser bound than it read as -- arriving in one dispatcher batch is not sharing a coalescing key, because ensure_mesh fans out per node for a single network and a node's queue fills with several different networks. The mechanism is not broken, which was checked separately: the same path folded four on the cluster-wide lane and the functional test asserts a per-node fold on every merge. Decision 6 stands -- the fold's median cost did not move (3.6ms to 4.1ms, uniform at 3.8-4.5ms across all 13 queues issuing folds), and the tail that did move belongs to the single busiest node rather than to the wider key, so a composite index has no scan cost to reduce. No deadlocks and no lock wait timeouts in either window. Phase 12, the audit of phases 9 to 11 that phase 8 ran too early to have read, found phase 8's lesson again: the fold had always marked its siblings complete before the survivor ran, which was harmless until phase 11 made coalescible the mesh operation that instance creation depends on. Folded siblings now stay executing until the survivor succeeds, and otherwise run themselves (#4638). The remaining advisory findings are filed as #4639 to #4645 |
Complete | 12 of 12 |
| 2026-06-01 | OIDC authentication | Federated login against an external OIDC provider. Phases 1 and 2 were superseded by the auth federation plan, which built the verification half of a relying party; discovery and the whole client half are still unbuilt. Phase 0 settled the two questions everything else waited on: a human session exchanges the IdP's token for a namespace key, and a credential stays one namespace deep with the multiplicity held by the client. Phase 3 built discovery, the two fields no discovery document can supply -- the client identifier registered at the provider and the OIDC scope list to request -- and the unauthenticated endpoint that serves them to a caller who has not logged in yet. Phase 4 mints the entitled credential set at login, and its survey found that a human login cannot validate against an issuer's configured audience at all: an OpenID Connect identity token's audience is the client identifier, not the cluster API URL the operator guide tells an operator to put there, so an operator following that guide would configure human logins that can never succeed. Phase 6 serves a key's expiry, scopes and provenance, which no API has ever returned (#3672), and its survey found that phase 4 made the view's own docstring false: a login-minted key's provenance names the person who logged in, so the view is no longer safe to hand to everyone who can read the namespace, and the fields a caller sees now depend on whether that caller is system. Phase 7 is the interactive half of human login, entirely in client-python, and its survey found two things: the plan had said the client would present the right namespace key for each request, which nothing in a request can decide, and the cache path open question 10 proposed collides with the configuration file every user already has. Phase 8 is the worked operator walkthroughs for Keycloak and Authentik, and its survey found that the group claim those walkthroughs exist to explain cannot grant anything: claim matching refused any claim value which was not a string, and a group claim is an array in both providers, so the binding the operator guide advises could not fire -- which phase 8 then fixed inside its own merge, as phase 10 confirmed. Phase 9 gives the human login path its first functional coverage, and its survey found there is none today: nothing in the cluster suite mentions /auth/login, discovery, client_id or oidc_scopes, so phases 3, 4, 6 and 7 are untested outside unit tests. It also found the measurement that decides the phase -- the primary runs the suite and has 4096 MiB in the slim-primary topology against 12288 MiB in slim-tier -- so one provider runs in one lane, and the workflow step that stands it up lands in shakenfist/actions. That coverage is weekly rather than merge-gating, which is why phase 9 could not prove itself: six of its thirteen done-criteria needed a dispatch of the weekly lanes, and the first real run of its provider script on a cluster node failed at sudo: docker: command not found, because Debian split the client out of docker.io and the script installs with --no-install-recommends -- fixed as #5118, which is phase 9's own code and so joins its merge cell. The re-dispatch carrying that fix then failed two steps earlier still, at the cluster build, because the slim-tier under-cloud instance -- 6 vCPU and 12,288 MiB, the memory the phase chose this lane for -- was refused nine times at sufficient_idle_memory on sfcbr, so the provider step was skipped and all six criteria remain open: the lane with room for a provider beside the suite is also the hardest of the weekly lanes to place, which the phase's survey did not consider. Phase 10, the push audit, is the last row and is now planned. Its survey found the master plan's audit range superseded by a rule written three months after it: PUSH-AUDIT.md gained a range section on 2026-09-13 which rules out the accumulated union the plan asked for, in favour of one pass per recorded merge, pooled -- so the audit runs over eleven in-repository ranges plus two in client-python and one in shakenfist/actions, of which only phase 0's carries no code. It also found the question this plan's own table makes unavoidable and no previous audit has faced: phases 1 and 2 are Superseded rows pointing at the retired auth federation plan's phase 3 merges, that plan was retired without ever having a push-audit row, and so the three merges that built the verification half of the relying party -- 19,837 insertions, 45% of the baseline -- have never been read by any push audit and never will be if this phase declines them. The phase includes them, on the asymmetry that declining is unrecoverable and including costs money; the alternative, auditing only the eight ranges this plan executed itself, is the first gate of its back brief. Neither cross-repository half can be cited rather than read, which is what the runbook normally prescribes: client-python has no PUSH-AUDIT.md at all, and its phase 7 range is the largest unaudited body of code in the plan once the plan file and tests come out -- a 716-line credential store that writes tokens to disk and 1,900 lines of login command surface -- while the actions repository has the runbook but that pull request did not run it. The thirty-eight other merges which touch this plan's files are declined with the reasoning recorded, because shakenfist/external_api/auth.py is shared address space rather than shared subject matter: the largest single non-phase edit to it added 438 lines of capacity-claim endpoints belonging to another plan The audit is done: fifty-nine findings, five blocking and one medium, filed as #5141 to #5151 and client-python#468, with the fixes left to a follow-up pull request which will mark this plan complete. Decision 2 paid for itself -- the worst finding is in the never-audited validation half, where the JWKS fetch on both anonymous routes has no body cap and no transfer deadline while the administrator-only discovery fetch has both, a hazard the configuration descriptions had already written down. The cross-phase lens found a replay grain documented per-rule where a login keys on the issuer, issuer field lengths documented as 255 and held at 1024, and no release note announcing human login at all. Two of the plan's own conclusions were overturned in its favour: phase 4's unusable-audience finding is superseded by the guide, and phase 8's group-claim blocker was fixed inside phase 8's own merge, so both walkthroughs now work end to end. The dispatch sent while the audit ran then reached the provider step for the first time, which proves #5118's fix, shows the capacity refusal to be intermittent, and settles four of phase 9's six open criteria: seven of eight login tests passed against a real Keycloak, including a group-bound rule minting a working scoped key and the client's device login caching and discarding it. The eighth failed in its own setup, because the test sends a parameter the endpoint does not declare (#5152), so the audience contract is still verified by reading rather than by running -- and the lane is measured at 56 of its 60 minutes where its own comment predicted 34. |
In progress | 8 of 11 |
| 2026-06-02 | Owning more of the QEMU stack | Direct QMP control, and perhaps one day libvirt's job as well | Not started | — |
| 2026-06-03 | BYO MariaDB and sf-database as a tier (retired) |
A deployer-chosen database tier reached by client-side gRPC load balancing | Complete | 8 of 8 |
| 2026-06-12 | Remove the Apache load balancer (retired) | An operator-provided load balancer in place of the bundled Apache | Complete | 2 of 2 |
| 2026-06-13 | Artifact UX rework | Rework the artifact, blob, label, upload and snapshot user interface | Proposed | — |
| 2026-06-19 | Remove syslog forwarding (retired) | Structured JSON logging shipped to Loki, replacing the rsyslog wiring | Complete | 7 of 7 |
| 2026-07-13 | CI node-exec assertions (retired) | Run an assertion on a named cluster node, and the floating-IP and network lifecycle tests that use it | Complete | — |
| 2026-07-14 | Workload identity federation (retired) | Federated workload identity and first-class namespace keys | Complete | 7 of 7 |
| 2026-07-17 | Attribute field masks everywhere (retired) | Masked attribute writes, and the node instances list un-packed into object_references |
Complete | 2 of 2 |
| 2026-07-19 | Truthful cluster operation visibility | An observational flag, so "is anything in flight?" stops counting background housekeeping | Complete | 7 of 7 |
| 2026-07-19 | Database load reduction (retired) | Cut steady-state MariaDB load from the sf-database tier, and keep it cut |
Complete | 8 of 8 |
| 2026-07-19 | Kerbside VDI console tokens | Cluster-signed tokens exchanged for a VDI console session, across four repositories. The cross-repository push audit closed the plan, and it was not a formality: it found a blocking, destructive defect that eight pull-request reviews across four repositories had not. A failed signing-key fetch errored the Shaken Fist console source, an errored source is skipped before the scrape loop which keeps its consoles alive, and the unconditional cleanup afterwards then deleted that source's entire console inventory -- breaking the direct and proxy console routes, which have nothing to do with tokens. It is the third defect from the one configuration no phase ever tested (Kerbside integration not configured, after #4003 and #4009) and the first that destroys data. Fixing it took two pull requests: kerbside#412 removed the trigger without touching main.py, so every other early-exit path -- an unknown source type, an exception mid-generator, the CA fetch which sits outside any try -- still deleted the inventory, and kerbside#413 narrowed the cleanup to the sources a pass actually enumerated to exhaustion. Both ship in Kerbside v0.6.0; earlier releases need the signing key provisioned before the cluster is upgraded, which the operator guide and release notes now say. The audit also found one high-severity finding in ryll, whose SPICE TLS verifier trusted the public WebPKI root set even when a .vv supplied a private cluster CA -- the mechanism this plan's whole host_subject story depends on (ryll#358, merged). Three medium security findings and the audit's own discovery that the .vv type collapse had unit but no functional coverage were fixed in the audit's own pull request; fourteen advisory findings were filed as issues across the four repositories |
Complete | 12 of 12 |
| 2026-07-19 | Node resource health (retired) | Declarative dependency checks driving node state, so a dead disk stops scheduling | Complete | 5 of 5 |
| 2026-07-21 | Per-host resource reservations (retired) | Per-node RAM, CPU and disk reservation overrides | Complete | 4 of 4 |
| 2026-07-28 | sf-netserv | Replace dnsmasq with a Rust per-network service plane | Proposed | — |
| 2026-08-03 | API input validation | Declarative request validation and a consistent error contract for the REST API. The push audit closed the plan and was not a formality: reading the fifty decisions as one set before any code, it found that three of the four places the error contract is written down still described a world phase 6 had ended -- including the rendered operator configuration reference -- and then found a real behavioural defect the twelve pull-request reviews had not, that validation.declared_boolean() had been applied at one of nineteen declared-boolean sites, so {"uefi": "false"} booted with UEFI and {"secure_boot": "off"} both enabled secure boot and defeated the guard which exists to catch an inconsistent pair. All four blocking findings are fixed, the class is now held closed by a derived differential test over every declared boolean, and eight advisory findings were filed as issues -- see Known defects in the plan |
Complete | 9 of 9 |
| 2026-08-14 | Agent operation deadlines | Client-propagated deadlines and per-command progress timeouts for agent operations; audited, and the one defect of its own making the audit found (#4074) was fixed hours later by #4080 -- see Known defects in the plan for the two which remain open | Complete | 9 of 9 |
| 2026-08-14 | Dependency-aware agent operations | depends_on and runs_after for agent operations, including cross-instance edges. No longer blocked: agent operation deadlines, the plan it was gated on, is complete. Phase 0 turns its seven open questions into decisions, and its survey has already changed two of the plan's premises. Dependency cycles are structurally impossible rather than expiry-resolved -- the API assigns every agent operation's UUID and an edge is static at creation, so every edge points backwards in creation order -- which removes the stated reason this plan was gated on deadlines without removing the gate's substance, because queue-time expiry, the terminal-only queue pop and the capability-token precedent are all still load-bearing. And the cluster-operation dependency wait this plan copies is already bounded by a defer budget which aborts the dependent operation after roughly six minutes (#3992), not an unbounded defer as the plan described it. It records eleven decisions, of which the contested one is that a dependency-blocked operation keeps its place in the instance's strict FIFO queue and blocks the operations behind it, bounded by a dedicated 300 second wait budget rather than by the caller's deadline, which may be as long as a day. Its measurement could not settle the objection to that: instance queues on sfcbr do get deep, with half of 1,804 operations arriving behind an unfinished one and the deepest reaching eleven, but nothing records who submitted an operation -- request ids are unique per operation, the API request log's identity field is null, and an operation's namespace is copied from its instance rather than its caller -- so "effectively one caller per instance" is recorded as an operating assumption rather than as a finding. Its consumer audit of 48 sites found one firm break, and it is outside this repository: client-python-k3s polls an instance's whole operation list, treats an unrecognised state as still running by design and has no timeout, so the capability token which makes a new terminal state safe for a client polling its own operations does not protect that one. Teaching it the new abort state is now a prerequisite of phase 1 rather than part of the example-application work. The phase also folded the cross-instance phase into the evaluation phase, since cross-instance edges cost nothing extra at evaluation, and filed three issues: the declined mixed-type edges, the second example application, and a defect predating the plan whereby an instance's agent_operations_queue view field reads the wrong attribute key and is always empty. Phase 1 adds the columns, the abort terminal state and the API parameters without an evaluator: its survey confirmed the one thing that gated it -- client-python-k3s learned abort in its #164 and released it in v0.4.0 -- and moved the dependency_failure column forward from phase 2, so all three columns and both table migrations land in one phase. It also found that #4826 has been fixed since phase 0 filed it, that the attributes table is already at version 4 rather than 3, and that a structured parameter spec is only covered by the API reference consistency test if it is hand-registered there, which shapespec is not. Its contested decision is that the edge object a caller sends carries no op_type, since exactly one value is legal, which makes widening to the declined mixed-type edges of #4824 a published-shape change. Phase 2 adds the evaluator in the sidechannel dispatcher, the cascade to abort, the settle delay and the 300 second dependency-wait budget. Its survey found three of the master plan's phase 2 claims wrong: the load-budget entry the plan told it to amend describes instance attribute reads rather than the object state reads an evaluator makes, and the pair which does grow is excluded from the budget on purpose, so nothing is amended but the exclusion's note; phase 1 did not land the wait anchor the budget needs, so this phase carries an attributes migration the plan said it would not; and phase 1 published a settle_seconds ceiling of 86400 against a 300 second budget, so every settle above the budget is unsatisfiable. Its contested decision is to lower that ceiling to the budget, tightening a bound published one phase earlier, on the argument that no release contains phase 1 and no evaluator honoured the field, so the window in which the looser bound meant anything never opened Phase 3 is the client half, and its plan file lives in client-python because its code does. Its survey corrected the master plan in four places. The await loop the row named is three lines wrong and, more importantly, is bounded: an unrecognised abort makes it poll to its deadline and return the aborted operation silently, so a caller is told it timed out rather than hung, which changes what the one-line fix is worth without changing the obligation to land it first. The terminal-failure list has a second copy in this repository, in the CI suite at shakenfist_ci/base.py:1678, with the same missing abort; the third copy, in client-python-k3s, already has it. The functional test the master plan assigns to this phase cannot live in the client repository at all, because the suite is here and CI takes client-python at its default branch, so the phase is two pull requests in dependency order rather than one. And CLI flags are declined with a reason: sf-client instance execute never prints the operation UUID an edge would have to name, and exits 1 on an operation with no results yet, which is every queued dependent. Its contested decision is that the capability gate raises where the deadlines gate silently sends nothing -- a dropped ordering edge means "run now", where an omitted deadline only means "server default" -- and that a creating call verifies the edges it sent came back, because an older sf-database drops the fields and answers 200, which no capability token can detect. Phase 4 is the documentation, and its survey re-cut the rest of the plan. Three of the four items its row listed are already done or cannot be done here: the API reference already carries the whole dependency vocabulary and both of the ambiguities phase 0 wanted written down, phases 1 and 2 having written them, which leaves the developer-guide model page, the example index and a release note the feature never got as the only documentation owed. Four pages already state dependency facts, so the phase's real design is deciding which page owns each one. The client-python-k3s adoption moved to a new phase 5 and the push audit to phase 6, because the adoption cannot start -- phase 3's client surface is unreleased and the plugin floors below it -- and because the worked example this plan named does not exist: Cluster.update_os() updates every node at once, and a fleet-wide chain could not fit the wait budget regardless, since a link's budget is anchored when that link is first found blocked rather than when its dependency finishes, so the last link of a chain submitted up front must see the whole chain finish inside 300 seconds. Its contested decision is to document that rather than change it, on the grounds that a per-link budget would bound each hop while leaving unbounded the queue-head hold the budget exists to bound. Phase 5 is the first example application, and its plan file lives in client-python-k3s because its code does. It answers the question the master plan left open -- what to build -- with fate sharing inside Cluster.execute_and_await(): each command submitted to an instance declares a depends_on edge on the previous command submitted to that same instance, so the rest of a node's sequence is abandoned when the operation before it never completed. Its execution found that this is narrower than the plan claimed, and the correction is the phase's most useful output: an edge is satisfied by a dependency in complete, and a command which runs and exits non-zero leaves a complete operation, so a failed apt-get update does not stop the dist-upgrade behind it. What the edge catches is error, abort, expired and deleted -- the wedged side channel, the fired deadline, the cascade -- which is the #3516 failure family rather than the worked example everybody reasoned from. The gap was filed as #5091, as a per-edge opt-in rather than by making a non-zero exit an error, which would break every caller that deliberately tolerates a non-zero exit, and every health probe that reads a return code off a complete operation -- and was implemented hours later by #5099, outside this plan's phase table, through the automated issue-fix workflow. Nothing can adopt require_success yet, because the published client cannot send the key and raises on it (client-python#462), so what an edge catches for every caller is unchanged. Its survey improved the master plan's estimate in two directions and found one trap. The candidate is six call sites rather than the one the plan named, because the control plane install, the node join, both metallb steps and the longhorn install all pass strictly sequential command lists too, so one change to one function reaches all six; the reporting half is already built, phase 1's abort prerequisite having gone further than it had to, so only submission is owed; and chaining in submission order would declare a cross-instance edge on every multi-instance call, because the loop runs commands outermost, which would spend a wait budget a same-instance edge never starts and serialise a deliberately concurrent fan-out. It was registered as blocked on a client-python release and is not: the survey read v0.8.4 as that repository's newest tag from a clone three weeks stale, where v0.8.5 carries phase 3's surface and reached PyPI on 2026-11-25. Raising the plugin's shakenfist_client floor to it is the phase's own step 5b, and that floor is also what turns the plugin's cluster-deploy tier into the live proof, since ci_deploy_test.sh installs the client from PyPI. Its contested decision is that a cluster which does not advertise the capability gets unchained submission and a written note where phase 3 made client-python raise, because "run now" is what every released version of this plugin already does, and refusing to build a cluster because an optimisation is unavailable is the wrong answer for a caller who asked for k3s and never mentioned dependencies. Phase 6 is the push audit, and its survey found that the diff its own row asked for cannot be taken: every phase is merged, so the accumulated diff against develop is empty and every check would have reported success against nothing read. That row was bulk -written three weeks before PUSH-AUDIT.md learned to read a plan's Merged column, and the rule it learned forbids a union pass outright, so the baseline is an explicit list of six merges, one per phase -- no phase landed a second pull request here, and three of the six carry no Python at all. Its contested decision is to audit #5099 as well, the require_success opt-in the autofixer landed hours after phase 5 merged and which no phase owns: it is 617 lines of change to the evaluator phase 2 built, implementing what phase 5 specified and filed, and excluding it means no audit ever reads it. The survey also found that neither cross-repository half can be cited rather than read, which is what the runbook normally prescribes -- client-python has no PUSH-AUDIT.md at all, so phase 3's half was never audited and could not have been -- and that phase 5's live proof is still unmet, because the k3s cluster tier is path-gated rather than running on every merge as that phase's notes claim. |
Complete | 7 of 7 |
| 2026-08-16 | Bound gRPC reply sizes | Make DatabaseService replies bounded by construction rather than by the message size limit |
Not started | 0 of 7 |
| 2026-08-27 | Right-size the CI test clouds | Measured sizing for the nested CI clouds, with headroom instrumentation and explicit saturation coverage before any cloud grows. The instrument runs in every cluster job, and its readings show the cluster-wide utilisation figure the plan was written against can be half the per-node figure the scheduler actually admits against. Phase 3 turned that into a design constraint: it fills one hypervisor rather than the cluster, and proves the refusal contract with a request no cluster could satisfy. Its first merge run asserts all three reachable capacity stages on every topology without skipping, and shows every guard refusal in the window falling on the demand bound rather than on an allocation -- which is the arithmetic phase 4 now has to resize against. Phase 4 reshaped slim-tier to three 6 vCPU nodes and measured the result: the cluster ledger went from 12 to 24 exactly as predicted, ledger saturation went from every node in every run to 3 node-runs in 18, and scheduler drops at sufficient_idle_cpu fell by a factor of four. The guard's refusal count did not move, because expected_demand is a feedforward accumulator that fills whatever bound it is given -- so more vCPU changes which placements are refused, not how many. That is why slim-primary was deliberately not reshaped. Phase 5 turns the band into a check, and its survey separates two things phase 4 had folded together: the ratio bounds phase 2 measured are a statement about ledger utilisation and stand unchanged, while it is the refusal clause that the accumulator finding demotes from evidence of a small cloud to an observation about the estimator. It then armed the cluster-wide upper bound alone as a merge-blocking gate: the 40 job-run window it was armed against never came within 0.28 of that bound, the lower bound, per-node bound and refusal clause stay published but never gate, a violation is withheld when the series is too thin or its capacity read could not be trusted, and the CI_HEADROOM_GATE repository variable switches the gate off without a commit. Phase 6 documents the sizing model the plan had never written down -- the ledger arithmetic, and the fact that slim-tier now publishes 24 schedulable vCPU rather than the 12 the plan's baseline table still records -- on its own docs/developer_guide/ci_cloud_sizing.md page, and closed out its propagation half, which its survey found had already been done by the reusable-workflow migration: there is one copy of the topologies and every cluster job in the ecosystem reads it. What the survey found instead is that three of the eight clouds CI builds carry no headroom probe at all. Phase 6 prepared the change that closes one of those and it has since landed: widening three of the seven test_kind gates in shakenfist/actions instruments the Ansible modules cluster, which has banked a real series since 2026-10-01, so five of the six cluster bundles a merge run builds are now measured. The other two clouds reach no probe for a structural reason the fix cannot address -- they deploy through a composite action rather than the reusable workflow the probe steps live in -- and are filed as #4367. Phase 7 audited the whole plan retrospectively over seventeen merge ranges, including the shakenfist/actions half, which had never been audited because that repository has no PUSH-AUDIT.md. It confirmed from the committed dataset that the band is not fitted to under-measured data -- zero failed samples and a 15.000s sample cadence across all 236 records -- and fixed four defects, three of them one shape: the instrument records its own failures honestly, reports them silently, and nothing reads the records. |
Complete | 8 of 8 |
| 2026-09-08 | A capacity refusal is transient | Close the capacity-ledger warm-up window for real, make the functional suite wait for the node it needs and report the wait, publish metrics on domain-set change, and give capacity refusals a Retry-After; the #3772 family's transient-condition half. Phase 1 measured its own effect on slim-tier: the same probe read 165 s of unguarded placement before it and 0 s after, and closed #4087, which #4106 had left open and #4144 had closed on the mistaken premise that #4106 fixed it. Phase 2 routed all 117 of the functional suite's creates through a wrapper which waits a transient refusal out and writes down how long it waited; the first bundles carrying it record three real waits of 140-190 s against a 420 s deadline, each of which was a test failure before, and its allowlist guard immediately caught a live merge-queue block left by the sizing plan's phase 3a. Phase 3 makes sf-resources publish when the active-domain set changes, so a node stops refusing work it has room for within seconds of a teardown rather than within a metrics period, and its survey found that the master plan had costed only the libvirt poll and not the fifteen-round-trip sweep it triggers, that UpsertNodeMetrics has no load-budget entry to amend, and that activity_coupled switches enforcement off rather than refining the model -- the last of which is now tracked as #4197. Its closeout read three cluster bundles from the merge run: a node's cpu_measured falls 5.3-5.6 s after the domain is destroyed, where the same reading waited out a metrics period before, and the pre-change GetQueueLength rate on sfcbr (1.28 QPS) matches the phase's derived publish cost to the second decimal place -- a figure the plan's first draft had wrong. The same reading found the test's rise predicate can be satisfied by a sibling instance, which is a false pass rather than a flake and is recorded under Future work. Phase 4 gives the two scheduling refusals a Retry-After and a machine-readable stage/transient body, and its survey reversed one of the master plan's own instructions: the CI suite must not turn the new client retry on, because its clients use ASYNC_PAUSE and a blind 60 s retry inside each call would be invisible to the phase 2 wait records that phase 5 reads as its denominator, and because the saturation assertions must never retry the refusal they are asserting. The survey also found POST /instances has four 507 branches rather than the two the plan named, that the body is built in shakenfist-utilities rather than here, and that the OpenAPI response-declaration format cannot express a response header at all. Its review found the one thing it had got wrong: the transient marker was keyed on the exception class, so structurally impossible refusals such as cpu_max_per_instance were published as worth retrying and would have had an opted-in client replay an impossible request until its deadline -- the scheduler stage is now the discriminator, and a test parses scheduler.py so a stage added later cannot fall silently into the wrong default. Three of its definition-of-done items were wrong, and executing them rather than reading them is what found that, the second phase in a row. The contract is proven against real clusters rather than only in unit tests: twelve 507 bodies across three topologies in the merge run carried both fields, while the Retry-After assertion stayed dark because no released client can read a response header yet. Phase 5 is the decision on server-side queued placement, and its survey found four of open question 8's sentences wrong -- the client ceiling that is said to bound any queue deadline is 600 s rather than 900, defer_with_backoff()'s default budget of 105 s is shorter than every wait phase 2 actually measured, address allocation happens twenty-two lines before scheduling and is released only by the refusal deleting the instance, and two of the four 507 branches are address exhaustion that phase 4 deliberately left unmarked. Its gate is closed on an operator action rather than on work: the sizing plan's reshape is written but unapplied, so slim-tier still runs the ledger-3 shape the data would otherwise describe. The plan therefore fixes the numeric decision rule before the data exists, and argues that the burden of proof sits on building the queue rather than on abandoning it, because the suite already waits 420 s in the caller where D8 put it and phase 4 chose the opposite direction one phase ago. Its first reading could not be made: across 26 qualifying merge runs on the reshaped tier, 96 of 104 instrumented bundles carry no capacity-wait trace at all -- 92.3% unknown against a 25% ceiling -- not because the plumbing failed, since every one of those bundles carries a fully populated bundle/traces/, but because the trace is created on first write and so cannot express "nothing was refused" (#4337). That is the pre-registered rule's unreadable case, deliberately not one of its three outcomes and deliberately not an Abandon, so the window extends once and open question 8 is still open; the eight readable waits ran 0.036 s to 270.858 s against a 420 s deadline, none reached it, and all eight were pinned creates, which leaves the plan's "a pinned create starves worst" assertion unevidenced rather than confirmed for want of a comparison arm. The reading also found two of the rule's own clauses structurally pinned at 100% by the same instrument defect, recorded as objections rather than acted on, because amending a pre-registered rule after seeing the data is what pre-registration exists to prevent. That amendment is now written, as D43, before any of the second window was read: empty is admitted to the denominator as a real zero now that #4337 makes zero expressible, while absent and unparseable stay unknown, which is what unpins the rule and gives it back a path to Abandon. The second reading, over 39 ancestry-qualifying merge runs on the fixed instrument, is Abandon -- unanimously across all three candidate scopings, but selected by the rule's middle-ground default rather than by Abandon's own clauses, because two of the window's three waits exceed the 210 s line while none comes close to the frequency the Build clauses demand. #4337's fix worked: the census went from 0 empty and 96 absent to 92 empty and 2 absent, 2.1% unknown against a 25% ceiling. The finding is rare but substantial rather than absent -- the three waits came from the same three tests as the first window, at 41%, 55% and 69% of the 420 s deadline, and two of the three got longer after the reshape -- and on the loosest of the three scopings the reading sits one long-wait run away from Build, which is why the record says so in a table rather than in a clause. All 11 waits across both windows were pinned creates, so the plan's "a pinned create starves worst" assertion is untestable on CI data rather than confirmed: every refused create the functional suite issues is pinned, so the instrument cannot produce the comparison arm. The phase is Complete rather than Abandoned -- it made the decision it existed to make, and what is abandoned is the queue, recorded as open question 8's answer rather than as a phase status. Phase 6 was documentation and close-out, and its survey found three of the four documentation targets the master plan gave it already discharged -- two of them on pages that did not exist when the phase was written, since phase 4 created docs/operator_guide/capacity_refusals.md and the sizing plan's own phase 6 moved the headroom material and the wait summary to docs/developer_guide/ci_cloud_sizing.md. What was left was one statement that had become false rather than stale -- that page said an empty capacity-wait trace reads as unknown, which is exactly what #4337 overturned and what phase 5's D43 is built on -- and it now reads as a real zero conditioned on the run's base carrying that fix, alongside documenting ensure_capacity_wait_trace() for the first time. The phase also wrote down the two things documented nowhere at all: the suite-start-up touch that made the second reading readable, and the answer to open question 8 itself, which went to capacity_refusals.md -- no server-side queue, an Abandon selected by the rule's own middle-ground default rather than by its clauses -- along with the API reference's missing link to that page. It settled two sibling plans' cross-references into the past tense, filed phase 5's F9 as #4438, and commented on #3772 with the second window's numbers and a three-window Debian 12/13 tier pass-rate read (56.8% pre-reshape, 74.0% post-reshape/pre-rename, 88.9% post-rename), leaving it open because the quiet period in its own occurrence comments predates both the reshape and #4337. It also found that the CI job that close condition names no longer exists, renamed by the same commit that caused phase 5's F8, and declined to rename that string in the thirty-odd places it appears, each a record of a reading taken when the job was called that. Phase 7 is the push audit, and its survey found four of the master plan's claims about it wrong -- two of them load-bearing: the half that landed outside this repository is phase 4's client retry rather than phase 2's suite wrapper, and the audit the section tells it to cite does not exist, because client-python carries no PUSH-AUDIT.md, so that range is audited from here instead. The audit itself read eleven merge ranges -- ten here and one in client-python -- through seven lenses and pooled 28 findings, two of them High. The first is phase 4's own defect surviving on the one half phase 4 did not look at: the CI create_instance() wrapper decides what is worth waiting out from the exception class, which is the boundary D35 condemned and fixed on both the server and the client, so a refusal the server has marked non-transient -- an exhausted address pool, or a request for more vCPUs than any node can host -- is waited out for the full 420 s and then reported as missing headroom. Two lenses reached it independently, one by way of the two unmarked CongestedNetwork 507s and the other by way of the permanent scheduler stages, and no phase's Outcome records it. The second came out of mutation testing: 53 mutations over the four code-bearing ranges, 47 caught, and five guards that fail to fail against the whole unit suite -- deleting phase 1's central behavioural change from its call site leaves the suite green, and so does dropping the resources daemon's domain-set bookkeeping guard, which in production would publish a metrics row every five seconds on every node forever, the exact load regression phase 3 was built to avoid. What held is worth as much: phase 4's stage-classification parser, phase 2's raw-create allowlist guard and the client's retry all survive deliberate mutation, the client gates on the server's published transient marker rather than re-deriving it and so cannot reproduce the server's mistake, D58's second cross-phase question answers plainly that phases 1, 2 and 3 did nothing to each other -- phase 5's first measurement window opens six days after the last of the three merged -- and the only security finding is that admin-scoped capacity figures ship in a public repository's downloadable CI bundles, which D14 chose deliberately and the audit asks be chosen out loud. The audit found two defects in its own plan: six of the ten in-repository ranges are documentation-only rather than three, caught because two steps were briefed against ranges with no code in them, and wave 1's cost model ignored that this repository's pre-commit hooks are themselves tox invocations, so eleven ranges meant eleven full virtualenv builds and three were classified from configuration rather than executed. Phase 4's client half is still in no release, so that part of the contract is correct and unreachable, and the operator guide's warning about it was false from ten hours after it was written until this audit corrected it |
Complete | 7 of 7 |
| 2026-09-23 | Truthful instance power state | Make the reported power_state and every power operation's API answer true -- the cleaner has not seen a powered off guest since 2022, sf-queues instance restore is a silent no-op, and power on answers 200 when it failed -- stop powered off instances restarting on hypervisor reboot, and assert power_state throughout the functional suite; prompted by #4280 |
Complete | 6 of 6 |
| 2026-10-02 | Deploy Kerbside from the ansible collection | The deployer phase the Kerbside VDI console tokens plan deferred: a kerbside inventory group, a kerbside role, the signing key and a dedicated scrape credential minted at deploy time, and a merge-queue lane with the feature on. #4004 closed after only its kerbside_url increment, so until this lands no collection-deployed cluster (sfcbr included) can route consoles through Kerbside. Planning phase 1 found that SPICE certificate renewal has never worked and that collection-issued certificates expire after 365 days, so phase 1 fixes that too, and landed in #4430. Planning phase 2 found that the cluster-config play is not a role, so the Kerbside steps become node role entry points with a rootless test; that bootstrap-system-key already rotates; and that the shadow guard must cover KERBSIDE_TOKEN_DURATION and extra_config too; it landed in #4442. Planning phase 3 found that a host outside allsf never enters reachable, that restart-on-change has never been tested (#4459), that "source healthy" is not "signing key fetched", and that the newest Kerbside release returns the source password, so the role requires a newer one; it landed in #4465. Planning phase 4 found that this repository cannot add an inventory group or deploy variable to CI, so actions gains a generic deploy profile. It also found that Kerbside belongs in the existing slim-tier merge row rather than a new cluster, that with a loopback api_url the scrape never crosses hosts, and that nothing checks a Kerbside unit's health in CI. Its trial found that Kerbside stored timestamps as single-precision floats on MariaDB (fixed in Kerbside 0.7.0) and that building the collection dirtied the checkout; it landed in #4479. Planning phase 5, which moves the role into Kerbside as shakenfist.kerbside, found the role Shaken Fist-shaped in seven places beyond its sources template. It also found that Galaxy refuses git-URL dependencies, that only include_role survives a missing collection, and that shakenfist.shakenfist has never been published to Galaxy. So Shaken Fist takes a soft, version-checked dependency, and CI installs the collection through a new deploy-profile key. It landed in #4591, with kerbside#580 and #587 and actions#181 and #195. Planning phase 6 found that phases 3 to 5 had already documented the group, the variables and the database. It also found that the VDI console tokens page has never been in the site navigation, and that Kerbside's co-location claim appears in four places (review found a fifth). So phase 6 writes the operator page for placing Kerbside, fixes the two remaining errors, and corrects Kerbside's pages. Planning phase 7, the push audit, found that none of the five pull requests which landed phases 5 and 6 in Kerbside and actions was audited there, so the audit reads those five ranges too; that the Kerbside lane left the merge queue for the weekly run on 2026-10-25, falsifying a success criterion; and that #4598, a token-signature refusal inside the feature, is open and undiagnosed. The audit ran on 2026-10-28 over eleven ranges in three repositories: wave 1 clean everywhere, 29 findings pooled, one blocking (a trailing slash on kerbside_url deploys cleanly and then every token is refused, #4697), kerbside#444 regraded as worse than documented, and #4598 re-read as a clock-skew candidate rather than a stale key; 24 issues filed. The audit landed in #4712, and the follow-up refuses a trailing slash on kerbside_url and a value Shaken Fist's nodes disagree on before any host is changed, makes the twelve cheap corrections and closes the plan |
Complete | 7 of 7 |
| 2026-10-03 | Zombie repair must not delete a live credential | Orphan reconciliation repairs a stateless namespace key, trusted issuer or mapping rule forward to created when its read path would honour it, failing closed on an unreadable database; closes #3836. Phase 1 landed in #4419: the three credential attribute reads now raise DatabaseUnavailable rather than reporting a MariaDB error as "no such row", the repair decision moved onto the object class as zombie_repair_state() with a pinned test naming the three types which override it, and a key creation retried after a failed state write heals the key on the rotation path instead of leaving it stateless for good. Phase 2 is the push audit over that one merge range. Its survey found that phase 1's mutation checks, which #4419 records with counts rather than assertions, only ever covered the namespace key path, so nothing has mutated the trusted issuer or mapping rule overrides and the pinned structural test would pass if either returned the wrong state; the audit therefore mutates both, in each direction. It also found that the reconciler ends the whole pass for an object type when a liveness read fails, where the phase 1 brief said to skip that object and continue -- a documented divergence no phase outcome records, so the code quality lens is asked for its own verdict. The audit skips the proto and mermaid steps, neither of which has anything in range, and files the two issues Future work defers to it: detecting a namespace with no usable key (#5015) and retiring the legacy namespace_attributes.keys column (#5016), neither of which was tracked under any wording. The audit ran over that one range with no blocking and no critical or high security finding. Its four new mutations were all caught, so phase 1's coverage is better than its own definition of done showed, and the divergence it was asked to judge was judged correct. What it did find was the plan's own new heal function reproducing the very defect the plan existed to fix: _heal_missing_state() decides "no state row" from get_state(), which returns None for an absent row and for a failed read alike, so a read blip during a rotation can undelete a soft-deleted key or lose an already-rotated secret -- and get_state_checked() exists for that distinction with a docstring warning against the pattern. It also found the pinned override test does not make a new type's author decide, falsifying a mission statement now corrected at source, and that the liveness stop is invisible to the failure-streak gauge the successful work-list read has just zeroed, so a reconciler repairing nothing publishes zero failures. The fail-closed change also closed an unrecorded hole: two issuers could previously end up claiming one iss. A third issue (#5017) records the direct by-name readers that still conflate absent with unreadable, which #3373 does not cover. The advisory findings landed as a follow-up pull request, which records the audit phase's merge commit: the heal now reads through get_state_checked() and contains both of its writes, the liveness stop has a streak gauge of its own and resumes after the zombie that stopped the last pass, the pinned test pins every repairable type rather than only the overriding ones, and the three attributes servicers stopped returning the statement text to their caller |
Complete | 2 of 2 |
| 2026-10-17 | Blobs as containers | Record that one immutable blob contains others under a name, with a server-side extraction call so the record is true by construction; motivated by keeping whole OVAs in the cluster, and shaped to serve a later S3 API and blob-backed filesystem. Its survey found that object_references cannot hold the blob storage roadmap's chunk list either |
Proposed | — |
| 2026-10-18 | Keep the deleted-object sweep ahead of its arrivals | The hard-delete sweep on sfcbr is 1.7M objects behind and losing ground by about 40k a day: it refills only on restart, drains one FIFO across every type so whole types starve, and manages about 2,000 objects a day. Phase 1 measured where the time goes: each delete that removes a row costs 50-250 ms, and reads cost 2 ms. Phase 2 drains fairly, with bounded, paged reads and a per-type backlog gauge. Its first 24 hours on sfcbr hard deleted 76,840 objects, served every type with a backlog and drained seven of them, and turned the backlog from growing to falling by about 39k a day. The same reading found that the sweep ran on every other maintenance pass rather than every one, that a writing commit still costs 40-50 ms, so an operation's hard delete costs three of them, and that an equal share per type still leaves namespace and node_inst_op growing. Phase 3 batched the 25 pure-delete types into one guarded transaction per batch, fixed the cadence, and capped a pass at 100 objects; its first 16 hours on sfcbr hard deleted 86,075 objects at a thirteenth of the cost each, with the tier committing 3.3 fewer times a second than before, and the backlog falling by about 86k a day. Phase 4 raised sfcbr's cap to 400 a pass and added a nightly days-behind-per-type fact to the 33fl infra report as the regression guard. The cap reached the cluster on 2026-10-29 and drained 1.52M objects in three days and sixteen hours, peaking at 492,818 objects in a day; the backlog is now a few hundred and the worst type is 0.06 days behind against the mission's bound of one, over ten consecutive clean nights, so #4473 is closed. The second step to 800 was never taken, because at 400 the median pass already used 16 of the 20 second time budget and a quarter of passes ended on the budget rather than the cap -- the budget, not the database tier, is the next limit, and nothing in the pass log says which one stopped a pass. No RPC pair the sweep calls is near the load-budget ceiling, and sf-cleaner's GetObjectState rate did not fall with the backlog, so #4399 stays open with one fewer candidate. Phase 5 audited the four merges: the 25 batched types are faithful to the pre-batch code, which had never been checked, and it raised one blocking defect and six advisory ones. All seven are fixed -- #4876 and #4881 by the repository's issue-fix automation, the other five in #4897 -- so the plan is complete. |
Complete | 5 of 5 |
| 2026-10-23 | Measure database polling on an idle cluster | Replace the functional suite's in-load inference of which database traffic is a poll -- which has certified suite workload as new polls in every finding it has made (#4021) -- with a direct measurement on the CI cluster once the suite has finished and the cluster has settled, then retire the activity filter and the exemptions it needed | Not started | 0 of 5 |
| 2026-11-04 | Placeable capacity | A placement dry run and shape holds on a claim, so a granted claim means the instances fit on real hypervisors and not merely in aggregate; the shakenfist half of shakenfist/private-ci's placeable-claims plan, built on one all-or-nothing set-placement core, additive and advertised, checked against ten callers. A hold promises the ledger checks, not a node's live memory, so callers keep their own bounded wait. Phase 0 overturned its own central hypothesis: live room sits above ledger room on all six sfcbr nodes, because at RAM_OVERCOMMIT_RATIO 1.0 the live check's and the ledger's reservation terms cancel algebraically, so the double subtraction falls between the committed ledger and the KSM ceiling rather than below both -- worth ~27% of per-node memory refusals of a 16 GiB shape and 46680 MB withheld fleet-wide, against the live check refusing alone in 1 node-sample in 4968. Re-measuring the refusal shares with the instrument phase 4a repaired took the live share from 35.3%/50.6% at the baseline to 4.1%/9.3%, so the shape holds keep their place in the order and the live-memory question is deferred to phase 2's shadow counts rather than sequenced ahead. Phase 1's own premise then went stale a day after it was written: the duplicated placement walk it was commissioned to extract was shared by scheduler-reservations phase 5 on 2026-11-05, so the phase is a generalisation of the single-instance pipeline to a multiset of requested shapes rather than a de-duplication. Phase 2 then found its own consumer already built: private-ci's shadow per-node fit check shipped in October and already scores a client-side model of the same checks, rebuilt from GET /admin/resources, so the dry run replaces that model's arithmetic with a call rather than building the scoring -- and the stage names it answers in are fixed by that deployed consumer rather than open to design. The master plan's instruction to publish the per-node answer in GET /admin/resources was dropped as unfollowable: a per-node verdict is a verdict about a shape, and that endpoint takes none. Phase 3's premise was found intact -- nothing of the holds schema had shipped -- but three of its statements were not: "the per-node held column beside used_*" never said which table, and only scheduler_node_capacity can carry a per-node quantity; phase 0's instruction to net held room out of the published disk_available is declined, because that figure is filesystem free space with no ledger term in it and the guard tests limit_disk_gb instead; and the phase advertises no capability, because G5 allows one string for A and A is not usable until a create can consume a hold, so held room is zero in production until phase 4. Phase 4 inherits a prerequisite from that: it is what makes holds reachable, and a refusal caused by another namespace's hold is not transient, so the split out of TRANSIENT_CAPACITY_STAGES lands no later than the capability. Phase 4 is where a hold becomes reachable, and its survey found the ground moved under two of the master plan's own requirements while phase 3 was in flight: claim ceilings are binding now rather than advisory, and the "no new refusal stage names" rule had already been broken, for a good reason, by the plan that flipped them -- scheduler-reservations phase 5b minted capacity_claim because transient is derived from the stage alone, so a refusal no retry can clear cannot be published under a stage that promises one. A refusal another namespace's hold caused is exactly that kind of refusal, so phase 4 follows the precedent and mints capacity_held, which answers the master plan's open question of whether phases 4 and 5 should swap: they do not, because phase 5's held-create refusal fields describe a create that has a hold and no create can have one until phase 4 ships consumption. The survey also closed a piece of work phase 0 had left open rather than finding it undone: a hold needs no affinity evaluation of its own, because the hard affinity filter has already run over every node in the candidate list, so matching holds only against candidates satisfies the requirement by construction and a second evaluation would be a second implementation of the rule. What the phase turns on is one arithmetic invariant -- a hold charges its node its full size for its whole life, so consumption and a held instance's delete each move room between the used and held counters without changing their sum, and the node guard for a consuming create loses its request term because the room is already booked. The judgement most open to argument is that hold matching reorders the candidate list rather than being asked per candidate: the ranker deliberately spreads allocation away from the most committed nodes, which is the behaviour that turns aggregate headroom into per-node fragments in the first place, so a hold the ranker routes the create away from would defend nothing |
In progress | 4 of 8 |