Skip to content

Decision Governance and Versioning

matthew edited this page Aug 29, 2026 · 1 revision

Decision: governance and versioning

Date: 2026-08-29 · Context: the repository became public and needed to be ready for outside contributors — collaboration-ready, not production-ready. Tracked as epic #475.

Branch protection: pull requests for everyone, merges by admins

Decision. Every change to main and release arrives through a pull request whose Format · Lint · Test · Build check has passed — including changes by the maintainers. Force-push and deletion are blocked. Only repository admins can merge. No approving review is required. Squash and merge-commit are allowed; rebase-merge is not; branches are deleted on merge.

Rejected. Protecting only against force-push while keeping direct pushes for the maintainer — the previous local-merge workflow. It would have left main writable without CI, and main is also a live endpoint: the plugin catalogue is fetched from it by every installed build.

Why no required review. GitHub forbids an author approving their own PR and the project has one maintainer, so a required review would block every maintainer change. The CI check is the gate; "admins approve" is expressed as "only admins can press Merge".

Why linear history is not enforced. Phase merges use --no-ff deliberately so an epic's phases stay visible as merge commits.

How. Two rulesets, kept as files in .github/rulesets/ and applied by apply.sh: one with no bypass (PR + check + no force-push, binding everyone), one restricting updates with repository admins as the only bypass. A third restricts v* tag creation to admins. Merging as an admin uses GitHub's "merge without waiting for requirements" bypass; the check ruleset still binds because it has no bypass actors.

Versioning: CalVer

Decision. YYYY.MINOR.PATCH, JetBrains-style. First release 2026.1.0. Release candidates carry -rc.N. The plugin API version and the curated-catalogue revision are independent numbers with their own rules, stated alongside the app version in every release.

Rejected.

  • SemVer starting at 1.0.0. A desktop app's version does not need to signal breaking changes — the one contract where that matters, the plugin manifest, already carries its own semver. And 1.0 claims a stability the project does not yet make.
  • SemVer starting at 0.1.0. Fourteen closed milestones named v0.1…v0.13 already exist; a reset would collide with them.
  • A custom scheme such as 1.2.3-2026-rc1. Technically valid SemVer, but the hyphen makes every release a pre-release to every tool that compares versions — GitHub's "latest" logic, electron-builder, any future updater — and the year adds nothing a release date does not.

Release mechanism: a release branch, tagged after a green build

Decision. Releases are cut by merging main into release. The push to release builds every target; only when all succeed does the workflow create the tag and a draft GitHub Release. Builds are unsigned for now.

Rejected. Tag-first (push a tag, build on it): a failed build leaves a tag that must be deleted and explained. A manual "release" button was considered equally sound and simpler, but the branch gives a durable record of what shipped and a natural hotfix line; the maintainer preferred it.

Dependencies and security

Dependabot runs weekly, grouped (Angular, AI SDKs, dev minor/patch, GitHub Actions); Electron majors are excluded from automatic bumps because of the node-pty ABI rebuild. Security updates arrive immediately. Secret scanning with push protection, private vulnerability reporting and CodeQL are on. Dependabot PRs are merged by hand.

Documentation: the wiki

Decision. The wiki is the single documentation home — architecture, conventions, decisions, release process. It is editable by repository admins only (wiki editing follows repository write access) and readable by everyone. docs/agents.md in the repository shrinks to the non-negotiable invariants plus a pointer here, because an agent reads the repository before it thinks to fetch a wiki.

Trade-offs accepted. Wiki changes are not PR-reviewed; outsiders propose changes through issues. The wiki tracks main, not releases.

Contributor terms

No contributor licence agreement and no DCO sign-off: MIT in, MIT out, which is all a project that intends to stay MIT needs. Contributor Covenant 2.1 with the maintainer's GitHub handle as contact. AI-assisted contributions are welcome without disclosure; the submitting human owns the PR.

Clone this wiki locally