Skip to content

refactor(stack): establish explicit domain model - #6081

Merged
jgoux merged 5 commits into
developfrom
agent/stack-domain-model
Aug 6, 2026
Merged

refactor(stack): establish explicit domain model#6081
jgoux merged 5 commits into
developfrom
agent/stack-domain-model

Conversation

@jgoux

@jgoux jgoux commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • establish an exhaustive static service catalog for identity, versions, artifacts, activation policy, and port ownership
  • move public and resolved configuration types into a focused module and isolate configuration resolution from the Promise facade
  • define explicit finite, infinite, and inherited readiness policies with deterministic precedence
  • route artifact preparation through one canonical resolution path while keeping cross-service topology explicit in the stack builder
  • update package documentation and version-sync tooling for the new ownership boundaries

This change is stacked on #6078 and should be reviewed after it.

@jgoux
jgoux marked this pull request as ready for review August 5, 2026 13:56
@jgoux
jgoux requested a review from a team as a code owner August 5, 2026 13:56
Base automatically changed from agent/architecture-docs-baseline to develop August 5, 2026 16:02
…-model

# Conflicts:
#	packages/stack/README.md
#	packages/stack/docs/architecture.md
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@6b279149ec7f02e589476b60972d7a491b773e7d

Preview package for commit 6b27914.

…-model

# Conflicts:
#	packages/stack/src/versions.ts
@jgoux
jgoux added this pull request to the merge queue Aug 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Aug 6, 2026
…-model

# Conflicts:
#	packages/stack/src/ServiceActivation.ts
#	packages/stack/src/StackBuilder.ts
#	packages/stack/src/StackLifecycleCoordinator.ts
@jgoux
jgoux enabled auto-merge August 6, 2026 14:21
@jgoux
jgoux added this pull request to the merge queue Aug 6, 2026
Merged via the queue into develop with commit 78e89d8 Aug 6, 2026
14 checks passed
@jgoux
jgoux deleted the agent/stack-domain-model branch August 6, 2026 14:35
pull Bot pushed a commit to oogalieboogalie/cli that referenced this pull request Aug 6, 2026
## What changed

- replaces the duplicate lifecycle coordinator tag and pass-through
facade with one scoped local stack implementation that provides both the
public stack and narrow activation interfaces
- centralizes readiness policy enforcement across startup, activation,
lifecycle operations, explicit waits, Promise calls, and daemon
transport
- adds typed readiness deadline failures with terminal scoped cleanup
and daemon shutdown
- validates readiness overrides over POST transport and documents the
shared foreground/detached behavior
- removes dead cleanup-query surface and uses structural Effect equality
for projected state deduplication

## Why

Lifecycle state previously had redundant interface layers and readiness
deadlines were enforced only by the Promise adapter. Keeping policy and
cleanup inside the single runtime owner makes every adapter observe the
same semantics and prevents a timed-out runtime from relaunching
resources after cleanup.

Depends on supabase#6081 and supabase#6080 (and transitively supabase#6078).
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