Repository navigation
Recover orphaned origin reservations and surface manual release - #2261
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Covers issue/legacy PR,
ci-red, PR and Release reservations on Linux and macOS. A Fix Pass can freeci-redand check Base branch CI immediately. ADR 0033 records the proof-of-death exception to ADR 0017; the manual and hand-written site pages describe recovery.Closes #1959
Evidence
Execution evidence
cargo test --test reservations a_pass_releases_dead_local_owners_of_every_reservation_kind_and_logs_the_blocked_work -- --exactfailed withdead owner still holds refs/heads/thirdshift/pickup/7.After: the same command passes:
1 passed; 0 failed.node /tmp/issue-1959-age-boundary.cjs, failed withReservation crossed 24 hours but did not appear until page reload. The same command now exits 0. The regression stays inconsole/tests/reservations.test.cjs.cargo fmt --checkandcargo clippy --all-targets -- -D warnings.RUST_TEST_THREADS=3 scripts/affected-tests refs/remotes/origin/mainpassed all 72 site and 260 Console checks. Full Rust validation after correcting the sandbox's Python setup usesRUST_TEST_THREADS=6 cargo test --no-fail-fast.review_a_cap_killed_tool_cannot_leave_a_successful_trialanda_scoped_hog_leaves_journal_oom_evidence. This host is Rocky Linux 9.8, which the supported-platforms policy covers for release smoke checks; the full CI suite targets Ubuntu. A clean build of pinned baseec313210, verified to exclude the new recovery code, reproduced the first failure on its fourth isolated run. The journal failure also occurs with a bare capped Python process, without invoking thirdshift. The OOM classifier and both tests are unchanged by this PR.390px remote review-explicit: visible PR target,false !== true).node --test console/tests/working-targets.test.cjsnow waits for visibility and passes, while still failing if the PR link remains absent.Seams tested: scheduled CLI commands against a bare origin and fake GitHub; native process/boot probes with conservative failure cases; shared status/Console output, observation refresh and Dismissal. Regressions cover lease races, PID reuse, reboot, all reservation kinds, same-Pass Base branch CI, malformed retained observations and the idle Console reporting deadline.
Native probes were executed on Linux. The macOS
sysctl/libprocpath is implemented but was not executed on this host.Visual evidence
Needs you, 1440×900 desktop:
Needs you, 390×844 mobile:
Review
Independent Standards and Spec reviews used
refs/remotes/origin/main(ec3132103bad062117651d9e43fd1378eba2bd6c) as the fixed point. Standards: 0 findings. Spec: 1 finding, reproduced and fixed with its regression retained. Both axes read 31 of the final 32 changed files, including the generated manual hunks. Generated-output exclusions: none.Unread by both axes:
console/tests/working-targets.test.cjs. Its late test-only change replaces an immediate visibility snapshot with a bounded visibility wait. It was added after each axis's permitted single follow-up and verified by its exact browser test.Security review covered
ec3132103bad062117651d9e43fd1378eba2bd6c...HEADand supporting code in one session, using guidance mode. No introduced Security findings were identified. Checks covered reservation ownership, native process probes, exact-SHA release leases, command construction, retained observations, Console escaping and Dismissal authorization. Existing compiled Linux test targets passed in a network-isolated, resource-limited sandbox:target/debug/deps/reservations-fb256949e56cd8cc --test-threads=1(8 passed, 2 fixture entry points ignored) andtarget/debug/deps/thirdshift-ef581c9738b72b20 reservation::recovery::tests --test-threads=1(2 passed). No source changes were needed. macOS probes were source-reviewed only.Unaddressed findings
Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: one-way
Automatic recovery deletes origin reservation refs when their recorded local owner is provably dead. An exact observed-SHA lease protects a concurrent retake; uncertain probes preserve the reservation.
Blast Radius: Fleet
Every scheduled Pass inspects its repository's reservations. Host ownership uses the recorded OS hostname and the host's PID namespace, as specified by the Day shift decision.
Built with codex codex-cli 0.169.0 · gpt-6.1-sol · xhigh
CI notes
api::release_url_keeps_api_openapi_and_cli_parityis unchanged by this PR and races the Console's background GitHub refresh (github_failure: nullversus an unauthenticatedgh api rate_limiterror); the identical failure occurred onmainatc58b4bfc, attempt 1. The exact targeted test passed locally, then reproduced the same mismatch on the second run with GitHub credentials removed.testandrust-x86 / completeonly reflect this partition failure; no code changes or CI re-runs were made.