Repository navigation
Closed
Description
Existing issue check
- I searched open and closed issues. No issue tracks the repository's GitHub configuration.
Problem or outcome
Repository settings currently enforce nothing in AGENTS.md / CONTRIBUTING.md. Audit (read-only, 2026-10-15; report sha256 8fa0a801…):
mainhas no branch protection and no rulesets. "Never push directly tomain" is guidance only. No status check is required. Unresolved review threads do not block a merge.- Release tags (
v*) have no protection, even though ADR 0026 provenance names them. Releases are not immutable. - Secret scanning and push protection are off, although credentials must never enter the repository. Dependabot security updates are off; Dependabot alerts are on. Code scanning is not configured.
- Actions allows every action and does not require SHA pinning, though all 7
uses:lines are already pinned. Actions may approve pull requests. Fork PR runs need approval only for first-time contributors. - Merge commits, rebase, and squash are all allowed. Of the last 20 merged PRs, 13 were squash and 4 were merge commits (setup: one-command install and upgrade, release archives, and a first-day checklist #89, backups: copy validated snapshots off the server, show backup health, and make setup insist on it #91, fix(proof): harden the proof runner against the gaps review found #92, docs: describe 0.1.0 in the roadmap and README #101). Auto-merge and update-branch are off. The wiki is enabled but empty.
Outcome
GitHub enforces what the guidance already says, at the strongest rung available (AGENTS.md: "the codebase is memory"):
mainruleset. Requires a pull request with every review thread resolved; squash is the only merge method. Required checks arefmt-clippy-test(pr-gate) plusbuild-x86_64andbuild-aarch64(release builds on PRs), from GitHub Actions, and the branch must be up to date. History is linear, with no force push and no deletion. Admins can bypass by merging a PR, never by pushing directly.v*tag ruleset. Release tags cannot be deleted, updated, or force-moved. Immutable releases are on for future releases (the release workflow already uploads to a draft and publishes last).- Security. Secret scanning with push protection, Dependabot security updates, and CodeQL default setup (actions, JavaScript/TypeScript, Rust).
- Actions. Only GitHub-owned actions are allowed, and they must be SHA-pinned. Actions cannot approve PRs. All outside contributors need approval before their fork PRs run.
- Merge settings. Squash only, with auto-merge and update-branch on. The empty wiki is turned off.
Out of scope here: the org-level 2FA requirement, which needs admin:org scope and the owner's own login. Also out of scope: a release environment and dependabot.yml, which are repository changes for their own PRs.
Acceptance criteria
- Each setting above reads back as intended via the API, recorded below with before/after.
- CodeQL's first default-setup run succeeds under the SHA-pinning policy. If the policy breaks it, pinning enforcement is reverted, and that is recorded.
-
CONTRIBUTING.mdnames the required checks, so renaming a gate job is a known ruleset change (separate small PR).
Revert
Every change is a repository setting: rulesets can be disabled or deleted (gh api -X DELETE repos/FieldmouseWorks/consolebook/rulesets/<id>), and each flag reverts with the same endpoint that set it.
Execution record
- Authority: the maintainer, 2026-10-15, in a local session: "you have access to my github as much as you need it. can you set it up ideally for this project?" Applied by the integrator. No owner effort budget.
- Next action: apply items 1–5 and read them back.
Metadata
Metadata
Assignees
Labels
No labels
Activity
TusanHomichi commentedon Oct 15, 2026
Applied on 2026-10-15 by the integrator. Each setting was read back through the API after it was written. The before-state is the audit summarized in the issue body.
consolebook.wiki.gitdoes not exist)main: pull requests with green gates(id 25173621)fmt-clippy-test,build-x86_64,build-aarch64(GitHub Actions, app 15368), branch up to date. Linear history, no force push, no deletion. The admin role bypasses only by merging a PRrelease tags are permanent(id 25173622)refs/tags/v*: no deletion, update, or force move; no bypassenabled: true). Covers future releases; v0.1.0 and v0.2.0 are unchangedread)SHA pinning under GitHub-managed workflows: GitHub does not document whether the pinning policy exempts dynamic workflows, so I observed it instead. The first CodeQL default-setup run, 38767238018, ran under the policy and succeeded in all four analyses (Rust, JavaScript/TypeScript, Python, Actions). The policy stays on. Dependabot's own runs have not happened yet, because there are no open alerts. If one fails on the policy, that is the first place to look.
CodeQL first-run triage: 49 alerts, all Rust: 30 critical and 19 high. All were dismissed, each with its reason and a comment, and each can be reopened:
used in tests: invented passwords and usernames in integration tests (rust/hard-coded-cryptographic-value×29,rust/cleartext-logging×13).false positive:secrets.rs:123, the constant dummy password hashed only to equalize login timing for unknown usernames.won't fix:main.rs:349–363.recoverprints the one-time reset code to the local operator by design (ADR 0004). A username is not a secret.won't fix:http.rs:218,228.Securefollows the configured public URL (ADR 0025): it is set for https, and left unset so plain-HTTP localhost works.Open alerts after triage: 0.
Follow-up, not done here: every new test file that declares its own test password will raise the same two rules again. One shared test-credential helper would make that a single, deliberately dismissed location (rung 1). An advanced CodeQL setup that skips
tests/is the alternative. I'll file this separately with this evidence.Remaining for this issue: a small PR that names the required checks in
CONTRIBUTING.md, so that renaming a gate job is understood to be a ruleset change.TusanHomichi commentedon Oct 15, 2026
Authority update (2026-10-15): the maintainer granted standing permission to manage PRs end to end: "you have standing permission to manage PRs end to end and that includes merging and cleaning up old branches". The integrator merges once required checks are green on the current head and every review thread is resolved (squash only; no admin bypass of a failing check), then verifies the merged revision and removes the branch and worktree. Deployments and releases are not covered.
docs(contributing): name what the GitHub rulesets enforce
docs(contributing): name what the GitHub rulesets enforce (#128)
TusanHomichi commentedon Oct 15, 2026
Merged in #128 as
82c0cb0baa35819f780a3332531edbbafbf85df6(squash, single parent6042dec). The merged treecc442713is identical to the PR headccb7699e. That head was the candidate2450f73rebased onto #127, as the up-to-date rule requires. Evidence by revision: local full proof on2450f73(7/7 gates, 61/61 browser tests, receipt sha256fbca63c8…); hostedfmt-clippy-test,build-x86_64,build-aarch64, and CodeQL passed on the exact rebased headccb7699e. These were the first two PRs merged under the new ruleset, and the required checks, the up-to-date rule, and branch auto-delete all behaved as configured. Branch and worktree removed. Authority: the maintainer's standing PR permission (2026-10-15).