I'm returning **NEEDS_JULIUS**: once any tool call is denied by the Claude CLI itself, the PR marks the whole turn failed, even when the agent recovers and finishes. That is a product call about permission semantics, and it changes what delegated parents and the thread see. I reviewed the full diff from `22840ab943` to [`56468f9`](https://github.com/pingdotgg/t3code/commit/56468f9f5fe27d9df330bda6e770099d27d486f3) (6 commits plus a merge of main) with `git show`/`git diff` only. I ran no tests.

## What the PR changes (`ClaudeAdapterV2.ts`, `ProjectionStore.ts`, `ThreadSettlementService.ts`)
1. **Tracking denials.** `canUseTool` now records every tool-call id T3's callback handled (the `t3DeniedToolUseIds` set) and removes it when the result is `allow`. A `permission_denied` frame from the CLI, or failing that the text of an errored `tool_result`, gives the reason for each denial. Reasons are cut to 400 characters and control codes are stripped.
2. **Failing the turn.** At the end of a turn, `permission_denials` minus T3's own denials gives the CLI's denials (`cliDenials`). If there are any and the turn is not interrupted, the adapter adds a `system_notice` listing up to 5 of them. If the status would have been `completed`, it becomes `failed` with `permission_error` / code `permission_denied`, and the terminal event carries `childTurnsContinue: true`.
3. **Settlement.** `isAutoSettlementCandidate` now refuses a thread whose status is `failed` with `lastErrorCode === "permission_denied"`. The settlement SQL reads that code from the latest run's root `error` turn item. The SQL also now skips held queued runs, which matches `latestUnheldRun` in the in-memory store.

## Focus areas
- **A running workflow keeps going and keeps being ingested.** Checked. `RunExecutionService.ts:172` `childTurnsContinue()` already gates three things for a failed terminal: the subagent cascade at line ~685, clearing `openRunOwnedSubagents` at ~1070, and `shouldStopProviderEventIngestion` at ~1221. That is the same mechanism the Codex adapter uses (`CodexAdapterV2.ts:5798`). Tests:
  - `keeps a running workflow alive when a CLI permission denial fails its turn` (adapter)
  - `keeps a workflow live and ingested after a CLI permission denial fails its run` (`ClaudePermissionDenial.integration.test.ts`)
- **Settlement and a held queued successor.** Checked. Test: `ProjectionSettlement.test.ts` `%s: a run failed by a permission denial stays out of auto-settlement`, run as `it.effect.each` over the store variants; I did not read which ones. The in-memory store already used `latestUnheldRun`, so the SQL change brings the two stores into line rather than changing behaviour.
- **T3's own declines stay out.** Checked. The id is recorded before the decision runs, so a callback that dies mid-request still counts as T3's. Tests:
  - `surfaces Claude CLI permission denials but not ones T3 made`
  - `leaves a turn that only T3 denied completed and quiet`
- **Interrupts and real failures keep their own status.** Checked. Tests: `keeps an API failure's own status and reason`, `keeps an aborted turn interrupted`.

## Concerns
1. **A recovered denial still fails the turn (the reason for NEEDS_JULIUS).** `deniedByCli = resultStatus === "completed" && cliDenials.length > 0` never asks whether the agent worked around the denial. Two runtime setups hit this often, because neither installs a permission callback (`claudeRuntimeQueryPolicyForRuntimePolicy`), so every denial in them counts as the CLI's:
   - **`auto`**, which maps to Claude's `auto` mode. Its classifier routinely denies a call and the model then takes another route.
   - **Read-only sandbox with `approvalPolicy: "never"`**, which maps to `dontAsk`. Every write the agent tries is denied by the CLI.

   In both, a turn that ends with a correct answer is reported `failed` with `permission_denied`. The effects:
   - The thread can never auto-settle.
   - The run status is `failed`, so a snooze wakes and any delegating parent receives a failed child. I traced this from the run status; it is not tested.
   - Scheduled runs that post into a bound thread show the failure there. `ScheduledTaskService.ts:872` `lastRunStatus` only reflects whether dispatch succeeded, so the scheduled task's own status is unaffected.

   No test covers "denied, then recovered, then completed". Julius should decide whether any CLI denial should fail the turn, or only a turn that ends right after a denial, or whether these should be a notice only.
2. **Permission semantics.** No approval path or permission grant is widened. `canUseTool` decisions are unchanged and only observed. The new behaviour is limited to how terminal status and settlement are reported.
3. **Minor.** The `latest_run_failure_code` subquery in the settlement SQL is correlated per thread. It is filtered to `r.status = 'failed'`, so the cost is small; I did not measure it.

## Limitations
- I did not run tests or typecheck.
- PR 23807 is not available locally (no matching ref), so I could not verify that its finalization change is compatible. In this PR, the `finalizeActiveTurn` change is additive: the new `reportedStatus`/`reportedFailure` fall back to the original `input.status`/`input.failure`.
- I did not read CI, review comments, or the PR body.
- `scripts/fixtures/issue-18386/*` is out of scope and does not block.

VERDICT: NEEDS_JULIUS
