Skip to content

Derive the ACP tool list from the Tool enum to stop three-way drift #1509

Closed

Description

@malibio

Overview

The agent tool set exists as three parallel, hand-synced surfaces: the Tool enum (local path), raw-string tool_whitelist arrays in the skill pipeline, and a prose TOOLS_LIST in ACP context assembly that even uses a different name prefix. A test ties the whitelists to the enum, but nothing ties the ACP prose (what external CLI agents actually read) back to it.

Problem Statement

Renaming a tool silently staleness the ACP-facing description, and the prefix split is evidence the surfaces have already drifted.

Proposed Solution

Generate TOOLS_LIST from Tool::ALL (mapping each variant to its wire name + one-line description) and add a test asserting every whitelist string and the ACP list resolves through Tool::from_name. Collapse the three surfaces to one derivation off the enum.

Acceptance Criteria

  • The ACP tool list is generated from the Tool enum
  • A test asserts whitelist + ACP names resolve against the enum
  • Code passes bun run quality:fix; tests pass

Technical Specifications

Reference Files

  • packages/agent/src/local_agent/tools.rs (Tool enum, ALL, name, def_*), skill_pipeline.rs (whitelists), acp/context_assembly.rs (TOOLS_LIST)

Related Issues

  • (none)

Activity

  1. malibio commented on Jul 6, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 148 test files passed, 3963 tests passed

  2. self-assigned this
    on Jul 6, 2026
  3. added a commit that references this issue on Jul 6, 2026
    90a1261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions