5 23 Project Tracking
Nimmo edited this page 2026-10-14 21:25:18 +01:00

Project and Change Governance

  • Type: Policy
  • Status: Current
  • Scope: Repository, fleet changes, and project documentation
  • Canonical sources: AGENTS.md (Workflow, Durable memory, Project tracking); README.md (Quick start and Where to go next); .forgejo/ai-review.md; Documentation Map and Scope
  • Last verified: Source commit 2fb8e9cba9ce0ca41b00f4c1c6e59c5336b3a023 (2026-10-14); tracked as issue #332
  • Review triggers: Changes to branching, review, validation, deployment, project tracking, documentation ownership, or publication policy

This policy defines where work is tracked, how a proposed change progresses, and what evidence is required before it is considered complete. It applies to human and agent-authored work in nixos-config.

Policy

Planned and active work belongs in Forgejo. Executable configuration belongs in the source repository. Knowledge that remains useful after work closes belongs in the wiki. No one surface should be used as a substitute for the others.

One boundary is explicit: security findings, firewall weaknesses, router diagnostics, and detailed network or operational records stay in KiwiFS under scope: project:nixos-config or other private operator documentation. Public tracking carries only a generic, non-sensitive summary. This exception overrides the default Forgejo rule for that material, matching the preference recorded in AGENTS.md.

Changes must receive validation and rollout evidence proportional to their blast radius. Completion means more than merging code: the required evidence must exist, unfinished work must remain tracked, and durable knowledge must have an appropriate home.

Work tracking

Use one Forgejo milestone for a project or workstream and one issue for each meaningful phase or deliverable. Issues must be executable without a local planning file and should state:

  • context and intended outcome;
  • scope, relevant hosts, services, and repository paths;
  • constraints, risks, and rollback requirements;
  • ordered work where sequencing or handoff matters;
  • objective completion criteria and required evidence.

Use prefixed labels for filterable scope, such as project:<workstream>, host:<name>, host:fleet, service:<name>, and phase:<name>. The milestone defines the project boundary; labels support queries across projects and do not replace it.

An issue remains the record of progress, pending decisions, validation, and acceptance evidence while work is active. Do not create a projects/ planning tree in the source repository, and do not move live checklists into the wiki.

Change path by risk

Change shape Normal path Minimum evidence
Documentation only Focused review; direct wiki or repository commit is acceptable Content, link, and formatting review appropriate to the edited pages
Small, bounded configuration change with limited blast radius Direct commit to main may be used Targeted validation and, where applicable, just test on an affected host
Cross-cutting, service, CI/workflow, security, or multi-host change Forgejo issue, dedicated branch, and merge request sharing the issue milestone A clean AI review at ready-to-merge, alongside the validation selected for the change
Irreversible or externally stateful change Tracked change path plus an explicit recovery checkpoint Risk-specific backup or annotated pre-change tag, a rollback plan, and a clean AI review at ready-to-merge

Examples of changes that require special recovery treatment include disk or filesystem migration, secret or key rotation, host reprovisioning, bootloader/encryption changes, and service moves that mutate external state. Routine package additions and ordinary rebuilds do not justify recovery tags. These are also the only changes for which a genuine deployment remains required evidence, because a test activation cannot prove the external state.

Validation and review

Choose gates by what the change affects, not merely by filename:

  • Nix modules or host configuration require nix flake check.
  • Shell, updater, workflow, and policy changes require their relevant lint or regression tests.
  • Changes crossing those boundaries require all applicable gates.
  • New .nix files must be staged before flake validation because flakes cannot see untracked files.
  • Diagnostic warnings must be reviewed even when they appear unrelated.

Merge requests must reference the governing issue, share its milestone, and state completed validation plus any evidence still outstanding. The AI pull-request review must be clean at ready-to-merge; that is the closure gate. AI review supplements the deterministic gates rather than replacing them, so the gates above still select what is run before merge.

Before committing or publishing, update the working tree with git pull --rebase --autostash. Forgejo automation can update flake.lock, so this is an operational concurrency requirement rather than cosmetic hygiene.

Canary and deployment evidence

Every deployment-affecting change needs a canary appropriate to its risk. Where both a documented command and a systemd service are user-facing interfaces, exercise both.

Prefer just test or just test-remote as the canary when adding something or fundamentally changing it. just test preserves the active specialisation. For remote testing, create an auto-update hold before the test and release it only after validation. Electra hardware-specific work must also record whether base, igpu, or dgpu was active.

A clean AI review at ready-to-merge is sufficient to close an issue, including after the change has been merged. A genuine deployment and an immediate no-op follow-up are not required to deem the issue closed. Deployment remains an operator decision about when a running system should pick the change up, not an evidence gate; for the risky-change class the recovery checkpoint is taken before acting, not after.

A merge request may use a closing keyword once the required evidence already exists. If evidence must be collected after merge, leave the issue open and close it after recording the merge and validation results.

Knowledge promotion and closure

Before closing an issue:

  1. Record the final validation and review outcome in Forgejo.
  2. Ensure every unfinished item is represented by an open issue.
  3. Promote reusable procedures, reference facts, policies, and consequential rationale to the appropriate wiki page.
  4. Link the issue to that durable material where it helps future readers.
  5. Retire one-off logs and obsolete planning commentary instead of copying them into permanent documentation.

Record private material in KiwiFS rather than Forgejo when it falls under the security and network exception stated in the policy above.

The Documentation Map and Scope defines the full ownership boundary. Use Architecture Decisions for lasting rationale and Operations and Runbooks for reusable procedures.

Exceptions and enforcement

The direct-commit path is an accepted exception for genuinely bounded work; it is not a way to bypass validation. If scope expands during implementation, move the work to an issue, branch, and merge request before publication.

The person or agent publishing a change is responsible for selecting and recording the gates. Reviewers should block completion when the evidence does not match the risk, when a claim about live behaviour rests on configuration alone where verification is required, or when durable knowledge exists only in conversation or agent memory.