Skip to content

feat(config): gitignore plan/ contents, drop pi-plan-mode, append plan-save system prompt - #72

Merged
atrawog merged 2 commits into
mainfrom
feat/pi-plan-config
Aug 31, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/pi-plan-config

Conversation

@atrawog

@atrawog atrawog commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Config-only change to the umbrella harness (no submodule edits, no pins touched):

  1. plan/ contents gitignored, directory kept in git — .gitignore gains plan/* + !plan/.gitkeep; the two formerly-tracked plan docs (plan/candy_to_repo.md, plan/mise-followup-todo.md) are untracked (files stay on disk as local working docs) and plan/.gitkeep keeps the directory in the repo.
  2. Plan plugin removed from the project pi agent — npm:@narumitw/[email protected] (the Codex-like /plan collaboration extension) dropped from .pi/settings.json packages. The only config reference was this entry — the sweep evidence is pasted under ## How tested (item 6, B14(d)).
  3. System-prompt replacement adopted — new .pi/APPEND_SYSTEM.md (pi's project-level append-without-replace mechanism): whenever a user asks for a plan, the plan must be saved to a file under plan/ before any execution starts and kept updated as the plan is executed.

Machine-local follow-up (not part of this diff): the same package was also registered in the global pi agent config (~/.pi/agent/settings.json). It was removed there and its generated npm-store dirs pruned so the extension no longer loads; a fresh pi -p session confirms plan-mode tools are gone.

How tested

(1) pi list — project package set now 11 entries, plan-mode absent:

Project packages:
  npm:[email protected], npm:[email protected], npm:@juicesharp/[email protected],
  npm:[email protected], npm:[email protected], npm:[email protected],
  npm:[email protected], npm:[email protected], npm:[email protected],
  git:github.com/Michaelliv/[email protected], git:github.com/giladbarnea/[email protected]
  (npm:@narumitw/pi-plan-mode no longer listed)

(2) Fresh pi -p behavioral probe (boots clean with the new config; model answer):

1. The plan must be saved to a file under plan/ (e.g. plan/<topic>.md) before any execution starts,
   and kept updated as the plan is executed. plan/ is gitignored — plans are working documents, never committed.
2. No — no /plan collaboration-mode extension or its tools (plan_mode_complete/plan_mode_question)
   are exposed or active in this session.

(3) git check-ignore -v plan/mise-followup-todo.md → .gitignore:27:plan/* plan/mise-followup-todo.md

(4) Live pre-commit gate on the commit:

pre-commit: running the umbrella gate…
check-policy-b: OK — 6 distro pins equal charly's gitlinks
check-harness-parity: OK — 5 shared harness files identical to charly/
pre-commit: OK

(5) task verify on the final committed tree:

task: [verify] bash scripts/verify-pins.sh
check-policy-b: OK — 6 distro pins equal charly's gitlinks
verify-pins: OK — 356 submodules, policy B holds

(6) B14(d) sweep evidence — no harness config references the removed package (commands + real output):

$ git grep -n -i "narumitw\|pi-plan-mode" -- ':!.pi/npm' ':!.pi/git' ':!.pi/fabric' ':!.pi/pi-claude-marketplace' ':!.pi/agents'
CHANGELOG/2026.242.0950.md:13:5. **Package updates to latest.** pi-subagents 0.51.0→0.60.0, @narumitw/pi-plan-mode 0.49.3→0.56.0, ... (historical changelog entry only)

$ grep -n -i "narumitw\|plan-mode" opencode.json reasonix.toml .claude/settings.json hooks/pre-commit 2>/dev/null
(no output; exit 1 — zero hits in live harness configs)

The only reference in the tracked tree is a historical CHANGELOG entry documenting the past package update itself; the gitignored .pi/fabric/ runtime logs retain old mentions but are not part of the repository.

Rulebook compliance

Rule Status
1 Never edit inside a submodule N/A — no submodule touched
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: 5 shared files identical to charly/; .pi/settings.json is an umbrella-specific fork by design (HARNESS-PARITY.md) and not in the shared diff set
R0 Skills first OK — git-workflow skill loaded before any git/gh action
R1 RCA every anomaly OK — stale .git/index.lock (0 bytes, no git processes) RCA'd as a crashed-op artifact and removed after verification; pi -q identified as an unknown option (no such flag) and the verification method switched to pi -p
R3 No duplication OK — no behavior re-implemented; config removed/adjusted only
R4 No workarounds OK — no sleeps/retries/hand-pins
R5 Delete legacy completely OK — plan plugin removed from project config, and global registration + npm-store dirs removed on this machine so no stale path loads; sweep evidence in (6) proves no other harness config references it
R6 Git safety OK — git status before destructive actions; no force-push
R7 Prove the gate OK — task verify green on final tree (pasted above)

Change classification

  • Change class: configuration change (harness config, gitignore, appended system prompt)
  • Verification gate: R7 (task verify) + pre-commit gate (policy-b + parity) + live pi CLI boot
  • Attribution tier: fully tested and validated

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

…n-save rule

- .gitignore: ignore plan/* (keep the dir via plan/.gitkeep) — plans are working docs, never committed
- .pi/settings.json: remove npm:@narumitw/pi-plan-mode (the /plan collaboration extension)
- .pi/APPEND_SYSTEM.md: appended system prompt — user plan requests must save the plan under plan/
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 23b58260b709 (branch: feat/config)

Change class: configuration change (harness config, gitignore, appended system prompt)

Security screen: PASS — config-only; no secrets, no exfiltration, no network calls, no guardrail weakening (removes a plugin, adds a plan-discipline prompt).

Blocks

  1. B14(d) — unexecuted sweep claim. The body states: "Grep confirms no other harness config (opencode.json, reasonix.toml, .claude) references it." This is a described-but-unpasted sweep — no actual grep command and no output appear in the body. Per B14(d), a sweep/dead-code claim requires ACTUALLY-EXECUTED command output pasted in the body; "I grepped and found none" is not evidence without the real command and its real output. The body relies on this claim for its R5 compliance ("plan plugin removed from project config … so no stale path loads"). The author must paste the real grep command and its output proving no other harness config references @narumitw/pi-plan-mode.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 1e9e1ccfcabfa19aa32f5289a269a3c515e42d30 (branch: feat/pi-plan-config)

Security screen: PASS — config-only (gitignore, .pi/settings.json package removal, appended system prompt, plan-doc untracking); no secrets, no exfiltration, no network calls, no guardrail weakening.

Checklist: All applicable rules PASS or NA.

Comment intake: The single prior comment (github-actions[bot] BLOCK on B14(d) — unexecuted sweep claim) is stale-superseded: the current body now supplies item (6) with the real git grep/grep commands and their output (only a historical CHANGELOG entry; zero hits in live harness configs), satisfying the finding against the CURRENT state.

Notes verified: diff matches the body's accounting of all 6 files; attribution tier fully tested and validated justified by pasted task verify green + pre-commit gate + live pi boot; R1 RCA present for the .git/index.lock and pi -q anomalies; R5 sweep evidence pasted; placement CORRECT (no capability code, no architecture movement).

Verdict: PASS


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

View action run

@atrawog
atrawog merged commit a9c5c51 into main Aug 31, 2026
1 check passed
@atrawog
atrawog deleted the feat/pi-plan-config branch August 31, 2026 05:24
charly-auto-merge Bot added a commit that referenced this pull request Aug 31, 2026
github-actions Bot pushed a commit that referenced this pull request Oct 28, 2026
…s producers (#791)

The umbrella's currency report on this wave's base named SIX pins that were not
current, and every one of them had a producer that had already landed. This is
the consumer leg of that wave: the umbrella's tree changes only in its
gitlinks, and what those gitlinks now carry is the `stage_parallelism` rename
and the guidance it republished.

    currency: 6 of 409 pin(s) NOT current [2 behind, 403 cur, 4 differs (no checkout to judge ancestry)];
    intents: 403 upstream leaf/leaves (403 implicit), 6 derived-from edge(s);
    NOT CURRENT: charly: behind; intent upstream:main (implicit: .gitmodules branch=);
      recorded 874a8b113e; served be7a505f47 (branch);
    layer-charly-check: differs (no checkout to judge ancestry); intent upstream:main (implicit: .gitmodules branch=);
      recorded cbd44f223d; served c77ecbb77a (branch);
    marketplace: behind; intent upstream:main (implicit: .gitmodules branch=);
      recorded 99a1bb4a6f; served 5feb9c8b83 (branch);
    plugin-box: differs (no checkout to judge ancestry); intent upstream:main (implicit: .gitmodules branch=);
      recorded b9ed1216c8; served 803541c15d (branch);
    plugin-marketplace: differs (no checkout to judge ancestry); intent upstream:main (implicit: .gitmodules branch=);
      recorded ba254d57ee; served 12242956b6 (branch);
    sdk: differs (no checkout to judge ancestry); intent upstream:main (implicit: .gitmodules branch=);
      recorded d71b9abb4b; served 352755df2e (branch);
    producer-first legs: charly (874a8b113e -> be7a505f47) -> marketplace (99a1bb4a6f -> 5feb9c8b83)

WHAT EACH ADVANCE CARRIES.

  charly           874a8b113e -> be7a505f47  (4 commits, 6 files)
    opencharly/charly#1082 compiles in the plugin-box that spells the knob
    `--stage-parallelism`, and #1084 adopts the landed `stage_parallelism`
    vocabulary in the project manifest. The umbrella's effective binary now
    ACCEPTS `--stage-parallelism` and REJECTS `--podman-jobs` (rc=80).

  layer-charly-check  cbd44f223d -> c77ecbb77a  (2 commits, 2 files)
    opencharly/layer-charly-check#55 republishes the authoring-gotchas
    reference so it names the knob that exists: `--stage-parallelism`, and the
    outer `--jobs` beside it.

  marketplace      99a1bb4a6f -> 5feb9c8b83  (6 commits, 26 files)
    opencharly/marketplace#591 republishes the umbrella's own guidance from
    its post-fix tag, so the corpus teaches `--stage-parallelism` and the
    pin-advance verb's true scope. #586 and #590 ride along.

  plugin-box       b9ed1216c8 -> 803541c15d  (8 commits, 9 files)
    opencharly/plugin-box#66 is the rename's producer; #68, #70 and #72 are the
    follow-up that makes the skill-body control read the TREE (so a newly added
    body is covered without a hand-maintained slice) and gives the vacuity guard
    its own red arm.

  plugin-marketplace  ba254d57ee -> 12242956b6  (2 commits, 5 files)
    opencharly/plugin-marketplace#55 replaces the false family->owner table with
    the mechanism that cannot go stale.

  sdk              d71b9abb4b -> 352755df2e  (1 commit)
    opencharly/sdk#476 names the knob that exists in the buildkit file header.

THE SCOPE IS DERIVED, not hand-listed: the product's own currency report on
this wave's base names the pins that are not current, and its own
producer-first line is the wave's work list.

The wave ran in the sanctioned order on a light tree: `charly task sync` (the pin
moves in the index; the checkouts that exist are rolled), then `charly task init`
to materialize the advanced paths AT the pins the index records, then the gate.
The verb's own report is the scope control: 6 pin(s) moved — 6 pin_map entries
moved 0, 396 index-only advances moved 4, and 2 of the 7 rolled leaves moved.
The six `derived-from:charly` EDGES stay `cur`: the two `charly` trees record
identical `box/*` twins, so advancing the leaf changes what the edges are
judged against, not what they are worth.

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
aitrawog pushed a commit that referenced this pull request Nov 17, 2026
I framed #72 as the seam covers the four consumers, so InjectSecretsIntoPlans is a duplicate. Two
measurements say otherwise.

The two call sites are two different destinations: overlay.go deliverSecretEnv feeds the overlay image
BUILD, where oci.Emit walks the plans and the value lands in a Containerfile step env; secrets_artifacts.go
feeds plugin-fleet artifact assembly at apply/venue time. Neither is the runtime Env the config-time seam
writes, so neither is a duplicate of it.

And nothing in this tree authors a build-time secret: four secret_require sites, all runtime env, none in an
add_candy overlay candy. deliverSecretEnv delivers nothing today, and deleting it would remove a build-time
CAPABILITY, not a duplicate.

So #72 is three units: A, deliverSecretEnv in overlay.go, unused but a real capability that would need
--mount=type=secret if used; B, plugin-fleet artifact path, blocked because the handle-shaped answer has no
dispatch (spec#370); C, the four consumers, DONE by the seam and proven by check-seam-proof.

And the correction: I wrote that deleting ahead of a working env seam is the regression #69 recorded. That is
no longer the hazard. The hazard now is deleting a BUILD-time mechanism because its RUNTIME neighbour works.

Rule 12: a measurement that splits an issue is worth more than a deletion that guesses.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
aitrawog pushed a commit that referenced this pull request Nov 17, 2026
83e13df added section 4c (#72 IS THREE UNITS) after the body was written, so the range said 'through 4a'
and the count said 68 while the diff adds 69.

Corrected in both tables and in the paste, which now reads 69 from the same command the review ran.

This is the third count that went stale because the FILE kept growing while the CLAIM stood still -- and
the lesson is the same one the line-count claim taught: a number about a tree that the same PR keeps
editing will be wrong by the time it is read. The next revision of this body states the range and lets the
diff header carry the number.

Body first, event second.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
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