fix: reference local composite actions by full URL so agent jobs resolve preflight #16
No reviewers
Labels
No labels
agent
coordinate
agent
dev
agent
plan
agent
reflect
agent
test
agent
triage
ai/off
blocked
night
blocked
usage
loop
1
loop
2
loop
3
needs/approval
needs/human
needs/input
needs/review
plan/approved
run/night
state
blocked
state
building
state
passed
state
planning
state
testing
tier
fable
tier
haiku
tier
local
tier
opus
tier
sonnet
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
valssi-public/agent-workflows!16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/local-composite-full-url"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Applying
agent/plan(etc.) triggered the run, but every route failed at its first step — the composite actionvalssi-public/agent-workflows/lib/preflight@main— leaving the command label on the issue and posting nothing (no plan, no failure comment). Seen live onvalssi-ai/devagentissue #4.Root cause (an instance-resolution issue, not the event-semantics bugs)
Forgejo resolves a bare
uses: owner/repo/path@refcomposite action against[actions] DEFAULT_ACTIONS_URL. This instance doesn't set it, so it defaults tohttps://code.forgejo.org, wherevalssi-public/agent-workflowsdoesn't exist:Reusable workflows (
dispatch → plan/dev/… via .forgejo/workflows/*.yaml@main) already resolve on the local instance — which is whyresolveran and masked this. Only the composite action refs (lib/preflight,lib/state) hitDEFAULT_ACTIONS_URL.Fix
Pin the 11 local composite refs to the instance's full URL (
https://git.valssi.eu/valssi-public/agent-workflows/lib/…@main) acrossplan/dev/test/coordinate/reflect.yaml. Full-URLuses:resolves directly against the instance regardless ofDEFAULT_ACTIONS_URL— no instance-wide config change and no mirroring ofactions/*required. Reusable-workflow refs andactions/checkout@v4are unchanged.Verified
On a Forgejo 15.0.5 + runner 12.10.1 test instance under the prod-breaking
DEFAULT_ACTIONS_URL=code.forgejo.org:repository not found,planfails, label stuck, 0 comments (reproduces prod);git fetches the composite from the instance,preflightruns (proceed=true), plan comment posted, labels transitionagent/plan → needs/approval + state/planning.Runner log (full-URL run):
Alternative considered
Setting
DEFAULT_ACTIONS_URL=selfalso fixes it, but then all bareactions/*(e.g.actions/checkout) must be mirrored locally. This PR is the lower-blast-radius option: workflow-only, no instance/runner change.🤖 Generated with Claude Code