From 35ee6de657e3eb467e0629a023ddf55d5286595e Mon Sep 17 00:00:00 2001 From: sid Date: Thu, 23 Apr 2026 18:46:21 -0600 Subject: [PATCH] =?UTF-8?q?feat(planctl):=20context-window=20token=20aware?= =?UTF-8?q?ness=20=E2=80=94=20wiring=20+=20E2E=20(parent=202.0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - emitText: context line for Info/Warn/Error bands, unknown-limit form, multi-plan single-emission after aggregate, Normal/nil silent (R3.4, R3.5, R4.1-R4.3, R4.5) - emitJSON: context_window key for Info/Warn/Error, unknown-limit shape (tokens_used only), Normal/nil omitted; context never shifts error/warning counts (R5.1-R5.4) - main.go: ReadTokenCtx hoisted to run() so all current + future subcommands see resolved ctx; runLint accepts ctx as parameter - Golden-fixture harness reads env.txt (KEY=VALUE) and stages transcript.jsonl at ~/.claude/projects//.jsonl in a temp HOME - 8 new E2E fixtures: context-{info,warn,error,normal,no-session,no-limit, json-warn,multi-plan} - Baseline fixtures byte-identical; Linux cross-build clean Parent 2.0 from dev/plans/26174-planctl-context-tokens/tasks.md