PHASE 0 EPIC: Debloat tool, skill, and prompt context without RLM #149

Open
opened 2026-09-09 15:05:10 +00:00 by nsaspy · 0 comments
Owner

Parent: #2

Goal

Reduce the largest remaining bootstrap/context cost: Agent Zero currently loads the full prompt payload for every allowed tool. Do this without Prolog-RLM so Phase 0 establishes a clean baseline first.

Current problem

The tool system enumerates agent.system.tool.*.md, reads every allowed prompt, concatenates them, and injects the entire result. Tool authorization filtering exists, but an allowed tool still pays its full prompt cost whether or not the current task needs it.

Phase-0 design constraints

  • No Prolog-RLM dependency.
  • Existing _tool_access remains execution authority.
  • Visibility reduction must not grant or revoke execution permission accidentally.
  • Prefer existing plugin/extensible hooks and a small deterministic Python discovery layer over core loop edits.
  • Unknown tasks need a bounded discovery fallback; never solve uncertainty by restoring the entire catalog.

Work order

  1. Measure tool-prompt token contribution for default profiles.
  2. Build a compact tool catalog from existing prompt/tool metadata.
  3. Separate always-visible essential tools from task-selectable tools.
  4. Select a bounded candidate set using plain Agent Zero/Python signals for Phase 0.
  5. Load full prompt bodies only for selected candidates.
  6. Add a bounded discovery/retry path when the initial set is insufficient.
  7. Measure task-success and token delta against unmodified Agent Zero.

RAGE loop

Review exact tool prompt builder, tool policy, profile prompt paths and representative tasks -> Analyze smallest behavior-preserving visibility cut -> Generate bounded catalog/selection slice + tests -> Execute token and task regressions -> inspect misses -> repeat.

Loop breakers

  • If a task fails because a needed tool was hidden, record the miss and improve discovery; do not simply re-enable all tools.
  • Same selection miss twice -> re-plan the selector or add explicit metadata.
  • Never let a prompt-selection mechanism override execution authorization.

Acceptance

  • Default root no longer receives every full allowed tool prompt on every turn.
  • Essential response/control tools remain reliably available.
  • Full contracts are loaded only for a bounded candidate set.
  • Unknown capability discovery is bounded and tested.
  • Tool authorization behavior is unchanged.
  • Token telemetry reports catalog vs selected full-contract cost.
  • Representative coding/research/simple tasks do not materially regress.
  • Works with zero Prolog-RLM installation.

Exit

Finish this Phase-0 behavior and measure it before replacing the selector with or augmenting it using the Prolog-RLM prompt compiler in Phase 1.


Mirrored from lost-rob0t/a0-symbolics#3 via tracker sync.

Parent: #2 ## Goal Reduce the largest remaining bootstrap/context cost: Agent Zero currently loads the full prompt payload for every allowed tool. Do this **without Prolog-RLM** so Phase 0 establishes a clean baseline first. ## Current problem The tool system enumerates `agent.system.tool.*.md`, reads every allowed prompt, concatenates them, and injects the entire result. Tool authorization filtering exists, but an allowed tool still pays its full prompt cost whether or not the current task needs it. ## Phase-0 design constraints - No Prolog-RLM dependency. - Existing `_tool_access` remains execution authority. - Visibility reduction must not grant or revoke execution permission accidentally. - Prefer existing plugin/extensible hooks and a small deterministic Python discovery layer over core loop edits. - Unknown tasks need a bounded discovery fallback; never solve uncertainty by restoring the entire catalog. ## Work order 1. Measure tool-prompt token contribution for default profiles. 2. Build a compact tool catalog from existing prompt/tool metadata. 3. Separate always-visible essential tools from task-selectable tools. 4. Select a bounded candidate set using plain Agent Zero/Python signals for Phase 0. 5. Load full prompt bodies only for selected candidates. 6. Add a bounded discovery/retry path when the initial set is insufficient. 7. Measure task-success and token delta against unmodified Agent Zero. ## RAGE loop **Review** exact tool prompt builder, tool policy, profile prompt paths and representative tasks -> **Analyze** smallest behavior-preserving visibility cut -> **Generate** bounded catalog/selection slice + tests -> **Execute** token and task regressions -> inspect misses -> repeat. ### Loop breakers - If a task fails because a needed tool was hidden, record the miss and improve discovery; do not simply re-enable all tools. - Same selection miss twice -> re-plan the selector or add explicit metadata. - Never let a prompt-selection mechanism override execution authorization. ## Acceptance - [ ] Default root no longer receives every full allowed tool prompt on every turn. - [ ] Essential response/control tools remain reliably available. - [ ] Full contracts are loaded only for a bounded candidate set. - [ ] Unknown capability discovery is bounded and tested. - [ ] Tool authorization behavior is unchanged. - [ ] Token telemetry reports catalog vs selected full-contract cost. - [ ] Representative coding/research/simple tasks do not materially regress. - [ ] Works with zero Prolog-RLM installation. ## Exit Finish this Phase-0 behavior and measure it before replacing the selector with or augmenting it using the Prolog-RLM prompt compiler in Phase 1. --- *Mirrored from [`lost-rob0t/a0-symbolics#3`](https://github.com/lost-rob0t/a0-symbolics/issues/3)* via tracker sync.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nsaspy/a0-symbolics#149
No description provided.