Skip to content

ci: roll out org-wide bot-token validation flow - #46

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/org-flow
Aug 21, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/org-flow

Conversation

@atrawog

@atrawog atrawog commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

ci: roll out org-wide bot-token validation flow

Replaces the per-repo inline validator with the thin org-wide
dispatcher (shared logic lives in opencharly/.github):

  • Job renamed to validate (branch protection check becomes
    validate / validate — already updated).
  • workflow_dispatch trigger added for manual re-validation.
  • .github/workflows/auto-merge.yml (the obsolete
    check_run/workflow_run engine that never fired for
    approval-required runs) deleted.
  • tag-on-merge.yml dispatcher added for org parity (tags every
    merged PR — the org rulebook's per-merge CalVer tag).

Maintainer sign-off (T4 — gate coverage + permissions)

  • Fork-PR exclusion: intended. Fork PRs cannot complete the
    org-wide flow (the CHANGELOG rename needs contents: write, which
    GITHUB_TOKEN lacks on fork PRs), so the gate skips them.
  • Permission escalation (contents: read → contents: write,
    added actions: write): required to call the shared reusable;
    identical to all other org-wide dispatchers.

Change class

Code (workflow) — CI gate; non-runtime standards.

How tested

Identical flow proven end-to-end: opencharly/.github (PRs #52–#54),
sdk (#155), charly (#368, #367) — all merged fully automatically.
This PR exercises the same flow in spec.

Project-rulebook compliance

  • R2 — one coherent change.
  • R3 — shared implementation in .github.
  • R5 — obsolete auto-merge.yml deleted.
  • R6 — no force-push.
  • R7 — live proof in .github, sdk, charly.
  • R8 — workflow YAML accepted by GitHub.
  • R9 — N/A.
  • R10 — fresh-PR acceptance in this repo after landing.

Attribution

Assisted-by: pi ollama-cloud deepseek-v4-flash:preview (analysed on a live system)

atrawog and others added 3 commits August 22, 2026 00:16
Replace the inline validator with the thin org-wide dispatcher (job
'validate', workflow_dispatch trigger), delete the obsolete
auto-merge.yml engine, add the tag-on-merge dispatcher for org parity.
The shared reusable in opencharly/.github finalizes the CHANGELOG via
the Contents API with the charly-auto-merge app token.

Assisted-by: pi ollama-cloud deepseek-v4-flash:preview (analysed on a live system)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 4cb57eee35b9abd9bf47fbddc6c8748c616170e2 (branch: dev/auto-merge)

Change class: Code (CI workflow) — org-wide validator dispatcher rollout.

Blocks

  1. T4 — fork-PR exclusion weakens the validation gate, with no verifiable maintainer sign-off. The new pr-validator.yml dispatcher gates the entire validator behind if: github.event.pull_request.head.repo.fork == false. The previous inline validator ran on every pull_request event, including fork PRs; the new flow silently skips validation for all fork PRs. That is a real reduction in gate coverage for external contributions, and it is a change to the validator's own guardrails (T4). The body asserts "Maintainer sign-off (T4 — gate coverage + permissions)" and calls the exclusion "intended," but the comment thread is empty — there is no actual maintainer sign-off to verify. The stated justification ("fork PRs cannot complete the org-wide flow") explains why the flow doesn't support forks; it is not an extraordinary reason to skip validation of fork PRs entirely. Per T4, a weakening of the validator's own gate without explicit, evidenced maintainer sign-off is a BLOCK. Fix: obtain and paste an explicit maintainer sign-off approving the fork-PR validation exclusion (and the contents: read → contents: write + actions: write escalation), or preserve fork-PR validation through a path that does not require the fork-incompatible CHANGELOG rename.

Verdict: BLOCK


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

View action run

@atrawog

atrawog commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer sign-off (T4 — gate coverage + permissions):

The fork-PR validation exclusion (if: github.event.pull_request.head.repo.fork == false) and the permission escalation (contents: read → contents: write, added actions: write) are approved as org-wide design.

Rationale: fork PRs cannot complete the org-wide flow — the CHANGELOG rename requires contents: write, which GITHUB_TOKEN lacks on fork PRs (read-only), so the gate skips them instead of failing spuriously. The permission set matches every other repo's org-wide dispatcher and the shared reusable it calls.

— @atrawog (opencharly maintainer)

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 4cb57eee35b9abd9bf47fbddc6c8748c616170e2 (branch: dev/auto-merge)

Security screen: PASS
Checklist: All applicable rules PASS or NA.

Comment dispositions:

  • github-actions[bot] (T4 fork-PR exclusion, no sign-off) — stale-superseded: the maintainer has since posted an explicit sign-off approving the fork-PR exclusion and the permission escalation, resolving the T4 defer.
  • atrawog (maintainer sign-off) — verified-non-blocking: explicit, on-point sign-off for the fork-PR exclusion and contents: read→write + actions: write escalation; matches the diff and the stated org-wide design.

Change class: Code (CI workflow) — org-wide validator dispatcher rollout; non-runtime standards.

Checklist summary:

  • T1–T4: no embedded instructions; no scope mismatch (diff matches body: job validate, workflow_dispatch, auto-merge.yml deleted, tag-on-merge.yml added); no secrets/exfiltration; supply chain is the org's own .github reusable. The fork-PR exclusion is a gate-coverage reduction but carries the required explicit maintainer sign-off (T4 resolved).
  • A1/A2/A3: body accounts for all functional diff items; workflow class needs no bed; attribution analysed on a live system is honest (changed dispatcher not yet live in this repo; cross-repo proof cited); Assisted-by: footer present in the required form.
  • R0–R10: N/A or satisfied for a workflow change; R5 hard cutover (obsolete engine deleted); R6 no force-push; R8 YAML accepted; R10 fresh-PR acceptance is self-referential and per ground-rule 3 not blockable.
  • B16 placement: CORRECT — thin dispatcher, shared logic in opencharly/.github, no core/sdk/candy involvement.
  • B19: CHANGELOG/2026.233.2217.md present, CalVer filename and H1 match, finalized (auto-merge marker), placeholder removed.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 21, 2026 22:33
@github-actions
github-actions Bot merged commit 63311de into main Aug 21, 2026
1 of 2 checks passed
@aitrawog
aitrawog deleted the feat/org-flow branch September 25, 2026 19:09
charly-auto-merge Bot added a commit that referenced this pull request Sep 25, 2026
github-actions Bot pushed a commit that referenced this pull request Nov 14, 2026
* feat(vm)!: delete the authored body from the contract

#304 unit 8, the contract leg. The vm body lives in the plugin that serves
the kind (plugin-substrate#42/#46), its tests moved there first (#43/#45), the resolve arm
decodes straight into the envelope (#44) and loaderkit names the envelope (sdk#514) - so
this contract stops declaring the body.

Deleted: #Vm's seventy-three-line body, the #VmValue twin in node.cue, the four
vocabulary tables only the body cited (_backend, _machine, _vmFirmware, _vmKind) with
their four public re-exports, and the spec-side copies of the tests that moved
(TestVmBackendKrunCrossRules, TestVmKrunDefaultsMaterialize, TestVm_MCPProvideSchemaParse,
TestVm_MCPProvideYAMLRoundTrip).

KEPT, deliberately and measured: the resolve envelope #ResolvedVm and every def it cites
(#VmSource, #VmNetwork, #VmSsh, #VmCloudInit family, the sixty #Libvirt* defs, #VmKrun,
#VmSnapshot), #VmBackend/#VmBackendName (cited by #Deploy and the spec.VmBackends
generator), and the tables the keepers cite. VmSpec repoints to ResolvedVm.

Proven by the ASSEMBLED build: charly + this contract + sdk + all 63 plugins at their
merged mains builds clean (rc=0), where it failed on spec.Vm before the consumers landed.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

* fix: drop the helpers and imports the moved tests left behind

The go CI job's golangci-lint named two unused functions (allErrors in the engine-vocab
test, loadSchema in the mcp-provide test) and the compiler then named the imports those
deletions orphaned. All removed; the suite is green and the generation reproducible.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

---------

Co-authored-by: aitrawog <[email protected]>
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