You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bugfix builders waste turns discovering their own project ID #332
Every bugfix builder starts with the same wasteful pattern:
Reads protocol file
Runs porch status — fails ("Cannot determine project ID")
Runs porch next — fails (same error)
Tries porch status bugfix-326 — fails ("Project bugfix-326 not found")
Reads more files to figure out its own identity
This burns 4-5 turns before the builder does any actual work.
Root Cause
The builder's Claude session starts in the worktree directory but porch can't auto-detect the project ID from the worktree path. The porch state exists (initialized by af spawn) but the builder doesn't know what ID to pass.
Desired Behavior
When af spawn creates the terminal session and sends the initial prompt, the builder should already know its project ID. Options:
Set an env var at spawn time: PORCH_PROJECT_ID=bugfix-324 so porch status auto-detects
Include the ID in the initial prompt: The porch-driven prompt already exists — ensure it contains the project ID prominently
Make porch detect from worktree path: Parse .builders/bugfix-324-* → project ID bugfix-324
Option 3 would fix it for all cases. Option 1 is simplest.
Impact
Every strict-mode bugfix builder wastes ~30 seconds and 4-5 API turns on self-discovery before starting work.
Activity
waleedkadous commentedon Feb 16, 2026
On it! Working on a fix now.
[Bugfix #332] Fix: Align porch project ID with CWD detection for bugf…
Merge pull request #337 from cluesmith/builder/bugfix-332-bugfix-buil…