René's URL Explorer Experiment


Title: Name a granted run's lost record in the error the agent receives by shipmill-romamo[bot] · Pull Request #520 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Name a granted run's lost record in the error the agent receives by shipmill-romamo[bot] · Pull Request #520 · cloudfall-dev/cloudfall

X Title: Name a granted run's lost record in the error the agent receives by shipmill-romamo[bot] · Pull Request #520 · cloudfall-dev/cloudfall

Description: Summary When a granted (or person-approved) MCP run's agent record can't be saved after the run started, #491 attached the store error to the run's exception with add_note. treaty builds the envelope from the exception and drops notes, so the agent never learned the record was left running. Now _record_failure puts the lost record in the envelope the agent receives: The run's own CliExit (or ParseError) keeps its exit code, message and context, and gains context.record_lost A run that crashed with any other Exception exits as treaty would answer a crash, exit 1 and HANDLER_CRASHED, with context.exception and context.record_lost; it is raised from the original exception A BaseException that isn't an Exception (cancellation, interrupt) keeps the exit treaty gives it, with the note as before context.record_lost holds code (agent_record_unwritable), store (the folder), record (the path), last_saved (the status this run last wrote, tracked by GrantedRun; running here) and error (the store error). It says only what the run wrote, not what the file reads now: the store folder may be gone. The PRECONDITION refusal when the first save fails (before any engine step) and the settle-lost path from #491 are unchanged. Plan Serves: quality bar (Q-1) Files: sdk/src/cloudfall/app.py (_record_failure), sdk/src/cloudfall/agent_gate.py (GrantedRun.lost, last saved status), sdk/tests/test_s018_granted_run.py, changelog.d/496-granted-record-lost-error.md Order: failing tests first (over MCP, a failed and a crashed deploy whose store folder is replaced mid-run; in process, a CliExit and an OSError), then the fix in GrantedRun and _record_failure Proof: test_a_failed_run_whose_record_is_lost_tells_the_agent_over_mcp and test_a_crashed_run_whose_record_is_lost_tells_the_agent_over_mcp read the envelope cloudfall mcp serve returns; with two in-process tests they fail on main and pass here Test notes The two MCP tests use the stand-in deploy engine: its playbook replaces the proposal store with a file, then fails the health gate (ENGINE_STEP_FAILED) or, healthy, puts a folder where the component lock was, so the lock's release raises IsADirectoryError (a real crash, no monkeypatching) All four new or changed tests fail on origin/main (no record_lost in the envelope; the crash reads Command deploy raised ... with no context) uv run pytest sdk/tests/test_s018_granted_run.py sdk/tests/test_s018_agent_approve.py sdk/tests/test_s018_agent_gate.py sdk/tests/test_s018_ungranted_call.py: 86 passed. No engine test imports cloudfall.app or cloudfall.agent_gate. The full suite is left to CI uv run ruff check on the touched files and uv run mypy pass. ruff format --check flags only lines this PR doesn't touch (main isn't format-clean in these files, and CI runs ruff check only); they were left as they are to keep the diff focused Output changes Additive: error.context.record_lost on the lost-record path A crash on that path keeps exit 1 and HANDLER_CRASHED, but its message now reads The run raised : ... instead of Command raised : ..., its context drops command, and no traceback goes to stderr (as D-5 has it for agent investigate) Fixes #496 🤖 Generated with Claude Code

Open Graph Description: Summary When a granted (or person-approved) MCP run's agent record can't be saved after the run started, #491 attached the store error to the run's exception with add_note. treaty build...

X Description: Summary When a granted (or person-approved) MCP run's agent record can't be saved after the run started, #491 attached the store error to the run's exception with add_note. ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.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:fdc36fd9-db7c-5854-9b75-82a7528b4b9a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC716:25853D:285727C:34B68A5:6B055908
html-safe-nonce748cebac1074da0560433f6fe9155a59f00dedf48f184ec8a49206899e38fe74
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzE2OjI1ODUzRDoyODU3MjdDOjM0QjY4QTU6NkIwNTU5MDgiLCJ2aXNpdG9yX2lkIjoiMTAxNjY5NDU0OTc1MTYxNzgwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac95298118c7a792962bbaffae74cf82ec2e05f403a45feb414038c73007e82756
hovercard-subject-tagpull_request:5359652383
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/520/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:altSummary When a granted (or person-approved) MCP run's agent record can't be saved after the run started, #491 attached the store error to the run's exception with add_note. treaty build...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
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
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/520/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F520%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%2F520%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/520/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/520/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/520/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
fix/496-granted-record-lost-errorhttps://github.com/cloudfall-dev/cloudfall/tree/fix/496-granted-record-lost-error
Conversation 1 https://github.com/cloudfall-dev/cloudfall/pull/520
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/520/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/520/checks
Files changed 4 https://github.com/cloudfall-dev/cloudfall/pull/520/files
Name a granted run's lost record in the error the agent receives https://github.com/cloudfall-dev/cloudfall/pull/520/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/520/files
6d417df Name a granted run's lost record in the error the agent receives shipmill-romamo[bot] Nov 17, 2026 https://github.com/cloudfall-dev/cloudfall/pull/520/commits/6d417df9e222d257b876f6a8d29419ee49da2f46
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/520/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/520/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/520/files
496-granted-record-lost-error.md https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-866dc4d880e8f3334515a3d6539c997fe117761dd8cf8f491b597304bf53b075
agent_gate.py https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
app.py https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
test_s018_granted_run.py https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
changelog.d/496-granted-record-lost-error.mdhttps://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-866dc4d880e8f3334515a3d6539c997fe117761dd8cf8f491b597304bf53b075
View file https://github.com/cloudfall-dev/cloudfall/blob/6d417df9e222d257b876f6a8d29419ee49da2f46/changelog.d/496-granted-record-lost-error.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/520/{{ revealButtonHref }}
sdk/src/cloudfall/agent_gate.pyhttps://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
View file https://github.com/cloudfall-dev/cloudfall/blob/6d417df9e222d257b876f6a8d29419ee49da2f46/sdk/src/cloudfall/agent_gate.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/520/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-bda2a192ff1307dc3ea6d35568a0b94441cb622b16b2f7458492d83a853d58a2
sdk/src/cloudfall/app.pyhttps://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
View file https://github.com/cloudfall-dev/cloudfall/blob/6d417df9e222d257b876f6a8d29419ee49da2f46/sdk/src/cloudfall/app.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/520/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-80944e9d32bf3de16b8f897a076d9413719c085027f33cffff3fd7b0358d8763
sdk/tests/test_s018_granted_run.pyhttps://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
View file https://github.com/cloudfall-dev/cloudfall/blob/6d417df9e222d257b876f6a8d29419ee49da2f46/sdk/tests/test_s018_granted_run.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/520/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
https://github.com/cloudfall-dev/cloudfall/pull/520/files#diff-e5c0faf3af6c0aa2e7e93a2dcab10957e1da6f54c9fe160638ca3c480b8c534c
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/520/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.