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-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:39393859-7d35-ed53-4c2d-be880f2da2b5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEC1E:E6B97:D9E846:12AD2AE:6B055563
html-safe-noncebd7f79d5baa601734f3cd9971b49ca7dccbd1d7d1e595e725a9a543c50f7099d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzFFOkU2Qjk3OkQ5RTg0NjoxMkFEMkFFOjZCMDU1NTYzIiwidmlzaXRvcl9pZCI6IjY1Nzk5Mzc4MTgyMTc2MzMxMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac215f1a821aa6824fb634089a4b40f965928f66d28d46162ab63c68299cab815f
hovercard-subject-tagpull_request:5356631595
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/493/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/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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
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
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/493/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F493%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%2F493%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/493/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/493/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/493/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/477-operator-approve-agent-proposalhttps://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 pagehttps://github.com/cloudfall-dev/cloudfall/pull/493/files
Please reload this pagehttps://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.mdhttps://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.pyhttps://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 pagehttps://github.com/cloudfall-dev/cloudfall/pull/493/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/493/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.