fix(agent-repo): AR-39b run base selector by absolute path; seed scope-decompose@2 from upstream

init.sh invoked 'python3 -m entrypoint.agent_repo_base' from /workspace/project, so a project
repo's own entrypoint/ shadowed the image's and the selector crashed. Invoke the image copy by
path. scope-decompose-sonnet@2 gains AGENT_UPSTREAM_REPO_URL/BRANCH so fresh spec branches seed
from upstream main instead of the stale fork main.

Claude-Session: https://claude.ai/code/session_01N218bERyNeLhbLmDRDvbWF
This commit is contained in:
Paul O'Reilly
2026-10-02 14:54:37 +13:00
parent fce343cea1
commit c91813de96
2 changed files with 3 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ if [ -n "${AGENT_REPO_URL:-}" ] && [ -n "${AGENT_BRANCH:-}" ]; then
# finalize.sh to merge into ci_metadata.json (AR-25). Falls back
# to the legacy inline AR-14a logic if the CLI is unavailable.
mkdir -p /workspace/.agent-output
AR39_OUT=$(python3 -m entrypoint.agent_repo_base select-base \
AR39_OUT=$(python3 /opt/agent/agent_repo_base.py select-base \
--workdir /workspace/project \
--branch "$AGENT_BRANCH" \
--upstream-url "${AGENT_UPSTREAM_REPO_URL:-}" \