Title: Two proposals of one operation in the same second share an id, and the second overwrites the first one's diff · Issue #356 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: Two proposals of one operation in the same second share an id, and the second overwrites the first one's diff · Issue #356 · cloudfall-dev/cloudfall
X Title: Two proposals of one operation in the same second share an id, and the second overwrites the first one's diff · Issue #356 · cloudfall-dev/cloudfall
Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem _decision_identifier in sdk/src/cloudfall/decision.py (about line 1276) builds the id as
Open Graph Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem _decision_identifier in sdk/src/cloudfall/decision.py (about line 1276) builds the id as
X Description: Found in a whole-project review at 03e2faa (0.8.0rc45). Problem _decision_identifier in sdk/src/cloudfall/decision.py (about line 1276) builds the id as <operation>-<YYYYmmddHHMMSS>. Th...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/356
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Two proposals of one operation in the same second share an id, and the second overwrites the first one's diff","articleBody":"Found in a whole-project review at 03e2faa (0.8.0rc45).\n\n## Problem\n\n`_decision_identifier` in `sdk/src/cloudfall/decision.py` (about line 1276) builds the id as `\u003coperation>-\u003cYYYYmmddHHMMSS>`. The propose path derives the diff and host-stats paths from that id and runs the check before the record is saved, with no lock over the whole step.\n\nTwo proposals of the same operation in one second (for two hosts, from two agent sessions) get the same id: the second run overwrites the first one's diff file, then its save fails as \"already exists\". The first decision stays on record with the second one's diff, and that is what the approver reads.\n\n## Proposal\n\n- Make the id unique: add a short random suffix, or reserve the id by creating the record exclusively before the check run writes anything\n- A test: two proposals at the same clock value produce two records, each with its own diff\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-15T16:02:29Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/356"}
| 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:de5f8ea2-9076-80a1-eee0-d314b3798851 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B602:1FA7DB:700225:9B9075:6B0596B1 |
| html-safe-nonce | 17896d3905f40c0790e746b8b455ff02ac65927a561aa228f4afa316b8b7e23d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjAyOjFGQTdEQjo3MDAyMjU6OUI5MDc1OjZCMDU5NkIxIiwidmlzaXRvcl9pZCI6IjQwMjY1MjIzODQyNzc1NDI1NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dee3defd4a52a122b5538690808bfdd1da32439bdc4036df709204022fff4548 |
| hovercard-subject-tag | issue:6406205771 |
| 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/356/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e82f01550321e4b70e007e3844a3d977d7676141447ab75a9ad7e850b9b12e8/cloudfall-dev/cloudfall/issues/356 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e82f01550321e4b70e007e3844a3d977d7676141447ab75a9ad7e850b9b12e8/cloudfall-dev/cloudfall/issues/356 |
| og:image:alt | Found in a whole-project review at 03e2faa (0.8.0rc45). Problem _decision_identifier in sdk/src/cloudfall/decision.py (about line 1276) builds the id as |
| 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 | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| 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 | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| 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