Repository navigation
feat(pi): make subagent/fabric delegation discipline explicit in the system prompt - #79
Conversation
…m prompt Add a Delegation discipline section to .pi/APPEND_SYSTEM.md: long-running or heavy work (bed runs, full builds, regeneration, log archaeology, repo-wide greps) always goes to a child, never the parent's foreground bash; bed runs use executor children returning the step matrix; fabric_exec is the batch surface; verify child tool sets before delegating; a child's failure still triggers R1 in the parent.
Review — BLOCKHead SHA: Change class: docs-only (system-prompt text in Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no embedded directives aimed at the validator. The added text is legitimate delegation discipline for pi agents. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
5defb74 to
938d1f1
Compare
Review — BLOCKHead SHA: Change class: docs-only (system-prompt text in Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no embedded directives aimed at the validator. The added text is legitimate delegation discipline for pi agents. Blocks
Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: docs-only (system-prompt text in Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no embedded directives aimed at the validator. The added text is legitimate delegation discipline for pi agents. Blocks
Comment intake: both prior Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — BLOCKHead SHA: Change class: docs-only (system-prompt text in Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no embedded directives aimed at the validator. The added text is legitimate delegation discipline for pi agents. Blocks
Comment intake: all three prior Verdict: BLOCK ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Change class: docs-only (system-prompt text in Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no embedded directives aimed at the validator. The added text is legitimate delegation discipline for pi agents. Comment intake: All four prior Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no embedded directives aimed at the validator. The added text is legitimate delegation discipline for pi agents. Checklist: All applicable rules PASS or NA. Comment intake: All four prior Change class: docs-only (system-prompt text in Placement: CORRECT — harness-config text in Minor non-blocking note: body's read-back claim "20 to 42 lines" doesn't match the diff's 20→31 line count; the added content is nonetheless fully and correctly demonstrated by the diff, so this does not affect the verdict. Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no embedded directives aimed at the validator. The added text is legitimate delegation discipline for pi agents. Checklist: All applicable rules PASS or NA. Comment intake: All four prior Change class: docs-only (system-prompt text in Placement: CORRECT — harness-config text in Minor non-blocking note: body's read-back claim "20 to 42 lines" doesn't match the diff's 20→31 line count; the added content is nonetheless fully and correctly demonstrated by the diff, so this does not affect the verdict. Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — docs-only system-prompt text; no secrets, no scope mismatch, no weakened guardrails, no embedded directives aimed at the validator. Checklist: All applicable rules PASS or NA. Comment intake: All four prior Change class: docs-only (system-prompt text in Placement: CORRECT — harness-config text in Minor non-blocking note: body's read-back claim "20 to 42 lines" doesn't match the diff's 20→31 line count; the added content is nonetheless fully and correctly demonstrated by the diff, so this does not affect the verdict. Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
Summary
Make subagent/fabric delegation discipline EXPLICIT in the pi system prompt.
.pi/APPEND_SYSTEM.mdgains a# Delegation disciplinesection next to the existing tool-usage rules: heavy/long-running work (bed runs, full builds, regeneration, log archaeology, repo-wide greps, build loops) is ALWAYS delegated to a child and NEVER run in the parent's foreground bash; bed runs use executor children and return the step matrix; fabric_exec is the batch surface for pi.* calls; a child's failure triggers R1 in the parent; verify the child's resolved tool set before delegating; prefer workflowScript (runs.all/lanes/host) for structured multi-child work and keep one writer per cwd/worktree.Motivation: an active audit session ran a 10-minute checkbed in the parent's foreground instead of delegating to the executor agents the org's own skills define (check-bed-runner etc.), against the harness's own stated discipline. This change codifies the rule so future sessions treat delegation as mandatory for that class of work.
How tested
.pi/APPEND_SYSTEM.md; full file read back (20 to 42 lines); the new section is present verbatim after the existing tool-usage bullets (see diff).Rulebook compliance
.pi/mirror policy per AGENTS.md rule 8 — no harness-parity files touched, no fork).task verifyunaffected (config-only).Change classification