Skip to content

feat(pi): keep system-prompt-advertised extension tools bare-name callable via fabric keepVisible - #46

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/pi-fabric-keepvisible
Aug 29, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/pi-fabric-keepvisible

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The umbrella system prompt advertises extension tools by their bare pi names (todo, create_goal/get_goal/update_goal, subagent/subagent_wait, gh_pr_status, umbrella_load_skills, memory_*, scratchpad, web_search/fetch_content, team_*), but pi-fabric full-code mode captures extension tools under extensions.<name> and hides them from the model's active tool set — capture.keepVisible defaults to only fabric_exec. A bare-name call therefore fails with Tool <name> not found (RCA: fabric's FabricToolOwnership.apply removes captured tools not in keepVisible from the active set; the system prompt's tool advertisement comes from pi's registry, which uses bare names — an advertisement/dispatch mismatch).

Fix: add .pi/fabric.json with capture.keepVisible re-exposing the advertised tools as bare-name callable (the documented escape hatch: "adding a name to capture.keepVisible re-exposes them"), and document the file in .pi/README.md.

How tested

1. Tool-surface audit (live, in-session)

Enumerated the full fabric registry (tools.catalog): 10 providers, 109 actions. Probed every advertised namespace — pi.* (7), tools.* discovery methods (7), memory.*, state.*, schema.*, compact.*, agents.*, mesh.*, mcp.$*, and all 33 extensions.* captured tools — all functional. The only broken surface was bare-name direct calls to captured extension tools (reproduced: tools.call({ref:'create_goal'}) → "Fabric action references must use provider.action"; direct create_goal call → "Tool create_goal not found").

2. Fresh-session verification with pi -p (after the fix)

cd /home/atrawog/Sync/Atrapub/coder/pi/opencharly && pi -p "Call each of these tools DIRECTLY by bare name ..." — all bare-name calls succeeded:

  • create_goal (bare) → goal created, status active
  • todo (bare, action=list) → OK
  • scratchpad (bare, action=list) → OK
  • memory_status (bare) → OK
  • web_search (bare) → returned live results
  • gh_pr_status (bare) → returned PR chore: harness parity with charly — rulebook, pi/claude/opencode/reasonix config, skills #1 status
  • subagent (bare) → launched run, returned SUBAGENT-OK
  • subagent_wait (bare) → waited, 1/1 run finished
  • umbrella_load_skills (bare, triggers ['git']) → loaded charly-internals:git-workflow
  • memory_read (bare) → returned scratchpad
  • teamstatus (bare) → {"teams": {}}
  • fetch_content (bare) → callable; extraction backend needs a provider key in ~/.pi/web-search.json (pre-existing operator config gap, not a routing issue)

Model verdict from the test session: "All 5 tools exist as bare-name tools in this session — none required the extensions.* path."

3. Pre-commit gate

check-harness-parity: OK — 5 shared harness files identical to charly/ + pre-commit: OK (both passed on commit).

4. Pinning gate (R7)

scripts/verify-pins.sh — no pins changed by this PR (config-only change; no gitlink/pin edits).

5. Submodule cleanliness

git submodule status — no dirty submodules (no submodule touched).

Rulebook compliance

Rule Status Evidence
1. No edits inside submodules ✅ Only .pi/fabric.json + .pi/README.md at the umbrella root
2. Submodule git via git -C ✅ All git ops via git -C <umbrella-root>
5. Only merged refs pinned ✅ No pins touched
6. Policy B equality ✅ No distro gitlinks touched
7. Subrepo rulebooks read ✅ charly/AGENTS.md + skills read (check, agents, git-workflow, root-cause-analyzer)
8. Harness config parity ✅ check-harness-parity passed; fabric.json is not in the SHARED list (umbrella-specific fork, documented in .pi/README.md)

Change Classification

  • Change class: fix (harness config)
  • Verification gate: validate (pr-validator AI gate) — config-only change, no CI gate beyond the validator
  • Attribution tier: fully tested and validated (bare-name tool calls executed live in fresh pi -p sessions; full gate = validator PASS)

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

…lable via fabric keepVisible

The umbrella system prompt advertises extension tools (todo, create_goal,
get_goal, update_goal, subagent, subagent_wait, gh_pr_status,
umbrella_load_skills, memory_*, scratchpad, web_search, fetch_content,
team_*) by their bare pi names, but pi-fabric full-code mode captures
extension tools under extensions.<name> and hides them from the model's
active tool set (capture.keepVisible defaults to only fabric_exec), so a
bare-name call fails with 'Tool <name> not found'.

Add .pi/fabric.json with capture.keepVisible re-exposing the advertised
tools as bare-name callable, restoring the advertised surface. Document
the file in .pi/README.md.
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 78fe9764abd9 (branch: feat/pi-keep-visible)

Security screen: PASS — config-only change; no secrets, no exfiltration, no scope mismatch (both files accounted for in body), no guardrail weakening (re-exposes already-advertised extension tools via the documented capture.keepVisible escape hatch; the umbrella-gates bash hook is untouched).

Checklist: All applicable rules PASS or NA.

  • Change class: harness config (.pi/fabric.json + README doc). Not docs-only, not runtime code, not CI hook.
  • A1/A2/A3: body complete, accounts for both diff files, live pi -p verification of the changed bare-name call path, attribution footer in exact form, tier justified (changed behavior executed live).
  • R1: RCA provided for the tool-not-found defect; the fetch_content provider-key note is an operator config gap, not a code defect in scope.
  • R2/R3/R4/R5: no parked defects, no duplication, no ad-hoc workaround (uses documented mechanism), no removed identifiers.
  • R6/R8/R9/R10/B13/B17: N/A (no build/generation/target deployment/candy/schema/destroy).
  • B16 placement: CORRECT — harness config lives in .pi/, not core/sdk/candy.
  • No comments to intake.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 29, 2026 20:20
@github-actions
github-actions Bot merged commit 769089c into main Aug 29, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 29, 2026
@atrawog
atrawog deleted the feat/pi-fabric-keepvisible branch August 29, 2026 20:22
github-actions Bot pushed a commit that referenced this pull request Nov 14, 2026
* chore(pins)!: advance the unit-8 pins and re-anchor the census

The umbrella pin wave for opencharly/spec#304 unit 8 (#1024).

Eight pins move: charly (the fleet), the three distros (their own waves), plugin-check
(#149), plugin-substrate (#42/#43/#44/#45/#46/#47), sdk (#514) and spec (#320/#321).

The census follows the body: three dulling rows re-anchor to the plugin module, with the
three KEEPER citations (#VmBackend, #VmBackendName, #VmKrun) correctly staying in spec -
a blanket rewrite moved them and the control caught it. The D-PAT census lowers the twin
row and records the plugin union: the six D-PAT-2 dup findings the deletion created are
gone because plugin-substrate#47 removed the duplicate defs.

TODO.md row 2.1 reads Units 1-8 of 11 with the unit nine legs, its counts (KindValueDefs
3 -> 2, five bodies remain) and its three lessons; the ledger carries the P01 row (3 units
left) and the §9 record.

Measured on the served tree: the assembled graph builds clean, the corpus sweep moved zero
verdict classes, currency 8 of 409 -> 3 of 409, the design controls and the 48-step pin
gate green.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

* docs: the four gitlinks and where the other four went (review round)

* docs(ledger): the P01 state column names unit 8 (review round)

* docs: the rollback sentence says four (review round)

---------

Co-authored-by: aitrawog <[email protected]>
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