Repository navigation
feat(pi): keep system-prompt-advertised extension tools bare-name callable via fabric keepVisible - #46
Merged
Conversation
…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.
Contributor
Review — PASSHead SHA: 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 Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
This was referenced Aug 31, 2026
This was referenced Nov 14, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 underextensions.<name>and hides them from the model's active tool set —capture.keepVisibledefaults to onlyfabric_exec. A bare-name call therefore fails withTool <name> not found(RCA: fabric'sFabricToolOwnership.applyremoves captured tools not inkeepVisiblefrom 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.jsonwithcapture.keepVisiblere-exposing the advertised tools as bare-name callable (the documented escape hatch: "adding a name tocapture.keepVisiblere-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 33extensions.*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"; directcreate_goalcall → "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 activetodo(bare, action=list) → OKscratchpad(bare, action=list) → OKmemory_status(bare) → OKweb_search(bare) → returned live resultsgh_pr_status(bare) → returned PR chore: harness parity with charly — rulebook, pi/claude/opencode/reasonix config, skills #1 statussubagent(bare) → launched run, returned SUBAGENT-OKsubagent_wait(bare) → waited, 1/1 run finishedumbrella_load_skills(bare, triggers ['git']) → loaded charly-internals:git-workflowmemory_read(bare) → returned scratchpadteamstatus(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
.pi/fabric.json+.pi/README.mdat the umbrella rootgit -Cgit -C <umbrella-root>check-harness-paritypassed;fabric.jsonis not in the SHARED list (umbrella-specific fork, documented in.pi/README.md)Change Classification
validate(pr-validator AI gate) — config-only change, no CI gate beyond the validatorpi -psessions; full gate = validator PASS)Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)