Skip to content

Add DB-backed privileged worker heartbeat proof - #2237

Merged
cbusillo merged 1 commit into
mainfrom
feat/2219-worker-heartbeat-proof
Aug 24, 2026
Merged

Add DB-backed privileged worker heartbeat proof#2237
cbusillo merged 1 commit into
mainfrom
feat/2219-worker-heartbeat-proof

Conversation

@cbusillo

Copy link
Copy Markdown
Owner

Summary

  • persist a bounded DB-backed successful-poll heartbeat for the supervised privileged-operation worker
  • bind proof to Dokploy's selected Docker container through validated container-ID/hostname identity plus exact immutable image equality
  • make runtime logs diagnostic-only while preserving fail-closed provider state, image, freshness, and identity checks
  • add Alembic migration, PostgreSQL/storage/HTTP/workflow tests, operational docs, and rollback guidance

Milestone alignment

Closes #2219. This is the worker-proof prerequisite for #2204 in the Authorization Root-of-Trust Evidence milestone. It adds no authorization action, grant, canary activation, secret mutation, or live target mutation.

Validation

  • uv run --extra dev launchplane ci unittest-shard local — 3,081 targets, 12/12 shards
  • uv run --extra dev mypy control_plane tests — 761 files
  • changed-file Ruff check and format check
  • real PostgreSQL integration gate — 91 tests; final focused migration/heartbeat checks at revision d2219a0b1c2d
  • production Docker image build
  • real image + entrypoint + disposable PostgreSQL smoke: Docker hostname prefix validated; heartbeat identity and immutable image matched
  • Opus final review: approved after findings resolved
  • Gemini final review: approved
  • JetBrains inspection: UNKNOWN after built-in retry because results remained stale; no changed-file finding was produced

@cbusillo
cbusillo merged commit 3c962ef into main Aug 24, 2026
32 checks passed
@cbusillo
cbusillo deleted the feat/2219-worker-heartbeat-proof branch August 24, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy privileged-operation worker and correct Phase 2 runbook

2 participants