Agents Builders

Reserve foreign worktree ports

Archived
reserve-foreign-ports

Created

Jun 24, 20:20

Started

Jun 24, 20:20

Completed

Jun 24, 22:57

DevOps handoff

Type

Chore

Shape

backend

Worktree Slug

reserve-foreign-ports

Repositories

mcritchie-studio

Release Train

2026-06-24-devops-debts

Branch

feat/reserve-foreign-ports

Local URL

QA URL

Production URL

devops

Acceptance Criteria

  • Allocator skips configured reserved ports, not just live
  • Reserve rolio 3020 out of mcritchie port band
  • up aborts on a foreign process holding the port
  • Adoption verifies the listener cwd is the worktree

Expected Test Plan

  • [unit] allocate_port reserved-skip + foreign-adoption cwd guard

Checks Run

  • [unit] allocate_port reserved-skip + own_stack_on_port? cwd guard (5 cases) green
  • [integration] real mcritchie config reserves 3020 through merge; allocate skips to 3021
  • full suite 1545 runs 0 failures; rubocop clean; ruby -c OK

Agent Context

Root cause: deployments-live-updates was allocated 3020, which rolio squats (rolio reserved a port INSIDE mcritchie's 3000-3099 band). allocate_port (bin/agent-worktree ~L505) skips live listeners but rolio was down at allocation; then start_generic_rails (~L763/772) blindly adopted rolio's process on 3020 -> bogus /up 200, /deployments 404. Fix 1: reserved_ports exclusion in APP_OVERRIDES + allocate_port. Fix 2: cwd-based own-stack guard before adoption; abort loudly on a foreign process. Stopgap - rolio should move to the 3300-3399 next-app band. Unit test mirrors test/lib/release_cli_test.rb subprocess-load.

Stage Timeline

Who handled each stage, the time it took (measured), and the model / tokens / cost reported (best-effort) — plus who's on it right now. means the agent didn't report that metric.

  1. Created Designed
    G Golem
    Golem
    Model
    Duration
    Tokens
    Cost
    Completed Jun 24, 20:20 · 3 days ago
    api
  2. Designed Building
    G Golem
    Golem
    Model
    claude-opus-4-8
    Duration
    under a minute
    Tokens
    Cost
    Started Jun 24, 20:20
    Completed Jun 24, 20:20 · 3 days ago
    cli
  3. Building Submitted
    G Golem
    Golem
    Model
    claude-opus-4-8
    Duration
    7 minutes
    Tokens
    Cost
    Started Jun 24, 20:20
    Completed Jun 24, 20:27 · 3 days ago
    cli
  4. Submitted Reviewed
    C Carl
    Carl primary
    J Jasper
    Jasper light
    Model
    claude-opus-4-8
    Duration
    about 2 hours
    Tokens
    43,454,881
    Cost
    ~$40.69
    Started Jun 24, 20:27
    Completed Jun 24, 22:14 · 2 days ago
    cli
  5. Reviewed Shipped
    3
    317190da-2cf6-42fc-9204-eb1706b0e78c
    Model
    claude-opus-4-8
    Duration
    43 minutes
    Tokens
    79,905,911
    Cost
    ~$51.74
    Started Jun 24, 22:14
    Completed Jun 24, 22:57 · 2 days ago
    cli
  6. Shipped Archived
    8
    81fad33e-98b5-4075-8ed6-d0efe6cb5804
    Model
    claude-opus-4-8
    Duration
    about 22 hours
    Tokens
    Cost
    Started Jun 24, 22:57
    Completed Jun 25, 21:16 · 1 day ago
    cli

Conversation

QA review feedback, agent handoffs, and follow-up notes for this task.

No task feedback has been recorded yet.

Sealed-bid sizing

Edit →

Alex (PM)

Avi (PO)

Dev

Actual