From 5da307ebe273fd1cacfcd475ed7c61c76a39f6e3 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Mon, 13 Jul 2026 14:28:51 +1000 Subject: [PATCH] goals: add G-077 (punk executable -e one-liner support) Proposed goal, wording user-approved 2026-07-13: make the perl/python/node -e reflex work on punk kits (top-level and script subcommand forms) instead of erroring, without ever reproducing stock-tclsh argv-swallow/stdin misparse behaviour. Companion to the tclsh -e guardrails commit (AGENTS.md entry + claude deny hook). Assisted-by: harness=claude; primary-model=claude-fable-5; api-location=anthropic.com --- GOALS.md | 4 ++++ goals/G-077-punkexe-dash-e-oneliner.md | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 goals/G-077-punkexe-dash-e-oneliner.md diff --git a/GOALS.md b/GOALS.md index 7991e993..238d7f94 100644 --- a/GOALS.md +++ b/GOALS.md @@ -297,3 +297,7 @@ Detail: goals/G-075-punkargs-package-ids.md ### G-076 [active] Adopt upstream tcl9 dead-console fix: shared version gate for watchdog and help tcl warning Scope: src/modules/punk/lib-999999.0a1.0.tm (punk::lib::check), src/modules/punk/repl-999999.0a1.0.tm (repl::start watchdog arming), src/modules/punk/AGENTS.md, src/tests/modules/punk/lib/testsuites/lib/checkbugs.test Detail: goals/G-076-tcl9-deadconsole-fix-adoption.md + +### G-077 [proposed] punk executable -e one-liner support: make the tclsh-agent instinct work +Scope: src/vfs/_config/punk_main.tcl (top-level arg dispatch), src/lib/app-punkscript/punkscript.tcl (script subcommand arg forms), src/tests/shell/testsuites/punkexe/scriptexec.test +Detail: goals/G-077-punkexe-dash-e-oneliner.md diff --git a/goals/G-077-punkexe-dash-e-oneliner.md b/goals/G-077-punkexe-dash-e-oneliner.md new file mode 100644 index 00000000..bdfb79d5 --- /dev/null +++ b/goals/G-077-punkexe-dash-e-oneliner.md @@ -0,0 +1,21 @@ +# G-077 punk executable -e one-liner support: make the tclsh-agent instinct work + +Status: proposed +Scope: src/vfs/_config/punk_main.tcl (top-level arg dispatch), src/lib/app-punkscript/punkscript.tcl (script subcommand arg forms), src/tests/shell/testsuites/punkexe/scriptexec.test +Goal: ` -e