Repository Public
1# Git governance policy (SP Boucher development standard v1.0.0)23**Forge.** SPB Git — https://git.spboucher.ai — is the official remote of every eligible SP Boucher project. It is a4directory of bare repositories on the gateway (SSH alias `gitsrv`): `srv/git/<slug>.git` is public (served by the5forge), `srv/git-private/<slug>.git` is reachable over SSH only. It is not GitHub, GitLab or Gitea; repositories are6created over SSH with the existing keys/agent (no token in any file). Config: `config.json`.78**Defaults.** New eligible project → `sp-git init`: git on `main`, `.gitignore`, README, public repository9`https://git.spboucher.ai/<kebab-slug>`, headers, secret scan, first commit, push, verification. Description and10topics are always set (`sp-git init --description … --topics …` or `sp-git meta`).1112**Not public** (keep local with `--no-remote`, or `--private`, and say why): explicit request, confidential project,13personal data, protected or unpublished research whose release is not authorised, co-authors' or students' work,14non-redistributable third-party code, protected institutional information, infrastructure secrets, uncertain15publication rights. An existing private repository is never made public; an existing `origin` is never replaced; no16duplicate repository is created (`sp-git init` refuses a slug that already has history unless `--adopt`).1718**Cycle.** analyze → implement → headers → review the diff → relevant tests → secret scan → license check → commit →19push → verify remote → continue. One atomic Conventional Commit (English) per finished step, pushed at once:20`<type>(<scope>): <description>` with types feat, fix, perf, refactor, security, docs, test, style, build, ci, chore,21release, revert. Only the files of the step are staged; foreign local changes are never swept in.2223**Integrity.** Forbidden without Simon-Pierre Boucher's explicit authorization: force push, remote history rewriting,24repository or remote-branch deletion, destructive reset/clean over uncommitted work, replacing a remote, changing25visibility or access rights, removing legitimate attribution. The PreToolUse hook denies these; after an explicit26authorization given in the conversation the command is re-run prefixed with `SP_AUTHORIZED=1`.2728**Security.** `sp-security-scan` runs before every commit (changes) and push (unpushed commits) — in `sp-git` and in29the PreToolUse hook for raw `git commit` / `git push`. High-severity findings block publication and the control is30never bypassed; reviewed false positives go to `.sp-security-allow` (`rule:<id>`, `path:<glob>`, or a regex) or carry31`sp-allow-secret` on the line.3233**Push failures.** Local work is preserved; network errors are retried; a rejected push triggers fetch + rebase of34the local commits when the tree is clean, aborted on conflict; nothing is ever forced; a push is reported successful35only after `git ls-remote` shows the local HEAD on origin.3637**Releases.** Semantic Versioning, tag `vMAJOR.MINOR.PATCH`: `sp-git release <version> [--test-cmd "…"]` requires a38CHANGELOG section, a clean tree, compliant headers and a clean scan, then commits `release: prepare version X`, tags,39pushes commit and tag and verifies both. Binary assets: forge CLI `spbgit release upload <repo> <tag> <file>`.4041## Commands4243```bash44sp-git init [--name slug] [--description "…" --topics a,b --website url] [--private|--no-remote] [--adopt]45sp-git status [--json] sp-git commit -m "type(scope): …" [files…|--all] [--push]46sp-git push [--tags] sp-git verify sp-git sync sp-git audit [--json]47sp-git release <version> [--test-cmd "…"] sp-git meta --description … --topics …48sp-git doctor sp-git version49sp-security-scan [--changes|--staged|--unpushed|--tree|--files f…] [--all] [--strict] [--json]50```51