fix(preamble): emit EXPLAIN_LEVEL + QUESTION_TUNING bash echoes

Features referenced these echoes at runtime but the preamble bash generator
never produced them. Added two config reads in generate-preamble-bash.ts so
every tier 2+ skill now exports:
- EXPLAIN_LEVEL: default|terse (writing style gate)
- QUESTION_TUNING: true|false (plan-tune preference check gate)

Also updates skill-validation tests:
- ALLOWED_SUBSTEPS adds 15.0 + 15.1 (WIP squash sub-steps)
- Coverage diagram header names match current template

Golden fixtures regenerated. 6 pre-existing test failures now pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-04-20 07:05:43 +08:00
parent 34876e9337
commit ac41d9fffd
40 changed files with 240 additions and 5 deletions
+6
View File
@@ -102,6 +102,12 @@ _CHECKPOINT_MODE=$(~/.claude/skills/gstack/bin/gstack-config get checkpoint_mode
_CHECKPOINT_PUSH=$(~/.claude/skills/gstack/bin/gstack-config get checkpoint_push 2>/dev/null || echo "false")
echo "CHECKPOINT_MODE: $_CHECKPOINT_MODE"
echo "CHECKPOINT_PUSH: $_CHECKPOINT_PUSH"
# Writing style: default = jargon-glossed + outcome-framed, terse = V0 prose
_EXPLAIN_LEVEL=$(~/.claude/skills/gstack/bin/gstack-config get explain_level 2>/dev/null || echo "default")
echo "EXPLAIN_LEVEL: $_EXPLAIN_LEVEL"
# Question tuning: true = check preferences + log per-question, false = classic
_QUESTION_TUNING=$(~/.claude/skills/gstack/bin/gstack-config get question_tuning 2>/dev/null || echo "true")
echo "QUESTION_TUNING: $_QUESTION_TUNING"
# Detect spawned session (OpenClaw or other orchestrator)
[ -n "$OPENCLAW_SESSION" ] && echo "SPAWNED_SESSION: true" || true
```