René's URL Explorer Experiment
Title: S-018: a confirmed MCP call no grant covers only proposes (Breaking) by shipmill-romamo[bot] · Pull Request #492 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: S-018: a confirmed MCP call no grant covers only proposes (Breaking) by shipmill-romamo[bot] · Pull Request #492 · cloudfall-dev/cloudfall
X Title: S-018: a confirmed MCP call no grant covers only proposes (Breaking) by shipmill-romamo[bot] · Pull Request #492 · cloudfall-dev/cloudfall
Description: Plan
Serves: G-2
Files: config/schemas/v1/operator-proposal.schema.json, sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/operator.py, sdk/src/cloudfall/component_lock.py, sdk/src/cloudfall/agent_server.py, sdk/tests/test_s018_ungranted_call.py, sdk/tests/test_owned_postgresql_converge.py, sdk/tests/test_agent_server.py, changelog.d/476-ungranted-mcp-calls-propose.md
Order: spec 018's Behaviour, "Not granted": build the agent proposal beside the granted record in agent_gate, give the store an open-or-save under its lock, route every gated command's confirmed call that no grant covers to it after the existing refusals, then the instructions, the changelog and the existing tests that ran with yes: true and no grant
Proof: S-018-1, S-018-2, S-018-3, S-018-4, S-018-8, S-018-9, S-018-15, S-018-18, S-018-20 in sdk/tests/test_s018_ungranted_call.py; the MCP, S-018 and compatibility-surface tests
Summary
Over cloudfall mcp serve in a project, a confirmed call of a gated tool (deploy, rollback, restart, migrate, data_copy, domains_apply with yes: true; converge_baseline, converge_services, converge_domains with confirm_destructive: true) that no OperatorPolicy grant covers in every environment it touches now runs nothing. It:
writes one proposed agent OperatorProposal to the proposal store (trigger agent with the tool, its arguments without the bound ones and the reason; operation.servers and operation.environments; binding with planSha256, and gitCommit and worktreeDigest in a git project, as D-20 computes them)
answers PRECONDITION with context.code: operator_approval_required, context.proposal, context.command (cloudfall operator approve ), context.reasons (one : line per environment) and context.record (the file)
returns the open proposal instead of writing a second one when the same call (tool, arguments, servers) comes again against the same binding (S-018-4)
Refusals that came first still do and write no record (S-018-15): validation, S-008's deployment_approval_missing, and, new on this path, a component lock another run holds (CONFLICT, component_locked, for deploy, rollback, restart). _PROJECT_INSTRUCTIONS names the refusal, cloudfall operator approve and approval.selfConfirm (S-018-20). The CLI is unchanged (S-018-18). ### Breaking changelog fragment in changelog.d/476-ungranted-mcp-calls-propose.md.
Implementation: GrantedRun.prepare's record building moved to _agent_record in agent_gate.py, shared with the new propose_call; ProposalStore.open_or_save matches and saves under the store's lock; _gated in app.py sends each gated command to _granted (unchanged) or _proposed.
Choices worth a look
The binding's planSha256 leaves out the grant check. The proposal hashes the plan without approval.selfConfirm and approval.environments (proposal_plan), since those change with the store's history, the hour (quiet hours) and the rate limit, not with what the run does: hashed whole, a proposal made in quiet hours could never be approved after them. A granted run's record still hashes the whole plan (S-018-6)
"Same call" also matches the binding. A call whose plan, commit or worktree changed since its open proposal writes a new proposal, so the agent can ask again after operator approve refuses a stale one (S-018-12 asks for "a new proposal (the agent calls the tool again)")
A run that changes no declared server proposes too (S-018-1, Q-2). A migrate whose pending steps are only builds and controller steps (ttl-lower changes DNS) touches no environment, so no grant can cover it: it proposes with empty operation.servers and operation.environments and the reason "the run changes no declared server, so no environment's grant covers it and only a person approves it". The OperatorProposal schema drops minItems: 1 on those two lists (both stay required for an agent record; the model requires servers and environments to be both empty or both set). A converge_* call that refuses itself before any playbook (converge_domains for an undeclared Domain) still writes nothing; one that would start a playbook on no declared server proposes
Existing tests changed
test_owned_postgresql_converge.py: the MCP converge_services test (S-006-7) now asserts the S-018 refusal (operator_approval_required, one proposed record, no inventory rendered, no secret read). A grant there would need a LoggingStack (operator_policy_environment_unmonitored); S-006-7 stays proven by its four other tests
test_agent_server.py: the S-008-5 MCP test also asserts that the deployment_approval_missing refusal wrote no proposal
Test plan
uv run ruff check ., uv run mypy, specs.py check: pass
specs.py coverage --spec 018: a test for each of S-018-1, -2, -3, -4, -8, -9, -15, -18, -20
uv run pytest on test_s018_ungranted_call, test_s018_granted_run, test_s018_agent_gate, test_agent_server, test_owned_postgresql_converge, test_domains_converge, test_compatibility_surface, test_component_lock, test_operator, test_interface_changelog, test_s017_record_kinds, test_deploy_approval, test_migrate_approval: 263 passed
The full suite is left to CI. No engine test imports the changed SDK modules
Fixes #476
🤖 Generated with Claude Code
Open Graph Description: Plan
Serves: G-2
Files: config/schemas/v1/operator-proposal.schema.json, sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/operator.py, sdk/src/cloudfall/component_lock....
X Description: Plan
Serves: G-2
Files: config/schemas/v1/operator-proposal.schema.json, sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/operator.py, sdk/src/cloudfall/component_lock....
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/492
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:9852053a-3e2c-4297-1582-4c4784678faf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BB8E:12E8E1:101EA13:16034D1:6B055D36 |
| html-safe-nonce | cd803849abefdea946784aaeb48f84533b9734d5e5bc9ba026ba4fad5d2f492e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjhFOjEyRThFMToxMDFFQTEzOjE2MDM0RDE6NkIwNTVEMzYiLCJ2aXNpdG9yX2lkIjoiNjM4MjI1NTEwMjI0MTM2NTMwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0c0c45ae7e4f6e611b647dc3cf5975fb753bbc17c0e5c5da6c67e0647449bd50 |
| hovercard-subject-tag | pull_request:5356454890 |
| 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/492/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: config/schemas/v1/operator-proposal.schema.json, sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/operator.py, sdk/src/cloudfall/component_lock.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72 |
| 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 | 8327739ac0648b9c3c722b5f401f7338553936b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Skip to content | https://github.com/cloudfall-dev/cloudfall/pull/492/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F492%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%2F492%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/492/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/492/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/492/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/476-ungranted-mcp-calls-propose | https://github.com/cloudfall-dev/cloudfall/tree/feat/476-ungranted-mcp-calls-propose |
|
Conversation
1
| https://github.com/cloudfall-dev/cloudfall/pull/492 |
|
Commits
3
| https://github.com/cloudfall-dev/cloudfall/pull/492/commits |
|
Checks
2
| https://github.com/cloudfall-dev/cloudfall/pull/492/checks |
|
Files changed
10
| https://github.com/cloudfall-dev/cloudfall/pull/492/files |
|
S-018: a confirmed MCP call no grant covers only proposes (Breaking)
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#top |
|
Show all changes
3 commits
| https://github.com/cloudfall-dev/cloudfall/pull/492/files |
|
0ffa457
Propose a confirmed MCP call no grant covers instead of running it (S…
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/492/commits/0ffa457ea96fd9811ae8d7012f2c932028a8399d |
|
1584e6b
Propose a gated run that changes no declared server too (S-018-1)
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/492/commits/1584e6b72fd3bc5fc4cb6a113c7a7b35832b5be7 |
|
905fa91
Let a finished migrate answer as before, and say --proposals gates th…
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/492/commits/905fa91e55f8796be8fa8e25d5297c925cabbfbf |
|
Clear filters
| https://github.com/cloudfall-dev/cloudfall/pull/492/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/492/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/492/files |
|
476-ungranted-mcp-calls-propose.md
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-294dc82a82ab5678f29b1036ff9c5a7d470912bf6c5cd477fdef5f47351c52dc |
|
operator-proposal.schema.json
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
agent_gate.py
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
agent_server.py
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
app.py
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
component_lock.py
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bf51dc445edbdccac4365b7e8d6c89de809c4beab3ef73708415ca0a62e9747f |
|
operator.py
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-6faa937f971ec0e078b7052accac7450a634497425b6a987966275a596c9bfd7 |
|
test_agent_server.py
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-48d0ae7fab1e829d319e055aee885ab06a5d6b381e30dad3bb0204125b85b82c |
|
test_owned_postgresql_converge.py
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-86a389b9bbf7d2dc090a90c0e540cbbd5c3fdfab3a048986e3ea8291f0656cf8 |
|
test_s018_ungranted_call.py
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-9efbdac01f75e3b1e73b1633cf4bdcb2372fafc9c1fad4822f6c41c440763c96 |
| changelog.d/476-ungranted-mcp-calls-propose.md | https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-294dc82a82ab5678f29b1036ff9c5a7d470912bf6c5cd477fdef5f47351c52dc |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/905fa91e55f8796be8fa8e25d5297c925cabbfbf/changelog.d/476-ungranted-mcp-calls-propose.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/492/{{ revealButtonHref }} |
| config/schemas/v1/operator-proposal.schema.json | https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/905fa91e55f8796be8fa8e25d5297c925cabbfbf/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/492/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-2952a05dc50bfb9c124a19f5bfeb1ffde5793cccd2dbaf098603f9823676679d |
| sdk/src/cloudfall/agent_gate.py | https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/905fa91e55f8796be8fa8e25d5297c925cabbfbf/sdk/src/cloudfall/agent_gate.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/492/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
| sdk/src/cloudfall/agent_server.py | https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/905fa91e55f8796be8fa8e25d5297c925cabbfbf/sdk/src/cloudfall/agent_server.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/492/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/492/files#diff-cb52d8a4b5af6b71432660ea59ba332075af6e65aa7324e37263495ff8c510f4 |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/492/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/492/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.