Skip to content

ci: adopt org-wide validation chain — pr-validator + tag-on-merge, drop custom auto-merge - #2

Merged
atrawog merged 5 commits into
mainfrom
feat/ci-protection
Aug 22, 2026
Merged

atrawog merged 5 commits into
mainfrom
feat/ci-protection

Conversation

@atrawog

@atrawog atrawog commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adopts the org-wide validation chain for the umbrella, after an audit found
the merge/landing configuration was broken and divergent. Every file in the
diff:

  • .github/workflows/auto-merge.yml (deleted) — the custom auto-merge was
    broken (no actions/checkout; gh pr merge --auto and the inline tag
    computation failed with "not a git repository", run 32564343846) and
    diverged from the org pattern: it merged on the verify gate alone, with
    no AI validation, and tagged inline. Removed in favor of the org chain
    (R5 hard cutover — no legacy path survives).
  • .github/workflows/pr-validator.yml (new) — charly/pr-validator
    dispatcher, charly's exact pattern: wait-for-ci waits for the umbrella's
    verify pinning-gate check-run (charly waits for its go gate), then the
    validate job calls opencharly/.github/.github/workflows/pr-validator.yml@main,
    which runs the fresh AI review (pi-review-action) and enables native
    auto-merge on PASS. PR number resolved via
    inputs.pr-number || github.event.pull_request.number so the
    workflow_dispatch re-run path works.
  • .github/workflows/tag-on-merge.yml (new) — org sweep dispatcher:
    runs the org tag-on-merge reusable after every validator completion (plus
    a 15-minute schedule backstop) and tags every merged PR with its CalVer
    snapshot metaver.
  • README.md — the landing description now names the validator-gated chain
    (pr-validator → native auto-merge → tag-on-merge) instead of the old
    verify-only auto-merge.
  • CHANGELOG/README.md + CHANGELOG/2026.234.0000.md (new) — the
    repo-scoped CHANGELOG convention (one file per CalVer release), matching
    the org rule B19; the validator's rename step finalizes the placeholder to
    the merge-time CalVer.
  • AGENTS.md / CLAUDE.md (edited) — PR body requirements now mandate the
    CHANGELOG entry and the exact *Assisted-by: <Harness> <Provider Full Model Name> (<confidence>)* footer (rules A1/B19), and reference the
    validator-gated landing.
  • .pi/prompts/pr-body.md (edited) — template gains the CHANGELOG section,
    the exact attribution footer, and the validate AI gate as the
    verification gate.
  • .pi/extensions/umbrella-gates.ts (edited) — the per-turn rules
    injection's PR-body block updated to the same A1/B19 requirements.

Repo settings (via API, not part of the diff): allow_auto_merge=true,
squash-only merge, delete_branch_on_merge=true — matching charly.

Branch protection on main (required checks verify + validate / validate, enforce_admins, no force-push, no deletions) is enabled as an
immediate post-landing repo-setting step (it cannot exist in a diff;
self-gating bootstrap).

How tested

1. The chain end-to-end, live on this PR

  • verify (pinning gate) — success.
  • charly/pr-validator → wait-for-ci — success (waits for verify).
  • validate — fresh AI review by pi-review-action (this run).
  • CHANGELOG rename step — exercised: the placeholder was finalized to
    CHANGELOG/2026.234.0939.md and pushed by the bot token.

2. Pinning gate

bash scripts/verify-pins.sh → verify-pins: OK — 22 submodules, policy B holds

3. Repo settings (via API, already applied)

{"allow_auto_merge":true,"allow_merge_commit":false,"allow_rebase_merge":false,"allow_squash_merge":true,"delete_branch_on_merge":true}

Rulebook compliance

Rule Status Evidence
1. No edits inside submodules ✅ Only root .github/, CHANGELOG/, .pi/, docs files
2. Submodule git via git -C ✅ No submodule ops; tree clean
5. Only merged refs pinned ✅ No pins moved
6. Policy B equality ✅ verify-pins: OK
7. Subrepo rulebooks read ✅ charly's pr-validator.yml + org .github reusable workflows read
8. Harness parity ✅ The umbrella now runs charly's exact validation discipline
B19 CHANGELOG ✅ CHANGELOG/2026.234.0939.md (finalized by the validator)

