spb-source-governance
Engine and policy for the SP Boucher source header standard. Read SOURCE_HEADER_POLICY.md and
COPYRIGHT_POLICY.md before changing behaviour.
- Python ≥ 3.11, standard library only. No new dependency without a strong reason.
- Every change to
spbheader/needs a test intests/test_engine.py; runpython3 -m unittest discover -s testsbefore committing. - The splice rule is absolute: the engine may only insert, refresh or remove its own header block (and a legacy identity block recognised line by line). Never reformat or re-encode a file.
- Identity, contacts, comment syntax and exclusions live in
config/*.toml, wording intemplates/. Do not hard-code them in the engine. - Reports, ledgers and per-repository policies belong to the workspace, not to this repository: they list private repositories.
- Never push, merge, or change a license or a rights holder on behalf of the owner; those need explicit authorization.
Source header policy (SP Boucher)
When creating or modifying eligible first-party source files, follow the SP Boucher Source Header Policy. Preserve existing copyright and license notices, select the correct language-specific template, and avoid adding identifying information to anonymous academic submission artifacts.
- Repository policy:
.spb-source-governance.toml(project, contact, verified rights, license). - Add or refresh headers with
spb-header apply --repo .; verify withspb-header check --repo .. - Never hand-write a header, never add one to generated, vendored, third-party or data files.