René's URL Explorer Experiment
Title: S-018: operator approve runs an agent's proposal once its binding holds by shipmill-romamo[bot] · Pull Request #493 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: S-018: operator approve runs an agent's proposal once its binding holds by shipmill-romamo[bot] · Pull Request #493 · cloudfall-dev/cloudfall
X Title: S-018: operator approve runs an agent's proposal once its binding holds by shipmill-romamo[bot] · Pull Request #493 · cloudfall-dev/cloudfall
Description: Plan
Serves: G-2
Files: sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/operator.py, sdk/tests/test_s018_agent_approve.py, sdk/tests/test_s018_agent_gate.py, changelog.d/477-operator-approve-agent-proposal.md
Order: spec 018's Behaviour, "Approving a proposal": the person types the id first; rebuild the stored request as the gated command's arguments; run it through the same command with the proposal as its approval, which recomputes the plan and the D-20 binding and refuses any difference before an engine step, else records the run human / terminal and settles it by the tool's own check; the autonomous pass keeps leaving agent proposals alone
Proof: S-018-11, S-018-12, S-018-13, S-018-14 in sdk/tests/test_s018_agent_approve.py; the operator approve tests in sdk/tests/test_operator.py
Summary
Stacked on #492.
cloudfall operator approve on an agent proposal (the proposed record #492 leaves for a confirmed MCP call no grant covers) now runs it instead of refusing with operator_agent_proposal_unsupported:
The person first. ctx.attest asks for the id at a terminal before anything else, as for the operator's own proposals; off a terminal it exits 4 PERSON_REQUIRED and nothing runs (S-018-11). The prompt names the command, the stored arguments and the servers
Same command, same check. The stored request is typed back into its command's arguments (_stored_arguments: paths, tuples, value objects; an argument the call can't pass, such as a bound one, refuses) and runs through the command's own body (_deploy, _rollback, _restart, _migrate, _data_copy, _domains_apply, or the converge_* handler), so S-008's release approval, locks and every other check apply as on the agent's call
Binding before any engine step. In that command _gated sees the proposal (_AgentGate.approving) and _approved recomputes the plan (without its grant check, as #492 binds it), HEAD and the uncommitted-changes digest outside decisions/, record/ and tmp/; any difference, or different servers, refuses with PRECONDITION, context.code: proposal_binding_changed, context.changed naming each part, and the record stays proposed (S-018-12)
The proposal's record is the run's. ApprovedRun (a GrantedRun whose begin is ProposalStore.start, so a second approval is refused under the store's lock) marks it running with approval.mode: human, via: terminal before the first step, and the tool's own check settles it verified or failed. A verified one counts in the D-19 history, so the next agent call can run on the grant (S-018-13)
A proposal that changes no declared server (a server-free migrate, which #492 now proposes) has no grant to wait for: operator approve runs it the same way, and a test proves it
cloudfall operator run's autonomous pass still leaves agent proposals proposed, withheld as "an agent proposal is approved only by a person" (S-018-14, already so since #474; now proven with a grant that holds)
_granted's run-and-settle loop moved into _recorded, shared with the approved run. The command functions became thin wrappers over a body that takes the approval; no CLI flag or MCP input changed.
Choices worth a look
operator approve adds CONFLICT and PARTIAL_FAILURE to its declared exit codes, which a stored deploy/rollback/restart (a held lock) or migrate can end with; both codes already exist in the CLI's table
The stored request runs with the commands' default directories (record/releases, tmp/artifacts, decisions/releases, ...) and operator approve's own --proposals, --engine, --inventory-file, --observed and --secrets-dir; a cloudfall mcp serve started with other directories would have proposed against those
operator.approve() (the library call with an executor) still refuses an agent proposal, now saying it runs through its own command
Test plan
uv run ruff check ., uv run mypy, specs.py check: pass
specs.py coverage --spec 018: a test for every criterion but S-018-16 (#478); the spec's status is left as is
uv run pytest on test_s018_agent_approve, test_s018_agent_gate, test_s018_granted_run, test_s018_ungranted_call, test_operator, test_compatibility_surface, test_agent_server, test_commands, test_owned_postgresql_converge, test_domains_converge, test_interface_changelog: all pass. The terminal is a stream whose isatty is true (test_decision._Terminal), as the existing operator approve tests use
The full suite is left to CI. No engine test imports the changed SDK modules
Fixes #477
🤖 Generated with Claude Code
Open Graph Description: Plan
Serves: G-2
Files: sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/operator.py, sdk/tests/test_s018_agent_approve.py, sdk/tests/test_s018_agent_gate.py, changelog...
X Description: Plan
Serves: G-2
Files: sdk/src/cloudfall/agent_gate.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/operator.py, sdk/tests/test_s018_agent_approve.py, sdk/tests/test_s018_agent_gate.py, changelog...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/493
X: @github
direct link
Domain: github.com
IPv4 address: 140.82.113.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:39393859-7d35-ed53-4c2d-be880f2da2b5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EC1E:E6B97:D9E846:12AD2AE:6B055563 |
| html-safe-nonce | bd7f79d5baa601734f3cd9971b49ca7dccbd1d7d1e595e725a9a543c50f7099d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzFFOkU2Qjk3OkQ5RTg0NjoxMkFEMkFFOjZCMDU1NTYzIiwidmlzaXRvcl9pZCI6IjY1Nzk5Mzc4MTgyMTc2MzMxMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 215f1a821aa6824fb634089a4b40f965928f66d28d46162ab63c68299cab815f |
| hovercard-subject-tag | pull_request:5356631595 |
| 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/493/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/agent_gate.py, sdk/src/cloudfall/app.py, sdk/src/cloudfall/operator.py, sdk/tests/test_s018_agent_approve.py, sdk/tests/test_s018_agent_gate.py, changelog... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Skip to content | https://github.com/cloudfall-dev/cloudfall/pull/493/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F493%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%2F493%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/493/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/493/files |
| Reload | https://github.com/cloudfall-dev/cloudfall/pull/493/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/477-operator-approve-agent-proposal | https://github.com/cloudfall-dev/cloudfall/tree/feat/477-operator-approve-agent-proposal |
|
Conversation
0
| https://github.com/cloudfall-dev/cloudfall/pull/493 |
|
Commits
4
| https://github.com/cloudfall-dev/cloudfall/pull/493/commits |
|
Checks
2
| https://github.com/cloudfall-dev/cloudfall/pull/493/checks |
|
Files changed
6
| https://github.com/cloudfall-dev/cloudfall/pull/493/files |
|
S-018: operator approve runs an agent's proposal once its binding holds
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#top |
|
Show all changes
4 commits
| https://github.com/cloudfall-dev/cloudfall/pull/493/files |
|
a26166f
Run an approved agent proposal through its tool's own command (S-018)
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/493/commits/a26166f73b54f19b61d22efd6896cb54473e2969 |
|
9db6d9b
Approve an agent migrate proposal that changes no declared server (S-…
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/493/commits/9db6d9be81cc8f968f66cff3fbf476b3fb8f6314 |
|
24a717a
Escape the agent's reason in operator approve's prompt (S-018-11)
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/493/commits/24a717ab23b900ebe01215d6b514ce7524cdcb63 |
|
f4497b0
Space the return arrow of the converge handlers
shipmill-romamo[bot] Nov 17, 2026
| https://github.com/cloudfall-dev/cloudfall/pull/493/commits/f4497b0d11255df31b013a5cd45563797184e749 |
|
Clear filters
| https://github.com/cloudfall-dev/cloudfall/pull/493/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/493/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/493/files |
|
477-operator-approve-agent-proposal.md
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-03dee255a6381718d9ce70040f182e745079e07beb63c195f3e243c27f890a59 |
|
agent_gate.py
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
app.py
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763 |
|
operator.py
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-6faa937f971ec0e078b7052accac7450a634497425b6a987966275a596c9bfd7 |
|
test_s018_agent_approve.py
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-36fd0064676efbbeb0d12b024cd6f75386ed51987a9c9f10e2d16db8556151d4 |
|
test_s018_agent_gate.py
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-a85ca6f5f6b938b383e091d1ec9ff092268faf0d00b3107d495e1a33071587a7 |
| changelog.d/477-operator-approve-agent-proposal.md | https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-03dee255a6381718d9ce70040f182e745079e07beb63c195f3e243c27f890a59 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/f4497b0d11255df31b013a5cd45563797184e749/changelog.d/477-operator-approve-agent-proposal.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/493/{{ revealButtonHref }} |
| sdk/src/cloudfall/agent_gate.py | https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
View file
| https://github.com/cloudfall-dev/cloudfall/blob/f4497b0d11255df31b013a5cd45563797184e749/sdk/src/cloudfall/agent_gate.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cloudfall-dev/cloudfall/pull/493/{{ revealButtonHref }} |
|
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
|
| https://github.com/cloudfall-dev/cloudfall/pull/493/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2 |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/493/files |
| Please reload this page | https://github.com/cloudfall-dev/cloudfall/pull/493/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.