Skip to content

fix(release): prune after a verified attribution pass - #83

Closed
rymiwe wants to merge 2 commits into
mainfrom
fix/attribution-pass-before-prune
Closed

rymiwe wants to merge 2 commits into
mainfrom
fix/attribution-pass-before-prune

Conversation

@rymiwe

@rymiwe rymiwe commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Why

Prune removed a Guild checkout as soon as the job process exited. A later attribution check then failed closed because the baseline still named that checkout.

What changed

guild-release prune --jobs-root keeps a release named by a settled job until Bridgekeeper's attribution pass verifies for that baseline. A verified pass or a verified failure lets pruning resume. A missing, bogus, or stale pass holds the release. When GUILD_ATTRIBUTION_GUARD is set, prune runs the guard first for a settled job that has no pass, so the proof is written while the checkout is still there. guild-update points that at current/bin/attribution-guard and passes ~/work-notes unless GUILD_JOBS_ROOT is set.

Verification

python3 tests/test_release_retention.py — 7 tests, OK.

rymiwe and others added 2 commits November 23, 2026 23:06
Prune was dropping a checkout as soon as the job process exited, so a later attribution check failed closed when that checkout was the recorded repository. A pass or a recorded failure from the guard lets pruning resume.

Co-authored-by: Cursor <cursoragent@cursor.com>
The installed guard checks and returns success without writing a pass until the signed-pass change is deployed. Prune keeps today's behavior for that result, and holds only when the check fails or a pass does not verify.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rymiwe

rymiwe commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Closing as superseded: commit attribution is approval/merge-blocking rather than review-feedback-blocking, and #47 already retains releases while a job is running through job-exit. Keeping the branch pushed in case post-exit retention is ever revisited.

@rymiwe rymiwe closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant