01 – Replace deployment-plus-no-op closure rule with test-activation evidence #332

Open
opened 2026-10-14 21:14:07 +01:00 by nimmo · 4 comments
Owner

Context

The 2026-10-14 review of the project's standard processes found that the
documented change contract still requires a genuine deployment plus an
immediate no-op follow-up before an issue can be closed. That requirement
predates the current way of working, where just test and just test-remote
are the normal canaries and the AI pull-request review provides a clean
ready-to-merge signal.

It is recorded in AGENTS.md, and echoed in wiki pages 23-Project-Tracking,
25-ADR-005, 32-Safe-Testing-and-Deployment, 36-Full-Host-Recovery,
39-Auto-Update-Incident-Response, 39a-Service-Migration-and-Cutover,
39b-Wrapper-Repository-Packaging, 43, 44, 45, 46 and
47-Testing-and-CI-Contracts, and in this milestone's own description.

Scope

  • AGENTS.md: rewrite the "Before merging a deployment-affecting change"
    paragraph.
  • Wiki: apply one consistent closure-evidence rule across every page named
    above.
  • Wiki: add the public/private tracking carve-out to 23-Project-Tracking
    and 00-Documentation-Map-and-Scope, matching the recorded 2026-10-14
    preference that security findings, firewall weaknesses and router/network
    diagnostics stay in KiwiFS rather than public Forgejo.
  • Milestone description: drop the superseded no-op sentence.

New rule

Closing an issue requires local validation, the required merge-request checks,
and a clean AI review at ready-to-merge. just test or just test-remote is
the preferred canary when adding or fundamentally changing something. A genuine
deployment and no-op follow-up are no longer required for closure.

Deployment evidence remains required only for the risky-change class that test
activation cannot prove: disk layout or filesystem migrations, secret or key
rotations, host reprovisioning, bootloader/encryption changes, and service moves
that mutate external state.

Completion criteria

  • AGENTS.md and every wiki page state the same closure rule.
  • The risky-change exception is stated explicitly wherever the general rule
    appears.
  • The privacy carve-out is recorded in both governance surfaces.
  • The milestone description no longer promises a no-op follow-up.
  • Focused documentation review; no Nix build is required for prose.
## Context The 2026-10-14 review of the project's standard processes found that the documented change contract still requires a genuine deployment plus an immediate no-op follow-up before an issue can be closed. That requirement predates the current way of working, where `just test` and `just test-remote` are the normal canaries and the AI pull-request review provides a clean ready-to-merge signal. It is recorded in `AGENTS.md`, and echoed in wiki pages `23-Project-Tracking`, `25-ADR-005`, `32-Safe-Testing-and-Deployment`, `36-Full-Host-Recovery`, `39-Auto-Update-Incident-Response`, `39a-Service-Migration-and-Cutover`, `39b-Wrapper-Repository-Packaging`, `43`, `44`, `45`, `46` and `47-Testing-and-CI-Contracts`, and in this milestone's own description. ## Scope - `AGENTS.md`: rewrite the "Before merging a deployment-affecting change" paragraph. - Wiki: apply one consistent closure-evidence rule across every page named above. - Wiki: add the public/private tracking carve-out to `23-Project-Tracking` and `00-Documentation-Map-and-Scope`, matching the recorded 2026-10-14 preference that security findings, firewall weaknesses and router/network diagnostics stay in KiwiFS rather than public Forgejo. - Milestone description: drop the superseded no-op sentence. ## New rule Closing an issue requires local validation, the required merge-request checks, and a clean AI review at ready-to-merge. `just test` or `just test-remote` is the preferred canary when adding or fundamentally changing something. A genuine deployment and no-op follow-up are no longer required for closure. Deployment evidence remains required only for the risky-change class that test activation cannot prove: disk layout or filesystem migrations, secret or key rotations, host reprovisioning, bootloader/encryption changes, and service moves that mutate external state. ## Completion criteria - [ ] `AGENTS.md` and every wiki page state the same closure rule. - [ ] The risky-change exception is stated explicitly wherever the general rule appears. - [ ] The privacy carve-out is recorded in both governance surfaces. - [ ] The milestone description no longer promises a no-op follow-up. - [ ] Focused documentation review; no Nix build is required for prose.
Author
Owner

Working tree state after the 2026-10-14 reconciliation.

Repository (nixos-config)

Branch docs/governance-closure-and-memory-policy, commit
2fb8e9cba9ce0ca41b00f4c1c6e59c5336b3a023.

  • AGENTS.md: "Before merging a deployment-affecting change" rewritten; the
    KiwiFS-only memory rule now names the retired Engram explicitly; the project
    tracking section records the privacy exception for security and network
    records.

