1.8 KiB
1.8 KiB
Implementation Mapping (Web -> Backend -> Runtime)
Web Repo Responsibilities
- Wallet-first UX and membership flow orchestration.
- API contract and schema definitions.
- Policy/legal/public messaging consistency.
Backend Responsibilities
- Intent/verify/quote/confirm/status endpoints.
- Deterministic state transitions and persistence.
- Chain verification and policy hash enforcement.
- Member app channel endpoints for device registration and event polling.
- Governance installer endpoints for signed package authorization and activation confirmation.
- Marketplace catalog/checkout auth gates so production commerce is app-session scoped.
- Org boundary claim resolution (
org_root_idbinding) for workspace-targeted paid actions. - Availability class transitions (
connected/sovereign) and lease/capsule state resolution. - Principal role resolution (
org_root_ownervsworkspace_member) for admin/support gating.
Runtime/Kernel Responsibilities
- Membership and entitlement gates at activation points.
- Fail-closed behavior for uncertain states.
- Evidence receipt generation and retention.
- Signed package verification and policy hash checks before governance activation.
- Availability state machine enforcement (
ACTIVE -> GRACE -> CONTINUITY -> PARKED). - Growth-action block enforcement during
CONTINUITY. - Paid execution pause enforcement during
PARKED. - Owner-only enforcement for admin health/config/update/support operations.
Required Integration Contract
- Backend API shape follows
docs/api/secret-system.openapi.yaml. - Policy/offer/entitlement payloads validate against schemas.
- Runtime consumes entitlement state and policy hash from backend evidence.
- Paid action requests carry boundary claim inputs (
org_root_id,workspace_id,principal_id).