Repository navigation
Conversation
… status checking The org-wide charly/pr-validator validates every PR on GitHub Actions, but its verdicts land on GitHub with NO path into a pi session — an agent that opens or fixes PRs cannot know whether its PR passed without manually polling gh. This added a pi extension tool (gh_pr_status) that: - check: one-shot status of a PR — state, head SHA, mergeable state, the latest pr-validator run ON THE CURRENT HEAD (not a stale one), its conclusion, the failing step (Gate (BLOCK) vs wait-for-ci), and the latest PASS/BLOCK verdict comment. - watch: polls until the validator concludes on the current head (or the PR merges/closes, or a timeout) and returns the full matrix — the real 'wake me with the result' primitive when run in a background subagent. The tool distinguishes a pr-validator BLOCK (Gate step failed) from a CI-wait timeout (wait-for-ci failed) from a gofmt failure, because each demands a different agent response. Wraps gh read-only.
…does not exist The extension used Type.StringEnum (typebox), which is not a function in the typebox version pi bundles. pi's own example extensions use StringEnum from @earendil-works/pi-ai; this matches the canonical pattern.
…e) — not an absolute machine path
1. latestVerdict used 'gh api --jq .[].body' which emits raw unquoted
markdown — not valid JSON — so JSON.parse always threw and the verdict
was permanently 'unknown'. Now fetches the JSON array and scans bodies
in JS.
2. getPR requested the 'mergeableState' field, which the installed gh CLI
rejects ('Unknown JSON field'). Now uses 'mergeStateStatus'.
Both verified live via a fresh 'pi --print' session calling the tool.
…pin advances) charly#428 merged, advancing box/cachyos, box/debian, box/ubuntu to the Phase-4 distro sweep heads. The umbrella's distro-* pins already mirror those heads (the sync cron advanced them); this advances the charly gitlink so Policy B holds (distro-* == charly's box/*).
…-fedora charly#435 merged (box/fedora -> f267d3f). Advance the umbrella's charly submodule to the latest main, then mirror distro-fedora to f267d3f so Policy B holds (distro-* == charly's box/*).
Review — BLOCKHead SHA: Change class: chore — submodule gitlink sync (+ Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
|
Closing: the branch accumulated unrelated commits from its parent (feat/sync-charly-pins, which merged as #33). Reopening as a clean single-purpose PR. |
Summary
charly#435 merged (box/fedora → f267d3f). Advance the umbrella's charly submodule to the latest main (f0f3aa58) and mirror distro-fedora to f267d3f so Policy B holds (distro-* == charly's box/*).
Diff accounting (2 files):
charly— submodule gitlink → f0f3aa58 (the latest main, carrying charly#435's box/fedora bump)distro-fedora— gitlink → f267d3f (distro-fedora#39 merged)How tested
Policy B holds: the umbrella's distro-fedora equals charly's box/fedora. Both source commits are merged, validator-PASS.
Rulebook compliance
Change classification
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)