testsAndMisc/docs/superpowers/contracts/linux-config-near-miss-batch3-2026-08-16.json
Krzysztof kuhy Rudnicki 1a75ed5bf5 Split three more linux_configuration feature and fix scripts
setup_syncyomi.sh 408 -> 138 (two cuts), setup_personal_website.sh
396 -> 192, fix_thorium.sh 377 -> 208.

All three already declared SCRIPT_DIR and the splitter added a second
one, which aborts at runtime with "readonly variable" while bash -n and
shellcheck stay clean. The stubbed run caught it; the splitter now
reuses an existing declaration.

Fixed SC2164 in build_website rather than suppressing it: a bare
cd "$WEBSITE_SRC" inside a subshell, with pnpm install and pnpm run
build after it. A failed cd would have built in the caller's directory.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY
2026-08-16 18:48:01 +02:00

19 lines
1.4 KiB
JSON

{
"title": "Split three more linux_configuration feature and fix scripts",
"objective": "Bring setup_syncyomi.sh (408), setup_personal_website.sh (396) and fix_thorium.sh (377) under the 250-line cap, and teach the splitter to reuse an existing SCRIPT_DIR rather than redeclaring it.",
"acceptance_criteria": [
"All three entry scripts and all four new libs are at most 250 lines.",
"bash -n and shellcheck pass on every touched file, with no new suppression and no shellcheck disable directive.",
"Each entry script declares SCRIPT_DIR exactly once. All three already had one, and a second declaration aborts the script at runtime with 'readonly variable' while passing bash -n and shellcheck.",
"The stubbed run reports every moved function as defined, for all three scripts.",
"No script is executed. All three write Docker compose stacks, Caddy config or browser profile data.",
"The unchecked cd exposed in build_website is fixed rather than suppressed."
],
"out_of_scope": [
"Executing any setup or fix step.",
"clean_audio.sh and setup_passwordless_system.sh, both deferred for reasons already recorded.",
"Changing what any script does when run, beyond the cd guard."
],
"verifier": "scratchpad/verify_split.sh per script (bash -n + shellcheck -x + stubbed run), plus check_file_length.sh showing none of the six files, plus pre-commit run --files and the real git commit for jscpd."
}