# GitHub Security Posture — `icat_results` Per [decode-ai-standards](https://github.com/implicitdiagnosticsandsolutions/decode-ai-standards) `C11` + `C36`, reapplied at standards ref `81c3f17` ("Document the slim-to-full branch model adoption path", 2026-05-14). ## Branch model in use: **slim** This repo uses the **slim** branch model: only the current default branch is protected. The default and only protected branch is `master`. There is no `staging` or `dev` branch in this repository. Slim is the standards-named valid steady state for repositories with a single primary contributor, no separate deploy environment, and continuous release. `icat_results` matches that shape: one primary contributor, one production environment (Hugging Face Space `DecodeMarketing/IcAT-Results-Viewer`), and every merge to `master` ships. | Role | Branch name | Status | Notes | |---|---|---|---| | **Production / default** | `master` | Protected | Push restricted to code reviewers. Pushing triggers `.github/workflows/main.yml` (HF Spaces sync). | | Staging | — | Not in use | Would only be created during a deliberate slim → full migration. | | Development base | — | Not in use | Same as above. Feature branches PR directly into `master`. | ### Adoption signal The standards (`81c3f17`) say the full three-branch model is worth adopting when: multiple contributors merge in parallel, batched releases are needed, a staging environment receives changes before prod, or stakeholders need a pre-prod review env. None apply here today. If two of those become true, follow the migration steps in [`decode-ai-standards/docs/ai-centric-repository-guidelines.md`](https://github.com/implicitdiagnosticsandsolutions/decode-ai-standards/blob/main/docs/ai-centric-repository-guidelines.md) section "Adopting the full three-branch model". ## Admins | Role | User | |---|---| | Primary admin | `@FloWeinert` | | Backup admin | `@matussekatdecode` | | Additional admins | (none) | Admins configure branch protection, secrets, and webhooks. **Admins are NOT in the push-restriction list** and "Do not allow bypassing" is enabled — admin merges go through the same PR + review flow as everyone else. Emergency bypass requires deliberate rule-edit (audited org-wide). ## Code reviewers (listed in `.github/CODEOWNERS`) For developer PRs into `master`: their approval is required (`require_code_owner_reviews: true` + `required_approving_review_count: 1`). For their own PRs: they bypass the approval requirement via `bypass_pull_request_allowances` and self-merge (since GitHub blocks self-approval). They're also the only ones who can click Merge on `master` (push restriction). - `@matussekatdecode` Because the sole codeowner is also the sole primary contributor today, the bypass-and-self-merge path is the normal path. This is documented openly rather than hidden; the convention to **still open a PR** even though bypass would allow a direct push preserves the audit trail. ## Outside collaborators | Login | Permission | Notes | |---|---|---| | — | — | None on this repo | ## Branch protection rules summary (`master` only) - ✓ Require pull request before merging (audit trail) - ✓ Require 1 CODEOWNER approval (`required_approving_review_count: 1` + `require_code_owner_reviews: true`) - ✓ Codeowners in `bypass_pull_request_allowances` — they can merge their own PRs without needing self-approval (which GitHub blocks) - ✓ Do not allow bypassing the above settings (admins NOT in the bypass list — emergencies use the 4-step deliberate procedure) - ✓ Restrict who can push: code reviewers only - ✓ Block force-push - ✓ Block branch deletion - ✓ Require linear history No protections are configured on any branch other than `master`. ## Repo-internal gate layer In addition to GitHub branch protection, the repo enforces a DECODE reviewer gate on every commit touching substantive files. See: - `CLAUDE.md` — reviewer procedure (Claude Code dispatch + `.decode-reviewer-clean` marker) - `.githooks/commit-msg` — gate that verifies the marker matches HEAD + diff hash - `.github/workflows/gate.yml` `override-audit` job — reports any `[override-reviewer: ]` usage on PRs and pushes That gate runs locally and in CI and is independent of the GitHub branch protection above. Both must pass. ## Change log | Date | Change | By | |---|---|---| | 2026-05-13 | Initial posture created (full-model template absorbed) | matussekatdecode | | 2026-05-20 | Rewrote posture to reflect actual slim-mode reality; cited standards ref `81c3f17` as authority for slim being a valid steady state; documented the repo-internal reviewer gate layer | matussekatdecode (Standards Baseline slice) | --- *This file is checked into the repo so any change requires a PR — the protection model is self-protecting via the `.github/CODEOWNERS` lockdown rule on this file.*