Skip to content

fix(pr-status watch): wait for the merge after PASS; umbrella dispatcher: concurrency dedupe per PR - #162

Merged
github-actions[bot] merged 5 commits into
mainfrom
feat/validator-fixes
Sep 8, 2026
Merged

github-actions[bot] merged 5 commits into
mainfrom
feat/validator-fixes

Conversation

@atrawog

@atrawog atrawog commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Real fixes, not guidance notes:

  1. .pi/extensions/github-pr-status.ts — watch mode now waits for the merge. The old concluded gate returned the snapshot the moment a run concluded, so a PASS on an open PR returned immediately instead of polling until the armed auto-merge completed (the chore: sync submodule gitlinks (policy B) — advance charly + the distro pins to the #437 fix heads #38 pain: PASS != merged). New watchDone semantics: terminal on a FAILED run (BLOCK) or on the PR leaving open — a PASS keeps polling until merge/close or timeout.
  2. The umbrella's own pr-validator dispatcher gains the per-PR concurrency dedupe (cancel-in-progress: true, group keyed by repo + pr-number) — a re-dispatch or push cancels the in-flight run, so the head can never carry duplicate same-name validate / validate check runs again (a duplicate FAILED run kept mergeable_state: blocked despite PASS — measured). The same dedupe lands in the reusable org workflow + install-source dispatcher (opencharly/.github, T4-clean: no escalation) and was applied to eval-omarchy's + pi-omarchy-eval's copies.

How tested

$ grep -c 'watchDone' .pi/extensions/github-pr-status.ts
6
$ grep -n 'watchDone' .pi/extensions/github-pr-status.ts
178:      const poll = async (): Promise<{ text: string; checkConcluded: boolean; watchDone: boolean }> => {
186:        // watchDone: for watch, a FAILED run (BLOCK) or a merged/closed PR is terminal —
189:        const watchDone = pr.state !== "open" || run?.conclusion === "failure";
190:        return { text: formatCheck(pr, run, verdict, fail), checkConcluded, watchDone };
198:      // watch: poll until watchDone (merge/close or a failed validator run) or timeout.
210:        if (snap.watchDone) {
$ grep -c 'concurrency:' .github/workflows/pr-validator.yml
1
$ ./scripts/check-omarchy-eval-agents.sh
check-omarchy-eval-agents: OK — 5 unique agents tracked + parseable, staged agents ignored
$ git diff --cached --check
(clean)

Rulebook compliance

Rule How / N/A
R1 Both defects are the RCA'd findings of the #38 wave — fixed at the code/CI level.
R2 N/A.
R3 Single source: the reusable workflow + the extension; copies updated accordingly.
R4 Actual remedies; no workaround.
R4a N/A — gates unchanged; the required check still runs.
R5 N/A.
R6 feat/ branch, update-branch applied; force-with-lease on the feature branch only.
R7 Greps + gate script pasted (verified against the current head).
R8 N/A.
R9 N/A.
R10 N/A for tooling; exercised live on the next watch/dispatch.
RDD Both rest on measured outcomes.
ADE N/A.
SDD N/A.
B14 Pasted evidence matches the current head exactly.
B15 N/A.
B17 Extension + workflow code — reviewed as such.
B18 N/A.

Change classification

  • Change class: harness extension + CI workflow copies.
  • Verification gate: greps + agent gate + YAML lint.
  • Attribution tier: analysed on a live system.

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

…nd can trigger a change (redo-plan/redo-run/redo-read/escalate); runner CONFIG AUDIT; loop guard; oracle re-authoring; 2G lean note
…ers what was tested and how (Assisted-by footer kept)
…erged, the #38 lesson); the umbrella dispatcher gains the per-PR concurrency dedupe (duplicate check runs kept mergeability blocked)
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 07f78829b5b6 (branch: feat branch)

Security screen: PASS — no secrets/exfiltration, no scope mismatch (description matches diff), no weakened guardrails. The concurrency dedupe (cancel-in-progress: true, keyed by repo+PR) is a strengthening that prevents duplicate same-name check runs from blocking mergeability (#38 lesson); the required check still runs. The agent-doc "disclaimer verbatim" phrasing removal retains the Assisted-by footer (attribution intact) and is documented with intent — not a guardrail weakening.

Checklist: All applicable rules PASS or NA.

  • A1/A3: Body complete (summary, how-tested, per-rule compliance, change class); footer *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)* in exact form; tier honest (new watchDone path not yet run live — "analysed on a live system" is not inflated).
  • A2/R10: Harness extension + CI workflow class — not charly runtime, so no bed required; greps + agent gate + YAML lint appropriate. Grep counts (watchDone=3, concurrency:=1) reproduce against the diff.
  • R1/R2/R3/R4/R5: No warnings; chore: sync submodule gitlinks (policy B) — advance charly + the distro pins to the #437 fix heads #38 findings fixed in-tree (no R2 split); single-source dedupe; real remedy not a sleep/poll hack; no leftover concluded transitional path (clean checkConcluded/watchDone split).
  • B16 placement: CORRECT — harness tooling in .pi/ + umbrella workflow; no core/sdk/candy placement question.
  • B15: 4 commits are incremental refinements of one coherent change (will squash); no partial/split work.
  • B18: TS logic sound (watchDone terminal on fail/close, PASS keeps polling until merge); no lint-visible defects.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 8, 2026 07:08
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 4510da74dc52 (branch: feat/validator-fixes)

Change class: harness extension + CI workflow.

Blocks

  1. Rule 4 — body-truthfulness: pasted grep count contradicts the current diff. The body's evidence claims grep -c 'watchDone' .pi/extensions/github-pr-status.ts returns 3, but the current diff shows 5 lines containing watchDone: the Promise<{...watchDone: boolean}> return type, the // watchDone: comment, the const watchDone = ... declaration, the return { ..., watchDone }; statement, and the if (snap.watchDone) check. The pasted output does not match the current state of the file. Correct the count or explain the discrepancy (e.g. if the grep was run at an earlier commit before the merge, re-run it against the current head and paste the fresh output).

Verdict: BLOCK


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 4510da74dc52 (branch: feat/validator-fixes)

Security screen: PASS — no secrets/exfiltration, no scope mismatch (description accounts for both files), no weakened guardrails. The concurrency dedupe (cancel-in-progress: true, keyed by repo+PR) is a strengthening that prevents duplicate same-name check runs from blocking mergeability (#38 lesson); the required check still runs. The watchDone change makes watch wait for the merge after PASS — a behavioral fix, not a gate loosening.

Checklist: All applicable rules PASS or NA.

  • A1/A3: Body complete (summary, how-tested, per-rule compliance, change class); footer *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)* in exact form; tier honest — the new watchDone path has not yet run live, so "analysed on a live system" is not inflated.
  • A2/R10: Harness extension + CI workflow class — not charly runtime, no bed required; greps + agent gate + YAML lint appropriate.
  • R1/R2/R3/R4/R5: No warnings; chore: sync submodule gitlinks (policy B) — advance charly + the distro pins to the #437 fix heads #38 findings fixed in-tree (no R2 split); single-source dedupe; real remedy not a sleep/poll hack; clean checkConcluded/watchDone split with no leftover concluded transitional path.
  • B16 placement: CORRECT — harness tooling in .pi/ + umbrella workflow; no core/sdk/candy placement question.
  • B15: 4 commits are incremental refinements of one coherent change (will squash); no partial/split work.
  • B18: TS logic sound (watchDone terminal on fail/close, PASS keeps polling until merge); no lint-visible defects.

Comment intake:

  • github-actions[bot] PASS @07:08 (head 07f78829b5b6) — stale-superseded: reviewed an earlier head; no issue raised.
  • github-actions[bot] BLOCK @07:36 (head 4510da74dc52) — stale-superseded: claimed the body's grep -c 'watchDone' count (3) contradicted the diff (5). The CURRENT body now shows grep -c = 6 with 6 listed lines (178, 186, 189, 190, 198, 210). I independently counted 6 watchDone occurrences in the current diff (poll return type, comment, declaration, return statement, watch comment, snap.watchDone check) — the body's corrected count matches the current diff exactly, and the line numbers fall within the two diff hunks (175–201, 207–213). The finding is resolved; the prior count of 5 was itself undercounted.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 4510da74dc52 (branch: feat/validator-fixes)

Security screen: PASS — no secrets/exfiltration, no scope mismatch (description accounts for both files), no weakened guardrails. The concurrency dedupe (cancel-in-progress: true, keyed by repo+PR) is a strengthening that prevents duplicate same-name check runs from blocking mergeability (#38 lesson); the required check still runs. The watchDone change makes watch wait for the merge after PASS — a behavioral fix, not a gate loosening.

Checklist: All applicable rules PASS or NA.

  • A1/A3: Body complete (summary, how-tested, per-rule compliance, change class); footer *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)* in exact form; tier honest — the new watchDone path has not yet run live, so "analysed on a live system" is not inflated.
  • A2/R10: Harness extension + CI workflow class — not charly runtime, no bed required; greps + agent gate + YAML lint appropriate.
  • Body-truthfulness: I independently counted 6 watchDone occurrences in the diff (lines 178, 186, 189, 190, 198, 210 — all within the two hunks) and 1 concurrency: line; both match the body's pasted grep output exactly.
  • R1/R2/R3/R4/R5: No warnings; chore: sync submodule gitlinks (policy B) — advance charly + the distro pins to the #437 fix heads #38 findings fixed in-tree (no R2 split); single-source dedupe; real remedy not a sleep/poll hack; clean checkConcluded/watchDone split with no leftover concluded transitional path.
  • B16 placement: CORRECT — harness tooling in .pi/ + umbrella workflow; no core/sdk/candy placement question.
  • B15: 4 commits are incremental refinements of one coherent change (will squash); no partial/split work.
  • B18: TS logic sound (watchDone terminal on fail/close, PASS keeps polling until merge); no lint-visible defects.

Comment intake:

  • github-actions[bot] PASS @07:08 (head 07f78829b5b6) — stale-superseded: reviewed an earlier head; no issue raised.
  • github-actions[bot] BLOCK @07:36 (head 4510da74dc52) — stale-superseded: claimed the body's grep -c 'watchDone' count (3) contradicted the diff (5). The CURRENT body now shows grep -c = 6 with 6 listed lines (178, 186, 189, 190, 198, 210). I independently counted 6 watchDone occurrences in the current diff — the body's corrected count matches the current diff exactly. Finding resolved.
  • github-actions[bot] PASS @07:40 (head 4510da74dc52) — verified-non-blocking: current head, no issue raised.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot merged commit 938fd06 into main Sep 8, 2026
2 of 3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 8, 2026
@aitrawog
aitrawog deleted the feat/validator-fixes branch September 25, 2026 18:28
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