Skip to content

ui-server: disambiguate Grep colon candidates against existing files #4347

Open

Description

@schlessera

Blocked by #4275

Out of scope

Changing the restrictive rule for unresolved filename boundaries, provider-visible tool output, or native isolation.

Context

Part of #3596. The Claude Grep content parser this issue changes is not on main yet. It arrives with PR #4312 (draft, for #4275/#4276). At that PR's head efb101f84, the content helper inside outputTaintSignals (packages/ui-server/src/activity/ingestion-taint.ts:259-271; the candidate regex is at :266) checks every colon-number-colon candidate and sets unknown unless exactly one candidate exists. A row such as notes/loom.md:3:sails at 10:30:00 has more than one possible filename, so it produces unknown coverage under #4275. Every candidate is still checked for marks and areas, so nothing is lost, but ordinary content searches over lines that contain clock times restrict the chat. The final review of #4312 (receipt at head 39aba90ff) filed this as a deferral. On main the parser is the older one (outputTaintSignals, ingestion-taint.ts:178-214), which this issue does not change.

Scope

Disambiguate candidate filenames against host-owned existing-file evidence, while preserving additive marks and restrictive handling of unresolved ambiguity.

Acceptance criteria

  • An ordinary clock-time row identifies its existing source without unknown when the other candidates are proven impossible.
  • Filenames containing colon-number-colon remain identifiable and retain marks.
  • Multiple existing candidates, or unavailable filesystem evidence, retain unknown coverage.
  • Every identifiable marked candidate retains its occurrence.

Verification

Table-driven real-shape fixtures, and mutations that remove the ambiguity check or the marked-candidate collection, must fail on the intended assertions.

bun run test packages/ui-server/tests/ingestion-taint.test.ts

Contract impact

No provider-facing schema or history changes are intended. Record any public API change under the integration contract before implementation.

2026-11-23 triage at main a3395c4: the cited parser exists only on PR #4312's head, so I added Blocked by #4275 and re-anchored the citation to that head. Re-verify ingestion-taint.ts line numbers once #4312 merges. No ruling is needed: the brief is complete and only the dependency remains.

Activity

  1. added this to the 0.45.0 milestone on Nov 21, 2026
  2. added
    type: featA new capability or a change in user-visible behaviour.
    area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    on Nov 21, 2026
  3. added
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 23, 2026
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

    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-serverHono app factory: turn coordinator, auth, session catalog, routes, cron.blockedWaiting on another issue or an upstream dependency. Say which in the body.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: featA new capability or a change in user-visible behaviour.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions