Title: A granted MCP run whose agent record can't be saved exits with an internal error, not PRECONDITION · Issue #489 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: A granted MCP run whose agent record can't be saved exits with an internal error, not PRECONDITION · Issue #489 · cloudfall-dev/cloudfall
X Title: A granted MCP run whose agent record can't be saved exits with an internal error, not PRECONDITION · Issue #489 · cloudfall-dev/cloudfall
Description: Found while reviewing #487 (S-018's granted path, #475). When the proposal store can't save a granted run's agent record, the OperatorError raised in GrantedRun.watch or begin escapes the MCP call as an internal error. D-5 handles the sa...
Open Graph Description: Found while reviewing #487 (S-018's granted path, #475). When the proposal store can't save a granted run's agent record, the OperatorError raised in GrantedRun.watch or begin escapes the MCP call ...
X Description: Found while reviewing #487 (S-018's granted path, #475). When the proposal store can't save a granted run's agent record, the OperatorError raised in GrantedRun.watch or begin escapes t...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/489
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A granted MCP run whose agent record can't be saved exits with an internal error, not PRECONDITION","articleBody":"Found while reviewing #487 (S-018's granted path, #475).\n\nWhen the proposal store can't save a granted run's agent record, the `OperatorError` raised in `GrantedRun.watch` or `begin` escapes the MCP call as an internal error. D-5 handles the same failure for `agent investigate` with `PRECONDITION` and an error naming the store folder.\n\n## Reproduce\n\n- Two identical granted calls (same tool, arguments and plan) made within the same second: the record id is the second plus the call's fingerprint, so the second call's save collides with the first's\n- Or a proposal store folder that isn't writable\n\nNo `ansible-playbook` starts in either case, so nothing runs on the servers. The agent gets an internal error instead of a refusal it can act on.\n\n## Expected\n\nThe call exits `PRECONDITION`, naming the store folder or the existing record, and runs nothing. Two granted runs in the same second get distinct ids, or the second refuses with a reason saying a run with the same id exists.\n\n## Touches\n\n- `sdk/src/cloudfall/app.py` (`_granted`), `sdk/src/cloudfall/agent_gate.py` (`GrantedRun`), and the record id in `sdk/src/cloudfall/operator.py` (`proposal_identifier`)\n\n\u003c!-- shipmill:agent -->\n","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-17T10:57:17Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/489"}
| 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:5eb871d4-0a83-b623-6acb-7264e1c6be3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89A6:245B83:E57112:138CB83:6B0554D1 |
| html-safe-nonce | b9db4083ee58bc3aa168184727e9051b6b3e69d818204816ae65c1bfa83d0305 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUE2OjI0NUI4MzpFNTcxMTI6MTM4Q0I4Mzo2QjA1NTREMSIsInZpc2l0b3JfaWQiOiI4MDEyNjEwNjQzMjU5OTA1MjMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ebba544f411c66f5f70bc1feea0b7109b8159a7f537e7ba14f87b445abc4f28f |
| hovercard-subject-tag | issue:6443001599 |
| 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/489/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a99a94227c648f7acd3a837f1693480f145fac6ffd1bd0bd72d0516f312b7b5/cloudfall-dev/cloudfall/issues/489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a99a94227c648f7acd3a837f1693480f145fac6ffd1bd0bd72d0516f312b7b5/cloudfall-dev/cloudfall/issues/489 |
| og:image:alt | Found while reviewing #487 (S-018's granted path, #475). When the proposal store can't save a granted run's agent record, the OperatorError raised in GrantedRun.watch or begin escapes the MCP call ... |
| 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