Skip to content

Add privileged worker entrypoint stage markers - #2236

Merged
cbusillo merged 1 commit into
mainfrom
fix/2219-entrypoint-stage-markers
Aug 24, 2026
Merged

Add privileged worker entrypoint stage markers#2236
cbusillo merged 1 commit into
mainfrom
fix/2219-entrypoint-stage-markers

Conversation

@cbusillo

Copy link
Copy Markdown
Owner

Summary

  • emit fixed JSON markers when the privileged worker entrypoint starts and when its isolated startup probe succeeds
  • allow both markers only as diagnostic runtime evidence; neither can satisfy activation proof
  • cover successful and timed-out probe ordering in shell tests and docs

Why

The exact worker image runs locally through poll_succeeded, while production event-filtered reads find no Python lifecycle marker. Shell-level markers let the protected inspector distinguish a blocked startup probe from a block between probe completion and continuous Python worker startup without exposing general logs.

Validation

  • focused entrypoint/runtime/HTTP tests (35 tests)
  • uv run --extra dev launchplane ci unittest-shard local (3,080 targets; 12/12 shards)
  • uv run --extra dev mypy control_plane tests (759 files)
  • Ruff, format, ShellCheck, and shfmt
  • production image build
  • real production-image entrypoint + disposable PostgreSQL smoke emitted both shell markers and all lifecycle events through poll_succeeded

Refs #2219

@cbusillo
cbusillo merged commit 344538c into main Aug 24, 2026
32 checks passed
@cbusillo
cbusillo deleted the fix/2219-entrypoint-stage-markers branch August 24, 2026 14:08
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.

2 participants