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:
@@ -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
|
# finalize.sh to merge into ci_metadata.json (AR-25). Falls back
|
||||||
# to the legacy inline AR-14a logic if the CLI is unavailable.
|
# to the legacy inline AR-14a logic if the CLI is unavailable.
|
||||||
mkdir -p /workspace/.agent-output
|
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 \
|
--workdir /workspace/project \
|
||||||
--branch "$AGENT_BRANCH" \
|
--branch "$AGENT_BRANCH" \
|
||||||
--upstream-url "${AGENT_UPSTREAM_REPO_URL:-}" \
|
--upstream-url "${AGENT_UPSTREAM_REPO_URL:-}" \
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ nodes:
|
|||||||
runtime_env:
|
runtime_env:
|
||||||
AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git"
|
AGENT_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes-agents.git"
|
||||||
AGENT_BRANCH: "spec/${item.uuid}"
|
AGENT_BRANCH: "spec/${item.uuid}"
|
||||||
|
AGENT_UPSTREAM_REPO_URL: "git@gitea.oreillyit.nz-ai-enablement:skynet/agent-runtimes.git"
|
||||||
|
AGENT_UPSTREAM_BRANCH: "main"
|
||||||
CP_URL: "https://agents.oreillyit.nz/api"
|
CP_URL: "https://agents.oreillyit.nz/api"
|
||||||
# The deliverable is a directory of plan files on disk — NOT a git diff.
|
# The deliverable is a directory of plan files on disk — NOT a git diff.
|
||||||
AGENT_EMPTY_DELIVERABLE_CHECK: "false"
|
AGENT_EMPTY_DELIVERABLE_CHECK: "false"
|
||||||
|
|||||||
Reference in New Issue
Block a user