Skip to content

ui-server: preserve exact colon filenames in search evidence #4275

Open

Description

@schlessera

Part of #3596. Confirmed at main 63bb400.

outputTaintSignals (packages/ui-server/src/activity/ingestion-taint.ts:185-214) flattens structured filenames into content lines and splits each at its first colon. A structured Glob filename notes/voyage:home.md is looked up as notes/voyage; that prefix passes the path check, so neither its explicit mark nor an unknown remainder is retained.

A real writer/collector test marks the full filename and returns it from a root-level structured Glob. STRUCTURED_COLON_PATH_RETAINS_EXPLICIT_MARK fails because no user_marked occurrence exists.

Acceptance criteria:

  • Keep structured path fields as exact filenames, including colons, when checking area membership and explicit marks.
  • Parse actual grep path/line formats separately; ambiguous, malformed or truncated output must retain unknown coverage rather than silently trusting a plausible prefix.
  • Preserve distinct paths, independent area and explicit-mark signals, truncation and all existing finite bounds.
  • Add failing-first and mutation receipts plus real collector/writer coverage of structured and plain tool output.

This restores the existing detector contract; no trust exemption or wire change.

2026-11-20 contract correction (maintainer-approved): the fix adds an optional sixth outputStatus argument to BackendBridge.inputSafety.result, with explicit completeness and optional process-status fields. SDK minor changeset, package API documentation and regenerated API report are required. No provider-facing tool definition/schema or prior provider-history bytes change.

Activity

  1. added
    type: fix
    area: ui-server
    priority: p2
    agent-ready
    on Nov 20, 2026
  2. self-assigned this
    on Nov 20, 2026
  3. added this to the 0.45.0 milestone on Nov 20, 2026
  4. schlessera commented on Nov 20, 2026

    @schlessera
    OwnerAuthor

    Claim safety-epic-followups-20261120, branch fix/safety-epic-followups-20261120, dedicated checkout from main 63bb400b31403ee319926d38e223711a9bf0e7e1. Failing-first real writer/collector and held-wait backend tests confirm the issue. Shared proof collisions are being checked; proposed implementation avoids #4270/#4273's source files, with any necessary shared contract edit to be coordinated before review.

  5. added
    contract
    area: ui-sdk
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-sdkarea: ui-servercontractpriority: p2type: fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions