testsAndMisc/docs/superpowers/contracts/linux-config-mtk-lib-split-2026-08-16.json
Krzysztof kuhy Rudnicki ef0a26abc7 Split scripts/lib/mtk_common.sh with the same entry-point pattern
503 -> 132 across three parts. The seven mtk_root consumers are
untouched because the path they source is unchanged.

Identical 28-function set before and after, checked after each of the
two carves. The `<<<` in this file are here-strings, not heredocs -
worth confirming rather than assuming, after enforce_vbox_hosts.

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

18 lines
1.1 KiB
JSON

{
"title": "Split scripts/lib/mtk_common.sh under the 250-line cap",
"objective": "Bring the shared MediaTek library that seven mtk_root scripts source under the cap, using the same entry-point pattern proven on common.sh, without changing any name it exports.",
"acceptance_criteria": [
"mtk_common.sh and all three new parts are at most 250 lines.",
"mtk_common.sh remains the single path every consumer sources; it sources its own parts.",
"Sourcing it yields exactly the same 28 function names as before, checked after EACH carve rather than only at the end.",
"`<<<` occurrences are confirmed to be here-strings rather than heredocs before choosing a seam.",
"The pre-commit shellcheck hook passes on every file, with no new suppression."
],
"out_of_scope": [
"Executing any mtk_root script; they talk to a phone over USB.",
"Changing what any helper does.",
"The other over-cap linux_configuration scripts."
],
"verifier": "A subshell that sources mtk_common.sh and prints `declare -F`, diffed before and after; plus shellcheck -x, meta/scripts/verify_shell_split.sh on two consumers, and check_file_length.sh."
}