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-profiling0
react-import-mapreact,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-controllerpull_requests
route-actionfiles
fetch-noncev2:ac5dfc23-d38a-e363-92e6-8fe5261b4057
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id918A:229AD2:1C8A27E:269E0EF:6B05578C
html-safe-nonce19022cf82ef2add2d96e0a5d82de6a320a38fabe33511b3bb052d204e0353d75
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MThBOjIyOUFEMjoxQzhBMjdFOjI2OUUwRUY6NkIwNTU3OEMiLCJ2aXNpdG9yX2lkIjoiNjQ3NzczMTIzNzM4ODk2NTc3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf2c035263b0d563573bf07d3a0bdec2559a2b2dcc8bd9df994528f9cf8a4556c
hovercard-subject-tagpull_request:5351550811
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/480/files
twitter:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
og:image:altPlan 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git
octolytics-dimension-user_id339512759
octolytics-dimension-user_logincloudfall-dev
octolytics-dimension-repository_id1360999777
octolytics-dimension-repository_nwocloudfall-dev/cloudfall
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1360999777
octolytics-dimension-repository_network_root_nwocloudfall-dev/cloudfall
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/480/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F480%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F480%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/480/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/480/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/480/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues78 (78)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests10 (10)https://github.com/cloudfall-dev/cloudfall/pulls
Discussionshttps://github.com/cloudfall-dev/cloudfall/discussions
Actionshttps://github.com/cloudfall-dev/cloudfall/actions
Security and qualityhttps://github.com/cloudfall-dev/cloudfall/security
Insightshttps://github.com/cloudfall-dev/cloudfall/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
shipmill-romamohttps://github.com/apps/shipmill-romamo
mainhttps://github.com/cloudfall-dev/cloudfall/tree/main
feat/474-s018-classes-and-previewhttps://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 pagehttps://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 pagehttps://github.com/cloudfall-dev/cloudfall/pull/480/files
Please reload this pagehttps://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.mdhttps://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.jsonhttps://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.jsonhttps://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 pagehttps://github.com/cloudfall-dev/cloudfall/pull/480/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/480/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.