Agents Builders

Reserve foreign worktree ports

Archived
reserve-foreign-worktree-ports

Created

Jun 24, 19:29

DevOps handoff

Type

Chore

Shape

backend

Worktree Slug

reserve-foreign-worktree-ports

Repositories

mcritchie-studio

Release Train

Branch

feat/reserve-foreign-worktree-ports

Pull Request

Local URL

QA URL

Production URL

devops

Acceptance Criteria

  • Allocator skips configured foreign-reserved ports (rolio 3020)
  • up aborts on a foreign listener instead of adopting
  • Worktree alloc never silently collides with rolio

Expected Test Plan

  • [unit] allocate_port skips reserved ports + foreign-adoption guard

Checks Run

No completed checks recorded.

Agent Context

Worktree port allocator hands out ports a FOREIGN app occupies, and bin/agent-worktree up then silently adopts the foreign server. deployments-live-updates got 3020, but rolio runs on 3020 (rolio reserved a port INSIDE mcritchie's 3000-3099 band). allocate_port (~L505) skips currently-LISTENING ports, but rolio was down at allocation time so 3020 was handed out; rolio came up later and 'up' reported a healthy /up 200 that was actually ROLIO's (so /deployments 404'd). Fix: (1) reserved_ports exclusion that allocate_port skips even when the port is free now, seeded with 3020; (2) 'up' verifies a live listener is THIS worktree's stack before adopting, else aborts loudly. Stopgap until rolio moves to its proper 3300-3399 'next app' band per the operating-model port scheme.

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, 19:29 · 3 days ago
    api
  2. Designed Archived
    3
    317190da-2cf6-42fc-9204-eb1706b0e78c
    Model
    claude-opus-4-8
    Duration
    20 minutes
    Tokens
    Cost
    Started Jun 24, 19:29
    Completed Jun 24, 19:49 · 3 days 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