{ "title": "Split config.sh under the cap without changing the policy it defines", "objective": "Take phone_focus_mode/config.sh from 571 lines to under the repo's 250-line cap by moving per-enforcer settings into siblings, while proving the parsed policy and the sourced shell environment are both unchanged. Every phone script sources this file and deploy.sh sources it from the checkout, so a mistake here stops the entire stack rather than degrading one enforcer.", "acceptance_criteria": [ "bash meta/scripts/check_file_length.sh --all no longer lists phone_focus_mode/config.sh, and no new file is over the cap.", "The policy fingerprint is byte-identical before and after: python3 -m python_pkg.focus_policy --config phone_focus_mode/config.sh | sha256sum.", "The SOURCED SHELL ENVIRONMENT is also identical — same variable count, same values. The fingerprint alone is insufficient: the loader reads only the fifteen names it parses, so a broken path expansion in any other variable is invisible to it.", "Every one of the fifteen loader-visible variables stays in config.sh. The loader regex-scans that file's text alone, so a name moved to a sibling silently parses as empty rather than erroring.", "No extraction may cut through a multi-line quoted value; each moved variable is taken from its assignment through the line closing its quote.", "All five siblings are added to BOTH of deploy.sh's hardcoded lists, and the lists remain in exact correspondence.", "shellcheck passes on each touched file individually; sh -n passes on every config file; bash -n passes on config.sh.", "pytest python_pkg/focus_policy passes, and every phone-side shell suite still passes with an unchanged assertion count." ], "out_of_scope": [ "Deploying to the phone or verifying on-device.", "Changing any package list, prefix, threshold, interval or path value.", "Moving any loader-visible variable, however tempting for line count — WHITELIST and SYSTEM_NEVER_DISABLE alone are 122 lines and must stay.", "Splitting deploy.sh or focus_ctl.sh, which are separate later items." ], "verifier": "python3 -m python_pkg.focus_policy --config phone_focus_mode/config.sh | sha256sum (expects 83e05e82dd1683e1dff1c79a96fec0a4a56aa73295604c681ae355b40a590ba3), plus a diff of the sourced environment against the pre-split commit showing 79 identical variables, plus check_file_length.sh --all showing 17 files, plus every phone test suite at its previous count, plus pytest python_pkg/focus_policy at 137 passed." }