Skip to content

feat: settle generations after service readiness - #291

Merged
cristianoliveira merged 1 commit into
mainfrom
feat/service-readiness
Sep 3, 2026
Merged

feat: settle generations after service readiness#291
cristianoliveira merged 1 commit into
mainfrom
feat/service-readiness

Conversation

@cristianoliveira

@cristianoliveira cristianoliveira commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Problem

A healthy long-running service keeps its generation running forever, so a completed pipeline never reports success.

Changes

  • add explicit bounded jobs[].readiness commands
  • settle a generation after finite work and service readiness pass
  • keep the ready service alive in a worker-owned pool
  • preserve immutable generation results when service state later changes
  • expose minimal secondary services: [{ name, state }] status
  • safely hand off, replace, cancel, restart, and reap managed service processes
  • print the normal terminal summary exactly once
  • update lifecycle documentation and Pi watcher decoding

Expected output

Success; Completed: 1; Failed: 0; Duration: N.NNNNs

Generation result remains primary; service status is secondary.

Verification

Passed:

  • Rust formatting and 863 library tests
  • full cargo test --features test-integration
  • all 20 control_await integration tests
  • readiness pass/timeout, post-settlement failure, unrelated continuity, cancellation, SIGTERM, and no-overlap service replacement
  • Pi watcher format, lint, typecheck, and 527 tests

The no-overlap replacement regression found while opening this draft was fixed in 5840ab0 on this rebased branch.

Remaining before ready/merge

  • readiness-aware valid/invalid reload proof
  • supersession breadth
  • hook/output agreement
  • fresh watcher target evidence
  • independent QA

Stack and companion PR

Tracking

TASK-0161 is complete. TASK-0162 remains in progress for the remaining proof and final gates.

Base automatically changed from feat/settled-failure-hook-proof to main September 3, 2026 05:59
@cristianoliveira
cristianoliveira marked this pull request as ready for review September 3, 2026 07:11
@cristianoliveira
cristianoliveira enabled auto-merge (rebase) September 3, 2026 07:11
@cristianoliveira
cristianoliveira merged commit 5e833d3 into main Sep 3, 2026
5 checks passed
@cristianoliveira
cristianoliveira deleted the feat/service-readiness branch September 3, 2026 10:46
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.

1 participant