feat(pr-review-loop): infra-media joins the loop #62

Merged
pit merged 1 commit from hermes/pr-loop-infra-media into main 2026-12-02 11:56:24 +00:00
Owner

What

olympus/infra-media is on the loop: a PR opened there by bot-efesto or pit is reviewed automatically, and the fixer may push to its branch.

Piece State
Config (allowed_repos, autofix_repos) appended in this branch, and on the live instance as d2aec23e
Labels the six review/* labels are org-scoped and exclusive for the repo; provision-labels.sh olympus/infra-media reported all seven present and wrote nothing
Webhook the org hook (id 6, pull_request + pull_request_label) already covers the repo; no repo-level hook installed
Bots bot-minos and bot-efesto were read; both now write, read back from /collaborators/<user>/permission

Evidence

  • decide.test.js 133/133 and recovery.test.js 165/165 against this branch's export; the export parses as 49 nodes with no dangling connection targets.
  • Live: published as d2aec23e; get_workflow_details reads versionId == activeVersionId == d2aec23e and activeVersion.sameAsDraft: true.
  • Three pinned executions, the last one after the publish:
Probe Decide Execution
olympus/infra-media opened by pit dispatch: review, prloop:olympus/infra-media#3@1796211818235 96592
olympus/infra-media opened by a non-engage author dispatch: none, "not one of bot-efesto, pit — not engaging" 96589
olympus/scope-probe-delete-me opened by pit dispatch: none, "is not on the allowlist" 96591

Deploy

The Config edit is live already; merging needs nothing else.

Merge danger

Door: two-way — the two Config lists are the whole change, and reverting is the same edit.

Blast radius: the loop's policy only; no other workflow reads this node.

Not in this change

The instance is one publish behind !57's three nodes (Enrich notify body, Sweep: judge, Sweep: plan): that code is in the export on main, not in the active version. This publish leaves that gap exactly as it was; deploying !57 is a separate change.


PR body written by the operator agent.

## What `olympus/infra-media` is on the loop: a PR opened there by `bot-efesto` or `pit` is reviewed automatically, and the fixer may push to its branch. | Piece | State | | ----- | ----- | | `Config` (`allowed_repos`, `autofix_repos`) | appended in this branch, and on the live instance as `d2aec23e` | | Labels | the six `review/*` labels are org-scoped and `exclusive` for the repo; `provision-labels.sh olympus/infra-media` reported all seven present and wrote nothing | | Webhook | the org hook (id 6, `pull_request` + `pull_request_label`) already covers the repo; no repo-level hook installed | | Bots | `bot-minos` and `bot-efesto` were `read`; both now `write`, read back from `/collaborators/<user>/permission` | ## Evidence - `decide.test.js` 133/133 and `recovery.test.js` 165/165 against this branch's export; the export parses as 49 nodes with no dangling connection targets. - Live: published as `d2aec23e`; `get_workflow_details` reads `versionId == activeVersionId == d2aec23e` and `activeVersion.sameAsDraft: true`. - Three pinned executions, the last one after the publish: | Probe | `Decide` | Execution | | ----- | -------- | --------- | | `olympus/infra-media` opened by `pit` | `dispatch: review`, `prloop:olympus/infra-media#3@1796211818235` | 96592 | | `olympus/infra-media` opened by a non-engage author | `dispatch: none`, "not one of bot-efesto, pit — not engaging" | 96589 | | `olympus/scope-probe-delete-me` opened by `pit` | `dispatch: none`, "is not on the allowlist" | 96591 | ## Deploy The Config edit is live already; merging needs nothing else. ## Merge danger **Door:** two-way — the two Config lists are the whole change, and reverting is the same edit. **Blast radius:** the loop's policy only; no other workflow reads this node. ## Not in this change The instance is one publish behind `!57`'s three nodes (`Enrich notify body`, `Sweep: judge`, `Sweep: plan`): that code is in the export on `main`, not in the active version. This publish leaves that gap exactly as it was; deploying `!57` is a separate change. --- PR body written by the operator agent.
feat(pr-review-loop): infra-media joins the loop
All checks were successful
pr-checks / loop-decide (pull_request) Successful in 12s
pr-checks / protect-main (pull_request) Successful in 17s
d065f70ef1
The org-level pull_request hook already covers the repo, the six review/*
labels are org-scoped and exclusive, and both bots now hold write. This
puts olympus/infra-media on allowed_repos and autofix_repos, and updates
the docs to match.
Member

Review started (round 1/5) on d065f70ef1 — reading the diff now.

**Review started** (round 1/5) on d065f70ef1e902639ba84b89dc8fca6bf31e6413 — reading the diff now.
bot-minos approved these changes 2026-12-02 11:48:56 +00:00
bot-minos left a comment

Review loop — olympus/workshop · PR #62 · head d065f70 · round 1/5 · axes: standards, spec · verdict merge

Recommendation: merge

Spec

Spec source: the PR description. No ticket is cited in the title, body or commit, and docs/agents/issue-tracker.md fixes the form of a reference without requiring one, so the description is the contract: olympus/infra-media is on the loop — both Config lists carry it, the live policy engages it, labels and delivery are in place, and the fixer may push.

Every claim reproduces; no missing requirement and no unasked-for behaviour (the docs row is the Config's own mirror, which docs/automations/pr-review-loop.md:151-152 names as the one place to edit).

Claim Reproduced as
Config lists appended, docs too forgejo-pr-review-loop.json:421,427 and docs/automations/pr-review-loop.md:156-157 (eight entries; "the same eight")
decide.test.js 133/133, recovery.test.js 165/165 133 PASS / 0 FAIL and 165 PASS / 0 FAIL at head, mise exec -- node
49 nodes, no dangling connection targets 49 nodes; every connection target resolves (0 dangling)
live as d2aec23e, versionId == activeVersionId, sameAsDraft get_workflow_details Q4z8k794Can1u3pO: d2aec23e-c456-45ff-9a68-8462a6ed94bc for both, active: true, sameAsDraft: true
live Config matches the branch node-for-node over the live graph: identical node names and all 54 edges; differing set is exactly {Enrich notify body, Sweep: judge, Sweep: plan}, and Config is identical in both
one publish behind !57's three nodes that differing set is the three nodes named, so the publish left the gap as stated
three pinned executions 96592 dispatch: review, prloop:olympus/infra-media#3@1796211818235; 96589 none, "not one of bot-efesto, pit — not engaging"; 96591 none, "…is not on the allowlist" — all three read from the execution data, all after the 11:43:05 publish
six review/* labels org-scoped and exclusive, seven present org labels: all six exclusive: true, plus ready-for-agent; the repo's merged label view exposes all seven, with no repo-scoped duplicate
webhook covers the repo execution 96566 is a real webhook run for olympus/infra-media#1 (11:25:28) and 96583 for its merge (11:37:59) — the org hook delivers this repo, which is stronger than the hook object the body cites
bot-minos write /collaborators/bot-minos/permission → write

Standards

ADVISORY — the new repo has no pin in the suite that exists to pin it (pr-review-loop/tests/decide.test.js:89-96).

Section 0 is exactly this case: check('the cockpit is on the loop', …) and check('...and the fixer may push there', …) at :92-93, infra-semaphore absent at :94-95, under the comment "A repo left out of these lists is ignored entirely, so a stale name is a repo that gets no review at all". The commit that put the cockpit on the loop (44379d8) added those four checks — 8 lines in this file — alongside its Config and docs edit. This change adds the row and no case: grep -c infra-media pr-review-loop/tests/*.js is 0 in all three suites, so pr-checks / loop-decide stays green if a later edit drops olympus/infra-media from either list.

Clearing change: two checks mirroring :92-93 for olympus/infra-media, one per list.

No other standards finding: the JSON and the table are consistent with each other and with the live policy, and no documented rule in docs/, AGENTS.md or docs/adr/ is moved by this change (ADR-0002's direct-push and approval clauses are untouched; the Config edit is a policy value, not an ADR).

Named, not charged

  • The export's versionId no longer names the version it carries. The file says d928280e-… while the instance's active version is d2aec23e-… (the body's own figure). docs/automations/pr-review-loop.md:395-398 already records this class ("the export is a copy nobody checks … the file drifts"), and a re-export would drag the three !57 nodes backwards — so the split is the repository's own position, and no behaviour turns on the stamp.
  • Sweep: plan's PROJECTS map has no infra-media key (node Sweep: plan, jsCode lines 20-21). A task about an infra-media PR lands in WR by the documented fallback at docs/automations/pr-review-loop.md:257 ("anything else in WR"), exactly as olympus/infra-agents already does.
  • Published before merged. The Config is live as d2aec23e while this PR is open; docs/automations/pr-review-loop.md:366-369 makes the publish the deploy step and :395-398 makes the file the copy, so the order is the repo's own practice, not a slipped host act.

Could not verify

  • bot-efesto's write on olympus/infra-media. /repos/…/collaborators/bot-efesto/permission answers 403 for this identity (it can read only its own), /teams/2/members/bot-efesto answers 403, and the .env.mcp key answers 401 on /user (stale). bot-minos reads write by the same route. That half of the Bots row rests on the author's read-back — and it is load-bearing for autofix_repos: if it is wrong, the fixer's push fails on this repo.
  • The hook object itself (org hook id 6 and its event list; infra-media's repo-level hooks): 403 for this identity on both routes. Delivery is proven from the execution side instead, above.
  • Branch protection on olympus/infra-media (ADR-0002 binds any olympus repo's main): 403. The PR does not claim it, and onboard-repo.sh --protect-main is where the docs put it; named so no later round assumes it.

Verified by this round

Head refs/pull/62/head = d065f70…, re-read before posting. main moved under the review (7cb6aab0 → 2b96d9a, !61, touching only docs/agents/domain-repo-template.md); git merge-tree --write-tree 2b96d9a d065f70 is clean with no file overlap, so the branch reverts nothing and applies as written. CI at head: pr-checks / loop-decide success (12s) and pr-checks / protect-main success (17s), run 109.

Summary

Standards: 1 finding — 1 advisory, the missing repo pin in decide.test.js (worst, and only). Spec: 0 findings. No blockers; one advisory travels as advice.

<!-- minos review-loop: repo=olympus/workshop pr=62 head=d065f70ef1e902639ba84b89dc8fca6bf31e6413 round=1/5 axes=standards,spec verdict=merge --> **Review loop** — `olympus/workshop` · PR #62 · head `d065f70` · round 1/5 · axes: standards, spec · verdict merge Recommendation: merge ## Spec **Spec source:** the PR description. No ticket is cited in the title, body or commit, and `docs/agents/issue-tracker.md` fixes the *form* of a reference without requiring one, so the description is the contract: `olympus/infra-media` is on the loop — both Config lists carry it, the live policy engages it, labels and delivery are in place, and the fixer may push. Every claim reproduces; no missing requirement and no unasked-for behaviour (the docs row is the Config's own mirror, which `docs/automations/pr-review-loop.md:151-152` names as the one place to edit). | Claim | Reproduced as | | --- | --- | | Config lists appended, `docs` too | `forgejo-pr-review-loop.json:421,427` and `docs/automations/pr-review-loop.md:156-157` (eight entries; "the same eight") | | `decide.test.js` 133/133, `recovery.test.js` 165/165 | 133 PASS / 0 FAIL and 165 PASS / 0 FAIL at head, `mise exec -- node` | | 49 nodes, no dangling connection targets | 49 nodes; every connection target resolves (0 dangling) | | live as `d2aec23e`, `versionId == activeVersionId`, `sameAsDraft` | `get_workflow_details Q4z8k794Can1u3pO`: `d2aec23e-c456-45ff-9a68-8462a6ed94bc` for both, `active: true`, `sameAsDraft: true` | | live Config matches the branch | node-for-node over the live graph: identical node names and all 54 edges; differing set is exactly `{Enrich notify body, Sweep: judge, Sweep: plan}`, and `Config` is identical in both | | one publish behind `!57`'s three nodes | that differing set is the three nodes named, so the publish left the gap as stated | | three pinned executions | 96592 `dispatch: review`, `prloop:olympus/infra-media#3@1796211818235`; 96589 `none`, "not one of bot-efesto, pit — not engaging"; 96591 `none`, "…is not on the allowlist" — all three read from the execution data, all after the 11:43:05 publish | | six `review/*` labels org-scoped and exclusive, seven present | org labels: all six `exclusive: true`, plus `ready-for-agent`; the repo's merged label view exposes all seven, with no repo-scoped duplicate | | webhook covers the repo | execution 96566 is a real `webhook` run for `olympus/infra-media#1` (11:25:28) and 96583 for its merge (11:37:59) — the org hook delivers this repo, which is stronger than the hook object the body cites | | `bot-minos` write | `/collaborators/bot-minos/permission` → `write` | ## Standards **ADVISORY — the new repo has no pin in the suite that exists to pin it** (`pr-review-loop/tests/decide.test.js:89-96`). Section 0 is exactly this case: `check('the cockpit is on the loop', …)` and `check('...and the fixer may push there', …)` at `:92-93`, `infra-semaphore` absent at `:94-95`, under the comment "A repo left out of these lists is ignored entirely, so a stale name is a repo that gets no review at all". The commit that put the cockpit on the loop (`44379d8`) added those four checks — 8 lines in this file — alongside its Config and docs edit. This change adds the row and no case: `grep -c infra-media pr-review-loop/tests/*.js` is 0 in all three suites, so `pr-checks / loop-decide` stays green if a later edit drops `olympus/infra-media` from either list. Clearing change: two checks mirroring `:92-93` for `olympus/infra-media`, one per list. No other standards finding: the JSON and the table are consistent with each other and with the live policy, and no documented rule in `docs/`, `AGENTS.md` or `docs/adr/` is moved by this change (ADR-0002's direct-push and approval clauses are untouched; the Config edit is a policy value, not an ADR). ## Named, not charged - **The export's `versionId` no longer names the version it carries.** The file says `d928280e-…` while the instance's active version is `d2aec23e-…` (the body's own figure). `docs/automations/pr-review-loop.md:395-398` already records this class ("the export is a copy nobody checks … the file drifts"), and a re-export would drag the three `!57` nodes backwards — so the split is the repository's own position, and no behaviour turns on the stamp. - **`Sweep: plan`'s `PROJECTS` map has no `infra-media` key** (node `Sweep: plan`, jsCode lines 20-21). A task about an infra-media PR lands in WR by the documented fallback at `docs/automations/pr-review-loop.md:257` ("anything else in WR"), exactly as `olympus/infra-agents` already does. - **Published before merged.** The Config is live as `d2aec23e` while this PR is open; `docs/automations/pr-review-loop.md:366-369` makes the publish the deploy step and `:395-398` makes the file the copy, so the order is the repo's own practice, not a slipped host act. ## Could not verify - **`bot-efesto`'s write on `olympus/infra-media`.** `/repos/…/collaborators/bot-efesto/permission` answers 403 for this identity (it can read only its own), `/teams/2/members/bot-efesto` answers 403, and the `.env.mcp` key answers 401 on `/user` (stale). `bot-minos` reads `write` by the same route. That half of the Bots row rests on the author's read-back — and it is load-bearing for `autofix_repos`: if it is wrong, the fixer's push fails on this repo. - **The hook object itself** (org hook id 6 and its event list; infra-media's repo-level hooks): 403 for this identity on both routes. Delivery is proven from the execution side instead, above. - **Branch protection on `olympus/infra-media`** (ADR-0002 binds any olympus repo's `main`): 403. The PR does not claim it, and `onboard-repo.sh --protect-main` is where the docs put it; named so no later round assumes it. ## Verified by this round Head `refs/pull/62/head` = `d065f70…`, re-read before posting. `main` moved under the review (`7cb6aab0` → `2b96d9a`, `!61`, touching only `docs/agents/domain-repo-template.md`); `git merge-tree --write-tree 2b96d9a d065f70` is clean with no file overlap, so the branch reverts nothing and applies as written. CI at head: `pr-checks / loop-decide` success (12s) and `pr-checks / protect-main` success (17s), run 109. ## Summary Standards: 1 finding — 1 advisory, the missing repo pin in `decide.test.js` (worst, and only). Spec: 0 findings. No blockers; one advisory travels as advice.
pit merged commit 42ae97c5ea into main 2026-12-02 11:56:24 +00:00
pit deleted branch hermes/pr-loop-infra-media 2026-12-02 11:56:24 +00:00
Sign in to join this conversation.
No reviewers
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
olympus/workshop!62
No description provided.