Gate: focused documentation review. No Nix build was run for prose, per
AGENTS.md and wiki 49-Documentation-Maintenance.

Wiki (nixos-config.wiki)

Branch docs/governance-closure-and-memory-policy, commit
b21f49bd98ccc4b0a18d8ce01f5229d0368d5378 — 32 files changed.

Governance: 23-Project-Tracking, 47-Testing-and-CI-Contracts,
32-Safe-Testing-and-Deployment, and the closure-evidence wording in
25-ADR-005, 36, 39, 39a, 39b, 43, 44, 45, 46.

Memory: ADR-004 marked Superseded, ADR-007 added and registered in the decision
index, and Engram removed as a current surface from 00-Documentation-Map-and-Scope,
00-Start-Here-and-Governance, Home, 16, 49, 12, 13, 15, 24.

Stale references: just deploy-remote replaced with just test-remote in 32
and 39a; the registered host count corrected from six to four across 11,
16, 41, 43, 51, 54; Cosmos and Chaos marked retired across 11, 12,
13, 14, 15, 22, 35, 36, 45, 46; container ownership corrected to
the current Vega and Lyra composition in 13; the AI review runner corrected
from Nova to Vega in 16 and 47.

Verified against source commit 2fb8e9c. Live state was not re-probed: host
health, deployment revisions, and monitoring claims retain their earlier
evidence and are scoped in each page's Last verified note.

Validation performed

  • Wiki link check across all pages: no unresolved internal links.
  • git diff --check and git diff --cached --check: clean.
  • Recipe names checked against just --list; test-remote TARGET ACTION,
    test, deploy, build-diff, and switch-spec all exist.
  • flake.nix evaluated to confirm the four registered hosts.

Remaining

  • Publication is not yet performed: neither branch is pushed.
  • Milestone description updated to drop the superseded no-op requirement.
  • Not addressed in this pass: the wiki has no review cadence, so most pages
    still carry a September verification date outside the scope of these edits.
Working tree state after the 2026-10-14 reconciliation. ## Repository (`nixos-config`) Branch `docs/governance-closure-and-memory-policy`, commit `2fb8e9cba9ce0ca41b00f4c1c6e59c5336b3a023`. - `AGENTS.md`: "Before merging a deployment-affecting change" rewritten; the KiwiFS-only memory rule now names the retired Engram explicitly; the project tracking section records the privacy exception for security and network records. Gate: focused documentation review. No Nix build was run for prose, per `AGENTS.md` and wiki `49-Documentation-Maintenance`. ## Wiki (`nixos-config.wiki`) Branch `docs/governance-closure-and-memory-policy`, commit `b21f49bd98ccc4b0a18d8ce01f5229d0368d5378` — 32 files changed. Governance: `23-Project-Tracking`, `47-Testing-and-CI-Contracts`, `32-Safe-Testing-and-Deployment`, and the closure-evidence wording in `25-ADR-005`, `36`, `39`, `39a`, `39b`, `43`, `44`, `45`, `46`. Memory: ADR-004 marked Superseded, ADR-007 added and registered in the decision index, and Engram removed as a current surface from `00-Documentation-Map-and-Scope`, `00-Start-Here-and-Governance`, `Home`, `16`, `49`, `12`, `13`, `15`, `24`. Stale references: `just deploy-remote` replaced with `just test-remote` in `32` and `39a`; the registered host count corrected from six to four across `11`, `16`, `41`, `43`, `51`, `54`; Cosmos and Chaos marked retired across `11`, `12`, `13`, `14`, `15`, `22`, `35`, `36`, `45`, `46`; container ownership corrected to the current Vega and Lyra composition in `13`; the AI review runner corrected from Nova to Vega in `16` and `47`. Verified against source commit `2fb8e9c`. Live state was not re-probed: host health, deployment revisions, and monitoring claims retain their earlier evidence and are scoped in each page's `Last verified` note. ## Validation performed - Wiki link check across all pages: no unresolved internal links. - `git diff --check` and `git diff --cached --check`: clean. - Recipe names checked against `just --list`; `test-remote TARGET ACTION`, `test`, `deploy`, `build-diff`, and `switch-spec` all exist. - `flake.nix` evaluated to confirm the four registered hosts. ## Remaining - Publication is not yet performed: neither branch is pushed. - Milestone description updated to drop the superseded no-op requirement. - Not addressed in this pass: the wiki has no review cadence, so most pages still carry a September verification date outside the scope of these edits.
Author
Owner

Correction after user review: the first commit overstated the closure rule.

