René's URL Explorer Experiment


Title: Bind an approval to what its proposal was checked against by shipmill-romamo[bot] · Pull Request #369 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Bind an approval to what its proposal was checked against by shipmill-romamo[bot] · Pull Request #369 · cloudfall-dev/cloudfall

X Title: Bind an approval to what its proposal was checked against by shipmill-romamo[bot] · Pull Request #369 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar Files: sdk/src/cloudfall/proposal_binding.py (new), sdk/src/cloudfall/decision.py, sdk/src/cloudfall/app.py, config/schemas/v1/operation-decision.schema.json, config/tests/records/decisions/v0.8.0-bound-proposed.json, sdk/tests/test_decision.py, changelog.d/352-bind-approval.md Order: the failing tests first (playbook, verify playbook and diff edited after propose; a role edited and a commit made in a git project; an unbound older record; the CLI refusal), then the binding module, the record's binding and its schema, the check in approve() and in decisions approve before the id prompt, then the fixture and the changelog fragment Proof: test_an_edit_after_the_proposal_refuses_its_approval (playbook, verify-playbook, diff), test_a_role_edited_in_a_git_project_refuses_the_approval, test_a_commit_after_the_proposal_refuses_the_approval, test_a_git_project_with_no_commit_yet_binds_its_files, test_an_untouched_git_project_approves_as_before, test_a_proposal_recorded_before_bindings_is_refused, test_the_cli_refuses_a_changed_proposal_before_asking_for_its_id, and the new record fixture read by test_record_fixtures.py Summary approve() ran decision.playbook and decision.verify_playbook from their paths as they were at approval time, and the diff's sha256 recorded at propose time was never compared again, while its docstring promised the approval was of what was proposed. This implements D-20 (open PR #364). Record. New optional spec.binding (camelCase, like the rest of the record): playbookSha256, verifyPlaybookSha256 (null without a verify playbook), commit and worktreeSha256 (null outside a git work tree; commit is also null in a repository with no commit yet). Added to operation-decision.schema.json with additionalProperties: false; older records without it still read Propose. proposal_binding.bind() runs before the check run. worktreeSha256 is a sha256 over git diff --binary of tracked files plus each untracked, non-ignored file's path and content (length-prefixed), scoped to the project directory and leaving out the decisions directory, record/ and tmp/. git runs with an explicit argv via subprocess, output read as bytes and decoded as UTF-8 where text is read (a diff or a path need not be UTF-8). A dirty tree at propose time is allowed Approve. New refuse_changed() recomputes the binding and the diff file's sha256 before store.start and before anything runs. Any difference raises DecisionError with the new code decision_binding_changed, naming each part that changed and asking for a new proposal; the record stays proposed. A record with no binding is refused with the same code. decisions approve checks it before the attestation prompt, so nobody types an id for a proposal that can't run; it surfaces as PRECONDITION with context.code = decision_binding_changed, like the other DecisionErrors. decisions approve is not on MCP (mcp=False), so there is no MCP path to change Docstring. approve() now says what is bound: roles, templates and inventory only through git; outside git, the two playbooks and the diff Read operations (D-1, ran at propose) also carry a binding but are never approved, so nothing checks it. Replayed proposals (D-2/D-7) are refused as replayed before the binding check A git failure other than "not a repository" while binding raises decision_binding_git_failed. A controller with no git binary binds as outside git; a record bound in git is then refused at approval, since its commit no longer matches Test notes uv run ruff check .: pass uv run mypy: pass uv run pytest sdk/tests/test_decision.py sdk/tests/test_record_fixtures.py sdk/tests/test_stale.py sdk/tests/test_why.py sdk/tests/test_host_stats.py sdk/tests/test_agent_server.py sdk/tests/test_investigation.py: 250 passed; sdk/tests/test_resources.py: 6 passed The git tests build a temporary git project (git init, a commit with hooks and signing turned off) The full suite is left to CI Expect a small rebase against #365 (#356), which also changes propose() in decision.py Fixes #352 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar Files: sdk/src/cloudfall/proposal_binding.py (new), sdk/src/cloudfall/decision.py, sdk/src/cloudfall/app.py, config/schemas/v1/operation-decision.schema.json, config/tests...

