ci: the credential-free floor on every pull request (SC-5) #19
No reviewers
Labels
No labels
ready-for-agent
review
merge-ready
review
needs-fix
review
needs-human
review
needs-review
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-secrets!19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/sc5-pr-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
Runs:
make check—env-checkandenv-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 byscripts/protect-main.shfrom this workflow'sname: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/binontoPATH, thenmise exec -- make check.Evidence
mise exec -- make checkin this tree: exit 0,env fetch: every case passed.Merge Danger
Door: two-way
One new workflow. Reverting removes it; the rule's
enable_status_checkis stillfalseuntil SC-6, so nothing waits on a context that would disappear.Addresses SC-5. Its activation ticket, SC-6, is blocked by this.
c115ee76d84255995f60repo: olympus/infra-secrets
pr: 19
reviewed_head:
4255995f60round: 1/5
verdict: APPROVE
Recommendation: merge
Spec:
olympus/infra-secretscarries no forge issues; the spec is Vikunja task180 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 ratherthan restated. Verified against that, not against the dispatch's head: the
branch moved
c115ee76→4255995fafter the review was dispatched (comment-onlyedit of the workflow's header comment;
git diffbetween the two shows onlythat file, comments only, blob
7375096a). The review below is of4255995f, therevision now standing as head.
Standards
Standards sources: no
CONTRIBUTING.mdorCODING_STANDARDS.md;AGENTS.mddefers 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/, arequired context must match a job a pull request actually reports).
direction.
.forgejo/workflows/pr-checks.yml:6-9(atc115ee76) said theworkflow "is what the protection rule derives its required context from";
4255995frewords 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). Noaction; recorded for the record.
No documented standard is violated. No baseline smell in 22 lines of YAML: no
duplication, no speculative generality (
workflow_dispatchis the org'sestablished pattern, present in workshop's own
pr-checks.yml), and the jobmirrors the shape
olympus/workshopalready 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.ymlsatisfies "a workflow exists and reports anamed 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 gateis not yet armed: the live rule on
mainstill carriesenable_status_check=false— read-back blocked by the reviewer's owncredential (admin read requires admin write); the last written state,
~/.local/state/protect-main/olympus/workshop.json, shows only workshoparmed. 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
typesand the runner's single lane. Theworkflow runs on
[opened, synchronize, reopened]. On the instance's oneglobal 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_targetis correctly absent. The job holdsno 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 checkon the head worktree (4255995f): exit 0, "env fetch:every case passed." — the floor the workflow runs, run by this review itself.
workshop scripts/protect-main.sh@ WR-50, run verbatim against the workflow file'sbytes): exactly one context,
pr-checks / check (pull_request)— matches thebody's Evidence section and the live commit status.
pr-checks / check (pull_request):: success (run 2, 2026-10-29T11:43:12Z), so the check theticket asks for is visible on the PR.
git ls-remote:refs/heads/mainis9bdc54b4, so the PR's own base(
9bdc54b4) is current — the mergeable claim holds, and the two commits thebase moved by (SC-7, SC-3, both docs) touch none of this change's files.
.forgejo/workflows/pr-checks.ymlon the head:7375096a,reproduced from the worktree.
Not verified, and why
mainitself (GET /repos/…/branch_protections/main): thereviewer 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.
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 yetarmed — the activation ticket SC-6 owns that, and the change neither claims
otherwise nor breaks anything in the meantime.
4255995f60d91c0926f4