Change Classification

  • Change class: chore (CI/validation config + rulebook + templates)
  • Verification gate: verify (CI) + validate / validate (fresh AI gate on this PR)
  • Attribution tier: fully tested and validated

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)

…op custom auto-merge

The umbrella's auto-merge.yml was broken (no actions/checkout — gh pr merge
and the tag's git log failed with 'not a git repository', see run
32564343846) and diverged from the org pattern: it merged on the verify
gate alone, with no AI validation, and tagged inline.

Replace it with the org-wide chain used by every opencharly repo (incl.
charly):
- .github/workflows/pr-validator.yml — charly/pr-validator dispatcher; waits
  for the umbrella's verify check-run (charly waits for its go gate), then
  calls opencharly/.github pr-validator.yml@main, which runs the fresh AI
  review (pi-review-action) and enables native auto-merge on PASS.
- .github/workflows/tag-on-merge.yml — org sweep dispatcher; tags merged PRs
  with the calver snapshot metaver.
- delete auto-merge.yml; README describes the validator-gated landing.

Repo settings were updated to match charly (allow_auto_merge, squash-only,
delete branch on merge).
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: c02a21fdcd80d9b4835a769214ca0ab6e97e20e1

Change class: hook/workflow (CI validation config — new pr-validator + tag-on-merge dispatchers, deleted auto-merge.yml, README update)

Blocks

  1. B19 — CHANGELOG missing. The diff (4 files: .github/workflows/auto-merge.yml deleted, .github/workflows/pr-validator.yml and .github/workflows/tag-on-merge.yml added, README.md edited) contains no CHANGELOG/ entry. Every PR must include a CalVer-formatted CHANGELOG/<calver>.md; a PR without one is a BLOCK. Add it.

  2. A1 — attribution footer not in the required exact form. The body ends with *Assisted-by: pi (Claude/pi agent), Andreas Trawoeger*, but the mandated form is *Assisted-by: <Harness> <Provider Full Model Name> (<confidence>)*. The <confidence> element is missing and the human name is not part of the form. Fix the footer to the exact form.

  3. R1/quality — the workflow_dispatch re-run path is statically broken. In .github/workflows/pr-validator.yml, the wait-ci script calls github.rest.pulls.get({ ...context.repo, pull_number: context.issue.number }) unconditionally. For a workflow_dispatch event there is no issue/pull_request payload, so context.issue.number is undefined and the API call fails — wait-ci fails, validate (which needs: wait-ci and is explicitly enabled for workflow_dispatch via its if) is skipped. The dispatched re-run path the workflow comment claims ("the dispatched re-run path gets the same guarantee") cannot run. Pass inputs.pr-number into the script (e.g. pull_number: ${{ inputs.pr-number || github.event.pull_request.number }}) and use it.

Verdict: BLOCK


openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action.

View action run

atrawog and others added 3 commits August 22, 2026 11:38
…on footer form

B19: add CHANGELOG/ (README + 2026.234.0000 placeholder) — every PR now
carries a CHANGELOG entry; the pr-validator finalizes the placeholder to
the merge-time CalVer.
R1: wait-ci in pr-validator.yml used context.issue.number, which is
undefined on workflow_dispatch — the dispatched re-run path was statically
broken. Use inputs.pr-number || github.event.pull_request.number.
A1: document the exact Assisted-by footer form in AGENTS.md/CLAUDE.md, the
pi pr-body prompt, and the umbrella-gates rules injection.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: a3e2b0505086ac017987b6b917a3f786604e23dd

Change class: hook/workflow (CI validation chain adoption — new pr-validator.yml + tag-on-merge.yml dispatchers, deleted auto-merge.yml, plus .pi templates, rulebook docs, and CHANGELOG files).

