Skip to content

chore(pi): load all pi agent plugins from opencharly org forks - #115

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/pi-plugin-forks
Sep 3, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/pi-plugin-forks

Conversation

@atrawog

@atrawog atrawog commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fork/mirror all 11 pi agent plugins the umbrella loads into the opencharly org and switch .pi/settings.json from third-party npm/git sources to org-owned git:github.com/opencharly/<repo>@<tag> refs — org supply-chain ownership, reviewability, and resilience against upstream takedowns.

  • 8 real GitHub forks (inherit upstream history + tags): pi-mcp-adapter, pi-subagents, pi-memory, pi-ollama-cloud, pi-web-access, pi-claude-marketplace, pi-goal, pi-simple-team.
  • 3 vendored mirrors (new org repos, because a real fork is impossible/insufficient): pi-fabric (npm 0.70.0 is untagged/untraceable — vendored from the published tarball), rpiv-todo (lives in the rpiv-mono monorepo subdir — vendored as a single-package repo), pi-lsp (no public upstream repo — vendored from the npm tarball).
  • .pi/settings.json: all 11 entries now git:github.com/opencharly/... pinned to merged tags (upstream tags for forks, org-created tags on merged main for mirrors).
  • scripts/sync-pi-forks.sh: syncs the 8 real forks from upstream (gh repo sync + explicit tag propagation; gh repo sync does not propagate tags). The 3 vendored mirrors are re-vendored manually on version bump.
  • HARNESS-PARITY.md: corrected the stale pi rows (was "same 6 packages"; umbrella now loads 11 fork-sourced packages, charly keeps its own npm list — diverged by design).
  • Global ~/.pi/agent/settings.json on this machine: removed the 4 overlapping npm entries (pi-ollama-cloud, pi-subagents, rpiv-todo, pi-claude-marketplace) so the project git identities load without duplicates (backup: ~/.pi/agent/settings.json.bak-20260903-090914).

How tested

1. Forks created (8) — gh repo fork <upstream> --org opencharly --clone=false:

https://github.com/opencharly/pi-mcp-adapter
https://github.com/opencharly/pi-subagents
https://github.com/opencharly/pi-memory
https://github.com/opencharly/pi-ollama-cloud
https://github.com/opencharly/pi-web-access
https://github.com/opencharly/pi-claude-marketplace
https://github.com/opencharly/pi-goal
https://github.com/opencharly/pi-simple-team

2. All 11 repos public, pinned tags present (gh api repos/opencharly/<repo> + git ls-remote --tags):

pi-mcp-adapter      fork=true private=false tag v2.31.0 PRESENT
pi-subagents        fork=true private=false tag v0.60.0 PRESENT
pi-memory           fork=true private=false tag v0.4.2  PRESENT
pi-ollama-cloud     fork=true private=false tag v0.9.0  PRESENT
pi-web-access       fork=true private=false tag v0.27.0 PRESENT
pi-fabric           fork=false private=false tag v0.70.0 PRESENT (vendored mirror)
pi-claude-marketplace fork=true private=false tag v0.18.1 PRESENT
pi-goal             fork=true private=false tag v0.1.7  PRESENT
pi-simple-team      fork=true private=false tag v1.0.9  PRESENT
pi-lsp              fork=false private=false tag v0.1.7  PRESENT (vendored mirror)
rpiv-todo           fork=false private=false tag v2.8.0  PRESENT (vendored mirror)

3. Reconcile — pi update --extensions: Updated packages (cloned all 11 forks into .pi/git/github.com/opencharly/, npm install per package, 0 vulnerabilities).

4. pi list — all 11 project packages resolve from the org forks:

Project packages:
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]
  git:github.com/opencharly/[email protected]

5. End-to-end headless config test — pi -p -a --no-session "…" from the umbrella root (fresh process, loads the NEW settings.json): all 11 packages reported resolving from git:github.com/opencharly/...; 181 skills loaded (mcp-scripting, council-mode, pi-subagents, fabric-exec, pi-goal-writer, charly-* corpus); 13 extension namespaces / 37 tools (mcp, subagent, todo, memory_, web_search, fabric_exec, create_goal, team_, lsp_*, charly_status, gh_pr_status, vision_ask); fabric_exec smoke ✅, subagent agent-list ✅ (8 project agents), memory write/read round-trip ✅; no duplicates.

6. Pre-commit gate (the enforced subset — policy B + harness parity + pi extension parse):

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

7. task verify (full pinning gate, on-demand): run and captured. It fails on the local dev-state tracked as a named thematic batch in #116 (local dev-state cleanup — charly uncommitted replace directives + 9 submodules on feat branches ahead of gitlinks + eval-omarchy untracked media/):

task: [verify] bash scripts/verify-pins.sh
FAIL: charly: dirty working tree
task: Failed to run task "verify": exit status 1

The script stops at the first failure. This PR's diff changes zero gitlinks (git diff origin/main..HEAD --stat = only .pi/settings.json, HARNESS-PARITY.md, scripts/sync-pi-forks.sh), so the pinning gate is provably unaffected by this change. The umbrella has no CI verify gate by design (see .github/workflows/pr-validator.yml); the assertions a commit can violate run in pre-commit (passed above). The dev-state cleanup is tracked in #116 and lands when the dev work merges.

Rulebook compliance

