oficina / alta Public

adopt: fix TestPreservedExemptsOnlyTheTwoAdded comment

The comment said previously present agent keys become violations; the
contract, and the test, exempt exactly the two keys passed as added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 21b29212172383884506da03340c8325244be71f parent d954494
1 file changed, +3 −2
  • adopt/snapshot_test.go +3 −2
diff --git a/adopt/snapshot_test.go b/adopt/snapshot_test.go
index a337442..7652500 100644
--- a/adopt/snapshot_test.go
+++ b/adopt/snapshot_test.go
@@ -496,8 +496,9 @@ func TestPreservedIgnoresNewUnrelatedKey(t *testing.T) {
}
}
-// The two added keys are exempt only as additions: present before the
-// write and changed after, they are violations like any other key.
+// Exactly the two keys passed as added are exempt, even when present
+// before and changed after; any other key that changes, an agent key not
+// passed as added included, is a violation.
func TestPreservedExemptsOnlyTheTwoAdded(t *testing.T) {
b := afterSnap()
a := afterSnap()