Title: Lock the exit codes and MCP tool names, and enforce removed_in (S-017-12, 13, 14) by shipmill-romamo[bot] · Pull Request #383 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Lock the exit codes and MCP tool names, and enforce removed_in (S-017-12, 13, 14) by shipmill-romamo[bot] · Pull Request #383 · cloudfall-dev/cloudfall
X Title: Lock the exit codes and MCP tool names, and enforce removed_in (S-017-12, 13, 14) by shipmill-romamo[bot] · Pull Request #383 · cloudfall-dev/cloudfall
Description: Plan Serves: G-4 Files: sdk/tests/surface/exit-codes.json, sdk/tests/surface/mcp-tools.json, sdk/tests/test_compatibility_surface.py, sdk/tests/ansible_repository.py (moved out of test_agent_server.py), sdk/tests/test_agent_server.py, sdk/tests/test_baseline_rename.py, sdk/src/cloudfall/validation.py, sdk/src/cloudfall/ansible_reader.py Order: commit the lists from what main serves today; the drift check as a pure function with its own cases; the removed_in check as a pure function over the real marks and names, with a constructed 0.9.0; a machine-readable removed_in for the deprecated project names; the add server --type test Proof: S-017-12, S-017-13, S-017-14 (test_s017_12_*, test_s017_13_*, test_s017_14_*) Summary Nothing stopped a release from quietly dropping an exit code or an MCP tool name, or from stretching a deprecation window past its removed_in. This locks both: sdk/tests/surface/exit-codes.json lists every exit code (name to number) the manifests of cloudfall and cloudfall-engine declare; sdk/tests/surface/mcp-tools.json lists the MCP tools cloudfall mcp serve --list-tools serves for config/examples and for a team's Ansible repository (the fixture test_agent_server.py already built, moved to sdk/tests/ansible_repository.py so both tests share it). Each list has a deprecated map, name to removed_in The test fails on a missing name, a renumbered code, and a served name not in the list (the message says to add it in the same change). A missing name passes only when the list declares it deprecated with a removed_in the package version has reached; a deprecated name still served past its removed_in fails too S-017-13: every Deprecated(...) in sdk/src/cloudfall/app.py and engine/src/cloudfall_engine/cli.py (found by parsing the source, so an inline mark counts too) must carry a literal removed_in, and every LEGACY_* name validation.py and ansible_reader.py still read must have an entry in a new DEPRECATED_NAMES_REMOVED_IN mapping in the same module (D-11's names, all 0.9.0). The test fails once the package version reaches any of them S-017-14: cloudfall add server h2 --address 10.0.0.2 --type debian-application exits 0, writes the same servers/h2.yaml as --baseline debian-application in a copy of the same project, and warns DEPRECATED_FLAG with replacement: --baseline and removed_in: 0.9.0 "Reached" compares releases: a pre-release counts as its release, so 0.9.0rc1 already fails while D-11's names remain (the rc is a candidate of the release that removes them). Both checks are pure functions taking the version; the "reached" branches are tested with a constructed version, no patching. No user-visible change, so no changelog fragment. Test notes uv run ruff check ., uv run mypy: clean uv run pytest sdk/tests/test_compatibility_surface.py sdk/tests/test_baseline_rename.py sdk/tests/test_agent_server.py sdk/tests/test_ansible_reader.py sdk/tests/test_validation.py: 101 passed The full suite is left to CI The version the test reads is importlib.metadata.version("cloudfall"), 0.7.0 on main (and in this PR's CI); the rc lane's stamped versions are what make it bite Whichever of this and #375 lands second adds PROJECT_FORMAT_UNSUPPORTED (95) to exit-codes.json Fixes #377 Part of #228 🤖 Generated with Claude Code
Open Graph Description: Plan Serves: G-4 Files: sdk/tests/surface/exit-codes.json, sdk/tests/surface/mcp-tools.json, sdk/tests/test_compatibility_surface.py, sdk/tests/ansible_repository.py (moved out of test_agent_serve...
X Description: Plan Serves: G-4 Files: sdk/tests/surface/exit-codes.json, sdk/tests/surface/mcp-tools.json, sdk/tests/test_compatibility_surface.py, sdk/tests/ansible_repository.py (moved out of test_agent_serve...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/383
X: @github
Domain: github.com
IPv4 address: 140.82.113.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:db988625-386f-f016-d3ce-27ca00eebc76 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D80E:45DDE:E9AF0C:13F5AE5:6B0557AD |
| html-safe-nonce | 3fbb39a1618dfd05dce57f3e6f728ddc0980b6dab998d6191ead9f6e99ad07f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODBFOjQ1RERFOkU5QUYwQzoxM0Y1QUU1OjZCMDU1N0FEIiwidmlzaXRvcl9pZCI6IjgyOTgxMDE4Njk2NTg4NTUzNDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e2e588c0f3c5c0d1c2d58189f1e350c432d0a8f634da3e5812acec02e3411eb |
| hovercard-subject-tag | pull_request:5325578081 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/383/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/tests/surface/exit-codes.json, sdk/tests/surface/mcp-tools.json, sdk/tests/test_compatibility_surface.py, sdk/tests/ansible_repository.py (moved out of test_agent_serve... |
| 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:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width