Skip to content

feat(pi): goal completion discipline in the system prompt - #84

Merged
atrawog merged 3 commits into
mainfrom
feat/goal-completion-discipline
Aug 31, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/goal-completion-discipline

Conversation

@atrawog

@atrawog atrawog commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Add the goal-completion discipline to the pi system prompt (.pi/APPEND_SYSTEM.md):

  1. Merged-upstream check is mandatory — a goal is not complete while any of its PRs is open: after validator PASS, arm the repo's own native auto-merge (gh pr merge --auto --squash + gh pr update-branch for BEHIND PRs), never self-merge, and list each PR's merged state in the completion audit.
  2. Todo completion is mandatory — every todo item completed (or explicitly deleted-with-reason) before completion.
  3. Goals are living contracts — new issues (validator BLOCKs, arming/merge failures, new divergences, follow-up batches) must be folded into the goal objective REGULARLY on discovery; never silently deferred to unnamed follow-ups; only genuinely external/operator-owned dependencies may be parked (with exact repo + required action).

Motivation: this session's first goal closed with validator-green-but-unmerged PRs and an in_progress todo — exactly the failure the user flagged. The rule now codifies the fix.

How tested

Rulebook compliance

  • R3: no duplication — the existing sections (delegation, charly_status, don't-pile-up) are extended, not restated.
  • R4: no workaround — procedural rule, no code affected.

Change classification

  • Change class: Documentation-only (system-prompt/config text).
  • Verification gate: documentation reviewed (file read-back; mechanics live-exercised).

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (documentation reviewed)

Checking that every change merged upstream and every todo finished is a
MANDATORY part of every goal; goals are living contracts updated as new
issues surface - never silently deferring discovered work to unnamed
follow-ups.
@atrawog
atrawog enabled auto-merge (squash) August 31, 2026 09:06
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 380f7d1a6f97f46d2a7e527aebba6a826f3cc8f4 (branch: feat/pi-goal-completion-discipline)

Security screen: PASS — docs-only change to .pi/APPEND_SYSTEM.md (pi agent system prompt, not the validator's spec/rulebook); no embedded directives, no secrets, no code, no scope mismatch. T1–T4 clear.

Checklist: All applicable rules PASS or NA. Docs-only change class → "documentation reviewed" gate is legal (whole diff is .md); body supplies Summary, How-tested (file read-back), rulebook compliance, change classification, and the required italicized *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (documentation reviewed)* footer. Diff matches body accounting (22 lines added at end of file). No duplication (R3), no workaround (R4), no code/architecture/artifact gates apply. Two commits (feat + merge) squash cleanly; no partial work.

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 6069cb06ed10 (branch: feat/pi-goal-completion-discipline)

Security screen: PASS — docs-only change to .pi/APPEND_SYSTEM.md (pi agent system prompt, not the validator's spec/rulebook); no embedded directives aimed at the reviewer, no secrets, no code, no scope mismatch. T1–T4 clear.

Checklist: All applicable rules PASS or NA.

  • Docs-only change class → "documentation reviewed" gate is legal (whole diff is .md).
  • Body supplies Summary, How-tested, rulebook compliance, change classification, and the required italicized *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (documentation reviewed)* footer.
  • Diff matches body accounting (22 lines added at end of file, 0 deleted).
  • R3 no duplication (extends existing sections), R4 no workaround, R5/R6/R8/R9/R10/B13/B16/B17/B18 NA (no code/config/artifact).
  • Three commits (feat + two merge-conflict resolutions) collapse cleanly on squash; no partial/split work.

Comment intake: one prior github-actions[bot] PASS at head 380f7d1a6f97 — disposition stale-superseded on its "two commits" detail (current head has three commits, two being merge resolutions), but its substantive PASS re-derives cleanly against the current diff/body; no blocking claim.

Verdict: PASS


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

View action run

@atrawog
atrawog merged commit a96c011 into main Aug 31, 2026
1 check passed
@atrawog
atrawog deleted the feat/goal-completion-discipline branch August 31, 2026 09:52
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 8, 2026
…, marketplace #293, layer-charly-internals #12, layer-charly-distros #7, dotgithub #84) + bump the pi-omarchy-eval pin to v2026.251.0738
github-actions Bot pushed a commit that referenced this pull request Sep 8, 2026
….0738 (#163)

* chore: close-out the eval/fix wave — advance gitlinks (eval-omarchy #39, marketplace #293, layer-charly-internals #12, layer-charly-distros #7, dotgithub #84) + bump the pi-omarchy-eval pin to v2026.251.0738

* fix(dispatcher): actions: write is REQUIRED for the cancel-in-progress concurrency dedupe (otherwise dispatches fail to expand — the #163 infra regression)

* revert(dispatcher): drop the actions:write permission line from #163 — T4-deferred (no maintainer sign-off granted); the dispatcher works without it post-#85 and the dedupe cannot cancel without the permission anyway. #163 is now a pure gitlink+pin change: no workflow permission change.
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