Record verified SQLite power-loss recovery evidence

This commit is contained in:
ABSDEV Qualification
2026-11-27 18:48:25 +00:00
parent a6daf917ad
commit c33f41bcee
7 changed files with 545 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# SQLite backup verification and VM power-loss recovery
The ABSDEV-CI regression passed 882 tests for commit
`a6daf917ad2900a265af83c67e2c831668b22226`. All five hard-stop scenarios
passed on an isolated disposable VM.
After a cut during backup, the zero-byte artifact survived reboot and was
rejected with `SQLite backup is empty`. Release 1 stayed active, and the
transaction did not record a verified backup. Activation and journal write
interruptions recovered valid state, and rollback required explicit confirmation.
Production readiness and production execution stayed disabled. This evidence
covers abrupt stops of the virtual guest while the physical host stayed powered.
The full archive is retained privately on ABSDEV-CI. These files contain the
guest markers, selected hypervisor events, regression output and summary.
Verify the public evidence with `sha256sum -c SHA256SUMS`.
+5
View File
@@ -0,0 +1,5 @@
The host used libvirt to hard-stop only the recorded networkless disposable
VM UUID, then restarted that same VM on its persistent overlay. No graceful
shutdown occurred at an interruption boundary. The host and physical disk
stayed powered. Framework backup, release-link, transaction and reconciliation
code ran against SQLite and synthetic release and service fixtures.
+6
View File
@@ -0,0 +1,6 @@
1158e6617272e9c5ab696e187528e4a691839b276f2eceee941f87bc1570814b README.md
0c4cced1e290f030d13c83e750fd2375d8bf66688e99f69e04fdcac1193260ce SCOPE.txt
199ef783b24b15afac25f48f70f39f138ada12c556127855831bc1c27e74c9aa framework-regression.txt
296977fa6d6db7afc48445fcfcf915a5ce04b7cdad16e0bb4c075450a8b2f88a guest-markers.json
22448500de8f1290aa6f56adb9c9a932a665f7e06c9ad7112475251d357466c3 hypervisor-events.txt
4f5a2570d625cb0a2430f1ebc52fbc8a29dd2861127bb65a5ac4ac3539caca99 summary.json
@@ -0,0 +1,108 @@
=== ABSDEV FRAMEWORK CI ===
Python 3.14.4
=== PYTHON SYNTAX VALIDATION ===
PASS: 84 Python sources compiled
=== COMPLETE UNIT REGRESSION SUITE ===
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 882 tests in 22.905s
OK
=== VERIFY PRODUCTION CAPABILITY RESTRICTIONS ===
PASS: production_ready=false
PASS: deployment_execution_enabled=false
PASS: migration_execution_enabled=false
PASS: provisioning_execution_enabled=false
PASS: database_restore_enabled=false
PASS: permanent_deletion_enabled=false
PASS: Unsupported command rejected: deploy
PASS: Unsupported command rejected: migrate
PASS: Unsupported command rejected: rollback
PASS: Unsupported command rejected: restore
PASS: Unsupported command rejected: provision
PASS: Unsupported command rejected: delete
=== EXAMPLE CONFIGURATION ===
PASS: Configuration valid
Site: example-absdev-net
Domain: example.absdev.net
Database: mysql
Schema: 1
No deployment performed
{
"configuration_fingerprint": "8067fa8477a7d50cbcc42b585961bcd4dbce5407fc7e4bffcfb3e07af529e483",
"execution_permitted": false,
"fingerprint": "d271a3a3ed2cbda032f905558fe9ada653c380c74306fc714ebc594483a63042",
"format_version": 1,
"runtime_verified": false,
"site": "example-absdev-net",
"static_policy_verified": true,
"status": "VALID"
}
{
"configuration_fingerprint": "8067fa8477a7d50cbcc42b585961bcd4dbce5407fc7e4bffcfb3e07af529e483",
"database": {
"container": "platform-mysql",
"driver": "mysql",
"name": "example_db",
"username": "example_app"
},
"database_creation_permitted": false,
"directories": [
"/opt/laravel-sites/example-absdev-net",
"/opt/laravel-sites/example-absdev-net/app",
"/opt/laravel-sites/example-absdev-net/app/releases",
"/opt/laravel-sites/example-absdev-net/app/shared",
"/opt/laravel-sites/example-absdev-net/deployment",
"/opt/laravel-sites/example-absdev-net/backups",
"/opt/laravel-sites/example-absdev-net/deployment/state",
"/opt/laravel-sites/example-absdev-net/deployment/approvals",
"/opt/laravel-sites/example-absdev-net/deployment/archives"
],
"docker": {
"networks": [
"laravel_backend",
"laravel_proxy"
],
"project": "site-example-absdev-net",
"services": [
"php",
"web",
"queue",
"scheduler"
]
},
"domain": "example.absdev.net",
"execution_permitted": false,
"filesystem_permissions_verified": false,
"fingerprint": "d8432e17dc1b91ce4712ab656c14c0b5a0957c54700b027b22444dc3a4c19feb",
"format_version": 1,
"origin_port": 8199,
"repository": {
"branch": "main",
"url": "[email protected]:example/application.git"
},
"resource_conflicts_checked": false,
"retention": {
"automatic_deletion": false,
"keep_releases": 5
},
"root": "/opt/laravel-sites/example-absdev-net",
"secrets_required": true,
"site": "example-absdev-net",
"site_policy_fingerprint": "d271a3a3ed2cbda032f905558fe9ada653c380c74306fc714ebc594483a63042",
"static_policy_verified": true,
"status": "PLAN_ONLY"
}
=== REFERENCE INTEGRITY ===
SKIP: Private reference excluded from checkout
========================================
PASS: FRAMEWORK CI
UNIT TESTS AND STATIC VALIDATION ONLY
DATABASE INTEGRATION NOT EXECUTED
========================================
@@ -0,0 +1,305 @@
{
"CUT": [
{
"boot_id": "bdbeb8b7-df8a-437a-a4ea-41c839aafa97",
"boundary": "SQLite copy after first page",
"case": "backup-mid-copy",
"current": "1",
"journal": "PREPARED",
"partial_bytes": 0,
"remaining_pages": 205,
"total_pages": 206
},
{
"boot_id": "425bac53-6dae-4015-8c29-49ac5ca4851e",
"boundary": "current symlink renamed before activation directory fsync",
"case": "activation-before-dir-sync",
"current": "2",
"journal": "ACTIVATING"
},
{
"boot_id": "ce2505b7-457d-44af-8471-53ab49bb7384",
"boundary": "activation directory fsynced before ACTIVATED journal",
"case": "activation-after-dir-sync",
"current": "2",
"journal": "ACTIVATING"
},
{
"attempted": "ACTIVATING",
"boot_id": "af749d61-98fd-4154-b23b-b7a79bef60b8",
"boundary": "journal temp file fsynced before atomic replacement",
"case": "journal-before-replace",
"current": "1",
"journal": "QUIESCED"
},
{
"attempted": "ACTIVATED",
"boot_id": "e8e0abce-a96e-431b-9b46-36341cd9808a",
"boundary": "journal renamed before directory fsync",
"case": "journal-before-dir-sync",
"current": "2",
"journal": "ACTIVATED"
}
],
"RECOVERED": [
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "1",
"backup_sha256": null,
"backup_verified": false,
"boot_id": "425bac53-6dae-4015-8c29-49ac5ca4851e",
"case": "backup-mid-copy",
"database_restored": false,
"explicit_rollback": false,
"findings": [
{
"bytes": 0,
"reason": "SQLite backup is empty",
"type": "zero_byte_backup_rejected"
}
],
"journal_phase_after_boot": "PREPARED",
"previous_boot_id": "bdbeb8b7-df8a-437a-a4ea-41c839aafa97",
"result": "PASS",
"review_status": "PREVIOUS_ACTIVE_REVIEW_REQUIRED"
},
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "1",
"backup_sha256": "b56b4e3aaa6e6d0b486f320d45e6804470fdaf210b5a449041010e579ddb7617",
"backup_verified": true,
"boot_id": "ce2505b7-457d-44af-8471-53ab49bb7384",
"case": "activation-before-dir-sync",
"database_restored": false,
"explicit_rollback": false,
"findings": [],
"journal_phase_after_boot": "ACTIVATING",
"previous_boot_id": "425bac53-6dae-4015-8c29-49ac5ca4851e",
"result": "PASS",
"review_status": "PREVIOUS_ACTIVE_REVIEW_REQUIRED"
},
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "2",
"backup_sha256": "b56b4e3aaa6e6d0b486f320d45e6804470fdaf210b5a449041010e579ddb7617",
"backup_verified": true,
"boot_id": "af749d61-98fd-4154-b23b-b7a79bef60b8",
"case": "activation-after-dir-sync",
"database_restored": false,
"explicit_rollback": true,
"findings": [],
"journal_phase_after_boot": "ACTIVATING",
"previous_boot_id": "ce2505b7-457d-44af-8471-53ab49bb7384",
"result": "PASS",
"review_status": "ROLLBACK_REVIEW_READY"
},
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "1",
"backup_sha256": "b56b4e3aaa6e6d0b486f320d45e6804470fdaf210b5a449041010e579ddb7617",
"backup_verified": true,
"boot_id": "e8e0abce-a96e-431b-9b46-36341cd9808a",
"case": "journal-before-replace",
"database_restored": false,
"explicit_rollback": false,
"findings": [],
"journal_phase_after_boot": "QUIESCED",
"previous_boot_id": "af749d61-98fd-4154-b23b-b7a79bef60b8",
"result": "PASS",
"review_status": "PREVIOUS_ACTIVE_REVIEW_REQUIRED"
},
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "2",
"backup_sha256": "b56b4e3aaa6e6d0b486f320d45e6804470fdaf210b5a449041010e579ddb7617",
"backup_verified": true,
"boot_id": "7ff1139f-7e9d-428c-b268-49d912aa0026",
"case": "journal-before-dir-sync",
"database_restored": false,
"explicit_rollback": true,
"findings": [],
"journal_phase_after_boot": "ACTIVATING",
"previous_boot_id": "e8e0abce-a96e-431b-9b46-36341cd9808a",
"result": "PASS",
"review_status": "ROLLBACK_REVIEW_READY"
}
],
"CAPABILITIES": [
{
"boot_id": "bdbeb8b7-df8a-437a-a4ea-41c839aafa97",
"report": {
"commands": [
"validate",
"capabilities",
"inventory",
"retention-plan",
"provision-plan",
"site-policy",
"registry-validate",
"preflight"
],
"database_restore_enabled": false,
"deployment_execution_enabled": false,
"format_version": 1,
"migration_execution_enabled": false,
"permanent_deletion_enabled": false,
"production_ready": false,
"provisioning_execution_enabled": false
},
"revision": "a6daf917ad2900a265af83c67e2c831668b22226",
"when": "boot"
},
{
"boot_id": "425bac53-6dae-4015-8c29-49ac5ca4851e",
"report": {
"commands": [
"validate",
"capabilities",
"inventory",
"retention-plan",
"provision-plan",
"site-policy",
"registry-validate",
"preflight"
],
"database_restore_enabled": false,
"deployment_execution_enabled": false,
"format_version": 1,
"migration_execution_enabled": false,
"permanent_deletion_enabled": false,
"production_ready": false,
"provisioning_execution_enabled": false
},
"revision": "a6daf917ad2900a265af83c67e2c831668b22226",
"when": "boot"
},
{
"boot_id": "ce2505b7-457d-44af-8471-53ab49bb7384",
"report": {
"commands": [
"validate",
"capabilities",
"inventory",
"retention-plan",
"provision-plan",
"site-policy",
"registry-validate",
"preflight"
],
"database_restore_enabled": false,
"deployment_execution_enabled": false,
"format_version": 1,
"migration_execution_enabled": false,
"permanent_deletion_enabled": false,
"production_ready": false,
"provisioning_execution_enabled": false
},
"revision": "a6daf917ad2900a265af83c67e2c831668b22226",
"when": "boot"
},
{
"boot_id": "af749d61-98fd-4154-b23b-b7a79bef60b8",
"report": {
"commands": [
"validate",
"capabilities",
"inventory",
"retention-plan",
"provision-plan",
"site-policy",
"registry-validate",
"preflight"
],
"database_restore_enabled": false,
"deployment_execution_enabled": false,
"format_version": 1,
"migration_execution_enabled": false,
"permanent_deletion_enabled": false,
"production_ready": false,
"provisioning_execution_enabled": false
},
"revision": "a6daf917ad2900a265af83c67e2c831668b22226",
"when": "boot"
},
{
"boot_id": "e8e0abce-a96e-431b-9b46-36341cd9808a",
"report": {
"commands": [
"validate",
"capabilities",
"inventory",
"retention-plan",
"provision-plan",
"site-policy",
"registry-validate",
"preflight"
],
"database_restore_enabled": false,
"deployment_execution_enabled": false,
"format_version": 1,
"migration_execution_enabled": false,
"permanent_deletion_enabled": false,
"production_ready": false,
"provisioning_execution_enabled": false
},
"revision": "a6daf917ad2900a265af83c67e2c831668b22226",
"when": "boot"
},
{
"boot_id": "7ff1139f-7e9d-428c-b268-49d912aa0026",
"report": {
"commands": [
"validate",
"capabilities",
"inventory",
"retention-plan",
"provision-plan",
"site-policy",
"registry-validate",
"preflight"
],
"database_restore_enabled": false,
"deployment_execution_enabled": false,
"format_version": 1,
"migration_execution_enabled": false,
"permanent_deletion_enabled": false,
"production_ready": false,
"provisioning_execution_enabled": false
},
"revision": "a6daf917ad2900a265af83c67e2c831668b22226",
"when": "boot"
},
{
"boot_id": "7ff1139f-7e9d-428c-b268-49d912aa0026",
"report": {
"commands": [
"validate",
"capabilities",
"inventory",
"retention-plan",
"provision-plan",
"site-policy",
"registry-validate",
"preflight"
],
"database_restore_enabled": false,
"deployment_execution_enabled": false,
"format_version": 1,
"migration_execution_enabled": false,
"permanent_deletion_enabled": false,
"production_ready": false,
"provisioning_execution_enabled": false
},
"revision": "a6daf917ad2900a265af83c67e2c831668b22226",
"when": "after"
}
],
"DONE": [
{
"boot_id": "7ff1139f-7e9d-428c-b268-49d912aa0026",
"cases": 5,
"revision": "a6daf917ad2900a265af83c67e2c831668b22226"
}
],
"FAILURE": []
}
@@ -0,0 +1,10 @@
2026-11-27T18:05:20Z Hard power cut confirmed at backup-mid-copy
2026-11-27T18:05:38Z Recovery evidence received after restart for backup-mid-copy
2026-11-27T18:05:39Z Hard power cut confirmed at activation-before-dir-sync
2026-11-27T18:05:55Z Recovery evidence received after restart for activation-before-dir-sync
2026-11-27T18:05:56Z Hard power cut confirmed at activation-after-dir-sync
2026-11-27T18:06:13Z Recovery evidence received after restart for activation-after-dir-sync
2026-11-27T18:06:14Z Hard power cut confirmed at journal-before-replace
2026-11-27T18:06:33Z Recovery evidence received after restart for journal-before-replace
2026-11-27T18:06:34Z Hard power cut confirmed at journal-before-dir-sync
2026-11-27T18:06:51Z Recovery evidence received after restart for journal-before-dir-sync
+95
View File
@@ -0,0 +1,95 @@
{
"framework_revision": "a6daf917ad2900a265af83c67e2c831668b22226",
"cloud_image_sha256": "04e8f2461a16a44e78a370284471f29616cdd9baf1893df25807b71f985b6c94",
"framework_archive_sha256": "97c4bc961d7f78f57dfe9b6da025e29dd90c13737a68857f9281ab24023b0a93",
"hard_power_cuts": 5,
"distinct_boot_ids": 6,
"production_execution_enabled": false,
"production_ready": false,
"passed": 5,
"gaps": 0,
"scope": "Abrupt stops of an isolated QEMU/KVM virtual machine; SQLite fixture and synthetic release/service adapters.",
"cases": [
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "1",
"backup_sha256": null,
"backup_verified": false,
"boot_id": "425bac53-6dae-4015-8c29-49ac5ca4851e",
"case": "backup-mid-copy",
"database_restored": false,
"explicit_rollback": false,
"findings": [
{
"bytes": 0,
"reason": "SQLite backup is empty",
"type": "zero_byte_backup_rejected"
}
],
"journal_phase_after_boot": "PREPARED",
"previous_boot_id": "bdbeb8b7-df8a-437a-a4ea-41c839aafa97",
"result": "PASS",
"review_status": "PREVIOUS_ACTIVE_REVIEW_REQUIRED"
},
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "1",
"backup_sha256": "b56b4e3aaa6e6d0b486f320d45e6804470fdaf210b5a449041010e579ddb7617",
"backup_verified": true,
"boot_id": "ce2505b7-457d-44af-8471-53ab49bb7384",
"case": "activation-before-dir-sync",
"database_restored": false,
"explicit_rollback": false,
"findings": [],
"journal_phase_after_boot": "ACTIVATING",
"previous_boot_id": "425bac53-6dae-4015-8c29-49ac5ca4851e",
"result": "PASS",
"review_status": "PREVIOUS_ACTIVE_REVIEW_REQUIRED"
},
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "2",
"backup_sha256": "b56b4e3aaa6e6d0b486f320d45e6804470fdaf210b5a449041010e579ddb7617",
"backup_verified": true,
"boot_id": "af749d61-98fd-4154-b23b-b7a79bef60b8",
"case": "activation-after-dir-sync",
"database_restored": false,
"explicit_rollback": true,
"findings": [],
"journal_phase_after_boot": "ACTIVATING",
"previous_boot_id": "ce2505b7-457d-44af-8471-53ab49bb7384",
"result": "PASS",
"review_status": "ROLLBACK_REVIEW_READY"
},
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "1",
"backup_sha256": "b56b4e3aaa6e6d0b486f320d45e6804470fdaf210b5a449041010e579ddb7617",
"backup_verified": true,
"boot_id": "e8e0abce-a96e-431b-9b46-36341cd9808a",
"case": "journal-before-replace",
"database_restored": false,
"explicit_rollback": false,
"findings": [],
"journal_phase_after_boot": "QUIESCED",
"previous_boot_id": "af749d61-98fd-4154-b23b-b7a79bef60b8",
"result": "PASS",
"review_status": "PREVIOUS_ACTIVE_REVIEW_REQUIRED"
},
{
"active_release_after_recovery": "1",
"active_release_before_recovery": "2",
"backup_sha256": "b56b4e3aaa6e6d0b486f320d45e6804470fdaf210b5a449041010e579ddb7617",
"backup_verified": true,
"boot_id": "7ff1139f-7e9d-428c-b268-49d912aa0026",
"case": "journal-before-dir-sync",
"database_restored": false,
"explicit_rollback": true,
"findings": [],
"journal_phase_after_boot": "ACTIVATING",
"previous_boot_id": "e8e0abce-a96e-431b-9b46-36341cd9808a",
"result": "PASS",
"review_status": "ROLLBACK_REVIEW_READY"
}
]
}