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: regenerate ratchet inventories after the git split

Juan Denis2bdddd4d77ee
diff --git a/backend/tests/BASELINE_COUNT b/backend/tests/BASELINE_COUNT
index 05166d84..7f796be5 100644
--- a/backend/tests/BASELINE_COUNT
+++ b/backend/tests/BASELINE_COUNT
@@ -1 +1 @@
-4735
+4799
diff --git a/backend/tests/api_controller_boundary_baseline.json b/backend/tests/api_controller_boundary_baseline.json
index 2e264e84..a10e1291 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": 503
+ "persistence": 500
},
"owners": {
"api/admin.py": {
@@ -146,10 +146,6 @@
"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."
},
- "api/security.py": {
- "owner": "ServerKit backend / security domain",
- "rationale": "Legacy security controllers still cross a persistence or host-operation boundary; move each call into an app.services use case before removing it."
- },
"api/servers.py": {
"owner": "ServerKit backend / servers domain",
"rationale": "Legacy servers controllers still cross a persistence or host-operation boundary; move each call into an app.services use case before removing it."
@@ -603,9 +599,6 @@
"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",
- "api/security.py::get_sbom::persistence::SbomArtifact.query.get(sbom_id)::1",
"api/servers.py::acknowledge_alert::persistence::SecurityAlert.query.get(alert_id)::1",
"api/servers.py::add_agent_version::persistence::db.session.add(version)::1",
"api/servers.py::add_agent_version::persistence::db.session.commit()::1",
diff --git a/docs/API_SURFACE.md b/docs/API_SURFACE.md
index 9b1bacfe..a910f714 100644
--- a/docs/API_SURFACE.md
+++ b/docs/API_SURFACE.md
@@ -378,19 +378,6 @@ Regenerate (backend/):
- `GET /git/deployments/app/{app_id}`
- `GET /git/deployments/webhook/{webhook_id}`
- `GET /git/deployments/{deployment_id}`
-- `GET /git/repos`
-- `GET /git/repos/{owner}/{repo}`
-- `GET /git/repos/{owner}/{repo}/branches`
-- `GET /git/repos/{owner}/{repo}/branches/{branch}`
-- `GET /git/repos/{owner}/{repo}/commits`
-- `GET /git/repos/{owner}/{repo}/commits/{sha}`
-- `GET /git/repos/{owner}/{repo}/contents`
-- `GET /git/repos/{owner}/{repo}/contents/<path:filepath>`
-- `GET /git/repos/{owner}/{repo}/readme`
-- `GET /git/repos/{owner}/{repo}/stats`
-- `GET /git/requirements`
-- `GET /git/status`
-- `GET /git/version`
- `GET /git/webhooks`
- `GET /git/webhooks/{webhook_id}`
- `GET /git/webhooks/{webhook_id}/logs`
@@ -1010,11 +997,6 @@ Regenerate (backend/):
- `POST /fleet-monitor/thresholds`
- `POST /git/deployments/app/{app_id}/deploy`
- `POST /git/deployments/app/{app_id}/rollback`
-- `POST /git/install`
-- `POST /git/restart`
-- `POST /git/start`
-- `POST /git/stop`
-- `POST /git/uninstall`
- `POST /git/webhooks`
- `POST /git/webhooks/receive/{token}`
- `POST /git/webhooks/{webhook_id}/test`
diff --git a/docs/MIGRATION_INVENTORY.md b/docs/MIGRATION_INVENTORY.md
index 251ee202..63f5d745 100644
--- a/docs/MIGRATION_INVENTORY.md
+++ b/docs/MIGRATION_INVENTORY.md
@@ -13,16 +13,16 @@ debt. Regenerate with `python scripts/generate-migration-inventory.py`.
| Concern | Door | Remaining | Ceiling | Policy |
|---|---|---:|---:|---|
| Identity lookups outside rbac.get_current_user() | rbac.get_current_user() | 69 | 69 | JWT-only routes; the API-key-capable population is held at 0 by a companion assertion |
-| 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 |
+| Routes on bare @jwt_required() | auth_required() / role decorators | 573 | 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 | 1150 | 1150 | migrate when touched; new endpoints raise |
+| Hand-shaped {'error': ...} bodies in app/api | typed errors + the global handler | 1139 | 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 | 514 | 514 | 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 |
-| unencoded ?k=${v} query interpolations in services/api | C4: buildQuery/encoding template | 97 | 97 | migrate when touched |
+| raw api.* calls in pages/ | E1: useServerQuery/useServerMutation | 405 | 405 | migrate when touched |
+| per-page toast.error extractions in pages/ | E1: query-layer error presentation | 218 | 218 | migrate when touched |
+| hand-rolled form-group blocks | F2: FormField/useForm | 326 | 343 | migrate when touched |
+| unencoded ?k=${v} query interpolations in services/api | C4: buildQuery/encoding template | 87 | 97 | migrate when touched |
| raw setInterval pollers | E2: usePolling/refetchInterval | 9 | 9 | DELIBERATE RESIDUE: clock ticks, socket-fallback hooks, and sibling-repo extension timers - each listed per file |
| direct navigator.clipboard call sites | F3: copyToClipboard | 0 | 0 | INVARIANT at 0 |
| hex colour literals outside token files | G: var(--token) | 150 | 150 | migrate when touched |