ci: the forge runs martha's own workflow directory (martha-engine#11) #12

Manually merged
terra merged 6 commits from pluto/11-forgejo-workflows into main 2026-11-26 02:38:34 +00:00
Member

The forge runs martha's own workflows from .forgejo/workflows/, and upstream's .github/workflows/ stays exactly as it is. Supervisor's ruling of 2026-11-26 (macula-io/forge-setup#60 P1), option (2).

Why the directory switch is enough

The forge reads only the first workflow directory that exists on a branch, so once .forgejo/workflows/ is present none of upstream's files queues a run or a task on the forge. Measured on dc117fe5b, a tip carrying both directories with .github/workflows/ still whole at 36 files: check-release-pr.yaml sits only under .github, triggers on a plain pull_request, and queued no run. The two .github-only names that did queue on that pull request, dependabot-auto-merge.yml and quarantine.yml, are pull_request_target: the forge evaluates those from the base branch, where there is no .forgejo/ to prefer. A name that sits in both directories queues one run, not two (ci.yml 5123, martha-engine-checks.yml 5124).

So upstream's directory needs no deletion, and martha-engine-sync.yml keeps its schedule: and its place.

What is here

  • .forgejo/workflows/ci.yml: changes, rust-format, rust-build-and-test, rust-lint, copied out of upstream's ci.yml.
  • .forgejo/workflows/martha-engine-checks.yml: checks and the-evidence-keeps-the-model-log.
  • .forgejo/workflows/martha-engine-trials.yml: a build job and the nine trial lines, on push to main only, so a pull request never creates nine jobs that can only skip. They build the engine themselves because download_the_artifact.sh reads its own run's artifacts and a separate workflow is a separate run.
  • The concurrency group is per branch on all three (${{ github.workflow }}-${{ github.head_ref || github.ref_name }}), as P3 writes it. cancel-in-progress is ${{ github.ref != 'refs/heads/main' }}: a run on the default branch is never cancelled, which is the shape forge-setup#63's canary proved (5074, 5075, 5077 succeeded with two waiting at once, a PR push 5076 cancelled). All three fire on a push to main, martha-engine-checks.yml included.
  • martha/sync/README.md and pins.env record the measurement above, and which files are the fork's on the forge.

.github/workflows/ is byte-for-byte upstream's, so this diff is five added files and no deletions.

Done-when

  1. A push to a branch creates runs only of the .forgejo/workflows files. Before the land, two of the four runs a pull request carries are pull_request_target files read from the base branch, which still has no .forgejo/. The clean read is post-land and is the proof to take then.
  2. One main push makes at most 16 tasks, against 44 on c878ce3c. Expected 16: ci 4, checks 2, trials 10. Post-land, one read, and in that same read two main pushes must both conclude non-cancelled.
  3. An upstream sync run changes nothing under .forgejo/. Upstream has no .forgejo/; a merge cannot write there.
  4. The sync job still reads upstream's ci.yml, so drift shows there. The file is in the tree and the sync runs it. Drift is the difference between it and .forgejo/workflows/ci.yml.

The sync's lost upstream-CI gate is martha-ai/martha-engine#13, not scheduled this week. Upstream syncs pause until it is ruled.

Refs martha-ai/martha-engine#11, martha-ai/martha-engine#13, macula-io/forge-setup#60

Post-land read, 2026-11-26

  • Done when 1. Main 06524f2eca1e carries five runs from three workflow files, all three in .forgejo/workflows/: ci.yml (5194, 4 tasks), martha-engine-checks.yml (5195, 2 tasks), martha-engine-trials.yml (5196, 10 tasks), plus 5192 and 5193, the merge's own pull_request rows, skipped by the workflows' guards. No .github/workflows/ name produced a run.
  • Done when 2. The tasks API counts 16 tasks on push 06524f2eca1e and 44 on push c878ce3cd6. 16 against 44, all 16 of them success.
  • Two main pushes both concluding non-cancelled. Push 06524f2eca1e concluded non-cancelled: 5194, 5195 and 5196 all success. The pushes after it (27d48e8db5, 40a2b77d2b, b5af6bc3e3) each had ci.yml and martha-engine-checks.yml conclude success, but each of their trials runs reads cancelled, because the crew-wide job cancel of 2026-11-26 stopped 5318, 5472, 5523, 5555 and 5610 in one sweep between 09:53:06Z and 09:53:07Z. No run was cancelled by the workflow or by a later push. So the second half of that line holds for ci.yml and martha-engine-checks.yml and is not claimed for martha-engine-trials.yml.
The forge runs martha's own workflows from `.forgejo/workflows/`, and upstream's `.github/workflows/` stays exactly as it is. Supervisor's ruling of 2026-11-26 (macula-io/forge-setup#60 P1), option (2). ## Why the directory switch is enough The forge reads only the first workflow directory that exists on a branch, so once `.forgejo/workflows/` is present none of upstream's files queues a run or a task on the forge. Measured on `dc117fe5b`, a tip carrying both directories with `.github/workflows/` still whole at 36 files: `check-release-pr.yaml` sits only under `.github`, triggers on a plain `pull_request`, and queued no run. The two `.github`-only names that did queue on that pull request, `dependabot-auto-merge.yml` and `quarantine.yml`, are `pull_request_target`: the forge evaluates those from the base branch, where there is no `.forgejo/` to prefer. A name that sits in both directories queues one run, not two (`ci.yml` 5123, `martha-engine-checks.yml` 5124). So upstream's directory needs no deletion, and `martha-engine-sync.yml` keeps its `schedule:` and its place. ## What is here - `.forgejo/workflows/ci.yml`: `changes`, `rust-format`, `rust-build-and-test`, `rust-lint`, copied out of upstream's `ci.yml`. - `.forgejo/workflows/martha-engine-checks.yml`: `checks` and `the-evidence-keeps-the-model-log`. - `.forgejo/workflows/martha-engine-trials.yml`: a `build` job and the nine trial lines, on push to main only, so a pull request never creates nine jobs that can only skip. They build the engine themselves because `download_the_artifact.sh` reads its own run's artifacts and a separate workflow is a separate run. - The concurrency group is per branch on all three (`${{ github.workflow }}-${{ github.head_ref || github.ref_name }}`), as P3 writes it. `cancel-in-progress` is `${{ github.ref != 'refs/heads/main' }}`: a run on the default branch is never cancelled, which is the shape forge-setup#63's canary proved (5074, 5075, 5077 succeeded with two waiting at once, a PR push 5076 cancelled). All three fire on a push to main, `martha-engine-checks.yml` included. - `martha/sync/README.md` and `pins.env` record the measurement above, and which files are the fork's on the forge. `.github/workflows/` is byte-for-byte upstream's, so this diff is five added files and no deletions. ## Done-when 1. **A push to a branch creates runs only of the `.forgejo/workflows` files.** Before the land, two of the four runs a pull request carries are `pull_request_target` files read from the base branch, which still has no `.forgejo/`. The clean read is post-land and is the proof to take then. 2. **One main push makes at most 16 tasks, against 44 on c878ce3c.** Expected 16: ci 4, checks 2, trials 10. Post-land, one read, and in that same read two main pushes must both conclude non-cancelled. 3. **An upstream sync run changes nothing under `.forgejo/`.** Upstream has no `.forgejo/`; a merge cannot write there. 4. **The sync job still reads upstream's `ci.yml`, so drift shows there.** The file is in the tree and the sync runs it. Drift is the difference between it and `.forgejo/workflows/ci.yml`. The sync's lost upstream-CI gate is martha-ai/martha-engine#13, not scheduled this week. Upstream syncs pause until it is ruled. Refs martha-ai/martha-engine#11, martha-ai/martha-engine#13, macula-io/forge-setup#60 ## Post-land read, 2026-11-26 - **Done when 1.** Main `06524f2eca1e` carries five runs from three workflow files, all three in `.forgejo/workflows/`: ci.yml (5194, 4 tasks), martha-engine-checks.yml (5195, 2 tasks), martha-engine-trials.yml (5196, 10 tasks), plus 5192 and 5193, the merge's own `pull_request` rows, skipped by the workflows' guards. No `.github/workflows/` name produced a run. - **Done when 2.** The tasks API counts 16 tasks on push `06524f2eca1e` and 44 on push `c878ce3cd6`. 16 against 44, all 16 of them success. - **Two main pushes both concluding non-cancelled.** Push `06524f2eca1e` concluded non-cancelled: 5194, 5195 and 5196 all success. The pushes after it (`27d48e8db5`, `40a2b77d2b`, `b5af6bc3e3`) each had ci.yml and martha-engine-checks.yml conclude success, but each of their trials runs reads cancelled, because the crew-wide job cancel of 2026-11-26 stopped 5318, 5472, 5523, 5555 and 5610 in one sweep between 09:53:06Z and 09:53:07Z. No run was cancelled by the workflow or by a later push. So the second half of that line holds for ci.yml and martha-engine-checks.yml and is not claimed for martha-engine-trials.yml.
ci: the forge runs martha's own workflow directory (martha-engine#11, forge-setup#60 P1)
Some checks failed
Dependabot Auto Merge / dependabot (pull_request_target) Has been cancelled
Quarantine check / check-quarantined (pull_request_target) Has been cancelled
CI / changes (pull_request) Has been cancelled
CI / Check Rust Code Format (pull_request) Has been cancelled
CI / Build and Test Rust Project (pull_request) Has been cancelled
CI / Lint Rust Code (pull_request) Has been cancelled
martha-engine checks / The evidence keeps the model server's log (pull_request) Successful in 2s
martha-engine checks / Build the engine and run the fork's checks (pull_request) Successful in 4m28s
dc117fe5b5
.forgejo/workflows/ carries the three files the forge runs, and nothing moves out of .github.

- ci.yml holds the four jobs martha relies on from upstream's ci.yml (changes, rust-format,
  rust-build-and-test, rust-lint), copied out of that file so a drift check against it still means
  something. Upstream's other eleven jobs are not carried.
- martha-engine-checks.yml holds checks and the-evidence-keeps-the-model-log.
- martha-engine-trials.yml holds a build job and the nine trial lines, on push to main only, so a
  pull request never creates them. They build the engine themselves because download_the_artifact.sh
  reads the artifact list of its own run, and a separate workflow is a separate run.

The forge reads only the first workflow directory that exists, so with .forgejo/workflows present none
of .github/workflows runs or queues a task on the forge. .github/workflows is untouched, so on GitHub
the sync keeps its reusable call to the checks workflow and its gate keeps its checks.

Only the fork's own workflows are active stays in .github: it reads GitHub's registration state, and
on the forge it could only ever skip, and a skipped job still takes a runner.

The cancel shape is P3's (forge-setup#60): a concurrency group naming the workflow and the branch or
ref, cancel-in-progress, a closed pull_request type, and the closed guard on every job in the two
workflows that a pull request triggers.

Refs martha-ai/martha-engine#11, macula-io/forge-setup#60
ci: the forge runs no upstream workflow (martha-engine#11, forge-setup#60 P1)
Some checks failed
Dependabot Auto Merge / dependabot (pull_request_target) Has been cancelled
Quarantine check / check-quarantined (pull_request_target) Has been cancelled
CI / changes (pull_request) Has been cancelled
CI / Check Rust Code Format (pull_request) Has been cancelled
CI / Build and Test Rust Project (pull_request) Has been cancelled
CI / Lint Rust Code (pull_request) Has been cancelled
martha-engine checks / The evidence keeps the model server's log (pull_request) Successful in 3s
martha-engine checks / Build the engine and run the fork's checks (pull_request) Successful in 7m19s
a158ca6de5
Supervisor's ruling of 2026-11-26, after the first attempt was measured and failed: a directory
switch alone does not stop the forge reading .github/workflows. A pull request on dc117fe5b
queued dependabot-auto-merge.yml and quarantine.yml, which exist only under .github. So the
upstream workflows are deleted, not switched off.

- .forgejo/workflows/ci.yml: the four jobs martha relies on from upstream's ci.yml (changes,
  rust-format, rust-build-and-test, rust-lint), copied out of that file so a drift read against it
  still means something.
- .forgejo/workflows/martha-engine-checks.yml: checks and the-evidence-keeps-the-model-log.
- .forgejo/workflows/martha-engine-trials.yml: a build job and the nine trial lines, on push to
  main only, so a pull request never creates nine jobs that can only skip.
- The 34 upstream workflows are deleted. .github/actions stays: the .forgejo workflows use it.
- martha-engine-sync.yml loses its schedule and keeps workflow_dispatch, so the file the forge
  could still read on a timer is gone while GitHub keeps the path it calls.
- martha/sync/deleted_workflows.txt names the 34, and merge_the_upstream_change.sh resolves those
  paths as deleted on a modify/delete conflict instead of handing every sync to a person, and
  deletes a workflow upstream adds.
- The cancel shape is P3's: concurrency group, cancel-in-progress, a closed pull_request type, and
  the closed guard on every job of the two workflows a pull request triggers.

Refs martha-ai/martha-engine#11, martha-ai/martha-engine#13, macula-io/forge-setup#60
Supervisor's ruling of 2026-11-26 (via Mars): option (2). The forge reads only .forgejo/workflows when that directory exists, so upstream's directory needs no deletion and no resolve-as-deleted step. This reverts the delete shape a158ca6de carried.

- .github/workflows/ is byte-for-byte upstream's again, all 36 files, and martha-engine-sync.yml has its schedule back.

- martha/sync/deleted_workflows.txt and the resolve-as-deleted branch in merge_the_upstream_change.sh go with it; every conflict is handed to a person, as before.

- The fork's own three files stay in .forgejo/workflows/.

Refs martha-ai/martha-engine#11, martha-ai/martha-engine#13, macula-io/forge-setup#60
ci: the concurrency group is per branch, and the reason is the measured one (review r1)
Some checks failed
Dependabot Auto Merge / dependabot (pull_request_target) Has been cancelled
Quarantine check / check-quarantined (pull_request_target) Has been cancelled
CI / changes (pull_request) Has been cancelled
CI / Check Rust Code Format (pull_request) Has been cancelled
CI / Build and Test Rust Project (pull_request) Has been cancelled
CI / Lint Rust Code (pull_request) Has been cancelled
martha-engine checks / The evidence keeps the model server's log (pull_request) Has been cancelled
martha-engine checks / Build the engine and run the fork's checks (pull_request) Has been cancelled
178f2fd170
Review r1, findings 1 and 3 (martha-ai/martha-engine#11).

- Finding 1: martha-engine-checks.yml and martha-engine-trials.yml wrote the concurrency group with quadruple braces, a leftover of format escaping. That is one constant group, not a per-branch one, so with cancel-in-progress a pull request's push could cancel main's checks and its trial chain. Both read ${{ ... }} now, as ci.yml already did.

- Finding 3: the README, pins.env and ci.yml's header state the measurement, not the directory rule alone. On dc117fe5b, a tip carrying both directories with .github still whole, a .github-only workflow on a plain pull_request queued no run; the two .github-only names that did queue are pull_request_target, which the forge evaluates from the base branch, where no .forgejo exists yet.

- The trial-lines block left orphaned at the end of martha-engine-checks.yml is gone; martha-engine-trials.yml carries it.

Refs martha-ai/martha-engine#11
ci: a run on the default branch is never cancelled (review r2 fold-in)
Some checks failed
Dependabot Auto Merge / dependabot (pull_request_target) Has been cancelled
Quarantine check / check-quarantined (pull_request_target) Has been cancelled
CI / changes (pull_request) Has been cancelled
CI / Check Rust Code Format (pull_request) Has been cancelled
CI / Build and Test Rust Project (pull_request) Has been cancelled
CI / Lint Rust Code (pull_request) Has been cancelled
martha-engine checks / The evidence keeps the model server's log (pull_request) Has been cancelled
martha-engine checks / Build the engine and run the fork's checks (pull_request) Has been cancelled
49d2f8b9a4
Review r2 fold-in (martha-ai/martha-engine#11).

- ci.yml and martha-engine-trials.yml: cancel-in-progress is ${{ github.ref != 'refs/heads/main' }}, false on the default branch, so a second landing cannot cancel the first tip's CI or its trial chain.

- Same shape as forge-setup PR 65, whose canary proved it: three quick pushes to the default branch all succeeded with two waiting at once (5074, 5075, 5077), while a PR push was cancelled (5076). A group per run through github.run_id was tried there first and is not used: it cancelled two canary runs (5069, 5070).

- The group itself is unchanged, one per branch, so a branch's push runs and its pull request runs still share one.

- martha-engine-checks.yml is untouched: pull requests only.

Refs martha-ai/martha-engine#11, macula-io/forge-setup#63
ci: the checks workflow fires on main too, so it gets the same cancel shape (review r2 fold-in)
All checks were successful
Dependabot Auto Merge / dependabot (pull_request_target) Has been skipped
Quarantine check / check-quarantined (pull_request_target) Has been skipped
CI / changes (pull_request) Has been skipped
martha-engine checks / The evidence keeps the model server's log (pull_request) Has been skipped
martha-engine checks / Build the engine and run the fork's checks (pull_request) Has been skipped
CI / Lint Rust Code (pull_request) Has been skipped
CI / Build and Test Rust Project (pull_request) Has been skipped
CI / Check Rust Code Format (pull_request) Has been skipped
373147ea61
martha-engine-checks.yml triggers on a push to main as well as a pull request, so cancel-in-progress: true would have let a second landing cancel the first tip's checks run, the class Mars's rule forbids. It now carries the same shape as ci.yml and martha-engine-trials.yml: group per branch, cancel-in-progress false on the default branch only.

Refs martha-ai/martha-engine#11, macula-io/forge-setup#63
terra manually merged commit 06524f2eca into main 2026-11-26 02:38:34 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
martha-ai/martha-engine!12
No description provided.