ci: pull_request trigger stuck again (#43) — no runner task for PRs, re-register ci.yml on main #165

Open
opened 2026-09-25 20:24:31 +00:00 by matou-build-agent · 2 comments

Symptom

Forgejo has silently stopped firing pull_request events (the documented #43
stuck-trigger, called out in .forgejo/workflows/ci.yml's header comment). PR
#164 (for #159) gets a ci / seam (pull_request) commit status created (state
pending/null) but no runner task is ever created, so the seam never runs and
the PR can never go green / be merged by the agent-after-green authority.

Evidence (2026-09-25 ~20:22Z):

  • commits/<sha>/statuses → ci / seam (pull_request) null for both ed31fb2
    and the re-fire commit 8562501.
  • actions/tasks shows zero tasks for head #164; the most recent
    pull_request task is #157 at 15:23Z (~5h earlier) while push (main) tasks
    keep succeeding — i.e. only the pull_request trigger is dead.
  • Per-PR remedies from the ci.yml note did NOT help: close/reopen the PR, and an
    empty commit push (synchronize) — each created a fresh pending status but no task.

Proposed fix

Operator action per the ci.yml header comment: push .forgejo/workflows/ci.yml
to main
to re-register every trigger (append a re-registration marker
2026-09-25 #43). If the push does not take, the runner / event-source needs an
operator restart. After re-registration, PR #164 needs a fresh pull_request
event (empty commit to its branch or reopen) to get a live seam run.

Agents cannot do this: .forgejo/ is a protected path and this repo is
LANDING=pr (no direct push to main).

Context

Hit while working #159 (vendor IDSS --oc-* tokens into site/). That PR (#164)
is complete and green locally (pnpm -r typecheck, pnpm test, pnpm --filter @coa/site build all pass) — it is blocked ONLY on this dead CI trigger. #159 is
being handed off agent-blocked pending this fix.

## Symptom Forgejo has silently stopped firing `pull_request` events (the documented `#43` stuck-trigger, called out in `.forgejo/workflows/ci.yml`'s header comment). PR #164 (for #159) gets a `ci / seam (pull_request)` commit status created (state `pending`/null) but **no runner task is ever created**, so the seam never runs and the PR can never go green / be merged by the `agent-after-green` authority. Evidence (2026-09-25 ~20:22Z): - `commits/<sha>/statuses` → `ci / seam (pull_request) null` for both `ed31fb2` and the re-fire commit `8562501`. - `actions/tasks` shows **zero** tasks for head `#164`; the most recent `pull_request` task is `#157` at 15:23Z (~5h earlier) while `push` (main) tasks keep succeeding — i.e. only the `pull_request` trigger is dead. - Per-PR remedies from the ci.yml note did NOT help: close/reopen the PR, and an empty commit push (`synchronize`) — each created a fresh pending status but no task. ## Proposed fix Operator action per the ci.yml header comment: **push `.forgejo/workflows/ci.yml` to `main`** to re-register every trigger (append a re-registration marker `2026-09-25 #43`). If the push does not take, the runner / event-source needs an operator restart. After re-registration, PR #164 needs a fresh `pull_request` event (empty commit to its branch or reopen) to get a live seam run. Agents cannot do this: `.forgejo/` is a protected path and this repo is `LANDING=pr` (no direct push to main). ## Context Hit while working #159 (vendor IDSS `--oc-*` tokens into `site/`). That PR (#164) is complete and green locally (`pnpm -r typecheck`, `pnpm test`, `pnpm --filter @coa/site build` all pass) — it is blocked ONLY on this dead CI trigger. #159 is being handed off `agent-blocked` pending this fix.
Author
Member

Ruled by agent under ADR 0002 (two-way-door doctrine) — veto anytime.

Routing this to ready-for-human: the fix is a one-way door the agent cannot open, and I have re-verified the symptom is still live.

Verification (2026-09-25 ~20:45Z, via Forgejo API)

  • pull_request trigger still dead. Most recent pull_request task is still #157 at 15:23Z; every task since (push / schedule / workflow_dispatch on main) succeeds. No PR task has been created in ~5.5h.
  • PR #164 still stuck. Head 6d32123 carries ci / seam (pull_request) null (pending, no runner task); PR is mergeable: false. Close/reopen + synchronize remedies from the ci.yml header already tried on this PR (per ticket) — no task created.

This is exactly the documented #43 stuck-trigger, and only the pull_request leg is affected.

Why human

The only fix (per .forgejo/workflows/ci.yml's header comment) is an operator action agents cannot perform:

  1. Push .forgejo/workflows/ci.yml to main to re-register every trigger. Agents are blocked three ways: .forgejo/ is a protected path; this repo is LANDING=pr (no direct push to main); and the tracker discipline forbids machinery changes in a worker PR (docs/agents/issue-tracker.md). It is also chicken-and-egg — a PR to fix the dead PR-CI trigger cannot itself go green through PR-CI.
    • Exact edit — append this incident's marker to the header (line 10):
      # Re-registration markers (append on each incident): 2026-08-29 #43, 2026-09-25 #43.
      
      Commit + push straight to main (any content change to the file re-registers the triggers; the marker is the audit trail).
  2. If the push does not take (no pull_request task appears on a subsequent PR event): the runner / event-source needs an operator restart on the Forgejo host — also host-side, not the agent's.
  3. After re-registration, PR #164 needs a fresh pull_request event: push an empty commit to its branch sandcastle/worker/20260925-144204-3009ed, or close/reopen it, so a live ci / seam (pull_request) task is created and it can go green for agent-after-green.

Blast radius

#159 / PR #164 is complete and green locally (pnpm -r typecheck, pnpm test, pnpm --filter @coa/site build) and blocked ONLY on this; it is handed off agent-blocked. Any other PR opened while the trigger is dead is equally stuck.

No repo change was made by this session (the fix is not a repo change an agent may land). Leaving the exact operator steps above.

**Ruled by agent under ADR 0002 (two-way-door doctrine) — veto anytime.** Routing this to `ready-for-human`: the fix is a **one-way door the agent cannot open**, and I have re-verified the symptom is still live. ### Verification (2026-09-25 ~20:45Z, via Forgejo API) - **`pull_request` trigger still dead.** Most recent `pull_request` task is still `#157` at 15:23Z; every task since (push / schedule / workflow_dispatch on `main`) succeeds. No PR task has been created in ~5.5h. - **PR #164 still stuck.** Head `6d32123` carries `ci / seam (pull_request) null` (pending, no runner task); PR is `mergeable: false`. Close/reopen + `synchronize` remedies from the ci.yml header already tried on this PR (per ticket) — no task created. This is exactly the documented `#43` stuck-trigger, and only the `pull_request` leg is affected. ### Why human The only fix (per `.forgejo/workflows/ci.yml`'s header comment) is an **operator action agents cannot perform**: 1. **Push `.forgejo/workflows/ci.yml` to `main`** to re-register every trigger. Agents are blocked three ways: `.forgejo/` is a protected path; this repo is `LANDING=pr` (no direct push to main); and the tracker discipline forbids machinery changes in a worker PR (`docs/agents/issue-tracker.md`). It is also chicken-and-egg — a PR to fix the dead PR-CI trigger cannot itself go green through PR-CI. - **Exact edit** — append this incident's marker to the header (line 10): ``` # Re-registration markers (append on each incident): 2026-08-29 #43, 2026-09-25 #43. ``` Commit + push straight to `main` (any content change to the file re-registers the triggers; the marker is the audit trail). 2. **If the push does not take** (no `pull_request` task appears on a subsequent PR event): the runner / event-source needs an **operator restart** on the Forgejo host — also host-side, not the agent's. 3. **After re-registration**, PR #164 needs a **fresh `pull_request` event**: push an empty commit to its branch `sandcastle/worker/20260925-144204-3009ed`, or close/reopen it, so a live `ci / seam (pull_request)` task is created and it can go green for `agent-after-green`. ### Blast radius #159 / PR #164 is complete and green locally (`pnpm -r typecheck`, `pnpm test`, `pnpm --filter @coa/site build`) and blocked ONLY on this; it is handed off `agent-blocked`. Any other PR opened while the trigger is dead is equally stuck. No repo change was made by this session (the fix is not a repo change an agent may land). Leaving the exact operator steps above.
Author
Member

Ruled by agent under ADR 0002 / ADR 0174 (two-way-door doctrine) — veto anytime.

Session-runner update (host standing, #445). The prior comment routed this correctly to ready-for-human, but on the premise that no agent can do step 1. That is true for a swarm PR-worker, not for a standing session: protected-paths-lib.sh intentionally does not fire for a standing session, the pre-push hook says as much ("A session with .sandcastle/ standing (#445) can edit a vendored file"), main is not branch-protected (user_can_push: true), and GOTCHAS 10's rule literally instructs pushing ci.yml to main to re-register. This ticket was ready-for-session precisely so a session would do it. So I did the two-way part.

Two-way part DONE — re-registration pushed to main

  • Commit 8378b3c on main: appended the incident marker 2026-09-25 #43 (#165) to .forgejo/workflows/ci.yml, plus a GOTCHAS 10 recurrence note and a STATUS log entry.
  • The push trigger re-registered and is proven live: that same commit's push event created a real runner task — seam push success (task 133248, 20:38Z). So the file push did take, and re-registration works for push.

But the pull_request leg is STILL dead after re-registration — proof

I then fired two fresh pull_request events on PR #164's branch (empty commits 6d32123 @20:41Z and 2ddfcc7 @20:57Z). Both registered a ci / seam (pull_request) commit status (runs #11770, #11777, state null) and neither created a runner task — 0 tasks for the branch ~24 min later, while push/schedule/workflow_dispatch/issues tasks kept succeeding every 1–2 min (runners are free, same runs-on: swarm pool the green push seam used). The last real pull_request task remains #157 at 15:23Z (~5.5 h).

Backlog is ruled out: /actions/runs?status=waiting holds stale push+issues+pull_request runs with low ids (~112 8xx) while newer same-event tasks (~133 xxx) already completed — a capacity queue cannot let newer runs of the same event finish ahead, so those waiting rows are orphaned registrations, not a queue. (Refinement recorded in GOTCHAS 10: status=waiting does not always mean "queued".)

Why human — narrowed to the operator restart only

We are now definitively at step 2 of the prior comment: pushing ci.yml to main re-registered push but did not restore pull_request dispatch. Per GOTCHAS 10 and the ci.yml header, the remaining fix is an operator restart of the Forgejo runner / event-source on the host — a host-side service restart, not revertible-by-commit and not provable by an agent-runnable test → a genuine one-way door. That is the only residue left.

After the restart, PR #164 should get a live pull_request seam task on its next event; if not, push one more empty commit to sandcastle/worker/20260925-144204-3009ed (it currently carries my two harmless probe commits on top of 8562501 — #159's worker can squash/rebase them). #159 stays agent-blocked on this.

Two-way part landed and proven; one-way residue (operator restart) left for a human. Leaving ready-for-human.

**Ruled by agent under ADR 0002 / ADR 0174 (two-way-door doctrine) — veto anytime.** Session-runner update (host standing, #445). The prior comment routed this correctly to `ready-for-human`, but on the premise that *no agent* can do step 1. That is true for a swarm PR-worker, **not** for a standing session: `protected-paths-lib.sh` intentionally does **not** fire for a standing session, the pre-push hook says as much ("A session with .sandcastle/ standing (#445) can edit a vendored file"), `main` is not branch-protected (`user_can_push: true`), and GOTCHAS 10's rule literally instructs pushing `ci.yml` to `main` to re-register. This ticket was `ready-for-session` precisely so a session would do it. So I did the two-way part. ### Two-way part DONE — re-registration pushed to `main` - Commit `8378b3c` on `main`: appended the incident marker `2026-09-25 #43 (#165)` to `.forgejo/workflows/ci.yml`, plus a GOTCHAS 10 recurrence note and a STATUS log entry. - **The `push` trigger re-registered and is proven live**: that same commit's push event created a real runner task — `seam push success` (task `133248`, 20:38Z). So the file push *did* take, and re-registration works for `push`. ### But the `pull_request` leg is STILL dead after re-registration — proof I then fired **two** fresh `pull_request` events on PR #164's branch (empty commits `6d32123` @20:41Z and `2ddfcc7` @20:57Z). Both registered a `ci / seam (pull_request)` commit status (runs `#11770`, `#11777`, state `null`) and **neither created a runner task** — 0 tasks for the branch ~24 min later, while `push`/`schedule`/`workflow_dispatch`/`issues` tasks kept succeeding every 1–2 min (runners are free, same `runs-on: swarm` pool the green push seam used). The last real `pull_request` task remains `#157` at 15:23Z (~5.5 h). Backlog is ruled out: `/actions/runs?status=waiting` holds stale `push`+`issues`+`pull_request` runs with low ids (~112 8xx) **while newer same-event tasks (~133 xxx) already completed** — a capacity queue cannot let newer runs of the same event finish ahead, so those `waiting` rows are orphaned registrations, not a queue. (Refinement recorded in GOTCHAS 10: `status=waiting` does not always mean "queued".) ### Why human — narrowed to the operator restart only We are now definitively at **step 2** of the prior comment: pushing `ci.yml` to `main` re-registered `push` but did **not** restore `pull_request` dispatch. Per GOTCHAS 10 and the `ci.yml` header, the remaining fix is an **operator restart of the Forgejo runner / event-source on the host** — a host-side service restart, not revertible-by-commit and not provable by an agent-runnable test → a genuine one-way door. That is the only residue left. After the restart, PR #164 should get a live `pull_request` seam task on its next event; if not, push one more empty commit to `sandcastle/worker/20260925-144204-3009ed` (it currently carries my two harmless probe commits on top of `8562501` — #159's worker can squash/rebase them). #159 stays `agent-blocked` on this. Two-way part landed and proven; one-way residue (operator restart) left for a human. Leaving `ready-for-human`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa#165
No description provided.