René's URL Explorer Experiment
Title: Refuse an unsupported project format at the start of every command (S-017-4, 5) by shipmill-romamo[bot] · Pull Request #408 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Refuse an unsupported project format at the start of every command (S-017-4, 5) by shipmill-romamo[bot] · Pull Request #408 · cloudfall-dev/cloudfall
X Title: Refuse an unsupported project format at the start of every command (S-017-4, 5) by shipmill-romamo[bot] · Pull Request #408 · cloudfall-dev/cloudfall
Description: Plan
Serves: G-4
Files: sdk/src/cloudfall/format_check.py (new), sdk/src/cloudfall/app.py, sdk/src/cloudfall/agent_server.py, engine/src/cloudfall_engine/cli.py, sdk/tests/test_s017_format_every_command.py (new), sdk/tests/test_s017_project_format.py, sdk/tests/test_operator.py, changelog.d/379-format-check-every-command.md
Order: failing tests first (S-017-4 for audit, deploy without --yes and cloudfall-engine inventory render, S-017-5 for mcp serve, plus add ssh-key, inventory show and health); then one shared check in cloudfall.format_check, called from Fleet.acquire (and so InventoryFleet's project branch), ProjectDirectory.acquire, agent_server.resolve_root and the engine's Project.acquire; then the exit declared on every command that reads a project and on cloudfall-engine
Proof: test_s017_4_a_too_new_project_stops_each_command_before_tmp_or_ansible (S-017-4) and test_s017_5_mcp_serve_refuses_a_too_new_project_before_a_client (S-017-5) run the installed console scripts with a recording ansible-playbook on PATH and assert exit 95, project_format_too_new with projectFormat, oldest and current, no project tmp/, and no ansible-playbook start; the S-017-10 tests stay green
Summary
The format check #385 added ran only in cloudfall config validate. It now runs at the start of every command that reads a project, from one place, cloudfall.format_check, which also declares the PROJECT_FORMAT_UNSUPPORTED exit (95) for both CLIs:
cloudfall: Fleet.acquire checks the format between resolving the project and validating it, so every Fleet and InventoryFleet command (on a project) stops before validation, before any write under tmp/ and before any Ansible run. ProjectDirectory.acquire (the add and import commands) checks it too. FormattedFleet, which only config validate used, is gone: Fleet does what it did
cloudfall mcp serve: agent_server.resolve_root refuses a project with an unsupported format, so the server's setup stops with exit 95 before it accepts a client (the refusal envelope is on stderr, as mcp serve's other startup refusals)
cloudfall-engine: Project.acquire (inventory render, artifact build) runs the same check, and the engine registers PROJECT_FORMAT_UNSUPPORTED as 95
Every command that lists PROJECT_INVALID now lists PROJECT_FORMAT_UNSUPPORTED beside it, since treaty refuses an undeclared exit
The exit name, number, message and error.context keys are #385's, unchanged.
Behaviour, per the spec's "Outside the range the command stops" and "Below current it adds one warning":
Too new, too old and malformed formats stop every command that reads a project, not only config validate
A format 0 project (no [tool.cloudfall], or no pyproject.toml, such as config/examples) still runs every command, each now answering with one PROJECT_FORMAT_OLD warning
cloudfall config upgrade goes through Fleet here, so on this branch alone it would also refuse a too-old project; no project can be too old today (oldest is 0), and #390's UpgradableFleet overrides acquire to skip that refusal (S-017-9)
Commands that read no project (init, changelog, --schema, cloudfall-engine manifest, playbook list and playbook run) don't check it (S-017-10). Repository commands (--repository, --inventory) read a team's Ansible inventory, which carries no format until open question 4 of the spec is built
Test notes
uv run ruff check . and uv run mypy: clean
uv run pytest engine/tests plus the SDK test files for the touched modules (test_agent_server, test_app, test_operator, test_validation, test_baseline_rename, test_commands, test_arguments, test_project, test_s017_project_format, test_s017_format_every_command, test_interface_changelog, test_examples_project, test_s015_test_and_audit, test_deploy_approval, test_s012_elasticsearch): green
The new tests fail on origin/main for every command but config validate, which #385 already covered
test_operator's operator list test asserted no warnings on the examples; it now expects the one PROJECT_FORMAT_OLD
The full suite is left to CI
Fixes #379
Part of #228
🤖 Generated with Claude Code
Open Graph Description: Plan
Serves: G-4
Files: sdk/src/cloudfall/format_check.py (new), sdk/src/cloudfall/app.py, sdk/src/cloudfall/agent_server.py, engine/src/cloudfall_engine/cli.py, sdk/tests/test_s017_format_every_c...
X Description: Plan
Serves: G-4
Files: sdk/src/cloudfall/format_check.py (new), sdk/src/cloudfall/app.py, sdk/src/cloudfall/agent_server.py, engine/src/cloudfall_engine/cli.py, sdk/tests/test_s017_format_every_c...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/408
X: @github
direct link
Domain: github.com
IPv4 address: 140.82.112.4
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:22e283a7-abe4-2608-6b4e-466278e5242a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E046:31E3E4:2733B9C:33808C8:6B05592B |
| html-safe-nonce | 2b20fb3f8842996ee06ed855ebeda3cd32cdbe7f333c2065220bbd724da8e439 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDQ2OjMxRTNFNDoyNzMzQjlDOjMzODA4Qzg6NkIwNTU5MkIiLCJ2aXNpdG9yX2lkIjoiNTE4Mzk3MTEyMzcxNjc3NDE4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | acfd2c6867a01826583441afe16767d0efb1e8808edf470a2acae1269a47d6f9 |
| hovercard-subject-tag | pull_request:5327441665 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/408/files |
| twitter:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5600783?s=400&v=4 |
| og:image:alt | Plan
Serves: G-4
Files: sdk/src/cloudfall/format_check.py (new), sdk/src/cloudfall/app.py, sdk/src/cloudfall/agent_server.py, engine/src/cloudfall_engine/cli.py, sdk/tests/test_s017_format_every_c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Skip to content | https://github.com/cloudfall-dev/cloudfall/pull/408/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F408%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F408%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/408/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/408/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/408/files |
| cloudfall-dev | https://github.com/cloudfall-dev |
| cloudfall | https://github.com/cloudfall-dev/cloudfall |
| Code | https://github.com/cloudfall-dev/cloudfall |
| Issues78 (78) | https://github.com/cloudfall-dev/cloudfall/issues |
| Pull requests10 (10) | https://github.com/cloudfall-dev/cloudfall/pulls |
| Discussions | https://github.com/cloudfall-dev/cloudfall/discussions |
| Actions | https://github.com/cloudfall-dev/cloudfall/actions |
| Security and quality | https://github.com/cloudfall-dev/cloudfall/security |
| Insights | https://github.com/cloudfall-dev/cloudfall/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose |
| shipmill-romamo | https://github.com/apps/shipmill-romamo |
| main | https://github.com/cloudfall-dev/cloudfall/tree/main |
| feat/379-format-check-every-command | https://github.com/cloudfall-dev/cloudfall/tree/feat/379-format-check-every-command |
|
Conversation
1
| https://github.com/cloudfall-dev/cloudfall/pull/408 |
|
Commits
3
| https://github.com/cloudfall-dev/cloudfall/pull/408/commits |
|
Checks
2
| https://github.com/cloudfall-dev/cloudfall/pull/408/checks |
|
Files changed
9
| https://github.com/cloudfall-dev/cloudfall/pull/408/files |
|
Refuse an unsupported project format at the start of every command (S-017-4, 5)
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#top |
|
Show all changes
3 commits
| https://github.com/cloudfall-dev/cloudfall/pull/408/files |
|
0fb2560
Refuse an unsupported project format at the start of every command
shipmill-romamo[bot] Nov 15, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/408/commits/0fb256079cb5335214ef61451a4b0f45b61f4ebd |
|
743a9d0
Assert the deprecation warning by code in the baseline rename tests
shipmill-romamo[bot] Nov 15, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/408/commits/743a9d07f34c37dc52de24876aa9f3cc9df16289 |
|
dec1d90
Narrow the warnings list before reading its codes in the baseline ren…
shipmill-romamo[bot] Nov 15, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/408/commits/dec1d9083bbd114f30fb3d9e928f7b7e1959e77b |
|
Clear filters
| https://github.com/cloudfall-dev/cloudfall/pull/408/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/408/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/408/files |
|
379-format-check-every-command.md
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-85b6ae3bec7bda6617db0452870d67fa92c269e30dc342fc09a5b2160ad3e380 |
|
cli.py
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
agent_server.py
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
app.py
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
format_check.py
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-cabefabe6a3dd41f55e60c83977d5f9bb3033fe404c2b24063e7345450063f00 |
|
test_baseline_rename.py
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-2632f02ce3f5fef9ece0adeb5dfff4a906f6d519fbe79296abcd710bf134584b |
|
test_operator.py
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-25d32ac2bff775b296eb200eb60ac3ac6e838f17335c8a733a53a52de409d740 |
|
test_s017_format_every_command.py
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-0ccfdbd132c7cffe12a6fe050d2d9cd38ec94ed9b2dc8b636c58929af68ab5be |
|
test_s017_project_format.py
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-80da4943c77745c548dfea2e7b7fb236fb1be2774a73129fbba8485fb7144f9d |
| changelog.d/379-format-check-every-command.md | https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-85b6ae3bec7bda6617db0452870d67fa92c269e30dc342fc09a5b2160ad3e380 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/dec1d9083bbd114f30fb3d9e928f7b7e1959e77b/changelog.d/379-format-check-every-command.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/408/{{ revealButtonHref }} |
| engine/src/cloudfall_engine/cli.py | https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/dec1d9083bbd114f30fb3d9e928f7b7e1959e77b/engine/src/cloudfall_engine/cli.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/408/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-03b2db9c2d8aceb662eb02d3323a978e17ea3eee7a38fd84d33d7cef41dedc36 |
| sdk/src/cloudfall/agent_server.py | https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/dec1d9083bbd114f30fb3d9e928f7b7e1959e77b/sdk/src/cloudfall/agent_server.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/408/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/408/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/408/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/408/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |
Response headers:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width
URLs of crawlers that visited me.