Skip to content

Record the host holding each Pickup reservation - #1347

Merged
JacobStephens2 merged 5 commits into
mainfrom
issue-1328
Oct 25, 2026
Merged

JacobStephens2 merged 5 commits into
mainfrom
issue-1328

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

 thirdshift Pickup reservation for <issue>
 Token: <unique-token>
+Host: <OS hostname>
 Launch: <directory>
 Process: <pid>
 Started: <time>

Record which machine holds each new Pickup reservation, using unknown when the OS cannot provide its name. Update ADR 0017 and the recovery documentation. Existing reservations remain valid: ownership uses the ref and SHA, and there is currently no reservation-message parser or metadata view in status, show or Inbox.

Closes #1328

Evidence

  • Merge validation at 592304ef: SYSTEMD_UNIT_PATH=/usr/lib/systemd/system /usr/bin/time -p scripts/affected-tests origin/main passes all 50 site tests and 3,071 Rust tests, with 69 existing skips. Rust execution took 1,936.167s; total wall time was 2,128.69s including compilation (Rust build: 2m05s). The merge preserves Host: in upstream's shared writer for numbered Pickup and CI-red filing reservations.
  • Focused merge checks: cargo check --bin thirdshift, cargo clippy --all-targets -- -D warnings, and cargo fmt --check pass. cargo test --test pickup_run passes 104 tests (one fixture ignored); cargo test --locked --test pickup_model -- --nocapture passes four (one intentionally ignored). Pickup verification remains in sync: claimed-dispatch safety passes and the known pre-Claim counterexample is retained.
  • CI repair validation at cc5e066c: cargo test --test skill partial_muse_and_opencode_messages_are_not_success -- --exact --nocapture passes. /usr/bin/time -p scripts/affected-tests origin/main passes 50 site tests and 3,065 Rust tests, with 69 existing Rust skips; Rust execution took 1,571.769s and total wall time was 1,723.02s including compilation (Rust compilation: 1m29s).
  • Before: cargo test --test pickup_run pickup_reservation_records_the_host_holding_it -- --exact failed because the published reservation omitted Host:.
    After: cargo test --test pickup_run reservation -- --nocapture passes all 7 reservation tests, including the hostname and legacy message cases.
  • cargo check --bin thirdshift passes.
  • /usr/bin/time -p scripts/affected-tests main passes: 50 site tests and 3,059 Rust tests, with 69 Rust tests skipped. Rust test execution took 1,509.034s; selector wall time was 1,705.42s including site checks and compilation (Rust compilation: 2m06s). Full output is retained in .thirdshift-review-KXZy6c/validation.log.
  • verify-pickup: in sync. cargo test --locked --test pickup_model -- --nocapture passes 4 tests, with 1 intentionally ignored. Claimed-dispatch safety passes. The explicit literal-property assertion and its no-claim-count / no-empty-lease mutations each exit 101 with the expected counterexample, as documented in the skill. Only commit metadata changed; protocol requests and ordering are unchanged.

CI notes

  • Linux test job: partial_muse_and_opencode_messages_are_not_success hit a pre-existing stdin race: its OpenCode stub exits without reading the prompt, allowing Broken pipe (os error 32) before the expected incomplete-turn error; tests/skill.rs, src/harness/opencode.rs and src/process.rs have identical Git blobs on this branch and origin/main (abc1e744), and the isolated test passes locally.

Seams under test

  • Pickup CLI against a real Git origin: read the published reservation commit while its Run is held; verify that it identifies the OS hostname.
  • Pickup CLI against an existing reservation on origin: a legacy commit without Host remains reserved and is never adopted or deleted.

Review coverage

Independent thirdshift-code-review against main: Standards 0 findings; Spec 0 findings. Both reviewers read all six changed files, including generated HTML. Unread changed files: none. Generated-output exclusions: none.

Reports and final files-read lists: .thirdshift-review-KXZy6c/standards.md, .thirdshift-review-KXZy6c/spec.md; counts in summary.json beside them, retained with the Session evidence.

Unaddressed findings

Standards

None.

Spec

None.

Security

None. Guidance-mode review of the dde1f00...HEAD diff: the only executable change is the added Host: line in the reservation commit (src/pickup/reservation.rs via crate::host::name()); ownership still rests on the ref and token lease, nothing parses the message, and the hostname is passed as a commit-tree argv (no shell). Hostname disclosure to origin readers adds nothing beyond the already-published Launch: path, and the writer and hostname owner are the same principal. Reservation tests pass on HEAD (pickup_reservation_records_the_host_holding_it, pickup_reservation_does_not_publish_unrelated_local_head, a_legacy_reservation_without_a_host_is_not_stolen). No introduced finding, so nothing is unaddressed.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

The added commit-message field can be rolled back without changing reservation ownership or release.

Blast Radius: Pickup

Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit c516202 into main Oct 25, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1328 branch October 25, 2026 21:13
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 26, 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.

The Pickup reservation records which machine holds it

1 participant