Skip to content

fix(dev-harness): claim session ports by number, not offset - #14386

Merged
Git-on-my-level merged 1 commit into
mainfrom
task/msd-harness-port-claims
Sep 17, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
task/msd-harness-port-claims

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Exclusive-claim harness session ports by the actual TCP port numbers, including cross-role intersections, instead of only {offset}.json.
  • Offsets whose derived sets collide (the whole 100..5000 step-100 space, not two pinned values) cannot both hold claims; a partial claim rolls back.
  • Adds test_port_number_claims_are_exclusive_across_the_offset_space.

Test plan

  • bash scripts/dev-harness/run-tests.sh
  • python3 scripts/check_spine_contracts.py
  • make preflight

Failure-Class

Failure-Class: new

🤖 Generated with Claude Code

Review in cubic

Offsets whose role defaults sit 2700 apart derive the same TCP port, so exclusive-locking the offset identifier lets two sessions share 10080. Claim the actual port numbers, including cross-role intersections, and assert that property across the whole offset space.

Failure-Class: new
Co-authored-by: Cursor <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit c2f9ee2 into main Sep 17, 2026
42 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-harness-port-claims branch September 17, 2026 21:03
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