Skip to content

feat(lifecycle): compose the lifecycle service behind an opt-in scheduler gate - #183

Closed
aparragithub wants to merge 1 commit into
feat/sp-resource-lifecycle-authorityfrom
feat/sp-resource-lifecycle-composition
Closed

feat(lifecycle): compose the lifecycle service behind an opt-in scheduler gate#183
aparragithub wants to merge 1 commit into
feat/sp-resource-lifecycle-authorityfrom
feat/sp-resource-lifecycle-composition

Conversation

@aparragithub

Copy link
Copy Markdown
Owner

Stacked on #181. Final slice of SP-RESOURCE-LIFECYCLE.

What

The PostgreSQL Docker lifecycle adapter shipped in #181 dormant and unimported. This wires it into server composition, sharing the existing instance registry and LocalOwnershipAuthority rather than standing up parallel state, and backs it with the durable JSONL journal.

Execution stays manual. EnvLifecycleSchedulerGate is disabled by default and consulted by nothing — opt-in is explicit and exact. Composition therefore adds no automatic mutation path, which is what keeps the manual-default guarantee true rather than merely intended.

Coverage

Composed end-to-end tests cover the confirmed-zombie and live-activity paths, PROD report-only, and evidence contradictions, each paired with a zero-prohibited-mutation assertion.

Verification

Gate Result
uv run pytest -q 1897 passed, 46 deselected, 13 subtests passed — 97% coverage
uv run mypy src no issues in 154 source files
uv run ruff check . passed
uv run ruff format --check . 306 files already formatted
uv run lint-imports 10 contracts kept, 0 broken

342 changed lines, within the 400-line review budget.

SDD verification: 4/4 requirements, 10/10 scenarios covered, 0 critical.

…uler gate

The lifecycle adapter shipped dormant and unimported. Wire it into server
composition sharing the existing registry and ownership authority, with a
durable journal and manual execution only: the scheduler gate stays
disabled unless explicitly opted in, so composition adds no automatic
mutation path.
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 43a53eb9-835c-408b-a41f-9d6563dc56a2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

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