Title: Reduce the cost of extension: split app.py, and give service kinds and runtimes one extension point · Issue #230 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Reduce the cost of extension: split app.py, and give service kinds and runtimes one extension point · Issue #230 · cloudfall-dev/cloudfall
X Title: Reduce the cost of extension: split app.py, and give service kinds and runtimes one extension point · Issue #230 · cloudfall-dev/cloudfall
Description: Problem Two structural costs that grow with every feature: sdk/src/cloudfall/app.py is about 5,400 lines holding 44 commands, their argument and payload classes and their error mapping. Every command change touches the same file, so para...
Open Graph Description: Problem Two structural costs that grow with every feature: sdk/src/cloudfall/app.py is about 5,400 lines holding 44 commands, their argument and payload classes and their error mapping. Every comma...
X Description: Problem Two structural costs that grow with every feature: sdk/src/cloudfall/app.py is about 5,400 lines holding 44 commands, their argument and payload classes and their error mapping. Every comma...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/230
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reduce the cost of extension: split app.py, and give service kinds and runtimes one extension point","articleBody":"## Problem\n\nTwo structural costs that grow with every feature:\n\n- `sdk/src/cloudfall/app.py` is about 5,400 lines holding 44 commands, their argument and payload classes and their error mapping. Every command change touches the same file, so parallel work conflicts, and the file imports almost every other module\n- Adding a service kind or a runtime means edits in several places with no single extension point: `services.yml` and `backup.yml` branch on `postgresql` and `redis` inline, the deploy role asserts Python, uv and x86_64, the backup and drill unit names are fixed so a server carries one PostgreSQL, and the SDK builds the `ansible-playbook` command line itself (`lifecycle.py`, `observe.py`) beside `cloudfall_engine.playbook`\n- The typed-resource path and the operations-catalog path each have their own gate and their own record store (`operator.ProposalStore`, `decision.DecisionStore`), so a change to gating or recording is made twice\n\n## Proposal\n\n- Split `app.py` by command group (config, fleet, lifecycle, operator, decisions, secrets, import, mcp), each registering on the shared `App`\n- A service-kind interface on the engine side: one role per kind with a fixed set of entry points (converge, backup, restore check, observe), dispatched by kind, with unit and script names derived from the service id\n- A runtime interface in the deploy role (materialize dependencies, command prefix), with Python and uv as the first implementation\n- One place that builds the `ansible-playbook` invocation\n- One gate and one record model under both config sources, which the G-2 plan (#190 W-2) already moves toward\n","author":{"url":"https://github.com/romamo","@type":"Person","name":"romamo"},"datePublished":"2026-11-13T08:19:44Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/230"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:df605bd1-50f5-550c-aa27-a9b46a0a5b32 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 921C:29A85A:274D93A:33B2E9C:6B055C61 |
| html-safe-nonce | 153b7ddff767aa7728750294060c004f2ef769a8dca00836244670d2b2b29708 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjFDOjI5QTg1QToyNzREOTNBOjMzQjJFOUM6NkIwNTVDNjEiLCJ2aXNpdG9yX2lkIjoiMTQ0MzU4NzY2NTg4MTgxNjE2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd094c4b77538957aefc11a332c7c9c6c69a51052ec65e45106964859c416730 |
| hovercard-subject-tag | issue:6367608181 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/230/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4cd39a3ed404980925c7747cd451da454e6503a19c3f83c74c5a6835ea92bc4b/cloudfall-dev/cloudfall/issues/230 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4cd39a3ed404980925c7747cd451da454e6503a19c3f83c74c5a6835ea92bc4b/cloudfall-dev/cloudfall/issues/230 |
| og:image:alt | Problem Two structural costs that grow with every feature: sdk/src/cloudfall/app.py is about 5,400 lines holding 44 commands, their argument and payload classes and their error mapping. Every comma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | romamo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8327739ac0648b9c3c722b5f401f7338553936b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width