Runtime-first Core, persistence, and package boundary cleanup#48
Draft
tdeverx wants to merge 51 commits into
Draft
Runtime-first Core, persistence, and package boundary cleanup#48tdeverx wants to merge 51 commits into
tdeverx wants to merge 51 commits into
Conversation
26 tasks
added 15 commits
July 2, 2026 04:46
This was referenced Jul 2, 2026
This was referenced Jul 3, 2026
added 3 commits
July 3, 2026 12:45
Move runtime behavior behind module contracts, make routing/readiness explicit, and update app/database wiring plus coverage.
21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
This is a large breaking draft PR for the runtime-first app/database foundation. Keep it unmerged until the maintainer accepts the manual Xcode/UI pass and the runtime-provider posture.
Summary
Reshapes Contained around a runtime-first, package-first architecture.
ContainedCoreowns backend/runtime contracts and concrete adapter modules,ContainedAppowns app state, persistence, localization, settings, and feature policy,ContainedUIowns reusable visual primitives, andContainedUXowns reusable interaction infrastructure.The current release posture keeps Apple
containeras the only built-in runtime registered by default. Docker adapter code, fixtures, and tests remain in Core underRuntimes/Docker, but Docker is dormant until Contained chooses an independent provider/daemon model instead of depending on Docker Desktop.Diff Check Against
nightlyAt pushed head
56037ab1:origin/nightlytdeverx/core-optimization-design-system-boundaryKey Updates
Packages/ContainedCoreas the single backend/orchestration package withCore.*APIs, runtime descriptors/capabilities, command previews, typed package errors, semantic Core localization, canonical schema/Compose contracts, migration planning, metrics, image/registry helpers, and runtime-scoped models.Runtime/, while concrete runtime behavior lives underRuntimes/AppleContainerandRuntimes/Docker.Sources/ContainedApp/Persistence/AppDatabase, including runtime, container, recipe, image/tag, volume, network, personalization, history, health, readiness, and last-seen state records.runtimeKind, lifecycle/logs/stats/terminal/files/edit actions route through the originating runtime, and multi-runtime flows do not rely on a stored/global default runtime.Packages/ContainedUIwith nestedUI.*routes, contextual tokens, colocated previews, and package-internalSharedhelpers for repeated implementation anatomy.Packages/ContainedUX, including safe-area management, source-frame measurement, panel placement, and single-surface morph behavior.openURL, andsensoryFeedbackwhere available.Scripts/, replaces old change-fragment flow withChanges/Current.mdandChanges/Beta.md, moves maintained docs underDocumentation/, and refreshes package README/DocC/wiki sync surfaces.Issue Links
Closes #32.
Closes #33.
Closes #34.
Closes #35.
Closes #36.
Partially addresses #4, #14, #17, #18, and #24.
Related but intentionally not closed:
Out Of Scope
Latest Verification
Local verification on July 4, 2026, at pushed commit
56037ab1:swift buildswift testswift test --package-path Packages/ContainedCore./Scripts/check.sh allgit diff --checkswift test --filter DesignSystemBoundaryTestsEarlier branch verification also covered focused package tests, release-note/script fixtures, bundle validation, debug bundling, and Xcode app wiring. The latest pass did not relaunch the app for manual UI testing.
Current CI Snapshot
After pushing
56037ab1:Merge Note
This branch is intentionally large and breaking. Keep the manual Xcode/UI polish pass separate unless it exposes functional wiring bugs.