Skip to content

Improve project scope guidance for relative paths in multi-project tool calls #1919

Closed

Description

@phernandez

Problem

The 1.0 RC versus v0.24.1 Haiku benchmark found repeated confusion between project-relative paths and project-qualified paths when the model omitted project in a multi-project session. The tools correctly refused to guess a project, but the diagnostic presented a folder name as an unknown project, adding recovery calls.

This is a follow-up usability investigation, not evidence that explicit project scoping is broken or a request to restore implicit default-project routing.

Evidence

Three repeats of 31 valid task goals per product, using the complete catalogs and claude-haiku-5-5:

Path/project scope errors v0.24.1 1.0 RC
Calls refused 3 16

The 1.0 events were bm_read (8), bm_list (7), and bm_write (1). All omitted an explicit project scope. The intended project name was supplied in the task prompt, but prose does not establish a server-side active project. The harness retained fresh projects across tasks, so this is specifically multi-project evidence; do not generalize the rate to single-project installations.

Representative observed calls and error prefixes:

bm_read(identifier="notes/postgres-vacuum-notes.md", output_format="text")
# INVALID_ARGUMENTS: no project 'notes' — active projects: ...

bm_read(identifier="architecture/oauth-token-design.md", section="Rollback checklist")
# INVALID_ARGUMENTS: no project 'architecture' — active projects: ...

bm_list(path="schemas/", output_format="json")
# {"error": "INVALID_ARGUMENTS", "message": "no project 'schemas' — active projects: ..."}

bm_write(identifier="release/rc-check.md", title="Release Candidate Check", content="...")
# INVALID_ARGUMENTS: no project 'release' — active projects: ...

The write example abbreviates content and other arguments. Additional affected folder names: tasks and man3. In contract-edit-prepend, the next successful bm_read retained the identifier/output-format argument keys and added project with the intended task project. Haiku ultimately passed every valid goal on both versions; no unintended file changes were detected by the mutation graders.

The errors enumerate active project prefixes; in the harness's larger project list, the useful recovery guidance can fall outside the retained/truncated excerpt. Investigate the actual model-visible response and shared truncation cap before deciding how to improve it.

Investigation and acceptance criteria

  • Reproduce with two projects and ordinary folders named notes, tasks, schemas, and architecture; compare explicit project, project-qualified paths, and omitted scope.
  • Audit shared tool descriptions, manuals, and error hints for consistent examples of project-relative versus qualified addressing, including reads, folder lists, writes and identifiers returned by other tools.
  • Make an omitted-scope refusal explain the ambiguity and offer a copyable explicit-project call or project-discovery step before a potentially long project list. Distinguish an unknown project prefix from a valid relative folder whose scope was omitted where the server can do so safely.
  • Preserve cross-project/workspace isolation, existing explicit-scope precedence, and conflict refusals. Do not silently fall back to a mutable default or search unrelated projects to guess intent.
  • Add focused coverage for refusal/recovery and same-named folders/projects; rerun affected Haiku goals and compare recovery-call counts.

Refusal catalog and provenance

All error/refusal events in the six completed Haiku runs:

Category v0.24.1 1.0 RC
Path/project scope omitted 3 16
Timeframe exceeds one year 0 7
Unsupported legacy read_note(section=...) 3 0
Incompatible bm_find(name=..., filters=...) 0 1
Expected stale-checksum conflicts 3 3
Total 9 27

The timeframe/filter items are outside this issue's implementation scope. Seven timeframe errors were calls within one orphan-discovery attempt, not seven failed tasks. Expected revision conflicts should remain refusals.

  • Candidate: 0884e204d84ac9d18124ad78601a80925643f901.
  • Baseline: v0.24.1, 1d0e09b6f4876c3f339c30e8dbfcf66e59e2c356.
  • Harness: 910ccb39dd5934b03c65aa9a552b31b1a477731e, local branch bench/1.0-vs-0.24.1.
  • Raw local records: benchmarks/benchmarks/runs/release-claude-haiku-5-5-full-{legacy,bm}-{01,02,03}/per-turn.jsonl.
  • Full 36-event catalog with recorded argument/error excerpts: benchmarks/benchmarks/results/1.0-rc-haiku-refusals-2026-10-28.md on the local benchmark branch; machine-readable copy at benchmarks/.scratch/haiku-final/refusals.json. These artifacts have not been pushed/published.

Related: #1828 (1.0 tool evaluation); #1812 (project prefix in permalink glob matching, a distinct related addressing problem). Evidence is from the pinned RC: check current main before implementing a fix.

Activity

  1. claude commented on Oct 28, 2026

    @claude
    Contributor

    Claude finished @phernandez's task in 16s —— View job


    Triage

    • Type: Enhancement (usability and diagnostics improvement, not a defect in explicit project scoping)
    • Component: MCP tools (error and refusal messaging, tool descriptions and manuals). No Cloud involvement.
    • Priority: Medium. Agents recover from the refusals, but the 16 vs 3 refused calls add recovery turns in multi-project sessions.
    • Complexity: Medium. The work is mostly in the shared project-resolution error path, plus a docs and manual audit and focused tests. The server has to tell an unknown project prefix from a valid relative folder without guessing intent or weakening isolation.
    • Duplicates: The search found no duplicate. 1.0 tools: eval harness v1 surface and v0.24.1 baseline #1828 and Permalink glob search needs the project prefix; document or match project-relative #1812 are related but distinct, as the issue notes.

    Notes for whoever picks this up

    • The issue says the evidence comes from a pinned RC, so check current main first. The refusal text may have changed.
    • The acceptance criteria already say to put a copyable explicit-project call or a discovery step before the long project list. Truncation of that list should be checked along with the wording.
    • The project's 100% coverage requirement applies to the new refusal paths.
    • Timeframe and filter errors are out of scope, and stale-checksum conflicts should stay refusals.

    No clarifying questions are needed. The issue is well specified. I did triage only and made no code changes.

  2. added
    enhancement
    on Oct 28, 2026
  3. added a commit that references this issue on Oct 29, 2026
    bde8034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions