Title: S-018: gated MCP tools propose unless an OperatorPolicy grants the run (Breaking) · Issue #476 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: S-018: gated MCP tools propose unless an OperatorPolicy grants the run (Breaking) · Issue #476 · cloudfall-dev/cloudfall
X Title: S-018: gated MCP tools propose unless an OperatorPolicy grants the run (Breaking) · Issue #476 · cloudfall-dev/cloudfall
Description: Builds part of spec S-018, docs/specs/018-mcp-self-confirmation-by-policy.md: the acceptance criteria below. Each needs a test that names its id (test_s018_
Open Graph Description: Builds part of spec S-018, docs/specs/018-mcp-self-confirmation-by-policy.md: the acceptance criteria below. Each needs a test that names its id (test_s018_
X Description: Builds part of spec S-018, docs/specs/018-mcp-self-confirmation-by-policy.md: the acceptance criteria below. Each needs a test that names its id (test_s018_<k>_..., or a proves: S-018-1 comme...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/476
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"S-018: gated MCP tools propose unless an OperatorPolicy grants the run (Breaking)","articleBody":"Builds part of spec S-018, `docs/specs/018-mcp-self-confirmation-by-policy.md`: the acceptance criteria below. Each needs a test that names its id (`test_s018_\u003ck>_...`, or a `proves: S-018-1` comment line).\n\n- S-018-1: In a project with no `OperatorPolicy`, each of `deploy`, `rollback`, `restart`, `migrate`, `data_copy` and `domains_apply` called over `cloudfall mcp serve` with `yes: true` returns `PRECONDITION` with `error.context.code: operator_approval_required`, `context.proposal`, `context.command` equal to `cloudfall operator approve \u003cthat id>` and a `context.reasons` line naming the environment and \"no operator policy\"; no `ansible-playbook` process starts and no release, deployment or migration receipt is written\n- S-018-2: In the same project, `converge_baseline`, `converge_services` and `converge_domains` called with `confirm_destructive: true` return the same refusal, and no `ansible-playbook` process starts\n- S-018-3: Each refusal of S-018-1 and S-018-2 writes exactly one file to the proposal store that validates against `operator-proposal.schema.json`, with `status: proposed`, `trigger.kind: agent`, `trigger.request.tool` and `trigger.request.arguments` of the call, `operation.kind` the tool's class from the table, `operation.servers` and `operation.environments`, and `binding.planSha256`\n- S-018-4: The same refused call made twice while its proposal is `proposed` returns the same `context.proposal` and leaves one file in the store\n- S-018-8: With the `staging` grant of S-018-5 and no policy for `production`, `deploy` with `yes: true` for a component with one server in each environment refuses with `operator_approval_required` and a `context.reasons` line naming `production`, and nothing runs on either server\n- S-018-9: The grant is withheld, and the call refuses with `operator_approval_required` and a proposal, when the policy does not list the class, when fewer than `requiredVerifiedRuns` verified records of that class exist in that environment (records of another environment do not count), when the latest settled record of that class in that environment is `failed` or `interrupted`, during `quietHours`, when `maxAutonomousPerHour` runs with `approval.mode` `autonomous` or `agent` ran in the last hour, and when a file in the proposal store cannot be read; each `context.reasons` line names its cause\n- S-018-15: For an application declaring `approval: manual` with no release approval, a granted `deploy` with `yes: true` refuses with `deployment_approval_missing` as S-008 says and writes no proposal record\n- S-018-18: `cloudfall deploy \u003ccomponent> --release R --yes` from the CLI in a project with no `OperatorPolicy` runs as today and writes no agent record; `cloudfall mcp serve` on a repository (fleet mode) lists the same tools as before\n- S-018-20: `_PROJECT_INSTRUCTIONS` names `operator_approval_required`, `cloudfall operator approve` and the plan's `approval.selfConfirm`, and no longer says that a second call with `yes: true` runs the change; `changelog.d/` holds a `### Breaking` entry naming the gated tools, `operator_approval_required`, `cloudfall operator approve` and declaring an `OperatorPolicy` to keep the one-call flow\n\nScope: the Breaking switch. A confirmed call no grant covers proposes instead of running. The approve path for agent proposals is the next build issue: stack its pull request on this one so they land back to back and no release ships a refusal whose `cloudfall operator approve \u003cid>` can't yet run the proposal.\n\nDepends on cloudfall-dev/cloudfall#475\n\n\u003c!-- shipmill:agent -->\n","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-17T05:23:03Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/476"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b2238b8c-29ac-a005-c7ac-108704e4be2b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D546:1F9C:1BF780:2B6B4B:6B054ED5 |
| html-safe-nonce | 4351197e9fc6771ee234f09f32bc2286e4f9b1f21978337d3daaf35cf078005a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTQ2OjFGOUM6MUJGNzgwOjJCNkI0Qjo2QjA1NEVENSIsInZpc2l0b3JfaWQiOiI5MTA4MTgxMzcyMjUzODUxMzQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 53c9ac5fc37aff41cd4272d63273fced7f9ab155d53ef2a6910b0d747d6c840c |
| hovercard-subject-tag | issue:6438007085 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/cloudfall-dev/cloudfall/476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/312712dc8a76bcd568919289a186c11d92a99ba402ae9f9274c5396eff48b063/cloudfall-dev/cloudfall/issues/476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/312712dc8a76bcd568919289a186c11d92a99ba402ae9f9274c5396eff48b063/cloudfall-dev/cloudfall/issues/476 |
| og:image:alt | Builds part of spec S-018, docs/specs/018-mcp-self-confirmation-by-policy.md: the acceptance criteria below. Each needs a test that names its id (test_s018_ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width