01 – Replace deployment-plus-no-op closure rule with test-activation evidence #332
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#332
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 testandjust test-remoteare 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 pages23-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,46and47-Testing-and-CI-Contracts, and in this milestone's own description.Scope
AGENTS.md: rewrite the "Before merging a deployment-affecting change"paragraph.
above.
23-Project-Trackingand
00-Documentation-Map-and-Scope, matching the recorded 2026-10-14preference that security findings, firewall weaknesses and router/network
diagnostics stay in KiwiFS rather than public Forgejo.
New rule
Closing an issue requires local validation, the required merge-request checks,
and a clean AI review at ready-to-merge.
just testorjust test-remoteisthe 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.mdand every wiki page state the same closure rule.appears.
Working tree state after the 2026-10-14 reconciliation.
Repository (
nixos-config)Branch
docs/governance-closure-and-memory-policy, commit2fb8e9cba9ce0ca41b00f4c1c6e59c5336b3a023.AGENTS.md: "Before merging a deployment-affecting change" rewritten; theKiwiFS-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.mdand wiki49-Documentation-Maintenance.Wiki (
nixos-config.wiki)Branch
docs/governance-closure-and-memory-policy, commitb21f49bd98ccc4b0a18d8ce01f5229d0368d5378— 32 files changed.Governance:
23-Project-Tracking,47-Testing-and-CI-Contracts,32-Safe-Testing-and-Deployment, and the closure-evidence wording in25-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-remotereplaced withjust test-remotein32and
39a; the registered host count corrected from six to four across11,16,41,43,51,54; Cosmos and Chaos marked retired across11,12,13,14,15,22,35,36,45,46; container ownership corrected tothe current Vega and Lyra composition in
13; the AI review runner correctedfrom Nova to Vega in
16and47.Verified against source commit
2fb8e9c. Live state was not re-probed: hosthealth, deployment revisions, and monitoring claims retain their earlier
evidence and are scoped in each page's
Last verifiednote.Validation performed
git diff --checkandgit diff --cached --check: clean.just --list;test-remote TARGET ACTION,test,deploy,build-diff, andswitch-specall exist.flake.nixevaluated to confirm the four registered hosts.Remaining
still carry a September verification date outside the scope of these edits.
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 theclosure requirement was restated.
Commits: repository
fdf3e71(was2fb8e9c), wiki86f3f88(wasb21f49b).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.
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 thechange-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.mdno longer names a no-op follow-up.Commits: repository
173a259, wikid5dee65.This supersedes the rule stated in this issue's original body.
Published directly to
mainas a documentation and process change, per the bounded documentation path inAGENTS.md. No merge request; no branch retained.nixos-configmain→173a259(AGENTS.md,README.md)nixos-config.wikimain→d5dee65(32 pages)Gate: focused documentation review. Wiki link check and
git diff --checkclean. No Nix build was run for prose.git pull --rebase --autostashwas 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-remoteis the preferred canary when adding or fundamentally changing something; the risky-change class keeps a recovery checkpoint taken before the change is applied.