René's URL Explorer Experiment


Title: Decision and proposal records are written non-atomically, and a run killed midway can be approved again · Issue #217 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Decision and proposal records are written non-atomically, and a run killed midway can be approved again · Issue #217 · cloudfall-dev/cloudfall

X Title: Decision and proposal records are written non-atomically, and a run killed midway can be approved again · Issue #217 · cloudfall-dev/cloudfall

Description: Problem DecisionStore (sdk/src/cloudfall/decision.py) and ProposalStore (sdk/src/cloudfall/operator.py) write a record with Path.write_text, with no temporary file, no rename and no lock. A crash or a full disk mid-write leaves a truncat...

Open Graph Description: Problem DecisionStore (sdk/src/cloudfall/decision.py) and ProposalStore (sdk/src/cloudfall/operator.py) write a record with Path.write_text, with no temporary file, no rename and no lock. A crash o...

X Description: Problem DecisionStore (sdk/src/cloudfall/decision.py) and ProposalStore (sdk/src/cloudfall/operator.py) write a record with Path.write_text, with no temporary file, no rename and no lock. A crash o...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/217

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decision and proposal records are written non-atomically, and a run killed midway can be approved again","articleBody":"## Problem\n\n`DecisionStore` (`sdk/src/cloudfall/decision.py`) and `ProposalStore` (`sdk/src/cloudfall/operator.py`) write a record with `Path.write_text`, with no temporary file, no rename and no lock.\n\n- A crash or a full disk mid-write leaves a truncated JSON file, and the next `list()` fails on it\n- Two processes updating the same record (an operator pass and a person's `approve`) overwrite each other\n- `decision.approve()` writes the approval only after the playbook and its verify step ran. A process killed mid-run leaves the decision `proposed` with no trace that execution started, so it can be approved and run a second time\n- `save()` checks `path.exists()` and then writes, so two proposals with the same id race\n\n## Proposal\n\n- Write through a temporary file in the same directory and `os.replace`, creating new records with `O_EXCL`\n- Take a lock file per store for the read-modify-write of one record\n- Record the approval and a `running` status before the first playbook starts; a record found `running` with no outcome is reported as interrupted and is not approvable again\n- One shared store implementation for decisions and proposals, since the two are near copies\n\nProof: a test that kills the runner mid-execution and then shows `decisions approve` refusing the record; a test that truncates one record and shows the store still listing the others (see the companion issue on unreadable records).\n","author":{"url":"https://github.com/romamo","@type":"Person","name":"romamo"},"datePublished":"2026-11-13T08:19:19Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/217"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:aac35a09-76ec-138c-1b87-76f3475669f7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCCEC:1204FD:2780215:33CFFA7:6B0558DD
html-safe-nonced20bf063a81c180e0a5890a6b434e30ac7fa2fdc00175838eb6674b2baf9c4ff
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0VDOjEyMDRGRDoyNzgwMjE1OjMzQ0ZGQTc6NkIwNTU4REQiLCJ2aXNpdG9yX2lkIjoiODc0NTM4MzQxNDU4NjQ5NzI0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5127523f355f3e1d5379b68ff4a61d8ffeb8c9168f444311825b120de61ab437
hovercard-subject-tagissue:6367602387
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/217/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fe6f41a8bb270c51e8df8568087cae28ca3b242936c632c083fefce96c6c4bfe/cloudfall-dev/cloudfall/issues/217
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fe6f41a8bb270c51e8df8568087cae28ca3b242936c632c083fefce96c6c4bfe/cloudfall-dev/cloudfall/issues/217
og:image:altProblem DecisionStore (sdk/src/cloudfall/decision.py) and ProposalStore (sdk/src/cloudfall/operator.py) write a record with Path.write_text, with no temporary file, no rename and no lock. A crash o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameromamo
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/issues/217#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fissues%2F217
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%2Fissues%2F217
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/217
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/217
Reloadhttps://github.com/cloudfall-dev/cloudfall/issues/217
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
https://github.com/cloudfall-dev/cloudfall
New issuehttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/217
New issuehttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/217
#237https://github.com/cloudfall-dev/cloudfall/pull/237
Decision and proposal records are written non-atomically, and a run killed midway can be approved againhttps://github.com/cloudfall-dev/cloudfall/issues/217#top
#237https://github.com/cloudfall-dev/cloudfall/pull/237
bughttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/romamo
romamohttps://github.com/romamo
on Nov 13, 2026https://github.com/cloudfall-dev/cloudfall/issues/217#issue-6367602387
romamohttps://github.com/romamo
bughttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 13, 2026https://github.com/cloudfall-dev/cloudfall/issues/217#event-36007416538
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Nov 13, 2026https://github.com/cloudfall-dev/cloudfall/issues/217#issuecomment-6848349248
shipmill-romamohttps://github.com/shipmill/shipmill
#218https://github.com/cloudfall-dev/cloudfall/issues/218
One unreadable record blocks the whole record store, and old records have no compatibility test #218https://github.com/cloudfall-dev/cloudfall/issues/218
#230https://github.com/cloudfall-dev/cloudfall/issues/230
#190https://github.com/cloudfall-dev/cloudfall/issues/190
https://github.com/apps/shipmill-romamo
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Nov 13, 2026https://github.com/cloudfall-dev/cloudfall/issues/217#issuecomment-6849056101
shipmill-romamohttps://github.com/shipmill/shipmill
#237https://github.com/cloudfall-dev/cloudfall/pull/237
#237https://github.com/cloudfall-dev/cloudfall/pull/237
shipmill-romamohttps://github.com/apps/shipmill-romamo
on Nov 13, 2026https://github.com/cloudfall-dev/cloudfall/issues/217#event-36013801794
Write records atomically and record an approval before its run startshttps://github.com/cloudfall-dev/cloudfall/commit/b8dececd5489029b5977de2ece904608f66d9600
https://docs.github.com/articles/closing-issues-via-commit-messages
b8decechttps://github.com/cloudfall-dev/cloudfall/commit/b8dececd5489029b5977de2ece904608f66d9600
shipmill-romamohttps://github.com/apps/shipmill-romamo
completedhttps://github.com/cloudfall-dev/cloudfall/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
b8decechttps://github.com/cloudfall-dev/cloudfall/commit/b8dececd5489029b5977de2ece904608f66d9600
on Nov 13, 2026https://github.com/cloudfall-dev/cloudfall/issues/217#event-36015554442
Sign up for freehttps://github.com/signup?return_to=https://github.com/cloudfall-dev/cloudfall/issues/217
Sign in to commenthttps://github.com/login?return_to=https://github.com/cloudfall-dev/cloudfall/issues/217
bughttps://github.com/cloudfall-dev/cloudfall/issues?q=state%3Aopen%20label%3A%22bug%22
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.