Phase 28: Non-production acceptance
This commit is contained in:
@@ -57,3 +57,17 @@ See [Database Qualification](DATABASE-QUALIFICATION.md)
|
|||||||
for verified capabilities and remaining limitations.
|
for verified capabilities and remaining limitations.
|
||||||
|
|
||||||
Production execution remains disabled.
|
Production execution remains disabled.
|
||||||
|
|
||||||
|
## dev.3 disposable acceptance scope
|
||||||
|
|
||||||
|
Development qualification exercises generated Laravel source, two authorised
|
||||||
|
revisions, loopback HTTP, an actual Laravel database queue and scheduler,
|
||||||
|
SQLite migrations and backup evidence, and reviewed rollback after candidate
|
||||||
|
health failure and deployment process loss. The new runtime is accessible
|
||||||
|
through the acceptance harness. The production CLI remains inspection-only.
|
||||||
|
|
||||||
|
Production readiness and production execution remain disabled. Live MySQL and
|
||||||
|
PostgreSQL least-privilege grant qualification, Docker/Nginx containment, operator
|
||||||
|
authorisation, immutable dependency inputs and host power-loss qualification
|
||||||
|
remain separate production gates. The SQLite fixture is not a production
|
||||||
|
database or operating-system isolation boundary.
|
||||||
|
|||||||
@@ -33,6 +33,38 @@ def inject(args):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def accept(args):
|
||||||
|
success = read(args.success)
|
||||||
|
require(success["scenario"] == "success" and
|
||||||
|
success["release"] == success["queue"] == success["scheduler"] == "2" and
|
||||||
|
success["transaction"]["phase"] == "VERIFIED",
|
||||||
|
"Successful deployment evidence is incomplete")
|
||||||
|
report = {"scope": "disposable loopback Laravel with SQLite", "deployment": success,
|
||||||
|
"production_ready": False, "production_execution_enabled": False}
|
||||||
|
failures = {name: read(args.failures / f"{name}.json") for name in FAILURES}
|
||||||
|
for name, item in failures.items():
|
||||||
|
require(item["scenario"] == name, "Failure evidence scenario mismatch")
|
||||||
|
require(item["dependency_lock_sha256"] == success["dependency_lock_sha256"],
|
||||||
|
"Laravel dependency lock changed between integration phases")
|
||||||
|
if name in ("backup", "tamper"):
|
||||||
|
require(item["active_release"] == "1", "Preactivation failure switched release")
|
||||||
|
else:
|
||||||
|
expected_phase = "ACTIVATING" if name == "crash" else "FAILED"
|
||||||
|
require(item["phase"] == expected_phase and item["rollback"]["status"] == "ROLLED_BACK"
|
||||||
|
and item["rollback"]["active_release"] == "1", "Rollback evidence is incomplete")
|
||||||
|
report["failure_injection"] = failures
|
||||||
|
capabilities = json.loads(subprocess.check_output(
|
||||||
|
[sys.executable, "-B", str(ROOT / "bin/absdev-deploy"), "capabilities"],
|
||||||
|
stdin=subprocess.DEVNULL, timeout=15,
|
||||||
|
))
|
||||||
|
for name in ("production_ready", "deployment_execution_enabled",
|
||||||
|
"migration_execution_enabled", "provisioning_execution_enabled",
|
||||||
|
"database_restore_enabled", "permanent_deletion_enabled"):
|
||||||
|
require(capabilities.get(name) is False, f"Production policy enabled: {name}")
|
||||||
|
report["capabilities"] = capabilities
|
||||||
|
print(json.dumps(report, indent=2, sort_keys=True))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(description=__doc__)
|
parser = argparse.ArgumentParser(description=__doc__)
|
||||||
modes = parser.add_subparsers(required=True)
|
modes = parser.add_subparsers(required=True)
|
||||||
@@ -41,6 +73,10 @@ def main():
|
|||||||
failure.add_argument("--dependencies", type=Path, required=True)
|
failure.add_argument("--dependencies", type=Path, required=True)
|
||||||
failure.add_argument("--php", type=Path, required=True)
|
failure.add_argument("--php", type=Path, required=True)
|
||||||
failure.set_defaults(action=inject)
|
failure.set_defaults(action=inject)
|
||||||
|
acceptance = modes.add_parser("accept")
|
||||||
|
acceptance.add_argument("--success", type=Path, required=True)
|
||||||
|
acceptance.add_argument("--failures", type=Path, required=True)
|
||||||
|
acceptance.set_defaults(action=accept)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
os.umask(0o077)
|
os.umask(0o077)
|
||||||
args.action(args)
|
args.action(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user