Repository navigation
Closed
Labels
agent/doneThe agent finished successfully; PR opened or comment posted.area/buildBuild system, jnode.properties, plugin lists, ant targets.kind/bugConfirmed bug report with a repro or stack trace.
Description
Follow-up from PR #981 / issue #870.
The pinned anomalyco/opencode/github@v1.19.6 still runs an unauthenticated curl -sf https://api.github.com/repos/anomalyco/opencode/releases/latest (no --max-time) in its Get opencode version composite step. Under rate limiting that curl fails in 81-138 ms; because the step is the last command under set -e, the whole composite action fails and steps.run_agent.outcome becomes failure, so .github/scripts/opencode-post-step.js applies agent/failed even though no agent ran.
This is indistinguishable from a genuine agent failure. Fix options: make the version step non-fatal with an authenticated/retried fetch, or expose a run_agent.version signal so the post-step can tell the two apart.
Refs #870
Triage Addendum (auto, 2026-11-21)
- Area / Kind: area/build + kind/bug
- Blast radius: L2 (CI tooling: post-step script + three workflow call sites + tests; no JNode source, boot path, or public API)
- Expected scope: Make a
run_agent.versionfailure distinguishable from an agent failure: either preflight/retry the release fetch with auth in the three workflows, or vendor/patch the pinned action version step so it is non-fatal; teachopencode-post-step.jsto avoidagent/failedwhen the agent step never ran, withopencode-post-step.test.jscases for both paths. Keepopencode.yml,triage.yml,wiki-update.ymlconsistent. No-go: JNode sources/ASM/public API, model-config changes, short agent-step timeout (5m killed legitimate runs), unrelated workflow reformatting. - Test path:
node --test .github/scripts/tests/*.test.js(.github/AGENTS.md:308), then one live/ocrun proving the agent step still executes and genuine failures still labelagent/failed. - Merge signal: human-review (bug; CI label/closure behavior and a choice between vendoring vs preflight/post-step, even though scope is small)
- Gaps: non-blocking: choose the fix shape (preflight/auth fetch vs vendored patch vs post-step signal); confirm whether the composite inner
run_agent.versionstep is visible to the post-step or needs a workflow-level signal; decide the infrastructure-failure label (agent/blockedvs no label plus comment) - it must not beagent/failed. Acceptance criteria are absent from the body; the expected scope above supplies them. - Full report:
## Triagecomment below.
✅ Ticket Runner Status
| Field | Value |
|---|---|
| Phase | DONE |
| Turn | 1/7 |
| Retries | 0/3 |
| PR | #983 |
| Review in progress | no |
| Started | 2026-11-21T09:39:08.108Z |
Metadata
Metadata
Assignees
Labels
agent/doneThe agent finished successfully; PR opened or comment posted.area/buildBuild system, jnode.properties, plugin lists, ant targets.kind/bugConfirmed bug report with a repro or stack trace.
Activity
LSantha commentedon Nov 21, 2026
/oc triage issue #982
Triage run ONLY. Load the jnode-triage-issue skill and obey it. Output is exactly one ## Triage comment plus kind/area label edits. FORBIDDEN in this run: git checkout -b, git push, gh pr create, any branch, any PR.
LSantha commentedon Nov 21, 2026
Triage
.github/workflows/*.yml+.github/scripts/opencode-post-step.js);area/buildaddedanomalyco/opencode/github@v1.19.6runs an unauthenticatedcurl -sf https://api.github.com/repos/anomalyco/opencode/releases/latest(no--max-time) inrun_agent.version; rate limiting makes it exit 1 in 81-138 ms underset -e,run_agentbecomesfailure, andopencode-post-step.jsappliesagent/failedwith no agent run. Evidence in factory: the vendored opencode action's version step uses an unauthenticated curl, which fails or hangs and takes down every agent run #870 / PR #870 - Pinned opencode action; added timeouts/tests #981. Not a duplicate: factory: the vendored opencode action's version step uses an unauthenticated curl, which fails or hangs and takes down every agent run #870/PR #870 - Pinned opencode action; added timeouts/tests #981 pin the ref; this is the residual internal curl.PREV_CONCLUSION=failure, distinguish a failed/skippedrun_agent.versionfrom a failedrun_agent.run_opencodeinopencode-post-step.jsand avoidagent/failedfor the former; if inner composite steps are not exposed to the post-step, add a workflow-level preflight/signal inopencode.yml,triage.yml, andwiki-update.yml(authenticated, retried release fetch, or vendored action patch making the version step non-fatal). Extendopencode-post-step.test.jsfor both paths. No-go: JNode sources/ASM/public API, model-config changes, short agent-step timeout (5m killed legitimate runs), unrelated workflow reformatting.node --test .github/scripts/tests/*.test.js(.github/AGENTS.md:308), then one live/ocrun proving the agent step still executes and genuine agent failures still labelagent/failed.run_agent.versionstep is visible to the post-step via the Actions API; choose the infrastructure-failure label (agent/blockedvs no label plus comment) - it must not beagent/failed; body has no acceptance criteria, the expected scope supplies them.github run
LSantha commentedon Nov 21, 2026
/oc Please proceed with this task.
#870 - Pinned opencode action; added timeouts/tests (#981)
LSantha commentedon Nov 21, 2026
Fix direction for this ticket (from the maintainer, based on the PR #981 review round):
Goal: a version-step fast-fail must be distinguishable from an agent failure, and must fail in minutes rather than at the job timeout.
Smallest change that meets it:
run_agentstep in.github/workflows/opencode.yml,triage.ymlandwiki-update.ymlthat hits the same endpoint authenticated (gh api repos/anomalyco/opencode/releases/latest --jq .tag_name) withtimeout-minutes: 2. Name it so the failure is self-describing, e.g.Preflight: action release endpoint. If it fails, every later step skips withsteps.preflight.outcome == 'failure'as the cause..github/scripts/opencode-post-step.jsto read that step's outcome: when the preflight failed (or when the agent step failed before producing any work), label/comment naming the version-step cause instead ofagent/failed. Keep the existing behavior for genuine agent failures.node:testtests in.github/scripts/tests/following the existing wiring-test pattern (assert the step exists in all three workflows, its timeout, and that the post-step reasons correctly for each combination of outcomes).Out of scope: pinning the action (done in PR #981) and the hardcoded model in
wiki-update.yml(separate defect, not this ticket).LSantha commentedon Nov 21, 2026
/run
LSantha commentedon Nov 21, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 21, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 21, 2026
Created PR #983
github run