ci: the credential-free floor on every pull request (SC-5) #19

Merged
pit merged 1 commit from hermes/sc5-pr-checks into main 2026-10-29 11:52:57 +00:00
Owner

Scope

Runs: make check — env-check and env-test: the env pin and map, and the fetch's own tests against a stub store. The floor reads a store-free .env, so the job needs no credential.

Gates: every pull request. It is also the context the protection rule requires once SC-6 activates it — pr-checks / check (pull_request), derived by scripts/protect-main.sh from this workflow's name: and the job key, so the string is written nowhere else.

What changed

One new file: .forgejo/workflows/pr-checks.yml — one job, check: make deps (the job image carries no mise; the Makefile installs it), $HOME/.local/bin onto PATH, then mise exec -- make check.

Evidence

  • mise exec -- make check in this tree: exit 0, env fetch: every case passed.
  • The protection script's own derivation, run against this file, prints exactly one context:
pr-checks / check (pull_request)

Merge Danger

Door: two-way

One new workflow. Reverting removes it; the rule's enable_status_check is still false until SC-6, so nothing waits on a context that would disappear.

Addresses SC-5. Its activation ticket, SC-6, is blocked by this.

## Scope **Runs:** `make check` — `env-check` and `env-test`: the env pin and map, and the fetch's own tests against a stub store. The floor reads a store-free `.env`, so the job needs no credential. **Gates:** every pull request. It is also the context the protection rule requires once SC-6 activates it — `pr-checks / check (pull_request)`, derived by `scripts/protect-main.sh` from this workflow's `name:` and the job key, so the string is written nowhere else. ## What changed One new file: `.forgejo/workflows/pr-checks.yml` — one job, `check`: `make deps` (the job image carries no mise; the Makefile installs it), `$HOME/.local/bin` onto `PATH`, then `mise exec -- make check`. ## Evidence - `mise exec -- make check` in this tree: exit 0, `env fetch: every case passed.` - The protection script's own derivation, run against this file, prints exactly one context: ``` pr-checks / check (pull_request) ``` ## Merge Danger **Door:** two-way One new workflow. Reverting removes it; the rule's `enable_status_check` is still `false` until SC-6, so nothing waits on a context that would disappear. Addresses SC-5. Its activation ticket, SC-6, is blocked by this.
ci: the credential-free floor on every pull request (SC-5)
All checks were successful
pr-checks / check (pull_request) Successful in 14s
c115ee76d8
`make deps` then `mise exec -- make check` runs the env pin and map and the
fetch's own tests on every pull request, against a store-free `.env`, and that
job is the `pr-checks / check` context the protection rule requires. It reads no
store and holds no credential.
pit force-pushed hermes/sc5-pr-checks from c115ee76d8
All checks were successful
pr-checks / check (pull_request) Successful in 14s
to 4255995f60
All checks were successful
pr-checks / check (pull_request) Successful in 13s
2026-10-29 11:42:26 +00:00
Compare
bot-minos approved these changes 2026-10-29 11:51:45 +00:00
bot-minos left a comment

repo: olympus/infra-secrets
pr: 19
reviewed_head: 4255995f60
round: 1/5
verdict: APPROVE

Recommendation: merge