X Description: Plan Serves: quality bar Files: sdk/src/cloudfall/proposal_binding.py (new), sdk/src/cloudfall/decision.py, sdk/src/cloudfall/app.py, config/schemas/v1/operation-decision.schema.json, config/tests...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/369

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:295f0dac-94ee-37b7-abf5-24f50e20349a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id80BC:14E67C:46A4D:660B9:6B05A672
html-safe-noncede959df32128dff0c1114a11019a2f8718e1a882dbe7341788769528f6788422
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEJDOjE0RTY3Qzo0NkE0RDo2NjBCOTo2QjA1QTY3MiIsInZpc2l0b3JfaWQiOiI2NTc4MDcxMTg2Nzc2MTA2NjEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac901ac649152fb3fc49597b52cd83112c0007374f0bbf6f721f7c0e9b224704e1
hovercard-subject-tagpull_request:5324745364
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/369/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: quality bar Files: sdk/src/cloudfall/proposal_binding.py (new), sdk/src/cloudfall/decision.py, sdk/src/cloudfall/app.py, config/schemas/v1/operation-decision.schema.json, config/tests...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1fb3ddc0b71892c329818732762bc26c09d4e193a34ef934888d4731e69c0173
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
release001eaa59a2e6bac6dc88d27c00f0240847562453
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/369/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F369%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%2F369%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/369/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/369/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/369/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues76 (76)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
fix/352-bind-approvalhttps://github.com/cloudfall-dev/cloudfall/tree/fix/352-bind-approval
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/369
Commits 2 https://github.com/cloudfall-dev/cloudfall/pull/369/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/369/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/369/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/369/files
Bind an approval to what its proposal was checked against https://github.com/cloudfall-dev/cloudfall/pull/369/files#top
Show all changes 2 commits https://github.com/cloudfall-dev/cloudfall/pull/369/files
7e5e8d9 Bind an approval to what its proposal was checked against shipmill-romamo[bot] Nov 15, 2026 https://github.com/cloudfall-dev/cloudfall/pull/369/commits/7e5e8d926a185b49058091ec2c469c34de57c896
3c00715 Bind a dirty submodule's content and keep the project's fsmonitor hoo… shipmill-romamo[bot] Nov 15, 2026 https://github.com/cloudfall-dev/cloudfall/pull/369/commits/3c00715695d07da570bf8f9f9bea860ccf3c0d3d
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/369/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/369/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/369/files
352-bind-approval.md https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-ff28031a7c1881fae66068b0f3b7b72c5d628f78b00939b8631b72b7340e00cc
operation-decision.schema.json https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-8ae89404205af6326c90e48fa55bd2e89820b1e3ebaaa1c1068d3edec74ed7f3
v0.8.0-bound-proposed.json https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-46140ac953de79d3aa9d3bdc2ba69ec0893daeaed5436f7856aa093623963be3
app.py https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
decision.py https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
proposal_binding.py https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-a9816170027b3439e1e72632c017c442b8458c69f6ff8254c47487d194c036bf
test_decision.py https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
changelog.d/352-bind-approval.mdhttps://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-ff28031a7c1881fae66068b0f3b7b72c5d628f78b00939b8631b72b7340e00cc
View file https://github.com/cloudfall-dev/cloudfall/blob/3c00715695d07da570bf8f9f9bea860ccf3c0d3d/changelog.d/352-bind-approval.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/369/{{ revealButtonHref }}
config/schemas/v1/operation-decision.schema.jsonhttps://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-8ae89404205af6326c90e48fa55bd2e89820b1e3ebaaa1c1068d3edec74ed7f3
View file https://github.com/cloudfall-dev/cloudfall/blob/3c00715695d07da570bf8f9f9bea860ccf3c0d3d/config/schemas/v1/operation-decision.schema.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/369/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-8ae89404205af6326c90e48fa55bd2e89820b1e3ebaaa1c1068d3edec74ed7f3
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-8ae89404205af6326c90e48fa55bd2e89820b1e3ebaaa1c1068d3edec74ed7f3
config/tests/records/decisions/v0.8.0-bound-proposed.jsonhttps://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-46140ac953de79d3aa9d3bdc2ba69ec0893daeaed5436f7856aa093623963be3
View file https://github.com/cloudfall-dev/cloudfall/blob/3c00715695d07da570bf8f9f9bea860ccf3c0d3d/config/tests/records/decisions/v0.8.0-bound-proposed.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/369/{{ revealButtonHref }}
sdk/src/cloudfall/app.pyhttps://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
View file https://github.com/cloudfall-dev/cloudfall/blob/3c00715695d07da570bf8f9f9bea860ccf3c0d3d/sdk/src/cloudfall/app.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/369/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
sdk/src/cloudfall/decision.pyhttps://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
View file https://github.com/cloudfall-dev/cloudfall/blob/3c00715695d07da570bf8f9f9bea860ccf3c0d3d/sdk/src/cloudfall/decision.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/369/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/369/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/369/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/369/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.