Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions backend/cortex_backend/core/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ def execution_artifacts(self) -> Path:
"""Generated artifact root; callers must still enforce per-artifact limits."""
return self.data_dir / "execution_artifacts"

@property
def recipe_bundle_store(self) -> Path:
"""Durable signed recipe generations and their verified activation state."""
return self.data_dir / "recipe_bundles"

@property
def webview_profile(self) -> Path:
"""Keep native webview state isolated from every installed browser profile."""
Expand Down
27 changes: 24 additions & 3 deletions backend/cortex_backend/execution/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Durable execution primitives and provider-independent safety contracts.

Only the deterministic fake provider and reviewed broker contracts are exposed in
this phase. The native adapter remains transport-only; real runtime providers stay
absent until later ADR gates are approved.
Only deterministic contracts, the storage-only signed bundle installer, and the
reviewed broker transports are exposed in this phase. Native transport and bundle
storage never load a provider; real runtime providers stay absent until later ADR
gates are approved.
"""

from .broker import (
Expand All @@ -21,6 +22,16 @@
encode_message,
)
from .fake import FakeExecutionPlan, FakeExecutionProvider
from .bundle_installer import (
BundleInstallError,
BundleRecord,
InstalledBundle,
KeyringUpdate,
RollbackAuthorizer,
SignedBundleInstaller,
parse_keyring_update,
verify_keyring_update,
)
from .lifecycle import ExecutionLifecycle, LifecycleSnapshot, RuntimeHealth
from .manifest import (
ManifestEntry,
Expand All @@ -31,6 +42,7 @@
VerifiedRecipeManifest,
parse_signed_manifest,
verify_bundle_files,
verify_manifest_signature,
verify_signed_manifest,
)
from .native_broker import (
Expand Down Expand Up @@ -77,6 +89,8 @@
"BrokerPeerPolicy",
"BrokerProtocolError",
"BrokerSessionKeys",
"BundleInstallError",
"BundleRecord",
"DEFAULT_NATIVE_CONNECT_TIMEOUT_MS",
"DEFAULT_NATIVE_PIPE_BUFFER_BYTES",
"ExecutionRepository",
Expand All @@ -87,6 +101,8 @@
"FakeExecutionPlan",
"FakeExecutionProvider",
"ImageTransformPlan",
"InstalledBundle",
"KeyringUpdate",
"LeaseConflict",
"LifecycleSnapshot",
"ManifestEntry",
Expand All @@ -102,6 +118,8 @@
"PrimitiveEvaluationError",
"RecipeValidationError",
"RuntimeHealth",
"RollbackAuthorizer",
"SignedBundleInstaller",
"SignedRecipeManifest",
"TrustedRecipeKeys",
"VerifiedRecipeManifest",
Expand All @@ -112,6 +130,9 @@
"parse_check",
"parse_image_transform",
"verify_bundle_files",
"verify_manifest_signature",
"parse_keyring_update",
"verify_keyring_update",
"verify_signed_manifest",
"PeerIdentity",
"authorize_message",
Expand Down
Loading
Loading