Skip to content

TCP-IMP-24: Improve expected_tool_name derivation for single-survivor emission #80

Description

@samscarrow

Notion Work Item

TCP-IMP-24 — Lab Work Item: https://www.notion.so/851e38f03b4c498786300c387467c072

Parent project: TCP Harness Prototype (https://www.notion.so/335e7cc701d5817b9f1fc07d2af25f0d)

Objective

Improve the expected-tool derivation pipeline so post-Stage-4 filtering can emit defensible single-survivor expected_tool_name annotations on a non-trivial fraction of real traffic, without returning to weak prompt-similarity oracle behavior.

Context

  • TCP-MT-21 measured 146 post-IMP-22 rows and found 0 emitted expected-tool annotations: every row abstained.
  • Diagnostics were present and consistent; the failure was not missing telemetry.
  • Stage 4 never converged to a single survivor. The smallest nonzero survivor set was 47 tools, with common abstention buckets like ambiguous_196_survivors, ambiguous_164_survivors, and no_survivors.
  • Agreement metrics and baseline comparisons remain blocked until the derivation layer can produce a clean emitted subset.

Scope

  • Inspect current Stage 1–4 request-feature-to-tool-survival logic and identify why real traffic remains at dozens to hundreds of survivors after Stage 4.
  • Add a conservative precision-improving derivation path that can reduce candidate sets to a single defensible expected tool when evidence is strong.
  • Preserve explicit abstention when evidence is insufficient; do not reintroduce weak prompt-similarity emission.
  • Keep the existing derivation diagnostics (schema/version fields, candidate-set phase metadata) compatible with TCP-MT-21 reruns.
  • Add or update tests covering both successful single-survivor emission and abstention cases.

Deliverables

  1. Implementation that increases discriminative power of expected-tool derivation while preserving abstention as the default for weak evidence.
  2. Tests proving:
    • strong evidence can emit one expected tool
    • ambiguous candidate sets still abstain
    • no-survivor cases are reported cleanly
    • diagnostics remain present for measurement
  3. Short implementation note explaining which evidence source or filtering rule was added and why it is defensible.
  4. Recommendation for whether TCP-MT-21 should be repeated immediately after the implementation lands.

Dataset

Post-TCP-IMP-22/23 decisions.jsonl rows and targeted fixtures that exercise ambiguous_N_survivors, no_survivors, and strong-evidence single-survivor cases.

Stop / Kill Condition

Stop if the only available path to emission is weak prompt similarity, manual relabeling, or a threshold tweak that cannot be defended from request/tool evidence. Do not manufacture coverage at the expense of annotation validity.

Completion Contract (Implementation)

  • Code-touching. One or more PRs expected.
  • Work identity lives in the Notion Work Item; branches are execution artifacts.
  • Preferred new branch name: work/tcp-imp-24 (or similar; must reference TCP-IMP-24).
  • Before pushing, verify the branch contains only work for this Work Item. Rebase or cherry-pick onto a clean branch if scopes are mixed.
  • PR title/body must reference TCP-IMP-24.
  • Handoff: All PRs merged → Close issue → Stop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions