== MUTATION: the trust move writes agent.json without the shared lock
   *** NOT A RED-PROOF *** (mutant rc=1 built=False real rc=0)
     FAIL	gitea.dooplex.hu/admin/felhom-agent/cmd/felhom-agent [build failed]

1 mutations, 1 not a red-proof
== MUTATION: a give-up stays reported after onboot is switched off
   RED on the mutant, GREEN on the real file
     --- FAIL: TestGuestPower_GiveUpEndsWhenTheGuestIsNoLongerOurs (0.00s)
     guestpower_test.go:315: onboot switched off: the give-up is still reported: [{VMID:9201 Since:2026-11-14T02:30:00Z Attempts:3}]
== MUTATION: a give-up stays reported for a locked guest
   RED on the mutant, GREEN on the real file
     --- FAIL: TestGuestPower_GiveUpEndsWhenTheGuestIsNoLongerOurs (0.00s)
     guestpower_test.go:315: locked by another operation: the give-up is still reported: [{VMID:9201 Since:2026-11-14T02:30:00Z Attempts:3}]
== MUTATION: a give-up stays reported for a destroyed guest
   *** NOT A RED-PROOF *** (mutant rc=1 built=False real rc=0)
     FAIL	gitea.dooplex.hu/admin/felhom-agent/internal/localapi [build failed]
     internal/localapi/guestpower.go:162:6: declared and not used: vmid

3 mutations, 1 not a red-proof
== MUTATION: the two tokens come from two reads of the init
   RED on the mutant, GREEN on the real file
     --- FAIL: TestGuestBootKey_AClockStepDoesNotMoveIt (0.00s)
     guest_boot_key_test.go:84: GuestBootTokens = "1794112550-4242", "5b1f6c1e-8f0a-4c56-9d1c-0a8c3b7d2e11-4242" after 2 read(s) of the init — want both tokens from ONE read

1 mutations, 0 not a red-proof
== MUTATION: the stanza knows the last refresh only from the record file (root-only on a box)
   RED on the mutant, GREEN on the real file
     --- FAIL: TestProfileRefreshStanza_RecordAndLastAsk (0.00s)
     profilerefresh_test.go:139: stanza after an agent restart (the wrapper's answer, no detail) = {"last_ask":"not_needed","last_ask_at":"2026-11-14T14:30:11Z"}
== MUTATION: a refresh by this process is not remembered
   RED on the mutant, GREEN on the real file
     --- FAIL: TestProfileRefreshStanza_RecordAndLastAsk (0.00s)
     profilerefresh_test.go:123: stanza after a refresh, record file unreadable = {"last_ask":"refreshed","last_ask_at":"2026-11-14T11:30:11Z"}
== MUTATION: a readable record does not add the detail back
   RED on the mutant, GREEN on the real file
     --- FAIL: TestProfileRefreshStanza_RecordAndLastAsk (0.00s)
     profilerefresh_test.go:150: stanza with a readable record = {"kernel":"7.0.14-28-pve","at":"2026-11-14T11:30:11Z","last_ask":"not_needed","last_ask_at":"2026-11-14T14:30:11Z"}

3 mutations, 0 not a red-proof
== MUTATION: the trust move writes agent.json without the shared lock — done again (the first mutant left an import unused)
   RED on the mutant, GREEN on the real file
     --- FAIL: TestAgentJSONWritersTakeTheSharedLock (0.00s)
     config_writers_lock_test.go:55: ../../internal/pvetrust/pvetrust.go writeConfig: must start with config.FileMu.Lock() and defer config.FileMu.Unlock()

1 mutations, 0 not a red-proof
== MUTATION: a give-up stays reported for a destroyed guest — done again (the first mutant left a variable unused)
   RED on the mutant, GREEN on the real file
     --- FAIL: TestGuestPower_GiveUpEndsWhenTheGuestIsNoLongerOurs (0.00s)
     guestpower_test.go:315: destroyed: the give-up is still reported: [{VMID:9201 Since:2026-11-14T02:30:00Z Attempts:3}]

1 mutations, 0 not a red-proof
== MUTATION: the copy's previous certificate is thrown away at a change (the old behaviour: no root verifies the served certificate after a restart)
   RED on the mutant: 3 failing line(s)
     FAIL: test_a_renewed_ca_refreshes_the_copy (__main__.PVECACopy.test_a_renewed_ca_refreshes_the_copy)
     AssertionError: Lists differ: [b'--[86 chars]----'] != [b'--[86 chars]----', b'-----BEGIN CERTIFICATE-----\nQUJDREVG[52 chars]---']
     FAILED (failures=1)
== MUTATION: the same source is written again at every run
   RED on the mutant: 5 failing line(s)
     FAIL: test_a_renewed_ca_refreshes_the_copy (__main__.PVECACopy.test_a_renewed_ca_refreshes_the_copy)
     AssertionError: Tuples differ: (0, 'written', [('/etc/felhom-agent/pve-root-c[108 chars]20)]) != (0, 'same', [])
     FAIL: test_the_same_copy_is_not_written_again (__main__.PVECACopy.test_the_same_copy_is_not_written_again)
== MUTATION: the copy grows by one certificate at every change
   RED on the mutant: 3 failing line(s)
     FAIL: test_a_renewed_ca_refreshes_the_copy (__main__.PVECACopy.test_a_renewed_ca_refreshes_the_copy)
     AssertionError: Lists differ: [b'--[183 chars]----', b'-----BEGIN CERTIFICATE-----\nQUJDREVG[52 chars]---'] != [b'--[183 chars]----']
     FAILED (failures=1)

the real file: 0 failing line(s)
3 mutations, 0 not a red-proof
---- the CA copy, second pass (after the commit's security review: the previous root only for the changeover; exact compare) ----
== MUTATION: the previous root is never dropped (it stays a trust anchor for ever)
   RED on the mutant: 3 failing line(s)
     FAIL: test_the_previous_root_stays_only_for_the_changeover (__main__.PVECACopy.test_the_previous_root_stays_only_for_the_changeover)
     AssertionError: b'---[86 chars]---\n-----BEGIN CERTIFICATE-----\nQUJDREVGR0hJ[49 chars]--\n' != b'---[86 chars]---\n' : after the changeover the copy is the new root alone
     FAILED (failures=1)
== MUTATION: the previous root is dropped while Proxmox still serves the old certificate
   RED on the mutant: 3 failing line(s)
     FAIL: test_the_previous_root_stays_only_for_the_changeover (__main__.PVECACopy.test_the_previous_root_stays_only_for_the_changeover)
     AssertionError: Tuples differ: (0, 'written', [('/etc/felhom-agent/pve-root-c[108 chars]20)]) != (0, 'same', [])
     FAILED (failures=1)
== MUTATION: a copy that only STARTS with the source is same (unchecked content stays)
   RED on the mutant: 4 failing line(s)
     KeyError: 'kept_previous'
     FAIL: test_a_copy_with_anything_unchecked_in_it_is_rewritten (__main__.PVECACopy.test_a_copy_with_anything_unchecked_in_it_is_rewritten)
     AssertionError: b'anything' unexpectedly found in b'-----BEGIN CERTIFICATE-----\nWllYV1ZVVFNSUVBPTk1MS0pJSEdGRURDQkE=\n-----END CERTIFICATE-----\nanything at all\n' : text after the source
== MUTATION: an ended previous root is kept at a change
   RED on the mutant: 3 failing line(s)
     FAIL: test_the_previous_root_stays_only_for_the_changeover (__main__.PVECACopy.test_the_previous_root_stays_only_for_the_changeover)
     AssertionError: b'---[86 chars]---\n-----BEGIN CERTIFICATE-----\nQUJDREVGR0hJ[49 chars]--\n' != b'---[86 chars]---\n'
     FAILED (failures=1)
== MUTATION: the handshake is verified with the system's roots too
   RED on the mutant: 3 failing line(s)
     FAIL: test_the_previous_root_stays_only_for_the_changeover (__main__.PVECACopy.test_the_previous_root_stays_only_for_the_changeover)
     AssertionError: '-no-CApath' not found in ['openssl', 's_client', '-connect', '127.0.0.1:8006', '-CAfile', '/etc/pve/pve-root-ca.pem', '-verify_return_error']
     FAILED (failures=1)
== MUTATION: any answer of the handshake counts as verified
   RED on the mutant: 5 failing line(s)
     FAIL: test_the_previous_root_stays_only_for_the_changeover (__main__.PVECACopy.test_the_previous_root_stays_only_for_the_changeover)
     AssertionError: Tuples differ: (0, 'written', [('/etc/felhom-agent/pve-root-c[108 chars]20)]) != (0, 'same', [])
     FAIL: test_with_the_real_openssl_and_the_real_runner (__main__.PVECACopy.test_with_the_real_openssl_and_the_real_runner)
== MUTATION: a leaf counts as a live CA
   RED on the mutant: 3 failing line(s)
     FAIL: test_with_the_real_openssl_and_the_real_runner (__main__.PVECACopy.test_with_the_real_openssl_and_the_real_runner)
     AssertionError: True is not false : a leaf is not a CA
     FAILED (failures=1)

the real file: 0 failing line(s)
7 mutations, 0 not a red-proof
