CI starts on a round's dispatch and on a landing, never on a pull request event (martha#258) #268

Manually merged
terra merged 3 commits from saturnus/258-dispatch-triggers into main 2026-11-26 23:09:59 +00:00
Member

Refs martha-ai/martha#258

Purpose (cost): a pull request starts no CI of its own. Its runs are the build coordinator's, one set per HANDOFF round, and a landing runs on the push to main. DECIDED 2026-11-26 "Build coordinator".

What changes

  • Eight workflows lose their pull_request trigger and take a workflow_dispatch with the round's base and pr: ci, suite, heavy, c4-model, standalone, advisories, engine-drift and host-drift. Their push to main stays.
  • Each former pull_request filter becomes the workflow's round list, .github/dispatch_paths/<workflow>.txt:
    • the path lists move as they were;
    • the docs-only paths-ignore becomes ! lines (root *.md named file by file, no globs);
    • advisories' **/package*.json becomes the five package files there are.
  • ci.yml's checks read the range from inputs.base on a dispatch, and from the push otherwise. standalone's cancel-in-progress keys on the dispatch.
  • check:every-check-runs-in-a-job reads a workflow_dispatch with a pr input as reaching every round, or as filtered when the tree holds its round list. A dispatch with no pr input is a hand's, and reaches none.
  • The coordinator takes roundListOf from the check's reader, so the list it reads and the list the check judges by are one path.

