Repository navigation
feat: pi integration — system prompt injection, skill loading, worktree tools, prompt templates, sub-agent instructions, PR body validation - #361
Conversation
…ee tools, prompt templates, sub-agent instructions, PR body validation Implements the pi integration plan (PROGRAM/pi-integration.md). See CHANGELOG/2026.232.1450.md for full details. Assisted-by: Pi 0.84.2 model-agnostic (fully tested and validated)
Review — BLOCKHead SHA: Change class: Pi config + extension ( Security screen: PASS — the Blocks
Non-blocking notes
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
… finding) Removes unused BuildSystemPromptOptions, mkdir, dirname imports from charly-gates.ts. Adds 2 new gate_test.py cases for PR body validation (missing sections → BLOCK, complete body → ALLOW). Assisted-by: Pi 0.84.2 model-agnostic (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS — the Checklist: All applicable rules PASS or NA. Prior validator findings are resolved in the current head:
Change class is pi config/extension + gate script + prompt templates + docs — no Go/runtime charly code, so no disposable bed is required; the gate test suite and Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Summary
Implements the pi integration plan from
PROGRAM/pi-integration.md. Seven layers of changes to make pi agents follow the same R0–R10 discipline as Claude Code sessions, with better skill loading, system prompt reinforcement, and mechanical PR body validation.How tested
1. Extension loads and tools are available
2. Skill loading works
3. Worktree creation works
4. Pre-push gate test suite (39 cases, 0 failures)
Two new tests cover the PR body validation:
push: PR body missing required sections blocked— mockghreturns body with only "## Summary", gate BLOCKspush: PR body with all required sections allowed— mockghreturns complete body, gate ALLOWs5. Pre-push gate blocks force-push, allows feat branch
Project-rulebook rule-compliance
charly_load_skillstool available;before_agent_startinjects R0 reminder every turncharly_load_skillswas RCA'd and fixed during testing.claude/hooks/*.shgit statuschecked before every actionpi -p(fresh process)gate_test.pycovers new PR body validation with mock (2 new tests, 39 total)analysed on a live system— new PR body validation path tested with mock gh, not a live GitHub PRgate_test.pyexercise the PR body validation blocking pathorigin/mainCHANGELOG/2026.232.1450.md— H1 matches filenameChange Classification
analysed on a live systemAssisted-by: Pi 0.84.2 model-agnostic (analysed on a live system)