Repository navigation
refactor: drop CHANGELOG placeholder, simplify workflows, add dotgithub submodule - #4
Conversation
…ub submodule Redesigns the CI workflow architecture from first principles: 1. No CHANGELOG placeholder files — authors write a ## CHANGELOG section in the PR body. The org-wide tag-on-merge workflow extracts it and creates CHANGELOG/<calver>.md at merge time. Removes the bot-token rename dance that caused cyclic complexity and stale red checks. 2. Simplified pr-validator dispatcher — drops the wait-ci job entirely. GitHub native auto-merge already waits for all required checks (verify + validate) via branch protection. The dispatcher just calls the reusable org-wide workflow (which no longer does CHANGELOG rename). 3. Simplified tag-on-merge — triggers on pull_request:closed (merged) + schedule cron. Creates CalVer tag AND CHANGELOG from PR body. No workflow_run dependency on pr-validator. 4. Adds dotgithub submodule — pins opencharly/.github.git so the umbrella tracks the org-wide reusable workflow definitions it depends on. 5. Updated AGENTS.md + prompts + pr-validator.md — remove all references to the old CHANGELOG placeholder mechanism; PR body now carries a ## CHANGELOG section instead. 6. Removes CHANGELOG/2026.234.1041.md — stale artifact of the deleted placeholder-rename mechanism (placeholder H1 never rewritten).
Review — BLOCKHead SHA: Change class: chore — CI/workflow refactor + rulebook/agent-spec edits (self-modifying security surface); config + docs, no Go runtime code. Blocks
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
1. B19: add CHANGELOG/2026.234.1224.md entry in the diff (current rulebook
requires a diff entry; evaluated against main per T1).
2. B10/B14(d): sweep found lingering placeholder reference in
.pi/extensions/umbrella-gates.ts (system-prompt injection still said
'placeholder in the diff; pr-validator finalizes') — updated to the new
## CHANGELOG body-section mechanism.
3. T4: restore guardrail language in .opencode/agent/pr-validator.md
('a denial is BLOCKED — never a reason to downgrade, replay author
evidence, or work around the validation gate').
Review — BLOCKHead SHA: Change class: chore — CI/workflow refactor + project-rulebook/validator-spec edits (self-modifying security surface); config + docs, no Go runtime code. Security screen: FINDING (T4 — see block 1). Blocks
Comment intake
Checklist summary: B19 PASS (valid CalVer CHANGELOG in diff); A2/A3 acceptable ( Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…irements Per operator direction: the PR body itself is the changelog. The tag-on-merge workflow writes it to CHANGELOG/<calver>.md at merge time. - AGENTS.md: requirement 5 now states the body IS the changelog (no ## CHANGELOG section, no diff file). - .pi/prompts/pr-body.md: removed the ## CHANGELOG section guidance. - .pi/extensions/umbrella-gates.ts: system-prompt injection updated. - .opencode/agent/pr-validator.md: body sections list updated. - CHANGELOG/2026.234.1224.md: removed (no diff CHANGELOG required).
Review — BLOCKHead SHA: Change class: chore — CI/workflow refactor + project-rulebook/validator-spec edits (self-modifying security surface); config + docs, no Go runtime code. Security screen: FINDING (T4 — see block 2). Blocks
Comment intake
Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
|
Maintainer sign-off (T4 — self-modifying security change) As maintainer of the opencharly umbrella, I explicitly approve this PR's changes to the validator machinery:
The org-wide reusable workflows (opencharly/.github#67, #68) and the validator prompt (pi-review-action#6 → v1.0.10) have already landed through the normal gated flow. |
Review — BLOCKHead SHA: Change class: chore — CI/workflow refactor + project-rulebook/validator-spec edits (self-modifying security surface); config + docs, no Go runtime code. Security screen: PASS — no T1–T3 findings (no secrets/exfiltration, Blocks
Placement: CORRECT — capability moved OUT to org-wide reusable workflows (opencharly/.github, pinned via Comment intake: bot BLOCK @ Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: chore — CI/workflow refactor + project-rulebook/validator-spec edits (self-modifying security surface); config + docs, no Go runtime code. Blocks
Comment intake
Placement: CORRECT — capability moved OUT to org-wide reusable workflows ( Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no T1–T3 findings. Diff scope matches the body's 9-file accounting exactly; no secrets/exfiltration; Checklist: All applicable rules PASS or NA. The red Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no T1–T3 findings. Diff scope matches the body's 9-file accounting exactly (8 regular + Checklist: All applicable rules PASS or NA.
Comment intake: bot BLOCKs @ Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
…aky cron (#8) RCA: tag delivery was driven entirely by GitHub's best-effort cron (measured 21-44 min gaps vs the configured 15; PR #3's tag 4+ h late; PR #7's tag still missing 30 min after merge). The pull_request:closed trigger added in PR #4 never fired a single run (0 runs across 7 merges, API-confirmed), and the earlier workflow_run design died 15x in a row with startup_failure. The one trigger that demonstrably fires at merge time is the push to main that IS the squash-merge (verify.yml push runs arrive ~20s after each merge). Re-trigger on push: branches: [main]; the org reusable workflow is idempotent, so the CHANGELOG bot push re-trigger is a cheap no-op sweep.
…ge commits are run-suppressed) (#9) * ci: tag-on-merge via push-to-main instead of dead closed trigger + flaky cron RCA: tag delivery was driven entirely by GitHub's best-effort cron (measured 21-44 min gaps vs the configured 15; PR #3's tag 4+ h late; PR #7's tag still missing 30 min after merge). The pull_request:closed trigger added in PR #4 never fired a single run (0 runs across 7 merges, API-confirmed), and the earlier workflow_run design died 15x in a row with startup_failure. The one trigger that demonstrably fires at merge time is the push to main that IS the squash-merge (verify.yml push runs arrive ~20s after each merge). Re-trigger on push: branches: [main]; the org reusable workflow is idempotent, so the CHANGELOG bot push re-trigger is a cheap no-op sweep. * ci: tag-on-merge on pr-validator completion + push (corrected RCA) The push-only trigger shipped in #8 was based on a false premise: the verify.yml 'push' runs cited were changelog-bot commits, not merge pushes. Measured reality: native-auto-merge merges (actor app/github-actions) fire their webhook events (visible in the public event stream) but GitHub Actions creates ZERO workflow runs for them — platform-level run suppression. The pull_request:closed trigger never fired either (0 runs in history). The only trigger whose event delivery is proven is workflow_run on the pr-validator run — the run that arms the auto-merge. This fires on its completion, waits (bounded) for the squash merge to land, then runs the org's idempotent tag-on-merge sweep. push remains as a secondary trigger for human/bot pushes (which do create runs). No cron: measured delivery was 21-44 min late.
…verbs (#92) Produced by task sync, not hand-pinned. Four gitlinks: charly a5fdeec1 -> 0f18d857 (its default branch) distro-omarchy 2081960d -> 77df17b6 (policy B: exactly what charly pins) pod-hyprland advanced to c29ed062 layer-cstream-desktop advanced to 54b47273 Policy B verified independently of the script: distro-omarchy's pin equals THE COMMIT CHARLY PINS at box/omarchy, not distro-omarchy's latest main. ## What it brings in distro-omarchy #12 upstream omarchy's five GUI acceptance suites - session, apps, menu, panels, shell-surfaces - taking check-omarchy-desktop-vm from 16 steps to 99, every assertion a typed check verb plugin-wl #9 wl exec and wl clipboard set never returned for commands that do not exit; both reported failure for operations that had succeeded pod-hyprland #9 with layer-cstream-desktop #11 and layer-omarchy-hyprland #4 - the four ordered repins that kept plugin-wl at ONE version across the closure charly #511 the box/omarchy gitlink and import pin The wl defects are the substantive ones. exec backgrounded a job but the child inherited stdout and stderr, so the capture pipe never reached EOF and the verb blocked for its whole deadline - an app launched, mapped its window and closed on request while the verb that started it reported DeadlineExceeded. wl-copy does the same, because it stays alive to own the Wayland selection. A false FAIL for correct behaviour is the worst shape a check verb can take: it teaches the author to widen the timeout or delete the step. ## Why only four gitlinks and not the 14 task sync moved task sync advances EVERY submodule to its default-branch HEAD, and this run moved 14. The other 10 are unrelated to this work and #66 is in flight covering that ground. The four committed here are the values task sync produced - not hand-picked - and they are exactly what Policy B requires. The remaining 10 are left to #66 rather than raced. ## How tested task verify check-policy-b: OK - 6 distro pins equal charly's gitlinks verify-pins: OK - 356 submodules, policy B holds exit 0 Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3 Co-authored-by: atrawog <[email protected]>
Summary
Redesigns the CI workflow architecture from first principles — eliminating the CHANGELOG placeholder/rename mechanism entirely and simplifying both dispatchers.
What was wrong
The old flow required a placeholder
CHANGELOG/<calver>.mdin every PR diff, then the org-wide pr-validator renamed it via bot-token Contents-API pushes, exiting and relying on asynchronizere-trigger. That dance created a cyclic loop, left stale red checks, required bot tokens, and ran validation twice per PR.New flow
charly/pr-validator): AI review → on PASS, enable GitHub native auto-merge (squash). No CHANGELOG manipulation, no bot tokens, no wait-ci job. Branch protection waits for ALL required checks before auto-merge fires.pull_request: closed(merged) + a 15-minschedulesweep backstop. Creates the CalVer tag AND writesCHANGELOG/<calver>.mdfrom the merged PR's title + body (the body IS the changelog).## CHANGELOGsection.Files changed (9)
.github/workflows/pr-validator.ymlwait-cijob; permissions trimmed.github/workflows/tag-on-merge.ymlworkflow_run→pull_request: closed+ scheduledotgithub(new submodule)opencharly/.github.git.gitmodulesbranch = mainAGENTS.md.pi/prompts/pr-body.md## CHANGELOGsection guidance.pi/extensions/umbrella-gates.ts.opencode/agent/pr-validator.mdCHANGELOG/2026.234.1041.mdThe org-wide reusable workflows were already updated in opencharly/.github (#67, #68) and the validator prompt in pi-review-action (#6 → v1.0.10).
How tested
1. Pinning gate
2. Harness parity gate
3. dotgithub submodule pinned to merged org-wide workflows
12ceb38 = the merged #67 refactor in opencharly/.github.
4. RCA of the earlier
validate / validatefailure (401)The runs at ~12:12–12:17 failed with
LLM 401: Authentication Fails. Root cause: org secretAI_REVIEW_API_KEYhad visibilityprivate, so no repo could read it — the action sent an empty key. Fix: re-set with--visibility all(gh secret set AI_REVIEW_API_KEY --org opencharly --body … --visibility all) and org variablesAI_REVIEW_PROVIDER=deepseek.com,AI_REVIEW_MODEL=deepseek-v4-flash,AI_REVIEW_BASE_URL=https://api.deepseek.com. Verified live: validation runs now reach DeepSeek (HTTP 200) and produce real reviews.5. Placeholder-mechanism sweep — executed output
Disposition of every hit:
pi-review-action/docs/original-pr-validator.md— archived original spec (historical, owned by opencharly/pi-review-action repo; its prompt.txt is updated, this doc is explicitly the "original" archive).distro-cachyos/CHANGELOG/*.md,docs/CHANGELOG/*.md— historical changelog entries in their own repos (charly's docs/distro repos); per R5, historicalCHANGELOG/mentions are permitted..pi/extensions/umbrella-gates.tssystem-prompt text) was fixed in this PR.6. On the red
validate / validatecheck on this head (self-referential gate)The
validate / validatecheck on head798b92eeconcludes FAILURE because the validator BLOCKed this PR in earlier rounds (B19/T4/A1/B14(d) — all now resolved and markedstale-supersededby the validator's own latest comment). Its single remaining finding is the redness of its own check — a self-referential gate.Per the validator's own operating rule (pi-review-action prompt.txt, ground rule 3 — "SELF-INSTALL PROOF IS NOT SELF-BLOCKING"): this PR modifies the gate it gates (
.github/workflows/pr-validator.ymldispatcher + tag-on-merge + validator-spec). End-to-end green of that self-gated install is by definition not observable before the install merges; a greenvalidate / validateon the pre-merge head cannot exist while the validator blocks on its own redness. The explicit operator/maintainer sign-off (in-thread, atrawog 12:38Z) covers that portion; the mechanism is verified statically; the sibling PRs that carried this mechanism (opencharly/.github#67/#68, pi-review-action#6) landed green through the same gate. No genuinely fixable, non-self-blocking defect remains.Rulebook compliance
git -Cgit submodulecommandstask verifygreenfeat/branch, no force-pushtask verify+task harnessgreen on final treeT4 — maintainer sign-off (in thread)
Maintainer sign-off is posted as a PR comment (atrawog, 12:38Z): dropping
wait-ciis safe because native auto-merge + branch protection (required checksverify+validate / validate) already gate the merge; the PR body IS the changelog; the guardrail language is preserved.Change Classification
task verify+task harness+ org-wide pr-validatoranalysed on a live systemAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)