Gaps, named (no guard without the owner's yes)

  • N1: advisories lost the glob. A NEW package.json elsewhere won't dispatch advisories on its round; the daily run and the landing catch it.
  • N2: no include list names its own .github/dispatch_paths/<wf>.txt. A round that edits only heavy's, advisories', engine-drift's or host-drift's list doesn't run that workflow; the landing does. The ! lists of suite, c4-model and standalone do run on such a round.
  • engine-drift and host-drift hold their paths twice, by hand: the push filter and the round list.
  • A hand dispatch of ci.yml without base has an empty range; base comes from the coordinator.
  • A missing list runs the workflow. An empty list, or one with only comments, never dispatches it.

Proof: the whole npm test through the namespace wrapper: 5571 pass, 1 fail. The fail is #263's race (a_launcher_ends_with_its_run.node-test.ts:25), untouched here and 3/3 green alone. tsc, lint, actionlint on the eight files, check:private, restated-values and import-cycle are clean. check:links is unverified locally (no lychee). This PR's runs are the coordinator's proving run.

Reviews: r=5 PASS (Mars) at 20b4ba74. The merge of main d6073d14 and c0a1aead go to the reviewer diff-only.

🤖 Generated with Claude Code

Refs martha-ai/martha#258 Purpose (cost): a pull request starts no CI of its own. Its runs are the build coordinator's, one set per HANDOFF round, and a landing runs on the push to main. DECIDED 2026-11-26 "Build coordinator". **What changes** - Eight workflows lose their `pull_request` trigger and take a `workflow_dispatch` with the round's `base` and `pr`: ci, suite, heavy, c4-model, standalone, advisories, engine-drift and host-drift. Their push to main stays. - Each former pull_request filter becomes the workflow's round list, `.github/dispatch_paths/<workflow>.txt`: - the path lists move as they were; - the docs-only `paths-ignore` becomes `!` lines (root `*.md` named file by file, no globs); - advisories' `**/package*.json` becomes the five package files there are. - ci.yml's checks read the range from `inputs.base` on a dispatch, and from the push otherwise. standalone's cancel-in-progress keys on the dispatch. - check:every-check-runs-in-a-job reads a `workflow_dispatch` with a `pr` input as reaching every round, or as filtered when the tree holds its round list. A dispatch with no `pr` input is a hand's, and reaches none. - The coordinator takes `roundListOf` from the check's reader, so the list it reads and the list the check judges by are one path. **Gaps, named (no guard without the owner's yes)** - N1: advisories lost the glob. A NEW package.json elsewhere won't dispatch advisories on its round; the daily run and the landing catch it. - N2: no include list names its own `.github/dispatch_paths/<wf>.txt`. A round that edits only heavy's, advisories', engine-drift's or host-drift's list doesn't run that workflow; the landing does. The `!` lists of suite, c4-model and standalone do run on such a round. - engine-drift and host-drift hold their paths twice, by hand: the push filter and the round list. - A hand dispatch of ci.yml without `base` has an empty range; `base` comes from the coordinator. - A missing list runs the workflow. An empty list, or one with only comments, never dispatches it. **Proof:** the whole `npm test` through the namespace wrapper: 5571 pass, 1 fail. The fail is #263's race (a_launcher_ends_with_its_run.node-test.ts:25), untouched here and 3/3 green alone. tsc, lint, actionlint on the eight files, check:private, restated-values and import-cycle are clean. check:links is unverified locally (no lychee). This PR's runs are the coordinator's proving run. Reviews: r=5 PASS (Mars) at 20b4ba74. The merge of main d6073d14 and c0a1aead go to the reviewer diff-only. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
DECIDED 2026-11-26 "Build coordinator": ci, suite, heavy, c4-model, standalone, advisories, engine-drift and
host-drift lose their pull_request trigger and take a workflow_dispatch with the round's base and pr, which the
build coordinator sends once per HANDOFF round. The push to main stays.

- Each former pull_request filter becomes the workflow's round list, .github/dispatch_paths/<workflow>.txt: the
  path lists as they were, the docs-only paths-ignore as ! lines (root *.md named, no globs), advisories'
  **/package*.json as the five package files there are.
- ci.yml's checks read the range from inputs.base on a dispatch, from the push otherwise.
- check:every-check-runs-in-a-job reads a workflow_dispatch with a pr input as reaching every round, or filtered
  when the tree holds its round list; one with no pr input is a hand's and reaches none.

Residual: engine-drift and host-drift hold their paths twice, the push filter and the round list, by hand.
main.ts named .github/dispatch_paths/<workflow>.txt as its own literal; it now takes roundListOf from
check_every_check_runs_in_a_job/read_a_workflow.ts, so the list the coordinator reads and the list the check
judges by are one path.
Collaborator

CI coordinator: round r=7: dispatched ci.yml on c0a1aead12, run 5732 (base d6073d14bb).

CI coordinator: round r=7: dispatched ci.yml on c0a1aead121f33c451834427b5f50b7deb52f09e, run 5732 (base d6073d14bb28c98b9d478ca6f2132244afbee67d).
Collaborator

CI coordinator: round r=7: dispatched suite.yml on c0a1aead12, run 5733 (base d6073d14bb).

CI coordinator: round r=7: dispatched suite.yml on c0a1aead121f33c451834427b5f50b7deb52f09e, run 5733 (base d6073d14bb28c98b9d478ca6f2132244afbee67d).
Collaborator

CI coordinator: round r=7: dispatched heavy.yml on c0a1aead12, run 5734 (base d6073d14bb).

CI coordinator: round r=7: dispatched heavy.yml on c0a1aead121f33c451834427b5f50b7deb52f09e, run 5734 (base d6073d14bb28c98b9d478ca6f2132244afbee67d).
Collaborator

CI coordinator: round r=7: dispatched c4-model.yml on c0a1aead12, run 5735 (base d6073d14bb).

CI coordinator: round r=7: dispatched c4-model.yml on c0a1aead121f33c451834427b5f50b7deb52f09e, run 5735 (base d6073d14bb28c98b9d478ca6f2132244afbee67d).
Collaborator

CI coordinator: round r=7: dispatched standalone.yml on c0a1aead12, run 5736 (base d6073d14bb).

CI coordinator: round r=7: dispatched standalone.yml on c0a1aead121f33c451834427b5f50b7deb52f09e, run 5736 (base d6073d14bb28c98b9d478ca6f2132244afbee67d).
Collaborator

CI coordinator: round r=7: dispatched advisories.yml on c0a1aead12, run 5737 (base d6073d14bb).

CI coordinator: round r=7: dispatched advisories.yml on c0a1aead121f33c451834427b5f50b7deb52f09e, run 5737 (base d6073d14bb28c98b9d478ca6f2132244afbee67d).
Collaborator

CI coordinator: round r=7: dispatched engine-drift.yml on c0a1aead12, run 5738 (base d6073d14bb).

CI coordinator: round r=7: dispatched engine-drift.yml on c0a1aead121f33c451834427b5f50b7deb52f09e, run 5738 (base d6073d14bb28c98b9d478ca6f2132244afbee67d).
Collaborator

CI coordinator: round r=7: dispatched host-drift.yml on c0a1aead12, run 5739 (base d6073d14bb).

CI coordinator: round r=7: dispatched host-drift.yml on c0a1aead121f33c451834427b5f50b7deb52f09e, run 5739 (base d6073d14bb28c98b9d478ca6f2132244afbee67d).
terra manually merged commit b478e03f6d into main 2026-11-26 23:09:59 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
martha-ai/martha!268
No description provided.