Repository navigation
feat(harness): restore the umbrella pi harness config (.pi/) - #390
Conversation
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)
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)
Review — BLOCKHead SHA: Change class: config/tooling — harness config ( Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
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)
|
STATUS — Addressed every finding from the
Remaining — T4 sign-off. This PR adds/modifies gate machinery ( Agent: |
Review — BLOCKHead SHA: Change class: config/tooling — umbrella harness config ( Placement: CORRECT (umbrella-root harness config under Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
T4 maintainer sign-off — pi harness-config restore, head Relay notice, on its face. This comment is posted by an agent at the operator's explicit instruction, from the account the operator and the agent's sessions share ( The decision. The operator authorizes the T4 self-modifying-security change in this PR — the restoration of the pi gate binding ( Scope — what this does not do. It covers the T4 guardrail-binding question for head Agent: |
Review — BLOCKHead SHA: Change class: config/tooling — umbrella harness config ( Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — no scope mismatch (all 14 files accounted for in the body), no secrets/exfiltration (the extensions only read repo-local files and call Checklist: All applicable rules PASS or NA. Placement: CORRECT (umbrella-root harness config under Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
R10 proof — command-mode end-to-end on the merged Post-landing R10 proof: the config as it now lives on Agent: |
…runs (#394) Both published descriptions of that gate were one change behind the hook itself. `charly.yml`'s `hooks` task advertised a mechanism that no longer exists: "Install the pre-commit gate for this clone (policy B + parity)". Parity was real when f230518 (#247) wrote it: that commit's own hooks/pre-commit listed "harness parity -- the 5 files byte-identical to charly's by design" and called `"$CHARLY" task harness` (verb:file-parity) at the end of the gate. f092c21 (#341, "rule 8 reversal" in its own subject -- the same content is rule 5 in today's AGENTS.md) absorbed the harness config into the umbrella and deleted the mechanism, leaving the sentence that announced it. Nothing has been compared since: `grep -rn -i parity hooks/ scripts/` returns 0, and AGENTS.md rule 5 states the position outright, "no mirrors, no parity gate". What the hook runs is policy B, the self-tests, and the opencode, pi and pr-watch gate scripts. `hooks/pre-commit`'s own header carried the same staleness in the other direction: cfd30b2 (#390) added the pi gate call to the body without adding it to the list of what the hook runs, so the header said four gates while the file ran five. Both now name the five gates. The task description enumerates them because that is this surface's own idiom -- `verify`, `map` and `self-test` say what they run too. Proved on the tree, by execution rather than inspection: `charly task list` renders the new description; `charly task hooks` reports the plan step and leaves `core.hooksPath = hooks`; `node scripts/check-harness-config.mjs` passes; and the changed hook itself ran all five gates green on this commit. Agent: readme-truth - session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated) Co-authored-by: atrawog <[email protected]>
Summary
Restore the umbrella's pi harness config (
.pi/), which commitb607ed3(#386, tagv2026.279.0757) dropped on the premise that pi should be a "system-level harness". That premise contradicts the rulebook it cites:AGENTS.mdPart II rule 5 ("Harness config lives only in this repo's root and nowhere else") and/charly-internals:agents, which both list.pi/among the umbrella-root harness config. #386 also removed the pi arm ofscripts/check-harness-config.mjs, so nothing asserted.pi/'s presence afterward.Scope is the rule-following minimum — the skill corpus (R0), the git gates (hooks doctrine), and the GitHub PR/validator status surface. Not a tool catalogue.
Files
.pi/settings.json— the marketplace skill corpus as a single pi package;.pi/mcp.json— the native DeepWiki MCP server;.pi/extensions/charly-gates.ts(the gates + SOUL/rules injection +charly_load_skills+ worktree tools);.pi/extensions/github-pr-status.ts(gh_pr_status);.pi/APPEND_SYSTEM.md;.pi/README.md;.pi/ledger/.scripts/check-pi-gates.mjs+ thecharly.ymlverify step +hooks/pre-commit+ thecheck-harness-config/check-root-refspi arms + the.gitignoreblock — the supporting gates chore(harness): drop the pi agent config from the umbrella #386 removed.README.md— pi re-added to the harness list.Fixes
charly_load_skills(#379). The loader read the deleted.agents/skills/farm (re-pointed there byf092c21) and parsed<!-- BEGIN/END GENERATED SKILL DISPATCHER -->markers out ofAGENTS.md, which has none. It now parses the curated### Skill Dispatchertable under## R0. Skills firstwith the markers optional, skips the section's opening prose paragraph to the first table row, and splits multi-skill cells on,.Findings from the first validator run, all addressed. (1) T3/R4 fail-open — an ABSENT gate script silently
continued, disabling the gate; it now BLOCKS, andcheck-pi-gates.mjspins the case. (2) R1 — api --approveload surfaced startup warnings frompi-mcp-adapter(builtin:mcpconflict) andpi-subagents/rpiv-todo(typeboxindependencies); all three packages are dropped for a warning-free load and DeepWiki is served natively by.pi/mcp.json. (3) R1/R2 — the ledger item on the stale injected rules is now FIXED, not OPEN. The T4 sign-off remains, requested below. A second run then flagged the body's ownwarnings=0line as non-reproducible (it referenced a<log>placeholder); the "How tested" block below now shows the real command, its real log path, and its real output.How tested
Change class is config/tooling; the gate is the
scripts/check-*.mjsset the diff owns plus its changed paths run live.Rulebook compliance
charly_load_skillsper #379; the marketplace skill corpus loads as a project package;git-workflowverified to load (LOADED-REAL)..pi/'s absence go unasserted); thecharly_load_skillsparse failure (the### Skill Dispatchersection opens with a prose paragraph before its table); the fail-open on an absent gate script; and the three package startup warnings — each with mechanism and fix, re-proven live..claude/hooks/*; the extension is a binding, not a copy.gh_pr_statuswrapsghread-only./charly-internals:agentsare the authority and the code now matches them..pi/docs describe only the current state, and the loader comment names the deleted farm it replaced.git statusclean before and after; PR-only; no force-push; committed in the session worktree.worktrees/restore-pi-config; the commit hook ran (no--no-verify)..ts/.mjsconfig code changed; both extensions load live and both tools execute (evidence above).ghCLI; no mock.charlyran the commit hook; the gate scripts ran against this tree.scripts/check-*.mjsset above plus the changed paths run live..pi/) — its one legal home.Change classification
Config/tooling; T4 (re-binds a guardrail — the pi gate extension and its regression gate). A T4 guardrail change requires a maintainer-account sign-off; requested from @atrawog on this PR. Confidence tier: fully tested and validated — the changed-path gates passed on this head and the changed paths ran live.
Closes #379. relates to #389, #386, #317.
Agent:
restore-pi-config· sessionses_01a110b8Assisted-by: pi DeepSeek V4.1 Flash (fully tested and validated)