René's URL Explorer Experiment
Title: S-018: operation classes in the schemas and the plan's approval preview by shipmill-romamo[bot] · Pull Request #480 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: S-018: operation classes in the schemas and the plan's approval preview by shipmill-romamo[bot] · Pull Request #480 · cloudfall-dev/cloudfall
X Title: S-018: operation classes in the schemas and the plan's approval preview by shipmill-romamo[bot] · Pull Request #480 · cloudfall-dev/cloudfall
Description: Plan
Serves: G-2
Files: sdk/src/cloudfall/operator.py, a new sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py (the plans of deploy, rollback, restart, migrate, data copy, domains apply), sdk/src/cloudfall/commands.py (their output shapes), config/schemas/v1/operator-policy.schema.json, config/schemas/v1/operator-proposal.schema.json, sdk/tests/test_s018_agent_gate.py, changelog.d/474-s018-operation-classes.md
Order: the seven new OperationKind values in the model and both schemas; the additive record fields of the spec's "The record" in the schema and the model (no code writes them); the tool-to-class map, the servers and environments a run changes, and the per-environment grant check over the operator's grant rules; the plan's approval preview on the six yes tools; tests per criterion
Proof: S-018-19 (schema accepts the nine classes, examples and S-017-11 fixtures still validate, the S-017-12 exit codes and tool names unchanged), S-018-10 (an unconfirmed call writes no file and its plan's approval carries selfConfirm, environments, and per environment the policy or none and the reason; selfConfirm matches the grant check)
Summary
The additive groundwork of spec 018 (docs/specs/018-mcp-self-confirmation-by-policy.md). Nothing a confirmed call does changes here.
Operation classes. OperationKind gains deploy, rollback, restart, migrate, data-copy, domains-apply and converge-domains, beside converge-services and converge-baseline; so do spec.autonomy.operations[].kind of the policy schema and spec.operation.kind of the proposal schema. OperatorPolicyInventory keeps kinds as strings checked by the schema, so it needed no change
Record fields (schema and model, written by no code yet): trigger kind agent with request {tool, arguments, reason?}; operation.servers and operation.environments; approval mode agent with policy, grant, client {name, version}; binding {planSha256, gitCommit?, worktreeDigest?}. An agent record must carry request, servers, environments and binding; an alert or drift record still must carry operation.server, so every existing record validates as before
Grant check (cloudfall.agent_gate): GATED_TOOLS maps the nine tools to their class; migrate_servers, domain_servers and declared_servers resolve what a run changes; check_grant judges each environment of those servers with the operator's rules, now in operator.grant_decision (which autonomy_decision calls unchanged in its rules). A run is self-confirmed only when it touches an environment and every one grants it. No policy for an environment withholds; an unreadable proposal-store file withholds every grant
Preview. Over cloudfall mcp serve in a project, an unconfirmed deploy, rollback, restart, migrate, data_copy or domains_apply answers its plan as before and its approval gains selfConfirm and environments (each environment, policy or null, granted, reason). How a command knows it is an agent's call: the six commands gain a --proposals flag (default none); mcp serve already binds proposals to the project's store for every served command with that field, so over MCP it is always set and the agent can neither pass nor unset it
Defensive, since the model now allows a proposal with no single server: engine_executor refuses one, operator approve refuses an agent proposal (operator_agent_proposal_unsupported, PRECONDITION) before anything runs, and the operator's autonomous pass withholds agent proposals ("an agent proposal is approved only by a person").
Test notes
New sdk/tests/test_s018_agent_gate.py: 7 tests named test_s018_19_* and 8 test_s018_10_*, two of them over the real stdio MCP server (every project file byte-compared before and after the six unconfirmed calls; a granted restart previews self_confirm: true and equals check_grant), plus one for the agent-proposal guards
Run locally and green: ruff check ., mypy, cloudfall config validate --project config/examples, specs.py check, specs.py coverage --spec 018 (lists tests for 10 and 19; the rest stay uncovered until #475-#478), and the touched suites: test_operator, test_s017_record_kinds, test_record_fixtures, test_compatibility_surface, test_agent_server, test_deploy_approval, test_app, test_migrate, test_migrate_approval, test_lifecycle, test_commands, test_domains_apply, test_domains_converge, test_data_migration, test_why, test_owned_postgresql_converge, test_examples_project, test_interface_changelog, test_s017_*. The engine imports only snake_case_keys from the touched modules
The full suite is left to CI
Fixes #474
Part of #391
Decisions for you
converge_* previews carry no approval (S-018-10, interpretation/scope). treaty 1.1.0 answers an unconfirmed destructive provided tool itself with CONFIRMATION_REQUIRED before the handler runs, and gives no hook to add data to it; a tool flagged destructive cannot handle confirm_destructive itself. So S-018-10's "or a converge_* call without confirm_destructive" cannot hold without either a treaty feature (a preview hook for provided tools) or advertising the converge_* tools as not destructive, which would drop the client's destructive hint. Neither is shipped; the class map and server resolution for the three tools exist for #475
approval merges with S-008's on deploy and rollback (interpretation). Their plans already have an approval object (the release approval: policy, status, reason, ...). The grant's selfConfirm and environments join it; every existing key stays. The alternative is a differently named key, which departs from the spec's wording
CLI plans gain an empty approval (contract-change, additive). Payload keys are strict in the command contract, so restart, data copy and domains apply declare approval as optional and migrate's result gains approval; off MCP, and on a run's result, treaty writes it as {}. No existing key changes
New --proposals flag on deploy, rollback, restart, migrate, data copy, domains apply (public-API change). It is how a command learns it is an agent's call (mcp serve binds it, so it leaves the MCP input schemas, which stay as they were). A person passing it on the CLI only gets the preview; once #475 gates on it, passing it would only make that person's own call propose
Which records count in an environment (interpretation of D-19). A record counts in an environment when any server it changes is declared there now, so a multi-environment agent record counts in each of its environments; an undeclared server still counts for none
A run that changes no server is not self-confirmed (interpretation). For example migrate with every server-changing step completed: it touches no environment that could grant it, so selfConfirm is false with environments: []
maxAutonomousPerHour now counts approval.mode: agent too, for the operator's pass as well (behaviour change, per spec). No code writes agent records yet, so nothing counts differently today
Agent proposals are refused by operator approve and withheld by the autonomous pass (behaviour, defensive). Partly S-018-14's wording; #477 replaces the approve refusal with the real run
🤖 Generated with Claude Code
Open Graph Description: Plan
Serves: G-2
Files: sdk/src/cloudfall/operator.py, a new sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py (the plans of deploy, rollback, restart, migrate, data copy, domains apply), ...
X Description: Plan
Serves: G-2
Files: sdk/src/cloudfall/operator.py, a new sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py (the plans of deploy, rollback, restart, migrate, data copy, domains apply), ...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/480
X: @github
direct link
Domain: github.com
IPv4 address: 140.82.112.3
| 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:ac5dfc23-d38a-e363-92e6-8fe5261b4057 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 918A:229AD2:1C8A27E:269E0EF:6B05578C |
| html-safe-nonce | 19022cf82ef2add2d96e0a5d82de6a320a38fabe33511b3bb052d204e0353d75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MThBOjIyOUFEMjoxQzhBMjdFOjI2OUUwRUY6NkIwNTU3OEMiLCJ2aXNpdG9yX2lkIjoiNjQ3NzczMTIzNzM4ODk2NTc3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f2c035263b0d563573bf07d3a0bdec2559a2b2dcc8bd9df994528f9cf8a4556c |
| hovercard-subject-tag | pull_request:5351550811 |
| 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/480/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-2
Files: sdk/src/cloudfall/operator.py, a new sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py (the plans of deploy, rollback, restart, migrate, data copy, domains apply), ... |
| 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/480/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F480%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%2F480%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/480/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/480/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/480/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/474-s018-classes-and-preview | https://github.com/cloudfall-dev/cloudfall/tree/feat/474-s018-classes-and-preview |
|
Conversation
3
| https://github.com/cloudfall-dev/cloudfall/pull/480 |
|
Commits
3
| https://github.com/cloudfall-dev/cloudfall/pull/480/commits |
|
Checks
2
| https://github.com/cloudfall-dev/cloudfall/pull/480/checks |
|
Files changed
| https://github.com/cloudfall-dev/cloudfall/pull/480/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/480/files |
|
S-018: operation classes in the schemas and the plan's approval preview
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#top |
|
Show all changes
3 commits
| https://github.com/cloudfall-dev/cloudfall/pull/480/files |
|
81ec330
Add the S-018 operation classes, agent record fields and the plan's g…
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/480/commits/81ec330eee91dd80e639fac6b4e632e50078936a |
|
7e80260
Withhold every agent proposal from the autonomous pass, not only one …
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/480/commits/7e80260283d7f399db681c415ff0c19a78474966 |
|
287645d
Refuse a blank agent client name in the proposal schema
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/480/commits/287645d9296467415ac087e405e87d97f6f6e2a0 |
|
Clear filters
| https://github.com/cloudfall-dev/cloudfall/pull/480/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/480/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/480/files |
|
474-s018-operation-classes.md
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-b25a864e3c35a8cd996baaedbf6d57198a12f02be8b7df4455560c4d7b2e4b75 |
|
operator-policy.schema.json
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-d86a670dfe9b95df714f4f6a93b9d79551e1701a9ba42a72b1dec1b83c5ae84e |
|
operator-proposal.schema.json
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
agent_gate.py
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
app.py
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
commands.py
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-e11cc5881f876e11cf81d9bcb39f0fb74710976f27a01a99fb979dfc76c09cc1 |
|
operator.py
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-6faa937f971ec0e078b7052accac7450a634497425b6a987966275a596c9bfd7 |
|
test_s018_agent_gate.py
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-a85ca6f5f6b938b383e091d1ec9ff092268faf0d00b3107d495e1a33071587a7 |
| changelog.d/474-s018-operation-classes.md | https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-b25a864e3c35a8cd996baaedbf6d57198a12f02be8b7df4455560c4d7b2e4b75 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/287645d9296467415ac087e405e87d97f6f6e2a0/changelog.d/474-s018-operation-classes.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/480/{{ revealButtonHref }} |
| config/schemas/v1/operator-policy.schema.json | https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-d86a670dfe9b95df714f4f6a93b9d79551e1701a9ba42a72b1dec1b83c5ae84e |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/287645d9296467415ac087e405e87d97f6f6e2a0/config/schemas/v1/operator-policy.schema.json |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/480/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-d86a670dfe9b95df714f4f6a93b9d79551e1701a9ba42a72b1dec1b83c5ae84e |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-d86a670dfe9b95df714f4f6a93b9d79551e1701a9ba42a72b1dec1b83c5ae84e |
| config/schemas/v1/operator-proposal.schema.json | https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/287645d9296467415ac087e405e87d97f6f6e2a0/config/schemas/v1/operator-proposal.schema.json |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/480/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/480/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/480/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/480/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.