Skip to content

feat: rename-then-dispatch validation flow - #36

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

github-actions[bot] merged 3 commits into
mainfrom
feat/simple-gate

Conversation

@atrawog

@atrawog atrawog commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

feat: rename-then-dispatch validation flow

The change

The validator now:

  1. Renames the CHANGELOG placeholder first, pushes, then dispatches
    a validation run on the PR branch via workflow_dispatch (which
    always runs — no approval), and exits.
  2. The dispatched run validates ONCE (AI review) and enables native
    auto-merge. Its check lands on the PR head (verified: dispatch on
    the PR branch creates the check on the PR head).

Fix pushes trigger pull_request: synchronize normally (author pushes,
no approval) and re-validate. The GITHUB_TOKEN rename push creates one
inert action_required run that never runs and never blocks.

Why

GITHUB_TOKEN pushes create action_required runs for synchronize.
By dispatching validation explicitly (not relying on synchronize), the
loop is broken: validation is triggered by the rename, and the check
lands on the PR head.

How tested

Verified: a workflow_dispatch on the PR branch creates a check-run on
the PR head SHA. This PR's landing will confirm the full flow.

Change class

CI/workflow — flow redesign.

Project-rulebook compliance

  • R1 — root-caused: synchronize-triggered validation hits the
    GITHUB_TOKEN approval guard; explicit dispatch avoids it.
  • R2 — one coherent change.
  • R3 — no duplication.
  • R4 — no workaround: uses documented workflow_dispatch behavior.
  • R5 — no stale references.
  • R6 — no force-push.
  • R7 — verified by live dispatch test.
  • R8 — N/A.
  • R9 — N/A.
  • R10 — the gate is this PR's landing through the validator.

Auto-merge finalization

This run finalized the CHANGELOG at merge time: the placeholder was renamed to CHANGELOG/2026.233.1825.md (H1 rewritten to # 2026.233.1825). The current diff carries the finalized file.

Attribution

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

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: ac08b819544b (branch: feat/rename-then-dispatch-validation-flow)

Security screen: PASS — no scope mismatch (diff matches the described flow redesign), no new secrets or egress, no supply-chain change ([email protected] unchanged; the dispatcher's @main reference points to the same repo's main, which strengthens T1 by sourcing validator logic from main rather than the PR branch). The AI-review gate is preserved: in the new flow, Run 1 renames+dispatches+exits without enabling auto-merge; Run 2 performs the AI review and only enables auto-merge on PASS. No bypass path exists (a crafted "finalized" CHANGELOG skips the rename but still proceeds to the review).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body complete; change class (CI/workflow flow redesign) matches the self-install gate; attribution tier analysed on a live system is not inflated.
  • B5 (R1): RCA present (GITHUB_TOKEN approval guard on synchronize); no surviving warnings.
  • B6/B7/B8/B10: no split, no duplication, no ad-hoc workaround, no stale references (all steps.*.outputs resolve to steps that set them).
  • B12 (R10): self-install scenario — full flow is not observable before landing; per Rule 3, the live dispatch test plus static mechanism verification is sufficient; no fixable non-self-blocking defect found.
  • B15: two non-changelog commits are the same coherent flow redesign (squash collapses them); no partial/split work.
  • B19: CHANGELOG/2026.233.1807.md present, filename matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 byte-matches # 2026.233.1807 — Rename-then-dispatch validation flow.
  • B4/B9/B11/B13/B14/B16/B17/B18: N/A (workflow-only change; no candy/Go/artifact/placement surface touched).

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 18:25
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: d99933029009 (branch: feat/rename-then-dispatch-validation-flow)

Security screen: PASS — no scope mismatch (diff matches the described flow redesign), no new secrets/egress, no supply-chain change ([email protected] unchanged). The dispatcher's @main validator reference strengthens T1 (validator logic sourced from main, not the PR branch). The AI-review gate is preserved: auto-merge is only enabled when renamed != 'true' && verdict == 'PASS', and the review runs in every non-rename path (finalized CHANGELOG, missing CHANGELOG, or dispatched run). No bypass path exists.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body complete; change class (CI/workflow flow redesign) matches the self-install gate; attribution tier analysed on a live system is not inflated.
  • B5 (R1): RCA present (GITHUB_TOKEN approval guard on synchronize); no surviving warnings.
  • B6/B7/B8/B10: one coherent change; no duplication; no ad-hoc workaround; no stale steps.*.outputs references (all resolve to steps that set them).
  • B12 (R10): self-install scenario — full flow not observable before landing; per Rule 3, the live dispatch test plus static mechanism verification is sufficient; no fixable non-self-blocking defect found.
  • B15: two non-changelog commits are the same coherent flow redesign (squash collapses them); no partial/split work.
  • B19: CHANGELOG/2026.233.1825.md present, filename matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 byte-matches # 2026.233.1825 — Rename-then-dispatch validation flow.
  • B4/B9/B11/B13/B14/B16/B17/B18: N/A (workflow-only change; no candy/Go/artifact/placement surface touched).

Comment intake: the prior github-actions[bot] review (head ac08b819) is stale-superseded on its B19 filename (2026.233.1807.md → current 2026.233.1825.md), but its substance (PASS, gate preserved) reproduces against the current diff/body. No comment raised a verified-blocking issue.

Verdict: PASS


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

View action run

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.

2 participants