Title: Spec 018: MCP self-confirmation by policy by shipmill-romamo[bot] · Pull Request #395 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Spec 018: MCP self-confirmation by policy by shipmill-romamo[bot] · Pull Request #395 · cloudfall-dev/cloudfall
X Title: Spec 018: MCP self-confirmation by policy by shipmill-romamo[bot] · Pull Request #395 · cloudfall-dev/cloudfall
Description: Spec for #391 The spec for option 2 of #391: over cloudfall mcp serve in project mode, a server-changing tool runs on its confirmed call only when an OperatorPolicy grant covers its operation class in every environment the run touches. Otherwise it writes a proposal and answers with its id, and a person runs cloudfall operator approve. Every confirmed run writes an OperatorProposal record naming the agent as approver, with the policy, the grant and the plan's sha256. cloudfall why reads these records. With no OperatorPolicy declared, everything proposes. Serves G-2. Relies on D-16, D-19 and D-20. Changing behaviour is Breaking under S-017: it ships in a minor release with a ### Breaking changelog entry and no deprecation window. Plan Serves: G-2 Files: docs/specs/018-mcp-self-confirmation-by-policy.md (new) Order: one commit adding the spec; its build issues are filed under #391 once it merges Proof: specs.py check in the checks job; no code changes Decisions for you No policy declared means everything proposes. Recommended: yes, as you chose in #391. The other option was to keep today's self-confirmation when no policy exists, which leaves every existing project open One operation class per tool, with converge_* as three classes. Recommended: nine classes (deploy, rollback, restart, migrate, data-copy, domains-apply, converge-baseline, converge-services, converge-domains), reusing the operator's two existing kinds. The other option is one converge class for all three tools, which is simpler to grant but can't give converge-domains without converge-baseline The policy grants deploys too. S-008 put "an OperatorPolicy that licenses deploys" out of scope, saying the schema grants only convergence by design. That was an out-of-scope note, not a D-n. Recommended: extend the grant to the seven new classes, since a staging one-call deploy flow (the wedge) otherwise always needs a person A grant is the operator's existing autonomy grant, unchanged. The same requiredVerifiedRuns (minimum 1), the D-19 history, suspension after a failure, quietHours, and maxAutonomousPerHour, which now counts agent runs as well as autonomous ones. Granting a class to the agent also grants it to the operator loop for that environment. Recommended: as written. The first run of a class in a new environment then needs a person once. The other option is to allow requiredVerifiedRuns: 0, an additive schema widening that lets staging self-confirm from the first run A run that crosses environments needs a grant in each one. Recommended: yes. So converge_* without domain, which runs on every declared server, self-confirms only if every environment grants it. A tool input that limits a converge to one environment is left out of scope How a refusal is answered. Recommended: PRECONDITION with context.code: operator_approval_required and the proposal id, as S-008 answers deployment_approval_missing. An agent that checks only ok can't then take a proposal for a run. The other options are a new exit code (additive under S-017) or ok: true with status: proposed. The last is rejected because it reads as success The record is an OperatorProposal with a new trigger kind agent, not a new record kind. Recommended: yes. operator approve and the D-19 history already read it. cloudfall why gains a --proposals flag to read the store. The other option is an OperationDecision in decisions/, which why reads today but operator approve doesn't The verify step for each class (health gate, migrate steps, the data copy receipt, domains observe, and audit after converge_*). Recommended: as listed under The record An optional reason input on each gated tool, recorded as the diagnosis. Recommended: add it. It is additive, and it gives why the agent's own words The operator loop leaves agent proposals alone. Recommended: yes. Only a person approves them, or the agent calls again once a grant covers the run No deprecation window. Recommended: Breaking in the next minor release, with the changelog naming the policy that keeps the one-call flow. A window would keep the gap open for one more minor release
Open Graph Description: Spec for #391 The spec for option 2 of #391: over cloudfall mcp serve in project mode, a server-changing tool runs on its confirmed call only when an OperatorPolicy grant covers its operation class...
X Description: Spec for #391 The spec for option 2 of #391: over cloudfall mcp serve in project mode, a server-changing tool runs on its confirmed call only when an OperatorPolicy grant covers its operation class...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/395
X: @github
Domain: github.com
IPv4 address: 140.82.114.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:4c8dd102-7555-a850-3206-a1991cb8b96f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AA36:392C58:1E82032:292EE09:6B055D5B |
| html-safe-nonce | 069ddcb4c04a881f35477ed97f12f3c8193e40022d9bf39c768399fbb3a5066a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTM2OjM5MkM1ODoxRTgyMDMyOjI5MkVFMDk6NkIwNTVENUIiLCJ2aXNpdG9yX2lkIjoiODU4NjgyNDIwODU0NDUyMTU2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7069f79d613af1601a2dc19ad43a1e953263099c432ab9bb968a139705a2fec7 |
| hovercard-subject-tag | pull_request:5326752312 |
| 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/395/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 | Spec for #391 The spec for option 2 of #391: over cloudfall mcp serve in project mode, a server-changing tool runs on its confirmed call only when an OperatorPolicy grant covers its operation class... |
| 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 |
| 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:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width