Skip to content

Commit 0f837de

Browse files
fix(main): restore green main — changelog perms, lock, ZWSP, docs gate, review port (#188)
## Why main is red (post-#185 triage) - `changelog` workflow: `startup_failure`, 0 jobs, twice (`900c1416`, `e6d02db`). Root cause: the caller lacks top-level `actions: read`, so the reusable dispatch gets `actions: none` and dies before any job starts (same failure is documented in hyperpolymath/standards' own caller). The pinned reusable SHA is fine (`b77c53c` is on standards main, byte-identical to main). - `security-linter`: `actions.lock` pinned codeql-action v4.38.0 while #187 bumped the workflow to v4.38.1 (`gh-actions-lock` never re-ran). - `empty-linter`: 206 systematic `@\u200b` mention-defusings inside `<code>` spans in CHANGELOG.md (verified by scan: no other invisible codepoints in tree). - `docs-gate`: root-anchored presence check now requires root CONTRIBUTING.adoc (cutoff 2026-08-21 passed). ## What this PR does (5 commits, squash to one) 1. changelog caller: top-level `actions: read`, job `contents: write` + `pull-requests: write`, reusable mode to `pr-back` (commit-back is dead under the signed-commit rule), T1 review note, STATE incident + Intentfile. 2. `actions.lock` → v4.38.1 (`sha1-1c5b6756…`, matches upstream tag SHA). 3. Strip the 206 ZWSP (render-neutral: they sit inside code spans). 4. Add root CONTRIBUTING.adoc. 5. Port CodeRabbit T1/T2/T4–T10 responses to main (9/9 files byte-identical to review; T3 deferred — 7-walker perf, per-check budgets are by design). ## Verification (all on the tip commit) cargo build/test (68+47 green), fmt, clippy -D warnings, zero-dep tree, aletheia self-scan 26/26 Silver, upstream check-docs-presence.sh exit 0, full-tree invisible scan 0 hits. Merge: squash only (branch commits unsigned, required_signatures active).
1 parent e6d02db commit 0f837de

15 files changed

Lines changed: 420 additions & 249 deletions

File tree

‎.github/workflows/actions.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ workflows:
1515
'.github/workflows/changelog.yml': []
1616
'.github/workflows/codeql.yml':
1717
- 'actions/checkout@v7.0.1'
18-
- 'github/codeql-action@v4.38.0'
18+
- 'github/codeql-action@v4.38.1'
1919
'.github/workflows/dogfood-gate.yml':
2020
- 'actions/checkout@v7.0.1'
2121
'.github/workflows/governance.yml': []
@@ -68,9 +68,9 @@ dependencies:
6868
repo_id: 496012378
6969
uses:
7070
- 'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f'
71-
'github/codeql-action@v4.38.0':
72-
ref: 'v4.38.0'
73-
commit: 'sha1-b96794f015dfd88f77b49b1c93e0fa7110f94c63'
71+
'github/codeql-action@v4.38.1':
72+
ref: 'v4.38.1'
73+
commit: 'sha1-1c5b675653bb5c22dbe9b12b556ec555138e09fd'
7474
owner_id: 9919
7575
repo_id: 259445878
7676
'haskell-actions/setup@v2.12.0':

‎.github/workflows/changelog.yml‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# CHANGELOG automation (issue #100): regenerates CHANGELOG.md from
3-
# conventional commits on every push to main and commits it straight back
4-
# (commit-back). Main has no branch protection (verified 2026-09-21), so no
5-
# PR round-trip is needed; if protection is ever enabled, switch `mode` to
6-
# `pr-back`. Uses the canonical cliff.toml from standards (no local
7-
# cliff.toml by design — one config for the estate). CHANGELOG.adoc is
8-
# retained as a frozen pointer to the generated CHANGELOG.md.
3+
# conventional commits on every push to main and opens a PR with the result
4+
# (pr-back). Two hard lessons baked in: (1) main is guarded by the
5+
# Optimus-Branch ruleset (PR-required, signed commits, zero bypass actors —
6+
# see the optimus-branch-ruleset landmine in STATE.a2ml), which rejects a
7+
# commit-back direct push; (2) the reusable requests `actions: read`, so the
8+
# caller MUST declare top-level `actions: read` — omitting it makes GitHub
9+
# reject the run at startup_failure with zero jobs and no log (both main
10+
# runs did exactly that on 2026-09-21). Merge the changelog PRs it opens
11+
# (squash keeps required_signatures satisfied — GitHub signs the squash
12+
# commit). Uses the canonical cliff.toml from standards (no local cliff.toml
13+
# by design — one config for the estate). CHANGELOG.adoc is retained as a
14+
# frozen pointer.
915
name: changelog
1016
on:
1117
push:
@@ -14,13 +20,17 @@ concurrency:
1420
group: ${{ github.workflow }}-${{ github.ref }}
1521
cancel-in-progress: true
1622
permissions:
23+
actions: read
1724
contents: read
1825
jobs:
1926
changelog:
2027
permissions:
2128
contents: write
29+
# REQUIRED for pr-back: the reusable opens the changelog PR via the
30+
# API. (Review T1 on #185 asked to drop this; that was correct for
31+
# commit-back and wrong for pr-back — see the header.)
2232
pull-requests: write
2333
# Pinned to standards@main as of 2026-09-21 (commits/changelog: #886).
2434
uses: hyperpolymath/standards/.github/workflows/changelog-reusable.yml@b77c53c85e5734756a793497845735485c9dc933
2535
with:
26-
mode: commit-back
36+
mode: pr-back

‎.machine_readable/6a2/STATE.a2ml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ aletheia-integration-tests = "45 pass, 0 fail — CLI built to the RSR v2 SSOT;
2222
aletheia-clippy = "0 findings; `clippy --all-targets -- -D warnings` blocks in rust-ci.yml + `just lint` (issue #125 closed 2026-09-21)"
2323
absolute-zero-tests = "13 brainfuck + 5 whitespace unit, 10 E2E, 11 property, 11 aspect — run in the upstream repo, not here"
2424
benchmarks = "criterion-based (absolute-zero/benches/cno_benchmarks.rs)"
25-
test-result = "ON THIS BRANCH: build + full suite (66+45) + fmt + clippy -D + zero-dep all GREEN via `just check`; root rust-ci.yml restored to run the same on main"
25+
test-result = "main: build + full suite (68+47) + fmt + clippy -D + zero-dep all GREEN via `just check`; root rust-ci.yml restored to run the same on main"
2626
integration-test-caveat = "RETIRED 2026-09-21 (the warning was heeded): the suite still asserts on stdout substrings (a UI contract), but the checks were built to the upstream SSOT criteria — each cites its v2 criterion — not to the strings. Keep that direction: SSOT first, strings second."
2727
note = "absolute-zero/ is a git submodule since PR #89; aletheia/ is VENDORED plain files, not a submodule"
2828

@@ -86,11 +86,13 @@ pr-145 = "removed the stray worktree gitlink breaking every recursive checkout
8686

8787
[recent-work-2026-09]
8888
# The all-open-issues campaign, 2026-09-21. All five open issues closed.
89-
issue-124 = "Aletheia CLI rebuilt on the RSR v2 SSOT (standards rsr-criteria-v2.a2ml v2.1.0-draft): 26-check offline subset, TOML config, human/JSON/SARIF/HTML/badge/quiet/verbose output, exit codes 0-4; 66 unit + 45 integration green"
89+
issue-124 = "Aletheia CLI rebuilt on the RSR v2 SSOT (standards rsr-criteria-v2.a2ml v2.1.0-draft): 26-check offline subset, TOML config, human/JSON/SARIF/HTML/badge/quiet/verbose output, exit codes 0-4; 68 unit + 47 integration green (review-response R1: T1/T2/T4-T10 addressed)"
9090
issue-125 = "Clippy findings wired away (no allow(dead_code)); `clippy --all-targets -- -D warnings` blocks in rust-ci.yml + `just lint`"
9191
issue-102 = "Root Justfile declared canonical; contractiles/Justfile stub (fake gates) replaced by a forwarding shim; repaired crg-grade/crg-badge (Make-style $$ broke every run)"
92-
issue-100 = "changelog.yml adopted (commit-back); CHANGELOG.md seeded; CHANGELOG.adoc frozen as pointer"
92+
issue-100 = "changelog.yml adopted (pr-back; commit-back blocked by Optimus-Branch ruleset); CHANGELOG.md seeded; CHANGELOG.adoc frozen as pointer"
9393
issue-98 = ".hypatia-ignore pruned to a comments-only audit record (all 10 entries verified dead); upstream residue in absolute-zero#77"
94+
review-response-185 = "CodeRabbit T1-T10 triaged: T6 parser (flags after positional), T4 symlink depth/truncation, T5 unterminated array, T7 hook exit codes, T8 HTML tier label, T9 pid fixtures, T10 submodule test, T2 SHA pin, T1 perm kept+documented; T3 perf consolidation deferred with reason"
95+
main-health-red-to-green = "2026-09-21: changelog caller fixed (top-level actions:read — the reusable requests it — plus pr-back for the ruleset-guarded main); actions.lock reconciled to codeql-action v4.38.1 (#187 fallout); U+200B removed from CHANGELOG.md (empty-linter); root CONTRIBUTING.adoc added (docs-gate cutoff passed)"
9496
rust-ci-restore = "Root rust-ci.yml restored re-pointed at aletheia/ (5 jobs mirroring `just check`); pin check taught the estate tags+actions.lock mechanism; Bun lockfile carve-out for no-node-runtime"
9597

9698
[incidents]
@@ -99,6 +101,7 @@ clobber-is-a-policy-violation = "absolute-zero/.claude/CLAUDE.md lists PMPL-1.0
99101
stray-worktree-gitlink = ".claude/worktrees/maa-ci-repair was committed as a gitlink (mode 160000) with NO .gitmodules entry. Git refuses: 'fatal: No url found for submodule path ... in .gitmodules'. This broke OSSF Scorecard AT CHECKOUT, before a single probe ran, and breaks any recursive clone. Fixed in #145; .claude/worktrees/ now gitignored."
100102
gitlink-shape-is-a-repeat = "639f389 (2026-02-21) left aletheia as a gitlink with no .gitmodules entry. A gitlink WITHOUT its mapping resolves to a silently-empty directory — git's quietest failure — and went unnoticed for over a month."
101103
dead-sha-pin-check = "aletheia's own Silver-level 'GitHub Actions SHA pinning' check used `line.contains(\"@v\") && !line.contains(\"@\")`, which is UNSATISFIABLE — every repo passed unconditionally, including this one while it carried the unpinned @master action that had broken Governance and CodeQL. Fixed with 3 tests in #144."
104+
changelog-startup-failure = "2026-09-21: both changelog runs on main (900c141, e6d02db) startup_failed with zero jobs and no log — the caller declared top-level permissions without actions:read while the reusable requests it (standards own caller documents this exact trap). Fixed same-day with actions:read + pr-back."
102105

103106
[open-questions]
104107
# These need a human ruling; they are not research tasks.
@@ -115,7 +118,7 @@ proof-debt = "See [proof-state]. Note the older figure in docs/proof-debt.md (80
115118
resolve-rsr-source-of-truth = "RESOLVED 2026-09-21: oracle normative, criteria in standards SSOT, aletheia takes the offline subset (see [open-questions].rsr-source-of-truth)"
116119
empty-merged-prs = "#146 (ci(codeql) cron weekly->monthly) and #147 (Worktree maa ci repair) are BOTH EMPTY — git diff between parent and merge is blank. #146 stated change was already present. A merged PR title is not evidence the change happened; check git diff --stat."
117120
soundness-axioms = "Fix or delete prob_nonneg, prob_normalized, shannon_entropy_maximum while they are still unused"
118-
changelog-automation = "RESOLVED 2026-09-21 (#100): changelog.yml adopted (commit-back), CHANGELOG.md seeded with the exact reusable recipe, CHANGELOG.adoc frozen as a pointer"
121+
changelog-automation = "RESOLVED 2026-09-21 (#100): changelog.yml adopted (pr-back — commit-back rejected by the Optimus-Branch ruleset, zero bypass actors; caller also needed top-level actions:read after both main runs startup_failed), CHANGELOG.md seeded with the exact reusable recipe, CHANGELOG.adoc frozen as a pointer"
119122
hypatia-ignore-prune = "RESOLVED 2026-09-21 (#98): all 10 entries verified dead at the pinned submodule commit; .hypatia-ignore is a comments-only audit record, upstream residue in absolute-zero#77"
120123
submodule-docs = "RESOLVED 2026-09-21: clone block in QUICKSTART-DEV documents `git submodule update --init`"
121124

@@ -128,3 +131,4 @@ generic-summary-is-not-detection = "The staleness job prints 'Remove legacy scor
128131
never-commit-dash-a = "Two separate defects reached main in one `git commit -a` (#142). Never use it in this repo."
129132
never-allow-dead-code = "Do not silence #125 with #![allow(dead_code)]. The dead code is the specification of the missing feature, and rust-ci.yml's header forbids it."
130133
never-restore-aletheia-from-mirror = "The in-tree copy is AHEAD — 134 tracked files vs 108, 45 in-tree only. The mirrors' only unique asset is 62 commits of history to 2026-01-03."
134+
optimus-branch-ruleset = "main is guarded by the Optimus-Branch RULESET (not branch protection — the legacy API 404s): PR-required, signed commits, strict CodeRabbit+governance checks, code-scanning gates, ZERO bypass actors. Direct pushes fail; workflows use pr-back, humans squash-merge."

‎.machine_readable/contractiles/Intentfile.a2ml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ status = "declared"
6161
name = "changelog-automation"
6262
description = "Adopt changelog-reusable.yml (standards#206) so CHANGELOG.md stays in sync with conventional commits"
6363
status = "done"
64-
notes = "Closed #100 on 2026-09-21: changelog.yml (commit-back), CHANGELOG.md seeded, CHANGELOG.adoc frozen as pointer"
64+
notes = "Closed #100 on 2026-09-21: changelog.yml (pr-back — Optimus-Branch ruleset rejects direct pushes), CHANGELOG.md seeded, CHANGELOG.adoc frozen as pointer"
6565

6666
[[intents]]
6767
name = "root-justfile-wiring"

0 commit comments

Comments
 (0)