Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

chore(ratchets): regenerate the boundary baseline, error ceiling and migration inventory

Juan Denis515d960614ff
diff --git a/backend/tests/ERROR_SHAPE_CEILING b/backend/tests/ERROR_SHAPE_CEILING
index fdab865f..765f5bf7 100644
--- a/backend/tests/ERROR_SHAPE_CEILING
+++ b/backend/tests/ERROR_SHAPE_CEILING
@@ -1 +1 @@
-1144
+1150
diff --git a/backend/tests/api_controller_boundary_baseline.json b/backend/tests/api_controller_boundary_baseline.json
index 46559443..106cbf1e 100644
--- a/backend/tests/api_controller_boundary_baseline.json
+++ b/backend/tests/api_controller_boundary_baseline.json
@@ -3,7 +3,7 @@
"policy": "Exact reviewed inventory of direct persistence, subprocess, and filesystem mutation calls in Flask API controllers. New calls are forbidden; remove entries as controllers delegate to services.",
"counts": {
"filesystem": 11,
- "persistence": 498
+ "persistence": 504
},
"owners": {
"api/admin.py": {
@@ -138,6 +138,10 @@
"owner": "ServerKit backend / python domain",
"rationale": "Legacy python controllers still cross a persistence or host-operation boundary; move each call into an app.services use case before removing it."
},
+ "api/recipes.py": {
+ "owner": "ServerKit backend / recipes domain",
+ "rationale": "Legacy recipes controllers still cross a persistence or host-operation boundary; move each call into an app.services use case before removing it."
+ },
"api/secrets_webhooks.py": {
"owner": "ServerKit backend / secrets webhooks domain",
"rationale": "Legacy secrets webhooks controllers still cross a persistence or host-operation boundary; move each call into an app.services use case before removing it."
@@ -593,6 +597,12 @@
"api/python.py::restart_app::persistence::db.session.commit()::1",
"api/python.py::start_app::persistence::db.session.commit()::1",
"api/python.py::stop_app::persistence::db.session.commit()::1",
+ "api/recipes.py::_normalized_recipe::persistence::ApplicationManifest.query.filter_by(project_id=project_id).first()::1",
+ "api/recipes.py::get_recipe_run::persistence::DeploymentJob.query.get(job_id)::1",
+ "api/recipes.py::start_recipe_run::persistence::Project.query.get(data.get('project_id'))::1",
+ "api/recipes.py::start_recipe_run::persistence::db.session.commit()::1",
+ "api/recipes.py::start_recipe_run::persistence::db.session.commit()::2",
+ "api/recipes.py::submit_recipe_handoff::persistence::DeploymentJob.query.get(job_id)::1",
"api/secrets_webhooks.py::create_vault::persistence::Workspace.query.get(explicit_ws)::1",
"api/security.py::get_application_sboms::persistence::SbomArtifact.query.filter_by(application_id=application_id).order_by(SbomArtifact.created_at.desc()).limit(50).all()::1",
"api/security.py::get_image_scan::persistence::ImageVulnerabilityScan.query.get(scan_id)::1",
diff --git a/docs/MIGRATION_INVENTORY.md b/docs/MIGRATION_INVENTORY.md
index 18dd1bbd..bc187925 100644
--- a/docs/MIGRATION_INVENTORY.md
+++ b/docs/MIGRATION_INVENTORY.md
@@ -16,9 +16,9 @@ debt. Regenerate with `python scripts/generate-migration-inventory.py`.
| Routes on bare @jwt_required() | auth_required() / role decorators | 576 | 577 | REGISTERED EXCEPTION: JWT-only is the deliberate default; conversion grants API-key access and happens per route, on decision |
| HTTP statuses chosen by sniffing error text | typed errors from app.exceptions | 0 | 0 | INVARIANT at 0 - migration completed 2026-08-19 |
| API crashes swallowed without recording | app.error_reporting | 0 | 0 | INVARIANT at 0 |
-| Hand-shaped {'error': ...} bodies in app/api | typed errors + the global handler | 1144 | 1144 | migrate when touched; new endpoints raise |
+| Hand-shaped {'error': ...} bodies in app/api | typed errors + the global handler | 1150 | 1150 | migrate when touched; new endpoints raise |
| Raw subprocess calls outside the runners | app/utils/system.py runners | 24 | 24 | migrate when touched |
-| Controller-boundary violations (routes doing service work) | service layer extraction | 509 | 509 | migrate when touched (first-wave ratchet) |
+| Controller-boundary violations (routes doing service work) | service layer extraction | 515 | 515 | migrate when touched (first-wave ratchet) |
| raw api.* calls in pages/ | E1: useServerQuery/useServerMutation | 460 | 460 | migrate when touched |
| per-page toast.error extractions in pages/ | E1: query-layer error presentation | 264 | 264 | migrate when touched |
| hand-rolled form-group blocks | F2: FormField/useForm | 343 | 343 | migrate when touched |