SPB Git

Repository Public

CLAUDE.md 1.6 KB

# 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 in tests/test_engine.py; run python3 -m unittest discover -s tests before 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 in templates/. 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 with spb-header check --repo ..
  • Never hand-write a header, never add one to generated, vendored, third-party or data files.
Files main
Menu

Theme