Rule Status How / N/A
1. Never edit inside a submodule HOW All 3 changed files are umbrella-root files; no submodule touched
2. Git op rule HOW All git ops from the umbrella root; submodule checkouts left untouched (active dev branches)
3. No nested go.work N/A No Go changes
4. No worktrees inside submodules N/A No worktrees
5. Pin discipline HOW All 11 pins are merged tags — upstream tags for the 8 forks, org-created tags on merged main for the 3 mirrors; verified via ls-remote
6. Git safety HOW No force-push, no hook bypass; pre-commit gate ran and passed
7. Prove the gate HOW Pre-commit gate passed; task verify run and documented — failure is the local dev-state batch tracked in #116, and this diff changes zero gitlinks
8. Harness config parity HOW HARNESS-PARITY.md updated; check-harness-parity passed in pre-commit
R10. Fresh disposable proof HOW pi -p headless session from the committed tree loaded the new config; all smoke probes passed

Change classification

Assisted-by: pi ollama-cloud/deepseek-v4-flash:0731 (analysed on a live system)

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: b37e1aa0b514 (branch: chore/pi-org-forks)

Change class: configuration (pi package sources) + tooling script + docs

Blocks

  1. B5/B9 — HARNESS-PARITY.md has the umbrella/charly package descriptions REVERSED. The body states "umbrella now loads 11 fork-sourced packages, charly keeps its own npm list — diverged by design", and the diff changes the umbrella's .pi/settings.json to 11 git: refs. But both edited Pi rows in HARNESS-PARITY.md say the first column (Umbrella, per the consistent "Umbrella | charly" column order established by the Instructions rows) is "7 packages, npm-sourced" and the second (charly) is "11 packages, all git: refs". That is backwards — the umbrella has 11 git refs and charly keeps its own npm list. The doc contradicts the body and the diff. Fix the two Pi rows to read Umbrella=11 git refs, charly=own npm list.

  2. scripts/sync-pi-forks.sh — pi-fabric is in the sync loop despite being a vendored mirror. The script's own comment says "3 vendored mirrors (pi-fabric, rpiv-todo, pi-lsp) are NOT auto-synced", and the body confirms pi-fabric is fork=false (vendored mirror). But the PAIRS array includes "pi-fabric:monotykamary/pi-fabric", so the loop will run gh repo sync opencharly/pi-fabric --source monotykamary/pi-fabric --force. gh repo sync requires the target to be a fork; on a non-fork it fails, and with set -euo pipefail the whole script aborts. The final echo also contradicts the loop by listing pi-fabric as needing manual re-vendor. Remove pi-fabric from PAIRS (keep only the 8 real forks).

  3. R2/B14 — task verify failure dismissed with the forbidden "pre-existing / unrelated" framing. The body's "How tested" section reports task verify FAILED (FAIL: charly: dirty working tree) and dismisses it as "pre-existing local dev state only, not on this change" / "unrelated to this PR", without naming a batch/exit. This is the exact forbidden parking phrase. Either clean the local tree and re-run the gate to a clean pass, or route the local dev-state issue to a NAMED thematic batch — do not land on the "pre-existing" dismissal.

Security screen

PASS — no scope mismatch, no secrets/exfiltration, no weakened guardrails, no self-modifying security change. (Supply-chain direction is a strengthening: third-party sources → org-owned forks.)

Verdict: BLOCK


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

View action run

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 2c3bab35101b (branch: chore/pi-org-forks)

Change class: configuration (pi package sources) + tooling script + docs

Security screen: PASS — no scope mismatch (all 3 files accounted for in body), no secrets/exfiltration, no weakened guardrails, no self-modifying security change. Supply-chain direction is a strengthening (third-party npm/git → org-owned forks, tag-pinned).

Checklist: All applicable rules PASS or NA.

Prior-review findings re-derived against CURRENT state:

  1. HARNESS-PARITY.md rows reversed — stale-superseded. The current Pi rows self-label charly: in col 2 and umbrella: in col 3. Re-deriving the column order from the Instructions rows (charly = "AGENTS.md + CLAUDE.md kept in sync by hand" / 32KB R0–R10 rulebook; umbrella = "AGENTS.md only, CLAUDE.md symlink" / 1.6KB 7 rules) confirms both tables are charly | umbrella, so the labels match the columns. The prior review's "Umbrella | charly" assumption was incorrect; the rows are correct.
  2. pi-fabric in sync loop — verified-non-blocking (resolved). PAIRS now contains exactly the 8 real forks; pi-fabric/rpiv-todo/pi-lsp are excluded and the header comment documents the vendored-mirror exception.
  3. task verify failure dismissed as "pre-existing" — verified-non-blocking (resolved). The body now names the thematic batch opencharly/opencharly#116 (local dev-state cleanup) and shows the diff changes zero gitlinks, satisfying R2's named-batch routing.

Attribution tier analysed on a live system is not inflated (changed pi-loading path ran live via pi -p; full pinning gate blocked by the #116 dev-state batch). Assisted-by footer present in exact form. Body evidence (pi update/list/-p smoke, pre-commit gate) is internally consistent with the diff.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 3, 2026 07:24
@github-actions
github-actions Bot merged commit a858297 into main Sep 3, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 3, 2026
@aitrawog
aitrawog deleted the feat/pi-plugin-forks branch September 25, 2026 18:27
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