Blocks

  1. A1 — Summary of changes does not account for every file in the diff. The diff touches 10 files; the body's Summary accounts only for the three workflow changes and the repo-settings API call. It omits:

    • .pi/extensions/umbrella-gates.ts (PR-body gate template now requires CHANGELOG + exact Assisted-by: form)
    • .pi/prompts/pr-body.md (verification gate changed from scripts/verify-pins.sh to the validate AI gate; CHANGELOG section added)
    • AGENTS.md and CLAUDE.md (rulebook PR-body requirements updated)
    • README.md (chain description rewritten)
    • CHANGELOG/2026.234.0939.md and CHANGELOG/README.md (new CHANGELOG convention)

    A1 requires "a real Summary of changes accounting for every file/behavior in the diff (a diff item missing from the body's accounting is a defect)". Extend the Summary to cover these files and what each changes.

Comments considered

  • github-actions[bot] review on c02a21fdcd80 (3 findings): all stale-superseded — (1) CHANGELOG now present (CHANGELOG/2026.234.0939.md, valid CalVer filename + matching H1, B19 satisfied); (2) attribution footer now in the exact form *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)*; (3) wait-ci now resolves the PR number via inputs.pr-number || github.event.pull_request.number, fixing the workflow_dispatch path.

Verified non-blocking

  • Security screen: PASS — the change strengthens the validation chain (adds the AI validate gate, waits for the verify pinning gate, fork-PRs excluded from secrets-bearing validate job); no secrets, exfiltration, or guardrail weakening.
  • B19 CHANGELOG: PASS (filename 2026.234.0939.md matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 # 2026.234.0939 — Adopt the org-wide validation chain matches).
  • B16 placement: CORRECT (workflows in .github/workflows/, docs in rulebook files, templates in .pi/).
  • R2 branch-protection enablement is a named, immediate post-landing repo-setting step (cannot exist in a diff; self-gating bootstrap) — not a parked follow-up.
  • R4 wait-ci polling is a legitimate wait-for-gate synchronization, not a flake workaround.
  • R5 hard cutover: auto-merge.yml deleted in-tree, no legacy/dual-mode paths survive.
  • CI: verify success, wait-for-ci success, validate in_progress — the new chain is executing live on this PR.

Verdict: BLOCK


openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 309ed178e38b59f93b6821ae3a1b388f6c4fee36 (PR #2)

Security screen: PASS — change strengthens the validation chain (adds fresh AI validate gate, waits for the verify pinning gate, excludes fork PRs from the secrets-bearing validate job, removes the broken verify-only auto-merge); no secrets, exfiltration, or guardrail weakening; self-gating bootstrap (branch protection + tag-on-merge first live run) is inherently post-merge and statically verified per the self-install rule.

Checklist: All applicable rules PASS or NA. B19 CHANGELOG present and CalVer-valid (CHANGELOG/2026.234.0939.md, H1 matches, finalized by the bot's rename step — commits 6ed068272d25/a3e2b0505086 confirm it ran live). A1 body accounts for all 10 diff files, ends with the exact *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)* footer (provider/model consistent with the pi-review-action runtime evidence). A2/A3 tier justified — wait-ci and the CHANGELOG finalize executed live; validate is this run. R5 hard cutover (auto-merge.yml deleted, no legacy refs survive). R4 wait-ci is a gate-synchronization wait, not a flake workaround. B16 placement CORRECT (dispatchers in .github/workflows/, rulebook in AGENTS/CLAUDE, templates in .pi/). CI: verify ✅, wait-for-ci ✅, validate in_progress (this run).

Comments considered: both prior github-actions[bot] BLOCKs (c02a21fdcd80, a3e2b0505086) — stale-superseded; all three findings (CHANGELOG missing, footer form, workflow_dispatch wait-ci path) and the A1 file-accounting finding are verified fixed in the current diff/body.

Verdict: PASS


openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 309ed178e38b59f93b6821ae3a1b388f6c4fee36 (branch: main)

Security screen: PASS — change strengthens the validation chain (adds fresh AI validate gate behind a wait-for-ci gate on the verify pinning check, excludes fork PRs from the secrets-bearing validate job, deletes the broken verify-only auto-merge); no secrets, exfiltration, or guardrail weakening; post-merge repo settings (branch protection, tag-on-merge first run) are self-gating bootstrap, statically verified per the self-install rule.

Checklist: All applicable rules PASS or NA. A1 body accounts for all 10 diff files and ends with the exact *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)* footer, consistent with the pi-review-action runtime evidence. A2/A3 tier justified — wait-ci and the CHANGELOG finalize executed live (bot commits 6ed068272d25/a3e2b0505086); validate is this run; tag-on-merge is inherently post-merge. B19 CHANGELOG present and CalVer-valid (CHANGELOG/2026.234.0939.md, H1 # 2026.234.0939 — Adopt the org-wide validation chain matches). R5 hard cutover (auto-merge.yml deleted, no legacy refs survive in active docs). R4 wait-ci is gate synchronization, not a flake workaround. B16 placement CORRECT (dispatchers in .github/workflows/, rulebook in AGENTS/CLAUDE, templates in .pi/, history in CHANGELOG/). CI: verify ✅, wait-for-ci ✅, validate in_progress (this run).

Comments considered: both prior github-actions[bot] BLOCKs (c02a21fdcd80, a3e2b0505086) — stale-superseded; all findings (CHANGELOG missing, footer form, workflow_dispatch wait-ci path, A1 file accounting) verified fixed in the current diff/body.

Verdict: PASS


openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action.

View action run

@atrawog
atrawog merged commit ae3ea18 into main Aug 22, 2026
3 of 5 checks passed
@atrawog
atrawog deleted the feat/ci-protection branch August 22, 2026 10:05
charly-auto-merge Bot added a commit that referenced this pull request Aug 22, 2026
github-actions Bot pushed a commit that referenced this pull request Aug 28, 2026
…P removal (#32)

Runs scripts/sync-gitlinks.sh (task sync) and records the result. Policy B holds:
the 5 distro pins still equal charly's own gitlinks.

Three of the 23 close the chain that removed the charly-internals stdio github
MCP server:

  pod-charly-hooks  eead8c9 -> 3377c6b  the source fix (#2)
  charly            a2cc84b -> 084dc90  the candy ref bump (#426) + skills (#425)
  marketplace       7072e53 -> 9ded51f  the regenerated corpus (#234)

At the new marketplace pin, internals/.mcp.json no longer exists -- the artifact
that made plugin:charly-internals:github fail to start on every session.

The remaining 20 are unrelated org advances that task sync picks up by design;
policy forbids hand-pinning a subset.

Also removes 207 stale untracked charly/ checkouts left in this clone by the
Phase-4 candy cutover (each candy repo dropped its charly submodule; the old
working trees stayed on disk). They made 207 submodules dirty, which failed
verify-pins on a dirty docs working tree. All 207 were pristine -- no edits, no
stashes -- and are plain re-clonable checkouts. This is clone hygiene, not a
tracked change, so it appears in no diff.

Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq

Co-authored-by: atrawog <[email protected]>
atrawog added a commit that referenced this pull request Sep 4, 2026
Advance gitlinks for the merged remainder of the openclaw 2.0 batch:
- layer-container-nesting (pre-pull fix, PR #2)
- layer-openclaw-full (pod-openclaw 2.0 pin, PR #7)
- marketplace (corpus regenerations, PRs #281/#282)
- pod-selkies-core (GPU-check fixes, PR #17)
- pod-selkies-desktop (GPU-check pin, PR #11)

distro-cachyos stays at the charly box/cachyos gitlink (policy B).
github-actions Bot pushed a commit that referenced this pull request Sep 4, 2026
* chore(gitlink): advance the openclaw-2.0 batch remainder to main

Advance gitlinks for the merged remainder of the openclaw 2.0 batch:
- layer-container-nesting (pre-pull fix, PR #2)
- layer-openclaw-full (pod-openclaw 2.0 pin, PR #7)
- marketplace (corpus regenerations, PRs #281/#282)
- pod-selkies-core (GPU-check fixes, PR #17)
- pod-selkies-desktop (GPU-check pin, PR #11)

distro-cachyos stays at the charly box/cachyos gitlink (policy B).

* re-trigger: paste real task verify output
aitrawog pushed a commit that referenced this pull request Nov 17, 2026
The body listed 8 = stated-line-count, 9 = number-first, 10 = pasted-block. The script prints
8 = path-first, 9 = pasted-block, 10 = stated-line-count. Same finding as the previous round's #2,
re-derived against the current body.

This is the class arm 9 exists to catch -- a pasted block out of order -- applied to a TABLE, which is
arm 9's domain boundary rather than a gap: a table is prose, and prose has no print order to violate. But
a table whose whole purpose is to enumerate the arms should still enumerate them in the order they
print, and the reviewer is right that it did not.

Aligned, and the 'finding it answers' table below now maps 8,10 -> the two line-count word orders and
9 -> the verbatim-output claim.

Body first, event second.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
github-actions Bot pushed a commit that referenced this pull request Nov 19, 2026
…1141)

Two pin legs, both producer-first and both now available.

1. opencharly/vm-nvidia was created, merged (PR #2) and carries the VM half of the CDI/VM split, but the umbrella never learned it exists: absent from .gitmodules and with no gitlink, so 'charly task verify' could not judge its pin at all. It pins 35316667, its tag v2026.322.1344, because the pintag control requires a reachable tagged ancestor.

2. charly advances 992ae979 -> a836856b. That brings plugin-build v0.2026322.2319, whose PR #60 fixed the defect that blocked every pod bed: a caller's --tag was stamped onto borrowed builder boxes, so a check bed renamed arch-builder and buildkit then pulled a ref the registry never received ('failed to resolve source metadata: not found') while the image sat in the local store under its own tag. charly#1210 (squash bb139959, tag v2026.323.0011) carried the bump after the producer merged.

Measured: python3 scripts/org-map.py -> 396 submodules / 396 rows / matches=True, rc=0; bash scripts/design-pintag.sh -> rc=0 with vm-nvidia at 35316667, RED at the 28480944098 tip ('untagged - no tagged ancestor is reachable from the pin').

Breaking change + rollback: none - every pointer moves to a commit or tag the org has already merged and cut, and the README rows are additive. Rollback deletes the vm-nvidia gitlink, its .gitmodules stanza and its row, and restores charly to 992ae979; no other pin references either.

Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (analysed on a live system)

Co-authored-by: charly <[email protected]>
github-actions Bot pushed a commit that referenced this pull request Nov 20, 2026
…es in every clone, and gates that cannot be silently absent (#1199)

* feat(setup): one command to a ready session worktree, the DESIGN stores in every clone, and gates that cannot be silently absent

- init-submodules.sh --stores (CHARLY_INIT_MODE=stores): every declared
  submodule's blobless object store in the common git dir, no checkout, so
  the pre-push DESIGN gate reads every pin from any worktree; a linked
  worktree borrows each path's objects from those stores (Git alternate); a
  working-set run advances every other clean strict-ancestor checkout a pull
  left behind; the closing notice counts the checkouts on disk.
- scripts/new-worktree.sh + `charly task worktree`: fetch, worktree add on
  feat/<slug>, stores, working set, the worktree's own binary.
- bootstrap.sh: the stores step and fetch.recurseSubmodules=false.
- pre-push: a PINNED marketplace that is not materialized (absent, not a
  repository, a linter that cannot run) BLOCKS instead of skipping; the
  own-repository probe no longer reads the superproject's HEAD.
- pre-commit-gate.sh: an umbrella clone whose hooks are not installed is
  refused; a golangci-lint built with an older Go than the module targets is
  a visible NOTE, not a lint finding; gate_test.py fixtures name a Go the
  linter can load.
- docs: AGENTS.md Part II #2, the git-workflow B1 umbrella form and the
  alternate claim, the README table, .claude/worktrees/ git-ignored.

Closes #1155
Closes #1142

Claude-Session: https://claude.ai/code/session_01Tvdn3tcy49oyCiNkQTnPKn
Agent: agents-design-mandate · Claude Code session cfd0260c-188c-4e7d-b033-ec16b7acd01f
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

* docs(init): the stores comment names the DESIGN gate's inputs as they are after #1193

TODO.md stopped being a DESIGN gate input when #1193 untracked the working
documents; the comment now names DESIGN.md, design/ and a pin, and dates the
232-finding measurement to the TODO.md push it was taken on.

Claude-Session: https://claude.ai/code/session_01Tvdn3tcy49oyCiNkQTnPKn
Agent: agents-design-mandate · Claude Code session cfd0260c-188c-4e7d-b033-ec16b7acd01f
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant