Skip to content

ui-server: live checkout accounting disagrees with git's ignore rules and drops checkout edits from hold counts #4413

Open

Description

@schlessera

Part of #4278. Deferred from the fifth review of PR #4362 (#4297). Related to #4389, which has the same scope.

Context

  • Live size accounting decides ignored paths with the journal policy (packages/ui-server/src/brain/turn-journal.ts:674), while capture honours .git/info/exclude (packages/ui-server/src/brain/code-change-program.ts:71-72, :86).
  • A 17 MiB file ignored only through .git/info/exclude therefore trips the Stop-only ceiling, although the receipt would omit it.
  • Separately, observationChangedPaths and the hold's changedPaths (turn-journal.ts:692, :706) count file-row changes only, which checkout coverage suppresses, so a checkout edit shows as zero in Activity.

Scope

Live accounting and Activity hold counts for receipt-covered in-brain checkouts. No per-observation git run.

Acceptance criteria

  • A new file ignored only through .git/info/exclude does not count toward the checkout ceiling.
  • A tool call that changes one covered tracked file reports observationChangedPaths 1 and a hold changedPaths of 1.
  • Each case has a test with a mutation receipt.

Activity

  1. added
    type: fix
    area: ui-server
    priority: p3
    agent-ready
    on Nov 21, 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-readyarea: ui-serverpriority: p3type: fix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions