SPB Git

Repository Public

README.md 8.3 KB 164 lines markdown

1# SP Boucher Source Governance23<!-- spb-readme-showcase:begin -->4<p align="center">5<a href="https://git.spboucher.ai"><img alt="git.spboucher.ai" src="https://img.shields.io/website?url=https%3A%2F%2Fgit.spboucher.ai&label=git.spboucher.ai&style=for-the-badge&up_message=online&down_message=offline"></a>6<img alt="platform" src="https://img.shields.io/badge/platform-Python-111827?style=for-the-badge">7<a href="https://spboucher.ai"><img alt="author" src="https://img.shields.io/badge/author-Simon--Pierre%20Boucher-0A66C2?style=for-the-badge"></a>8</p>910<p align="center">11<img alt="Python" src="https://img.shields.io/badge/Python-3776AB?style=flat-square&logo=python&logoColor=white">12</p>1314<p align="center">15<a href="https://git.spboucher.ai/spb-source-governance"><img alt="commits" src="https://git.spboucher.ai/badge/spb-source-governance/commits.svg?style=flat-square&color=2563eb"></a>16<a href="https://git.spboucher.ai/spb-source-governance"><img alt="last-commit" src="https://git.spboucher.ai/badge/spb-source-governance/last-commit.svg?style=flat-square&color=16a34a"></a>17<a href="https://git.spboucher.ai/spb-source-governance"><img alt="activity" src="https://git.spboucher.ai/badge/spb-source-governance/activity.svg?style=flat-square"></a>18<a href="https://git.spboucher.ai/spb-source-governance"><img alt="language" src="https://git.spboucher.ai/badge/spb-source-governance/language.svg?style=flat-square"></a>19<a href="https://git.spboucher.ai/spb-source-governance"><img alt="languages" src="https://git.spboucher.ai/badge/spb-source-governance/languages.svg?style=flat-square"></a>20<a href="https://git.spboucher.ai/spb-source-governance"><img alt="size" src="https://git.spboucher.ai/badge/spb-source-governance/size.svg?style=flat-square&color=0891b2"></a>21<a href="https://git.spboucher.ai/spb-source-governance"><img alt="branches" src="https://git.spboucher.ai/badge/spb-source-governance/branches.svg?style=flat-square&color=ca8a04"></a>22<a href="https://git.spboucher.ai/spb-source-governance"><img alt="tags" src="https://git.spboucher.ai/badge/spb-source-governance/tags.svg?style=flat-square&color=db2777"></a>23<a href="https://git.spboucher.ai/spb-source-governance"><img alt="license" src="https://git.spboucher.ai/badge/spb-source-governance/license.svg?style=flat-square&color=475569"></a>24<a href="https://git.spboucher.ai/spb-source-governance"><img alt="clones" src="https://git.spboucher.ai/badge/spb-source-governance/clones.svg?style=flat-square&color=7c3aed"></a>25</p>2627<p align="center">28<img alt="Tracked files" src="https://img.shields.io/badge/Tracked%20files-37-0f766e?style=flat-square">29<img alt="lines of code" src="https://img.shields.io/badge/lines%20of%20code-2%20687-b45309?style=flat-square">30<img alt="languages" src="https://img.shields.io/badge/languages-2-6d28d9?style=flat-square">31<img alt="test files" src="https://img.shields.io/badge/test%20files-1-15803d?style=flat-square">32<img alt="docs" src="https://img.shields.io/badge/docs-7%20pages-1d4ed8?style=flat-square">33</p>34<!-- spb-readme-showcase:end -->3536One source-code identity, attribution and license standard for every SP Boucher repository:37research, teaching, SP and ORIX applications, web platforms, AI systems and MacLustr infrastructure.3839**Author:** Simon-Pierre Boucher — Professor of Finance, Université du Québec en Outaouais (UQO) —40https://spboucher.ai — dev@spboucher.ai4142## What is here4344| Path | Content |45|---|---|46| `SOURCE_HEADER_POLICY.md` | the standard: rules, variants, exclusions |47| `COPYRIGHT_POLICY.md` | how the rights holder and license of a header are established |48| `CONTACT_DIRECTORY.md` | official addresses and routing by project category |49| `SECURITY_POLICY.md` | what a header may never disclose |50| `config/` | identity, comment syntax per language, exclusions (TOML) |51| `templates/` | header bodies per variant |52| `spbheader/` | the engine (Python ≥ 3.11, standard library only) |53| `bin/spb-header` | launcher |54| `tests/` | unit and end-to-end tests |55| `integrations/` | git hook, pre-commit, CI job, Claude Code section, Xcode, LaTeX notes |56| `docs/ONBOARDING.md`, `docs/ROLLBACK.md` | procedures |5758## Commands5960```bash61export SPB_GOVERNANCE_WORKSPACE=~/path/to/workspace   # repos/, policies/, ledger/, reports/62spb-header discover            # list repositories of the workspace63spb-header classify [slug…]    # draft a policy per repository from verifiable facts64spb-header audit [slug…]       # read-only file-level audit65spb-header inventory           # machine-readable inventory (JSON, CSV)66spb-header preview <slug>      # proposed diff, nothing modified67spb-header apply [slug…]       # branch chore/spb-source-governance, headers, validation, local commit68spb-header validate [slug…]    # re-prove from git that each migration commit is comment-only69spb-header report              # STATUS.md, summary.json, inventory.csv70spb-header status              # compliance summary71spb-header rollback <slug>     # remove headers file by file72spb-header check --repo .      # hook / CI check of one repository73spb-header apply --repo . --files path/to/file   # header for a new file74```7576`apply` never pushes, never touches a default branch, never stashes and refuses a dirty tree.7778## Guarantees, and how they are checked7980| Guarantee | Check |81|---|---|82| comment-only change | header removal must reproduce the baseline bytes (at write time, then again from git by `validate`) |83| no behaviour change | Python AST equality; `swiftc -parse`; `node --check`; `bash -n`; YAML/TOML data equality; notebook cells equality — each compared with the baseline |84| idempotent | a second scan must propose nothing |85| reversible | per-file ledger with hashes and replaced legacy blocks |86| nothing private in headers | leak patterns refused at write time and in `check` |8788A repository is reported as validated only when all of these hold. Project builds and test suites89remain the final word and are run per repository family (see the workspace reports).9091## Tests9293```bash94python3 -m unittest discover -s tests95```969798<!-- spb-readme-overview:begin -->99## Repository layout100101```text102spb-source-governance/103├── bin/                         1 file  executables104├── config/                      3 files  configuration105├── docs/                        2 files  documentation106├── examples/                    1 file  examples107├── integrations/                8 files  integrations108│   ├── ci/                      2109│   ├── claude-code/             1110│   ├── git-hooks/               2111│   ├── latexmk/                 1112│   ├── pre-commit/              1113│   └── xcode/                   1114├── spbheader/                   5 files115├── templates/                   8 files116├── tests/                       1 file  tests117├── CLAUDE.md118├── CONTACT_DIRECTORY.md119├── COPYRIGHT_POLICY.md120├── README.md121├── SECURITY_POLICY.md122└── SOURCE_HEADER_POLICY.md123```124125## Languages126127| Language | Files | Lines | Share |128|---|---:|---:|---|129| Python | 6 | 2 597 | `███████████████████ ` 96.7 % |130| Shell | 2 | 90 | `█                   ` 3.3 % |131132<sub>Counted on git-tracked files, excluding dependencies and generated files.</sub>133134## Documentation135136| Document | Title |137|---|---|138| [`CLAUDE.md`](CLAUDE.md) | spb-source-governance |139| [`CONTACT_DIRECTORY.md`](CONTACT_DIRECTORY.md) | Official Contact Directory |140| [`COPYRIGHT_POLICY.md`](COPYRIGHT_POLICY.md) | Copyright and License Policy |141| [`SECURITY_POLICY.md`](SECURITY_POLICY.md) | Security Policy of the governance system |142| [`SOURCE_HEADER_POLICY.md`](SOURCE_HEADER_POLICY.md) | SP Boucher Source Header Policy |143| [`docs/ONBOARDING.md`](docs/ONBOARDING.md) | Onboarding a repository |144| [`docs/ROLLBACK.md`](docs/ROLLBACK.md) | Rollback |145146## Repository facts147148| | |149|---|---|150| First commit | 2026-11-21 |151| Contributors | 1 |152| Default branch | `main` |153| Tracked files | 37 |154| Website | https://git.spboucher.ai |155| Topics | `source-headers` `governance` `copyright` `licensing` `python` `cli` `git-hooks` |156| Clone | `git clone https://git.spboucher.ai/spb-source-governance.git` |157<!-- spb-readme-overview:end -->158159<!-- spb-readme-author:begin -->160## Author161162**Simon-Pierre Boucher** · [spboucher.ai](https://spboucher.ai) · [contact@spboucher.ai](mailto:contact@spboucher.ai)163<!-- spb-readme-author:end -->164
Files main
Menu

Theme