# CLI-053 Tasks — CLI flag wiring

Spec: `.agents/spec-docs/active/CLI-053-flag-wiring.md`

- [x] T1 (TC-05): `parseToolList()` in cli-args.ts + unit tests (undefined/empty/"A,B"/" A , ,B ")
- [x] T2 (TC-03): effective permission mode resolver (dry-run → plan alias, conflict → exit 1) + unit tests
- [x] T3 (TC-01): HeadlessInteractionChannel `deniedTools` option threading + print-mode passes both lists
- [x] T4 (TC-02): IRenderOptions allowedTools/deniedTools → TuiInteractionChannel threading
- [x] T5 (TC-04): help text — `--json-schema` line, `--dry-run` plan-alias wording + unit test
- [x] T6 (TC-06): SPEC updates (agent-cli flags, agent-transport channel options); build/test/typecheck/lint green both packages
- [x] T7: E2E evidence runs (denied-tools transcript, dry-run conflict exit code) recorded in backlog files CLI-053/054/055
