* emit.go: emitText/emitJSON take *TokenCtx; jsonSummary extended with *jsonCtxWin (omitempty) for context_window in JSON output
* main.go: ReadTokenCtx() called once at top of run() before subcommand dispatch; threaded through runLint
* main_test.go: golden-fixture harness extended for env.txt + transcript.jsonl staging in temp HOME
* testdata/v2/context-{info,warn,error,normal,no-session,no-limit,json-warn,multi-plan}: 8 new fixtures exercising all bands + shapes
Task 2.0 from dev/plans/26174-planctl-context-tokens/prd.md
* main_test.go: TestGoldenFixtures sweeps
testdata/{clean,dirty,inline-code-exclusion,multi}/**; compares
stdout against expected.golden and exit against expected.exit.
--update flag regenerates sidecars. Per-fixture invocation
overrides via optional args.txt (with FIXTURE substitution) and
cwd-rel.txt. Handles flat-layout fixtures (prd.md at class root)
and multi-plan layouts (dev/plans/ subtree).
* CRLF normalisation on both sides of the golden compare per
design §7.4's Windows-CI contract.
* Clean fixtures: simple-plan (prd+tasks), with-design-plan
(prd+design+tasks, full coverage).
* Dirty single-class fixtures: orphan-requirement, orphan-design,
uncovered-requirement, uncovered-design, tag-syntax, tag-unclosed,
ears-violation, missing-closeout-file. Each isolates one
diagnostic class; ears-violation-strict and ears-violation-no-ears
share the plan via args.txt overrides.
* tag-unclosed-with-recovery fixture: codex R1 regression guard for
design §3.3 recovery — the recovery line uniquely cites D§2.2 so
broken recovery would surface as uncovered-design.
* inline-code-exclusion fixture: decoys cite an undeclared R9.9 so
any masking leak would trip orphan-requirement.
* Multi-plan fixtures: case-c (repo root with dev/plans/{alpha,beta,
archive/retired}/, Case C upward walk + archive skip); case-b
(deeply-nested cwd inside a plan dir, Case B resolution).
* Perf fixture testdata/perf/big-plan/ — synthetic 5-file plan
(~90 KB) with 36 R-ids, 18 D§ sections, 72 tasks (all covered).
Parent 8 wires Benchmark_Lint_BigPlan.
Parent task 7.0 from dev/plans/26172-planctl/tasks.md.
Codex code-review session: 019db2ed-d621-7bc0-90f2-05feb5e2fe50 (2 rounds).