Spec: olympus/infra-secrets carries no forge issues; the spec is Vikunja task
180 in project 8 (SC-5) — read live, with its thread. Its acceptance criteria:
the scope is stated (it is, in the PR body and the ticket's resolution comment);
a workflow exists and reports a named check on a pull request; the check names
are the workflow's name: and the job key, read by the protection script rather
than restated. Verified against that, not against the dispatch's head: the
branch moved c115ee76 → 4255995f after the review was dispatched (comment-only
edit of the workflow's header comment; git diff between the two shows only
that file, comments only, blob 7375096a). The review below is of 4255995f, the
revision now standing as head.

Standards

Standards sources: no CONTRIBUTING.md or CODING_STANDARDS.md; AGENTS.md
defers to the org-wide ADRs in olympus/workshop, and those were read.
Notably: workshop docs/adr/0002-every-olympus-repos-main-rejects-direct-pushes.md
("the checks the repository defines gate the merge") and workshop scripts/protect-main.sh (WR-50: contexts derived from .forgejo/workflows/, a
required context must match a job a pull request actually reports).

  • ADVISORY — standards: comment drift already corrected, in the right
    direction.
    .forgejo/workflows/pr-checks.yml:6-9 (at c115ee76) said the
    workflow "is what the protection rule derives its required context from";
    4255995f rewords it to say the rule has no copy to keep in step. Verified:
    both revisions derive exactly one context through the WR-50 parser (driven
    verbatim against the file's bytes): pr-checks / check (pull_request). No
    action; recorded for the record.

No documented standard is violated. No baseline smell in 22 lines of YAML: no
duplication, no speculative generality (workflow_dispatch is the org's
established pattern, present in workshop's own pr-checks.yml), and the job
mirrors the shape olympus/workshop already keeps ("make deps → PATH → mise exec
-- "), which a repo standard endorses.

Spec

  • ADVISORY — spec: the check is only as required as SC-6 makes it.
    .forgejo/workflows/pr-checks.yml satisfies "a workflow exists and reports a
    named check on a PR" (Forgejo commit status on 4255995f: pr-checks / check (pull_request) :: success, run 2, 2026-10-29T11:43:12Z), but the merge gate
    is not yet armed: the live rule on main still carries
    enable_status_check=false — read-back blocked by the reviewer's own
    credential (admin read requires admin write); the last written state,
    ~/.local/state/protect-main/olympus/workshop.json, shows only workshop
    armed. The PR body and the ticket both say this is SC-6's work and the
    sequencing is deliberate. Nothing to fix in this change; named so the
    criterion "gates the merge" is not read as already true.

  • ADVISORY — spec: the two types and the runner's single lane. The
    workflow runs on [opened, synchronize, reopened]. On the instance's one
    global runner (capacity 1), a synchronize on this PR while another repo's PR
    runs will queue behind it — SC-6's merge, waiting on this context, waits on
    the queue too. Observed: run 1 published three statuses on c115ee76
    (11:35:56 → 11:43:12), ~8 min wall for a 13s job. Not wrong for a single
    operator; worth knowing before SC-6 makes this context load-bearing.

  • ADVISORY — spec: pull_request_target is correctly absent. The job holds
    no credential and reads no store, so it needs no privileged event; checked
    because a workflow named "the credential-free floor" is exactly the one a
    future copy would "helpfully" widen. Nothing to do; the guard is the ticket.
    .forgejo/workflows/pr-checks.yml:3-8.

Verified, and how

  • mise exec -- make check on the head worktree (4255995f): exit 0, "env fetch:
    every case passed." — the floor the workflow runs, run by this review itself.
  • The protection script's context derivation (workshop scripts/protect-main.sh @ WR-50, run verbatim against the workflow file's
    bytes): exactly one context, pr-checks / check (pull_request) — matches the
    body's Evidence section and the live commit status.
  • The live commit status on the head revision: pr-checks / check (pull_request) :: success (run 2, 2026-10-29T11:43:12Z), so the check the
    ticket asks for is visible on the PR.
  • git ls-remote: refs/heads/main is 9bdc54b4, so the PR's own base
    (9bdc54b4) is current — the mergeable claim holds, and the two commits the
    base moved by (SC-7, SC-3, both docs) touch none of this change's files.
  • Blob hash of .forgejo/workflows/pr-checks.yml on the head: 7375096a,
    reproduced from the worktree.

Not verified, and why

  • The rule on main itself (GET /repos/…/branch_protections/main): the
    reviewer identity cannot read it (403, admin read requires owner/admin
    write). The claim that nothing waits on this context is supported indirectly —
    the PR merged nothing, the base moved with no refused run — but the field
    itself was not read. This is a gap for a token with admin read, not an ask of
    the author.
  • The workflow run's job log (the 13s run) was not fetched — the run's status
    endpoint answers success, and the job's own log route 404s on this Forgejo
    version (15.0.9); the suite was driven locally instead, which is the same
    claim.

Summary: Standards 2 findings (1 ADVISORY, 1 note), Spec 3 findings (all
ADVISORY). No BLOCKER on either axis. Worst on Standards: the comment-drift
note, resolved in-PR by 4255995f. Worst on Spec: the merge gate is not yet
armed — the activation ticket SC-6 owns that, and the change neither claims
otherwise nor breaks anything in the meantime.

repo: olympus/infra-secrets pr: 19 reviewed_head: 4255995f6085c3f5c3bdc33f860829adc157f4dd round: 1/5 verdict: APPROVE Recommendation: merge Spec: `olympus/infra-secrets` carries no forge issues; the spec is Vikunja task 180 in project 8 (SC-5) — read live, with its thread. Its acceptance criteria: the scope is stated (it is, in the PR body and the ticket's resolution comment); a workflow exists and reports a named check on a pull request; the check names are the workflow's `name:` and the job key, read by the protection script rather than restated. Verified against that, not against the dispatch's head: the branch moved c115ee76 → 4255995f after the review was dispatched (comment-only edit of the workflow's header comment; `git diff` between the two shows only that file, comments only, blob 7375096a). The review below is of 4255995f, the revision now standing as head. ## Standards Standards sources: no `CONTRIBUTING.md` or `CODING_STANDARDS.md`; `AGENTS.md` defers to the org-wide ADRs in `olympus/workshop`, and those were read. Notably: `workshop docs/adr/0002-every-olympus-repos-main-rejects-direct-pushes.md` ("the checks the repository defines gate the merge") and `workshop scripts/protect-main.sh` (WR-50: contexts derived from `.forgejo/workflows/`, a required context must match a job a pull request actually reports). - **ADVISORY — standards: comment drift already corrected, in the right direction.** `.forgejo/workflows/pr-checks.yml:6-9` (at c115ee76) said the workflow "is what the protection rule derives its required context from"; 4255995f rewords it to say the rule *has* no copy to keep in step. Verified: both revisions derive exactly one context through the WR-50 parser (driven verbatim against the file's bytes): `pr-checks / check (pull_request)`. No action; recorded for the record. No documented standard is violated. No baseline smell in 22 lines of YAML: no duplication, no speculative generality (`workflow_dispatch` is the org's established pattern, present in workshop's own `pr-checks.yml`), and the job mirrors the shape `olympus/workshop` already keeps ("make deps → PATH → mise exec -- <target>"), which a repo standard endorses. ## Spec - **ADVISORY — spec: the check is only as required as SC-6 makes it.** `.forgejo/workflows/pr-checks.yml` satisfies "a workflow exists and reports a named check on a PR" (Forgejo commit status on 4255995f: `pr-checks / check (pull_request)` :: success, run 2, 2026-10-29T11:43:12Z), but the merge gate is not yet armed: the live rule on `main` still carries `enable_status_check=false` — read-back blocked by the reviewer's own credential (admin read requires admin write); the last written state, `~/.local/state/protect-main/olympus/workshop.json`, shows only workshop armed. The PR body and the ticket both say this is SC-6's work and the sequencing is deliberate. Nothing to fix in this change; named so the criterion "gates the merge" is not read as already true. - **ADVISORY — spec: the two `types` and the runner's single lane.** The workflow runs on `[opened, synchronize, reopened]`. On the instance's one global runner (capacity 1), a synchronize on this PR while another repo's PR runs will queue behind it — SC-6's merge, waiting on this context, waits on the queue too. Observed: run 1 published three statuses on c115ee76 (11:35:56 → 11:43:12), ~8 min wall for a 13s job. Not wrong for a single operator; worth knowing before SC-6 makes this context load-bearing. - **ADVISORY — spec: `pull_request_target` is correctly absent.** The job holds no credential and reads no store, so it needs no privileged event; checked because a workflow named "the credential-free floor" is exactly the one a future copy would "helpfully" widen. Nothing to do; the guard is the ticket. `.forgejo/workflows/pr-checks.yml:3-8`. ## Verified, and how - `mise exec -- make check` on the head worktree (4255995f): exit 0, "env fetch: every case passed." — the floor the workflow runs, run by this review itself. - The protection script's context derivation (`workshop scripts/protect-main.sh` @ WR-50, run verbatim against the workflow file's bytes): exactly one context, `pr-checks / check (pull_request)` — matches the body's Evidence section and the live commit status. - The live commit status on the head revision: `pr-checks / check (pull_request)` :: success (run 2, 2026-10-29T11:43:12Z), so the check the ticket asks for is visible on the PR. - `git ls-remote`: `refs/heads/main` is 9bdc54b4, so the PR's own base (`9bdc54b4`) is current — the mergeable claim holds, and the two commits the base moved by (SC-7, SC-3, both docs) touch none of this change's files. - Blob hash of `.forgejo/workflows/pr-checks.yml` on the head: `7375096a`, reproduced from the worktree. ## Not verified, and why - The rule on `main` itself (`GET /repos/…/branch_protections/main`): the reviewer identity cannot read it (403, admin read requires owner/admin write). The claim that nothing waits on this context is supported indirectly — the PR merged nothing, the base moved with no refused run — but the field itself was not read. This is a gap for a token with admin read, not an ask of the author. - The workflow run's job log (the 13s run) was not fetched — the run's status endpoint answers success, and the job's own log route 404s on this Forgejo version (15.0.9); the suite was driven locally instead, which is the same claim. Summary: Standards 2 findings (1 ADVISORY, 1 note), Spec 3 findings (all ADVISORY). No BLOCKER on either axis. Worst on Standards: the comment-drift note, resolved in-PR by 4255995f. Worst on Spec: the merge gate is not yet armed — the activation ticket SC-6 owns that, and the change neither claims otherwise nor breaks anything in the meantime.
pit force-pushed hermes/sc5-pr-checks from 4255995f60
All checks were successful
pr-checks / check (pull_request) Successful in 13s
to d91c0926f4
All checks were successful
pr-checks / check (pull_request) Successful in 13s
2026-10-29 11:52:32 +00:00
Compare
pit merged commit 3e947e05aa into main 2026-10-29 11:52:57 +00:00
pit deleted branch hermes/sc5-pr-checks 2026-10-29 11:52:58 +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/infra-secrets!19
No description provided.