Skip to content

chore(pi): mirror-harness cleanup - retired extensions/agents/prompts out, umbrella status tools in - #509

Merged
atrawog merged 2 commits into
mainfrom
feat/pi-harness-mirror-cleanup
Aug 31, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/pi-harness-mirror-cleanup

Conversation

@atrawog

@atrawog atrawog commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Mirror-harness cleanup of charly's .pi config to match the umbrella's current state (AGENTS.md rule 8 / HARNESS-PARITY.md — .pi is a hand-reviewed mirror).

Removed (umbrella-retired): loop-protection.ts, .pi/agents/validator.md, .pi/prompts/ (6 files), + R5-swept the stale template references out of PROGRAM/pi-integration.md (the doc now points at the corpus agents + standing discipline).

Added: the umbrella's github-pr-status.ts + charly-status.ts extensions (byte-identical copies) registered in .pi/settings.json alongside charly-gates.ts; kept subagents.agentOverrides and the package set.

How tested — pasted output

$ python3 -c "import json; d=json.load(open('.pi/settings.json')); print('extensions:', d['extensions']); print('hasOverrides:', 'subagents' in d)"
extensions: ['./extensions/charly-gates.ts', './extensions/github-pr-status.ts', './extensions/charly-status.ts']
hasOverrides: True

$ grep -rln 'loop-protection\|subagent-review\|pr-body.md\|rulebook.md\|validator.md' . | grep -v '.git' | grep -v CHANGELOG | wc -l
0

$ bash scripts/check-harness-parity.sh
check-harness-parity: OK — 5 shared harness files identical to charly/

The two extension files are byte-identical to the umbrella's copies, and BOTH tools ran live in the umbrella session with retained output (gh_pr_status on real PRs; charly_status on the real sway-browser-vnc bed — state/step-matrix matches recorded in the umbrella closing report).

Rulebook compliance

  • R5: retired identifiers + their references swept in the same commit (grep = 0 outside CHANGELOG).
  • Parity: .pi is the hand-reviewed fork layer; the 5 mechanically-shared files untouched (parity check green, pasted).

Change classification

  • Change class: config/harness cleanup (settings.json + two extension files + one doc).
  • Verification gate: syntax (json parse, pasted) + reference sweep (pasted) + parity (pasted); the extension content ran live in the umbrella as identical copies.
  • Attribution tier: analysed on a live system (the changed content — the two extensions — executed live as byte-identical umbrella copies with retained output; the charly-side registration itself was syntax-checked, not executed in a charly session).

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system, high confidence)

… out, umbrella status tools in

Remove the umbrella-retired .pi/extensions/loop-protection.ts (deleted in the
umbrella #61 cleanup) and the stale .pi/agents/validator.md + .pi/prompts/*
(also retired umbrella-side); add the umbrella's github-pr-status.ts and
charly-status.ts extensions and register both in .pi/settings.json alongside
charly-gates.ts. Keep charly's subagents.agentOverrides and package set
(hand-reviewed mirror per HARNESS-PARITY.md).
@atrawog
atrawog enabled auto-merge (squash) August 31, 2026 10:02
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 5489249c552a (branch: chore/pi-mirror-harness-cleanup)

Change class: config cleanup (harness mirror) — adds 446 lines of TypeScript (two pi extensions), deletes retired .pi agents/prompts/extension, updates .pi/settings.json.

Security screen: PASS — no T1–T4 findings. New extensions are read-only (gh, podman images, virsh domstate queries; .check file reads); no secrets, no exfiltration, no weakened guardrails, no scope mismatch. The deleted .pi/agents/validator.md is a pi-harness agent, not the GitHub Actions validator spec I run under — not self-modifying security.

Blocks

  1. A3 — inflated attribution tier. The body claims *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (documentation reviewed)*. The documentation reviewed tier is legal ONLY when the whole diff is documentation (*.md/comment-only) — it is explicitly forbidden when code or config also changed. This diff adds 446 lines of TypeScript (github-pr-status.ts, charly-status.ts) and modifies settings.json; it is not docs-only. The tier must be corrected to match the actual evidence (a config/code change that was syntax-checked and swept but whose changed paths did not run live cannot claim documentation reviewed). The footer's confidence slot also holds a tier name rather than a confidence value.

  2. A1 — evidence not pasted. The How tested section describes the checks ("python3 json.load parses the settings", "R5 sweep … = 0") but pastes no actual command output. A1 requires pasted output, not a promise. Provide the real commands and their real output.

Minor (non-blocking): the body states subagents.agentOverrides (reviewer/worker) were "kept untouched," but the diff changes both descriptions (em-dash → \u2014). Functionally identical, but the accounting is slightly off.

Verdict: BLOCK


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

View action run

…i-integration.md

The mirror cleanup retired the template files; the doc still documented and
exemplified them. Replace with the current mechanism (corpus agents +
standing discipline).
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: f99e753e3aa6 (branch: chore/pi-mirror-harness-cleanup)

Security screen: PASS — no T1–T4 findings. New extensions are read-only (gh, podman images, virsh domstate queries; .check file reads); no secrets, no exfiltration, no weakened guardrails, no scope mismatch. The deleted .pi/agents/validator.md is a pi-harness agent, not the GitHub Actions validator spec — not self-modifying security.

Checklist: All applicable rules PASS or NA.

Prior-review findings re-derived against CURRENT state:

  • A3 (inflated tier) — resolved. Body now claims analysed on a live system (not documentation reviewed), which is appropriate for a config/harness change whose changed content (the two extensions) executed live as byte-identical umbrella copies; the charly-side registration was syntax-checked, so fully tested would be inflated but analysed on a live system is correct.
  • A1 (evidence not pasted) — resolved. Body now pastes real output: python3 json parse of settings.json (matches diff's extension list), the R5 grep sweep (0), and the parity check. All internally consistent with the diff.
  • Minor note re agentOverrides descriptions: the current diff shows only the extensions array changed in settings.json; the agentOverrides lines are unchanged context — stale/superseded.

Change class: config/harness cleanup (settings.json + two extension files + one doc). Gate (syntax + reference sweep + parity) matches the class; no bed required for a non-runtime change. R5 sweep complete in final head state (second commit collapses on squash). Placement CORRECT (pi-harness layer, not core/sdk/candy).

Verdict: PASS


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

View action run

@atrawog
atrawog merged commit 29f1275 into main Aug 31, 2026
3 checks passed
@atrawog
atrawog deleted the feat/pi-harness-mirror-cleanup branch August 31, 2026 10:19
charly-auto-merge Bot added a commit that referenced this pull request Aug 31, 2026
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