The closure gate is now stated exactly as the user gave it — a clean AI review
at ready-to-merge is sufficient
. The earlier wording additionally required
local validation and the required merge-request checks, which were not part of
the instruction.

Gate selection before merge is unchanged and still lives in AGENTS.md
("Validation selection") and wiki 47-Testing-and-CI-Contracts; only the
closure requirement was restated.

Commits: repository fdf3e71 (was 2fb8e9c), wiki 86f3f88 (was b21f49b).

Still an open judgment call, flagged rather than assumed: deployment evidence
is retained for the risky-change class — disk layout or filesystem migrations,
key rotation, reprovisioning, bootloader/encryption, and service moves that
mutate external state — because a test activation cannot prove the external
state. Say the word and that exception comes out too.

Correction after user review: the first commit overstated the closure rule. The closure gate is now stated exactly as the user gave it — **a clean AI review at ready-to-merge is sufficient**. The earlier wording additionally required local validation and the required merge-request checks, which were not part of the instruction. Gate *selection* before merge is unchanged and still lives in `AGENTS.md` ("Validation selection") and wiki `47-Testing-and-CI-Contracts`; only the closure *requirement* was restated. Commits: repository `fdf3e71` (was `2fb8e9c`), wiki `86f3f88` (was `b21f49b`). Still an open judgment call, flagged rather than assumed: deployment evidence is retained for the risky-change class — disk layout or filesystem migrations, key rotation, reprovisioning, bootloader/encryption, and service moves that mutate external state — because a test activation cannot prove the external state. Say the word and that exception comes out too.
Author
Owner

Second correction after user review: the risky-change exception is gone too.

The rule now reads: 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 a
no-op follow-up are not required.
Deployment is an operator decision about
when a running system picks the change up, not an evidence gate.

What survives from the risky-change class is only the recovery checkpoint, and
it moved in time: take it before applying the change (backup, annotated
pre-change tag, rollback plan) rather than gathering evidence afterwards. That
is what AGENTS.md "When tagging risky changes" already described, so the
change-path table row now carries the checkpoint in the change path rather than
deployment evidence in the minimum-evidence column.

Also corrected: the closing keyword keys off a clean review rather than
required deployment evidence, and the Redview encoder cutover step in
README.md no longer names a no-op follow-up.

Commits: repository 173a259, wiki d5dee65.

This supersedes the rule stated in this issue's original body.

Second correction after user review: the risky-change exception is gone too. The rule now reads: **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 a no-op follow-up are not required.** Deployment is an operator decision about when a running system picks the change up, not an evidence gate. What survives from the risky-change class is only the recovery checkpoint, and it moved in time: take it *before* applying the change (backup, annotated pre-change tag, rollback plan) rather than gathering evidence afterwards. That is what `AGENTS.md` "When tagging risky changes" already described, so the change-path table row now carries the checkpoint in the change path rather than deployment evidence in the minimum-evidence column. Also corrected: the closing keyword keys off a clean review rather than required deployment evidence, and the Redview encoder cutover step in `README.md` no longer names a no-op follow-up. Commits: repository `173a259`, wiki `d5dee65`. This supersedes the rule stated in this issue's original body.
Author
Owner

Published directly to main as a documentation and process change, per the bounded documentation path in AGENTS.md. No merge request; no branch retained.

  • nixos-config main → 173a259 (AGENTS.md, README.md)
  • nixos-config.wiki main → d5dee65 (32 pages)

Gate: focused documentation review. Wiki link check and git diff --check clean. No Nix build was run for prose. git pull --rebase --autostash was run before publishing in both repositories.

Every criterion in this issue's original body is now satisfied, and the closure rule was corrected twice during the work — see the two follow-up comments. The rule as published: 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 a no-op follow-up are not required; just test / just test-remote is the preferred canary when adding or fundamentally changing something; the risky-change class keeps a recovery checkpoint taken before the change is applied.

Published directly to `main` as a documentation and process change, per the bounded documentation path in `AGENTS.md`. No merge request; no branch retained. - `nixos-config` `main` → `173a259` (`AGENTS.md`, `README.md`) - `nixos-config.wiki` `main` → `d5dee65` (32 pages) Gate: focused documentation review. Wiki link check and `git diff --check` clean. No Nix build was run for prose. `git pull --rebase --autostash` was run before publishing in both repositories. Every criterion in this issue's original body is now satisfied, and the closure rule was corrected twice during the work — see the two follow-up comments. The rule as published: 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 a no-op follow-up are not required; `just test` / `just test-remote` is the preferred canary when adding or fundamentally changing something; the risky-change class keeps a recovery checkpoint taken before the change is applied.
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#332
No description provided.