Skip to content

Gate all 20 first-party forks: one org ruleset reusing the required workflow, plus tag-on-merge #320

Todo

Description

@aitrawog

Category

category:governance

Type

type:fix

Remedy / files the remedy will touch

dotgithub: scripts/lib-org.sh, scripts/org-ruleset.sh, scripts/retire-per-repo-dispatchers.sh, scripts/reconcile-tag-on-merge-callers.sh, scripts/sync-forks.sh, .github/workflows/tag-on-merge.yml, .github/workflows/tag-on-merge-dispatcher.yml, .github/workflows/sync-forks.yml, tests, README/AGENTS. umbrella: DESIGN.md A.12, README.md org map, .agents/skills/repo-setup/SKILL.md.

Cited design decision or org-rulebook rule (or none)

#179, #212, #225, #317; AGENTS.md R11; DESIGN.md A.12 (D-PLUG-3)

Summary

Measured 2026-11-25: the org has 20 active forks, and the org-wide gate covers none of them. 17 have no branch rules at all; crabbox and Qwen3-TTS carry non-canonical repo rulesets; gst-wayland-display has protection without a required check. 13 have allow_auto_merge=false (so a PASS renders as a failed check, #212) and 17 have delete_branch_on_merge=false. 14 have no tag-on-merge caller, and the 6 existing copies are mixed vintage (Qwen3-TTS carries the 5-minute, no-backstop dispatcher).

Remedy

Reuse the org required workflow instead of copying a caller into each fork:

  • A second org ruleset (B) from the same org-ruleset.sh payload builder as the existing one, scoped to the 20 forks, ref ~DEFAULT_BRANCH, carrying the SAME workflows rule + strict required validate / validate + nf/del/creation + the charly-auto-merge App bypass.
  • Per-repo settings (auto-merge, delete-branch) over the discovered fork set.
  • Tag-on-merge callers installed/normalized by the existing reconcile, extended to forks; fix the reusable to use pr.base.ref and the dispatcher to cover master/stable.
  • Mirror sync moves to a dotgithub App-token merge-upstream workflow (the App is the ruleset bypass), because the workflows rule blocks a user-token gh repo sync (R1: a first-party fork repo never gets allow_auto_merge, so a PASS verdict cannot arm native auto-merge #179).
  • Delete the per-fork pr-validator.yml mechanism (template + two copies) as legacy.
  • DESIGN A.12 amendment: forks now mint CalVer, so the "a fork mints no release tag" row is false.
  • repo-setup skill: replace the "forks are excluded by design" model with the new org-wide model and a fork-onboarding checklist.

Related

#179 (settings half), #212 (PASS-as-failure), #225 (verify blind to non-canonical rulesets), #317 (gst no tag), #175/#309 (stalled auto-merge shapes watched by the canary).

Agent: fork-ci-gate · Claude Code session a49fdfba-bbc0-403f-90b9-3e298539b848
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Activity

  1. added
    category:governance
    type:fix
    on Nov 25, 2026
  2. aitrawog commented on Nov 25, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    CLAIM — taking this cutover.

    Scope: the dotgithub mechanism (org ruleset B reusing the required workflow, fork settings, fork-scoped retire/reconcile, the tag-on-merge base-ref + dispatcher fixes, the App-token mirror sync) and the umbrella surfaces (DESIGN A.12, README org map, repo-setup skill).

    Order: dotgithub PR first, then the umbrella PR, then the operator-authorized rollout (retire copies, install tag callers, apply the ruleset, verify, canaries). No fork has an open PR today, so the cutover has no in-flight work.

    Next update: on the dotgithub PR opening.

    Agent: fork-ci-gate · Claude Code session a49fdfba-bbc0-403f-90b9-3e298539b848
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  3. self-assigned this
    on Nov 25, 2026
  4. aitrawog commented on Nov 25, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    STATUS — the mechanism landed.

    #322 merged 2026-11-25T09:23:41Z (squash; tag v2026.329.0923; CHANGELOG/2026.329.0923.md). workflow-checks and validate / lint passed; the only BLOCK was T4, and the operator-directed sign-off is on the thread.

    In: org ruleset B for the active forks (the SAME required workflow, no per-fork caller), the fork settings loop, the duplicate-producer refusal, the #225 verify loop, SCOPE=forks retire/reconcile, the pr.base.ref + dispatcher-ref fixes, and sync-forks.yml.

    Next: the umbrella DESIGN A.12 / repo-setup skill PR (design-check and verify running), then the operator-authorized rollout — retire the fork copies, install/normalize the tag callers, org-ruleset.sh apply, verify, one canary per class. #179 stays open until the apply makes the live settings true.

    Agent: fork-ci-gate · Claude Code session a49fdfba-bbc0-403f-90b9-3e298539b848
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  5. aitrawog commented on Nov 25, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    STATUS — the contract half is up.

    opencharly/opencharly#1280 (DESIGN A.12 amendment + the repo-setup skill + the design-pintag comment) is open, head 4ba46ce. The design check passed all 7 controls on that tree (400 pins, 0 skipped), task verify and task org-map pass, and the operator-directed maintainer sign-off is on the thread. A durable gate anomaly found on the way is filed as opencharly/opencharly#1279 (a store that already holds its pin is never refreshed with --tags; fixed operationally, no census row).

    Next: #1280 merges, then the operator-authorized rollout (retire the fork copies → install/normalize the tag callers → org-ruleset.sh apply → verify → one canary per class). #179 closes at the apply.

    Agent: fork-ci-gate · Claude Code session a49fdfba-bbc0-403f-90b9-3e298539b848
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  6. aitrawog commented on Nov 25, 2026

    @aitrawog
    ContributorAuthor

    WAITING

    WAITING — the rollout's ruleset-B activation waits on gst-wayland-display#23, which the operator merges first. An already-open PR carries no required validate / validate run and GitHub does not run the required workflow for it retroactively, so activating B before the merge would leave #23 unmergeable until a push. The census remains read-only; nothing has been written to any fork or to the org ruleset.

    Agent: fork-ci-gate · Claude Code session a49fdfba-bbc0-403f-90b9-3e298539b848
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

  7. aitrawog commented on Nov 25, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    STATUS — the fork config is applied and verified.

    Ruleset B 28070629 fork required workflow & main protection is live over the 20 active forks (the SAME required workflow, ~DEFAULT_BRANCH), A's stale exclude is fixed, all 20 forks now have allow_auto_merge=true and delete_branch_on_merge=true (allow_update_branch=false), 13 callers were INSTALLED and 7 normalized+tagged, and the 2 per-fork validator copies are retired. gst-wayland-display's stable carries workflows + strict validate / validate + nf/del/creation.

    The full verify produced zero fork findings. Its one finding was pre-existing and outside the fork set: vm-nvidia defaulted to feat/vm-nvidia-box while a main ref exists; it is now patched to main as the verify prescribes. A full verify re-run needs the REST quota (990 calls left after the scan); the next reset confirms the org-wide green.

    Still owed: (1) the durable source_type fix PR — the rollout skips org-sourced rulesets with a LOCAL patch, while the merged script would 404 on them and misread B as repo-scoped; (2) the reconcile read-back fix (read at the PUT's returned commit SHA) — the rollout converged with a bounded, evidence-checked loop; (3) the canaries (runtime proof of auto-merge + CalVer per class).

    #179 and #317 are closed with the live evidence; #23 has RESOLVED.

    Agent: fork-ci-gate · Claude Code session a49fdfba-bbc0-403f-90b9-3e298539b848
    Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:governancetype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions