feat(api): Codex: add /health endpoint with podman + systemd checks

This commit is contained in:
kodi
2026-02-25 13:16:53 +01:00
parent ebb6d755a0
commit b89a31a068
7 changed files with 536 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
# Change / PR Rules — podman-mvp
All non-trivial changes must follow this workflow.
## Step 1 — Scope
Describe:
- What feature is added or improved
- Which files are touched
## Step 2 — Contract safety check
Must remain TRUE:
- Existing API responses unchanged
- No JSON keys removed or renamed
- Backward compatibility maintained
- allowed_units.txt respected
If not certain → STOP and propose first.
## Step 3 — Runtime safety
Do NOT change without agreement:
- Pod structure
- Podman socket mounts
- DBus configuration
- host PID/IPC usage
## Step 4 — Verification (required)
Provide curl validation commands.
Example:
curl -s http://127.0.0.1:8081/api/...
Explain what should change in output.
## Step 5 — Refactoring
Allowed only when:
- required for feature OR
- clearly improves maintainability
Refactor must:
- keep behaviour identical
- minimize diff size
- be proposed first.