Skip to content

feat(pi): restore gh_pr_status — per-PR charly/pr-validator status checking - #74

Merged
atrawog merged 1 commit into
mainfrom
feat/restore-gh-pr-status
Aug 31, 2026
Merged

atrawog merged 1 commit into
mainfrom
feat/restore-gh-pr-status

Conversation

@atrawog

@atrawog atrawog commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Restores the pi agent's PR-validation status tool and its system-prompt instruction, both accidentally deleted by the #61 config cleanup ("slim project config to bare system prompt + plugins").

Git-history archaeology: ab2448f (#31) added .pi/extensions/github-pr-status.ts — the gh_pr_status extension tool (check = one-shot PR + org-wide charly/pr-validator status; watch = poll-until-conclusion, the "completion IS the wake" primitive for background subagents). c291b96 (#61) slim-deleted it together with the .pi/APPEND_SYSTEM.md instruction telling agents to use it, leaving pi agents unable to learn validator verdicts without manually polling gh (the GitHub Actions validator has no path into a pi session — it does not wake the agent).

This change:

  1. .pi/extensions/github-pr-status.ts — restored verbatim from its last pre-deletion state (c291b96^, 216 lines).
  2. .pi/settings.json — re-registers the extension ("extensions": ["./extensions/github-pr-status.ts"]); packages unchanged (11).
  3. .pi/APPEND_SYSTEM.md — system-prompt instruction restored and made unconditional: check EVERY PR with gh_pr_status check after opening/fixing it, run gh_pr_status watch in a background subagent while awaiting a verdict, with the failing-step semantics (Gate (BLOCK) vs wait-for-go-gate) and stale-comment head-SHA guard; plus the RCA'd tool-usage discipline (verify a child can execute before delegating — a tool-less child burns its turn probing names; long waits belong to a child, never the parent loop).

How tested

(1) Live tool execution in a fresh pi -p session (extension loaded, tool invoked on real PR #66):

repo:        opencharly/opencharly
PR:          #66 — chore(sync): third wave — docs revert + parallel defaults
state:       OPEN
head:        6f42ffd14a
mergeable:   UNKNOWN
verdict:     BLOCK
validator run: 33338829252 @ 6f42ffd14a
run status:   completed
run concl:    failure
failing step: Gate (BLOCK)
interpret:    pr-validator BLOCKED the PR — read the latest review comment and fix every finding

(2) Pre-commit gate on the commit: pre-commit: OK.

(3) bash scripts/check-harness-parity.sh → check-harness-parity: OK — 5 shared harness files identical to charly/ (.pi/settings.json is an umbrella-specific fork by design, HARNESS-PARITY.md).

(4) task verify on the final tree → exit 0: check-policy-b: OK — 6 distro pins equal charly's gitlinks, verify-pins: OK — 356 submodules, policy B holds.

Rulebook compliance

Rule Status
1 Never edit inside a submodule OK — charly/.pi history was READ via git, nothing written inside the submodule
2 Git op rule OK — all git driven from the umbrella root
3 No nested go.work N/A — Go untouched
5 Pin discipline N/A — no pins/gitlinks touched
7 Subrepo rulebooks N/A — no subrepo edits
8 Harness parity OK — check-harness-parity green (see How tested); no shared file touched
R0 Skills first OK — git-workflow + agents skills loaded before git/gh actions
R1 RCA every anomaly OK — tool absence RCA'd via history pickaxe (ab2448f add / c291b96 delete); tool-less delegate child failure mapped to the deleted APPEND_SYSTEM.md discipline
R3 No duplication OK — tool restored verbatim from history, not re-implemented
R4 No workarounds OK
R5 Delete legacy completely N/A (direction reversed: restoring) — no legacy path left behind
R6 Git safety OK — git status before destructive actions; no force-push
R7 Prove the gate OK — task verify green on final tree (pasted)

Change classification

  • Change class: configuration change (pi agent tool restoration + system prompt instruction)
  • Verification gate: R7 (task verify) + pre-commit gate + live pi -p tool execution
  • Attribution tier: fully tested and validated

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

…status checking

Recovered from git history: ab2448f (#31) added .pi/extensions/github-pr-status.ts
(gh_pr_status check/watch — GitHub PR + org-wide charly/pr-validator status),
c291b96 (#61) accidentally slim-deleted it together with the APPEND_SYSTEM.md
instruction to use it. Restoring verbatim, re-registering the extension in
settings.json, and re-adding the system-prompt instruction: check EVERY PR with
gh_pr_status after opening/fixing; watch in a background subagent while waiting.
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: b780d86e148b (branch: feat(pi)/restore-gh-pr-status)

Security screen: PASS — read-only gh queries only; no secrets/exfiltration; no weakened guardrails; no supply-chain change (packages unchanged); no embedded directives aimed at the validator.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: Body accounts for all 3 files; change-class (pi config) gate met with live tool execution on PR chore(sync): third wave — docs revert + parallel defaults #66, pre-commit, harness-parity, and task verify; attribution tier justified by live execution of the changed path; Assisted-by: footer present in exact form.
  • B4–B12: R1 RCA'd via history pickaxe; R3 verbatim restore (no duplication); R4 no ad-hoc workaround (watch is a legitimate poll primitive, delegated to subagent per APPEND_SYSTEM); R5/R6/R8/R9 N/A or satisfied; R10 gate appropriate for pi-config class.
  • B13–B15: No candy/schema changes (N/A); no forbidden framing; single atomic commit.
  • B16 placement: CORRECT — pi agent extension in .pi/extensions/, registered in .pi/settings.json, documented in .pi/APPEND_SYSTEM.md; no core/sdk/candy impact, no alias files, no new charly imports.
  • B17/B18: No autonomous destroy (N/A); TypeScript clean, well-commented, no lint-visible defects.

Verdict: PASS


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

View action run

@atrawog
atrawog merged commit 40d9b11 into main Aug 31, 2026
1 check passed
@atrawog
atrawog deleted the feat/restore-gh-pr-status branch August 31, 2026 05:42
charly-auto-merge Bot added a commit that referenced this pull request Aug 31, 2026
atrawog added a commit that referenced this pull request Sep 7, 2026
…s (policy B)

Syncs all submodule pins to their merged main HEADs via scripts/sync-gitlinks.sh:
- charly -> c1229f00 (config: verb stack #558 + CC-3/CC-R10);
- distro-cachyos -> 5bb0eb5 (crabbox wave beds #74);
- layer-crabbox v2026.250.1023 / plugin-crabbox + pod-crabbox v2026.250.1019
  (the crabbox v0.51.0 wave PR tags);
- the tag-on-merge advances of the wave + CC-3 contracts (spec/sdk/plugin-box/
  plugin-egress/plugin-deploy-pod/plugin-generate-packages + the charly-* box
  gitlinks + marketplace).
All pins are merged refs (policy B). plugin-check is intentionally NOT in this
sync (its working tree carries the CC-3 consumer wave's in-flight WIP under
opencharly/plugin-check#33; its gitlink is unchanged here).
github-actions Bot pushed a commit that referenced this pull request Sep 7, 2026
…y B) (#153)

* chore(umbrella): sync charly + plugin-fleet gitlinks to the CC-2 tags

* chore: umbrella sync — pin the crabbox v0.51.0 wave + CC-3/CC-R10 tags (policy B)

Syncs all submodule pins to their merged main HEADs via scripts/sync-gitlinks.sh:
- charly -> c1229f00 (config: verb stack #558 + CC-3/CC-R10);
- distro-cachyos -> 5bb0eb5 (crabbox wave beds #74);
- layer-crabbox v2026.250.1023 / plugin-crabbox + pod-crabbox v2026.250.1019
  (the crabbox v0.51.0 wave PR tags);
- the tag-on-merge advances of the wave + CC-3 contracts (spec/sdk/plugin-box/
  plugin-egress/plugin-deploy-pod/plugin-generate-packages + the charly-* box
  gitlinks + marketplace).
All pins are merged refs (policy B). plugin-check is intentionally NOT in this
sync (its working tree carries the CC-3 consumer wave's in-flight WIP under
opencharly/plugin-check#33; its gitlink is unchanged here).

* fix: charly gitlink -> 1912c7ff (true merged main; c1229f00 was an unmerged CC-R10 PR head — policy B)

* evidence: tier corrected + operator sign-off + policy-B distro clarification (A1/A3/R1)
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