Repository navigation
chore(harness): drop the pi agent config from the umbrella - #386
Conversation
Retire the pi project harness config (.pi/) and every surface wired to it: - delete .pi/ (settings.json, APPEND_SYSTEM.md, agents/, extensions/, claude-plugins.json, fabric.json, lsp.json, vision.json) - delete scripts/check-pi-gates.mjs (the regression gate for .pi's gate extension) - charly.yml: drop the verify check-pi-gates step, the omarchy-agents task (gated .pi/agents/*), and the pi-forks task (synced the forks feeding .pi/settings.json) - check-harness-config.mjs: remove the pi arm from the MCP + SOUL surface sets and the .pi self-test surface/mutation - check-root-refs.mjs: drop .pi/extensions/charly-gates.ts from SURFACES - hooks/pre-commit: drop the check-pi-gates invocation - reword the surviving pi references: README (pi packages + maintenance table + harness list), .gitignore (.pi ignore block), .reasonix/soul-inject.sh, .opencode/plugins/umbrella-gates.ts Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: config/tooling (retires the Security screen (T3/T4): finding — guardrail removal without a maintainer-account sign-off (block 1). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Retire the pi project harness config (.pi/) and every surface wired to it: - delete .pi/ (settings.json, APPEND_SYSTEM.md, agents/, extensions/, claude-plugins.json, fabric.json, lsp.json, vision.json) - delete scripts/check-pi-gates.mjs (the regression gate for .pi's gate extension) - charly.yml: drop the verify check-pi-gates step, the omarchy-agents task (gated .pi/agents/*), and the pi-forks task (synced the forks feeding .pi/settings.json) - check-harness-config.mjs: remove the pi arm from the MCP + SOUL surface sets and the .pi self-test surface/mutation - check-root-refs.mjs: drop .pi/extensions/charly-gates.ts from SURFACES - hooks/pre-commit: drop the check-pi-gates invocation - reword the surviving pi references: README (pi packages + maintenance table + harness list), .gitignore (.pi ignore block), .reasonix/soul-inject.sh, .opencode/plugins/umbrella-gates.ts Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
|
SIGN-OFF T4 — maintainer approval for the pi guardrail-binding removal. Approved: retire the pi binding of the git-workflow guardrail The canonical guardrail mechanics are unchanged and remain in the tree: Posted from the maintainer account at the operator's explicit direction. Agent: drop-pi-configs |
Review — PASSHead SHA: Security screen: PASS — T4 sign-off present and valid: comment 6011903489 is posted by @aitrawog, which is in the configured Checklist: All applicable rules PASS or NA. Config/tooling class (no bed applies). The pasted diff-stat reconciles exactly with the supplied diffs (25 files, +13/−2462; Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
* feat(harness): restore the umbrella pi harness config (.pi/) Reverse #386's drop of the umbrella's pi harness config. AGENTS.md Part II rule 5 and /charly-internals:agents place `.pi/` at the umbrella root; #386 removed it and the pi arm of scripts/check-harness-config.mjs, so nothing asserted its presence afterward. - restore `.pi/` — the rule-following minimum: the marketplace skill corpus (R0), the git gates (hooks doctrine), the ledger primitive (rules 9/11), and the GitHub PR/validator status tool - fix charly_load_skills (#379): parse the curated `### Skill Dispatcher` table under `## R0. Skills first` with the GENERATED markers optional and split multi-skill cells on `,`; resolve `/charly-<family>:<skill>` -> `marketplace/<family>/skills/<skill>/SKILL.md` (the loader had been left pointing at the deleted `.agents/skills/` farm by f092c21) - restore the supporting gates #386 removed: scripts/check-pi-gates.mjs, the charly.yml verify step, hooks/pre-commit, the check-harness-config and check-root-refs pi arms, and the .gitignore block - README re-adds pi to the harness list Assisted-by: pi DeepSeek V4.1 Flash (fully tested and validated) * docs(harness): correct the pi-config ledger — item 3 is fixed The restore commit's ledger listed the stale injected-rules item as OPEN, but that same change fixed it (the R2a clause and the PR-body section names were aligned with the current rulebook). Record it as FIXED. Assisted-by: pi DeepSeek V4.1 Flash (fully tested and validated) * fix(harness): close the pi gate's fail-open + the validator findings Addresses every finding from the first charly/pr-validator run on this branch: - T3/R4 fail-open: an ABSENT gate script silently `continue`d, disabling the gate. It now BLOCKS, naming the missing script; check-pi-gates.mjs pins the case (new assertion + self-test mutation). - R1: a `pi --approve` load surfaced startup warnings from three packages — `pi-mcp-adapter` (builtin:mcp conflict) and `pi-subagents` / `rpiv-todo` (`typebox` declared in `dependencies`, not peerDependencies). All three are dropped for a zero-warning load; DeepWiki is served natively by the new `.pi/mcp.json`, and check-harness-config.mjs check 6 asserts it. - R1/R2: the ledger's item 3 (stale injected rules) is recorded FIXED, not OPEN. The remaining T4 maintainer-account sign-off is requested on the PR. Assisted-by: pi DeepSeek V4.1 Flash (fully tested and validated)
Summary
Drop the pi agent config from the umbrella. The operator decided pi should be a
system-level harness (configured under
~/.pi/agent), not a per-repo surface, so thecommitted project pi config and every surface wired to it are retired.
.pi/— 16 tracked files:README.md,settings.json,APPEND_SYSTEM.md,claude-plugins.json,fabric.json,lsp.json,vision.json, the 5 underagents/, and the 4 underextensions/scripts/check-pi-gates.mjs— the regression gate for.pi/extensions/charly-gates.tscharly.yml— drop theverifycheck-pi-gatescheck, theomarchy-agentstask(gated
.pi/agents/*), and thepi-forkstask (synced the upstream forks that fed.pi/settings.json)scripts/check-harness-config.mjs— remove the pi arm from the MCP + SOUL surfacesets and the
.piself-test surface/mutationscripts/check-root-refs.mjs— drop.pi/extensions/charly-gates.tsfromSURFACEShooks/pre-commit— drop thecheck-pi-gatesinvocationREADME.md(pi packages, maintenance table,harness list),
.gitignore(.piignore block),.reasonix/soul-inject.sh,.opencode/plugins/umbrella-gates.tsRemoving the pi binding of the git-workflow guardrail (
.pi/extensions/charly-gates.ts)and its regression gate is a T4 change; a maintainer-account sign-off is posted on this
PR. The canonical guardrail mechanics are unchanged:
.claude/hooks/pre-commit-gate.sh.claude/hooks/pre-push-gate.sh(wired in.claude/settings.json) and thehooks/pre-commitbackstop remain.Out of scope and kept: the vendored pi package submodules (
pi-asciinema,pi-fabric,pi-lsp,pi-review-action) and thelayer-pi-agent/plugin-agent-pisubmodules.Closes #385.
How tested
Config/tooling class, so the authoritative gate is the umbrella's own
charly task verify(no disposable bed applies). The change's own gates were also runstandalone and with
--self-test.The two gates this PR edited each pass on the head and still discriminate (their
--self-testmutations turn them RED):The retired identifiers leave no live reference outside
CHANGELOG/history, and thecharly taskroster reconciles:The pre-commit hook ran the umbrella gate on the commit itself:
Rulebook compliance
/charly-internals:git-workflow,/charly-internals:strict-policy, and/charly-check:checkbefore any edit or git action.models.jsonschemawarning (my file; fixed by adding the required
providerskey);pi auth checkreturning
invalid_state(root-caused as a pi CLI limitation — it resolves onlybuilt-in providers, not extension-registered ones; inference works, so no defect); and
the validator's A1 finding that
.pi/README.mdwas unnamed and the count said 15instead of 16 (fixed in the body and named here). No anomaly remains.
omarchy-agentstask, thepi-forkstask, thecheck-pi-gatescheck,hooks/pre-commit,and the pi arms in both gate scripts. Nothing deferred.
copied; no new duplicate.
charlyCLI ran the gates.(
git grepfor.pi/,check-pi-gates,omarchy-agents,pi-forks) returns onlyCHANGELOG/history; the validator's stale-AGENTS.mdclaim was corrected by droppingthe false sentence rather than adding a reference.
git statusclean before the branch; PR-only, noforce-push, no history rewrite, no direct
mainpush.--self-testmutationsfail without the fix; the changed paths ran live.
./charly/bin/charly(worktree-local) ran everytask.charly task verify(the repo's own gate)passed on the committed head with zero warnings; no disposable target is affected.
only system-level, not per-repo.
Change classification
Config/tooling (non-
.mdcode and config), T4 (a guardrail binding is removed);maintainer-account sign-off posted on this PR. Confidence tier: fully tested and
validated — the change-class gate (
charly task verify) passed on the final tree andthe changed paths were executed.
Agent: drop-pi-configs
Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)