@openplanr/protocol 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +82 -0
- package/lib/dashboard/closed-json-contract.mjs +141 -0
- package/lib/dashboard/generated/operate-experience-surface-schema-data.mjs +67 -0
- package/lib/dashboard/generated/operate-review-schema-data.mjs +35 -0
- package/lib/dashboard/generated/operate-schema-token-codec.mjs +127 -0
- package/lib/dashboard/operate-experience-audit-display-contract.d.mts +196 -0
- package/lib/dashboard/operate-experience-audit-display-contract.mjs +700 -0
- package/lib/dashboard/operate-experience-display-contract.d.mts +572 -0
- package/lib/dashboard/operate-experience-display-contract.mjs +1007 -0
- package/lib/dashboard/operate-experience-surface-contract.d.mts +157 -0
- package/lib/dashboard/operate-experience-surface-contract.mjs +91 -0
- package/lib/dashboard/operate-review-contract.d.mts +34 -0
- package/lib/dashboard/operate-review-contract.mjs +175 -0
- package/lib/dashboard/operate-review-display-workspace-contract.d.mts +54 -0
- package/lib/dashboard/operate-review-display-workspace-contract.mjs +258 -0
- package/lib/dashboard/operate-review-payload-safety.d.mts +7 -0
- package/lib/dashboard/operate-review-payload-safety.mjs +42 -0
- package/lib/dashboard/operate-review-workspace-projection-v2.d.mts +218 -0
- package/lib/protocol/index.d.ts +2638 -0
- package/package.json +115 -0
- package/registries/commands.json +1952 -0
- package/registries/diagram-grammars.json +2407 -0
- package/registries/diagram-semantic-patterns.json +111 -0
- package/registries/output-paths.json +40 -0
- package/registries/outputs.json +864 -0
- package/registries/roles.json +661 -0
- package/registries/rules.json +261 -0
- package/registries/skill-host-profiles.json +247 -0
- package/registries/skill-modules.json +1112 -0
- package/registries/skill-routing.json +389 -0
- package/registries/skills.json +1545 -0
- package/registries/task-kinds.json +220 -0
- package/registry/adapters.json +110 -0
- package/registry/artifact-theme.json +60 -0
- package/registry/evaluation-graders.json +303 -0
- package/registry/evaluation-host-profiles.json +131 -0
- package/registry/frozen-commands.json +15 -0
- package/registry/landing-operations.json +20 -0
- package/registry/landing-workflows.json +70 -0
- package/registry/live-evidence-providers.json +1 -0
- package/registry/operate-v2-contracts.json +5965 -0
- package/registry/professional-skills.json +115 -0
- package/registry/roles.json +14 -0
- package/registry/ship-review-specialists.json +42 -0
- package/schemas/v1.0.0/design-approved.schema.json +35 -0
- package/schemas/v1.0.0/design-feedback.schema.json +169 -0
- package/schemas/v1.0.0/design-manifest.schema.json +90 -0
- package/schemas/v1.0.0/design-session.schema.json +73 -0
- package/schemas/v1.0.0/graph.schema.json +100 -0
- package/schemas/v1.0.0/pipeline-shipped.schema.json +154 -0
- package/schemas/v1.0.0/run-manifest.schema.json +81 -0
- package/schemas/v1.0.0/spec.schema.json +120 -0
- package/schemas/v1.0.0/stack.schema.json +184 -0
- package/schemas/v1.0.0/story.schema.json +95 -0
- package/schemas/v1.0.0/task.schema.json +171 -0
- package/schemas/v1.0.0/taste-profile.schema.json +96 -0
- package/schemas/v1.1.0/adapter-registry.schema.json +72 -0
- package/schemas/v1.1.0/artifact-envelope.schema.json +142 -0
- package/schemas/v1.1.0/artifact-paste.schema.json +49 -0
- package/schemas/v1.1.0/artifact-review.schema.json +97 -0
- package/schemas/v1.1.0/artifact-room-descriptor.schema.json +39 -0
- package/schemas/v1.1.0/artifact-room-event.schema.json +184 -0
- package/schemas/v1.1.0/artifact-room-signed-event.schema.json +58 -0
- package/schemas/v1.1.0/artifact-theme.schema.json +139 -0
- package/schemas/v1.1.0/browser-qa-gate.schema.json +21 -0
- package/schemas/v1.1.0/browser-qa-result.schema.json +24 -0
- package/schemas/v1.1.0/browser-qa-session.schema.json +12 -0
- package/schemas/v1.1.0/ecosystem-manifest.schema.json +46 -0
- package/schemas/v1.1.0/investigation-diagnosis.schema.json +12 -0
- package/schemas/v1.1.0/investigation-event.schema.json +15 -0
- package/schemas/v1.1.0/investigation-experiment.schema.json +17 -0
- package/schemas/v1.1.0/investigation-fix.schema.json +11 -0
- package/schemas/v1.1.0/investigation-hypothesis.schema.json +6 -0
- package/schemas/v1.1.0/investigation-observation.schema.json +10 -0
- package/schemas/v1.1.0/investigation-receipt.schema.json +7 -0
- package/schemas/v1.1.0/investigation-record.schema.json +7 -0
- package/schemas/v1.1.0/investigation-request.schema.json +34 -0
- package/schemas/v1.1.0/planning-review-event.schema.json +64 -0
- package/schemas/v1.1.0/planning-review-receipt.schema.json +19 -0
- package/schemas/v1.1.0/planning-review-record.schema.json +176 -0
- package/schemas/v1.1.0/planning-review-state.schema.json +19 -0
- package/schemas/v1.1.0/professional-skills.schema.json +105 -0
- package/schemas/v1.1.0/professional-specification.schema.json +111 -0
- package/schemas/v1.1.0/provenance-event.schema.json +82 -0
- package/schemas/v1.1.0/role-registry.schema.json +28 -0
- package/schemas/v1.1.0/runtime-lock.schema.json +39 -0
- package/schemas/v1.1.0/ship-closure.schema.json +353 -0
- package/schemas/v1.1.0/ship-review-specialist-registry.schema.json +29 -0
- package/schemas/v1.1.0/ship-risk-classification.schema.json +48 -0
- package/schemas/v1.1.0/specialist-review-result.schema.json +19 -0
- package/schemas/v1.10.0/design-review-bundle.schema.json +584 -0
- package/schemas/v1.10.0/design-review-context.schema.json +191 -0
- package/schemas/v1.10.0/design-review-handoff.schema.json +407 -0
- package/schemas/v1.10.0/design-review-metadata-payload.schema.json +106 -0
- package/schemas/v1.11.0/design-review-metadata-payload.schema.json +107 -0
- package/schemas/v1.12.0/enterprise-access-context.schema.json +217 -0
- package/schemas/v1.12.0/enterprise-agent-handoff.schema.json +508 -0
- package/schemas/v1.12.0/enterprise-artifact-revision.schema.json +87 -0
- package/schemas/v1.12.0/enterprise-change-proposal.schema.json +359 -0
- package/schemas/v1.12.0/enterprise-evidence-reference.schema.json +147 -0
- package/schemas/v1.12.0/enterprise-review-thread.schema.json +278 -0
- package/schemas/v1.12.0/enterprise-sync-state.schema.json +169 -0
- package/schemas/v1.2.0/adapter-registry.schema.json +83 -0
- package/schemas/v1.2.0/dashboard-bootstrap.schema.json +219 -0
- package/schemas/v1.2.0/ecosystem-release-operation.schema.json +90 -0
- package/schemas/v1.2.0/ecosystem-saga.schema.json +54 -0
- package/schemas/v1.2.0/evidence-diagnostic.schema.json +77 -0
- package/schemas/v1.2.0/guided-answer-envelope.schema.json +73 -0
- package/schemas/v1.2.0/guided-confirmation.schema.json +128 -0
- package/schemas/v1.2.0/guided-question.schema.json +242 -0
- package/schemas/v1.2.0/guided-questionnaire.schema.json +278 -0
- package/schemas/v1.2.0/guided-session.schema.json +141 -0
- package/schemas/v1.2.0/landing-confirmation.schema.json +17 -0
- package/schemas/v1.2.0/landing-event.schema.json +12 -0
- package/schemas/v1.2.0/landing-operation-registry.schema.json +16 -0
- package/schemas/v1.2.0/landing-phase-receipt.schema.json +19 -0
- package/schemas/v1.2.0/landing-plan.schema.json +36 -0
- package/schemas/v1.2.0/landing-receipt.schema.json +12 -0
- package/schemas/v1.2.0/landing-workflow-catalog.schema.json +143 -0
- package/schemas/v1.2.0/operate-action-display-workspace.schema.json +119 -0
- package/schemas/v1.2.0/operate-cycle-display-workspace.schema.json +109 -0
- package/schemas/v1.2.0/operate-executive-board-display-surface.schema.json +72 -0
- package/schemas/v1.2.0/operate-experience-audit-display-surface.schema.json +328 -0
- package/schemas/v1.2.0/operate-experience-display-surface.schema.json +46 -0
- package/schemas/v1.2.0/operate-experience-surface.schema.json +590 -0
- package/schemas/v1.2.0/operate-recovery-display-surface.schema.json +85 -0
- package/schemas/v1.2.0/structured-action.schema.json +91 -0
- package/schemas/v1.3.0/adapter-registry.schema.json +84 -0
- package/schemas/v1.3.0/ecosystem-manifest.schema.json +120 -0
- package/schemas/v1.3.0/release-compatibility-claim.schema.json +46 -0
- package/schemas/v1.3.0/release-ledger-receipt.schema.json +45 -0
- package/schemas/v1.3.0/release-ledger.schema.json +60 -0
- package/schemas/v1.4.0/adapter-registry.schema.json +62 -0
- package/schemas/v1.4.0/evaluation-aggregate-report.schema.json +166 -0
- package/schemas/v1.4.0/evaluation-budget.schema.json +49 -0
- package/schemas/v1.4.0/evaluation-corpus.schema.json +93 -0
- package/schemas/v1.4.0/evaluation-fixture.schema.json +64 -0
- package/schemas/v1.4.0/evaluation-gate-policy.schema.json +33 -0
- package/schemas/v1.4.0/evaluation-grader-registration.schema.json +141 -0
- package/schemas/v1.4.0/evaluation-grader-registry.schema.json +20 -0
- package/schemas/v1.4.0/evaluation-host-profile-registry.schema.json +20 -0
- package/schemas/v1.4.0/evaluation-host-profile.schema.json +73 -0
- package/schemas/v1.4.0/evaluation-observation.schema.json +76 -0
- package/schemas/v1.4.0/evaluation-run-result.schema.json +84 -0
- package/schemas/v1.4.0/evaluation-scenario.schema.json +231 -0
- package/schemas/v1.4.0/evaluation-waiver.schema.json +65 -0
- package/schemas/v1.4.0/skill-certification-receipt.schema.json +103 -0
- package/schemas/v1.5.0/command-catalog.schema.json +296 -0
- package/schemas/v1.5.0/common.schema.json +261 -0
- package/schemas/v1.5.0/generated-asset-manifest.schema.json +313 -0
- package/schemas/v1.5.0/implementation-result.schema.json +152 -0
- package/schemas/v1.5.0/migration-preservation-manifest.schema.json +749 -0
- package/schemas/v1.5.0/output-catalog.schema.json +210 -0
- package/schemas/v1.5.0/output-path-catalog.schema.json +81 -0
- package/schemas/v1.5.0/role-registry.schema.json +261 -0
- package/schemas/v1.5.0/rule-catalog.schema.json +130 -0
- package/schemas/v1.5.0/skill-catalog.schema.json +303 -0
- package/schemas/v1.5.0/task-kind-registry.schema.json +167 -0
- package/schemas/v1.5.0/task-manifest.schema.json +373 -0
- package/schemas/v1.5.0/task-output-manifest.schema.json +462 -0
- package/schemas/v1.6.0/common.schema.json +462 -0
- package/schemas/v1.6.0/diagram-consumer-reference.schema.json +167 -0
- package/schemas/v1.6.0/diagram-document.schema.json +699 -0
- package/schemas/v1.6.0/diagram-fidelity-report.schema.json +137 -0
- package/schemas/v1.6.0/diagram-manifest.schema.json +162 -0
- package/schemas/v1.6.0/diagram-quality-report.schema.json +148 -0
- package/schemas/v1.6.0/diagram-review-binding.schema.json +132 -0
- package/schemas/v1.6.0/diagram-semantic-pattern-registry.schema.json +90 -0
- package/schemas/v1.6.0/diagram-type-registry.schema.json +373 -0
- package/schemas/v1.6.0/generated-asset-manifest.schema.json +103 -0
- package/schemas/v1.6.0/skill-catalog.schema.json +84 -0
- package/schemas/v1.6.0/skill-completion-receipt.schema.json +72 -0
- package/schemas/v1.6.0/skill-consent-record.schema.json +74 -0
- package/schemas/v1.6.0/skill-host-profile-registry.schema.json +526 -0
- package/schemas/v1.6.0/skill-learning-record.schema.json +116 -0
- package/schemas/v1.6.0/skill-module-registry.schema.json +108 -0
- package/schemas/v1.6.0/skill-routing-registry.schema.json +93 -0
- package/schemas/v1.6.0/skill-session.schema.json +73 -0
- package/schemas/v1.6.0/skill-source.schema.json +169 -0
- package/schemas/v1.7.0/common.schema.json +464 -0
- package/schemas/v1.7.0/generated-asset-manifest.schema.json +103 -0
- package/schemas/v1.7.0/planning-id-sequence.schema.json +50 -0
- package/schemas/v1.7.0/request-authority.schema.json +71 -0
- package/schemas/v1.7.0/skill-catalog.schema.json +84 -0
- package/schemas/v1.7.0/skill-completion-receipt.schema.json +72 -0
- package/schemas/v1.7.0/skill-consent-record.schema.json +74 -0
- package/schemas/v1.7.0/skill-host-profile-registry.schema.json +526 -0
- package/schemas/v1.7.0/skill-learning-record.schema.json +116 -0
- package/schemas/v1.7.0/skill-module-registry.schema.json +108 -0
- package/schemas/v1.7.0/skill-routing-registry.schema.json +93 -0
- package/schemas/v1.7.0/skill-session.schema.json +73 -0
- package/schemas/v1.7.0/skill-source.schema.json +169 -0
- package/schemas/v1.7.0/spec.schema.json +117 -0
- package/schemas/v1.7.0/story.schema.json +107 -0
- package/schemas/v1.7.0/task.schema.json +217 -0
- package/schemas/v1.8.0/common.schema.json +96 -0
- package/schemas/v1.8.0/skill-package.schema.json +63 -0
- package/schemas/v1.8.0/utility-command-catalog.schema.json +82 -0
- package/schemas/v1.9.0/design-document.schema.json +306 -0
- package/schemas/v1.9.0/design-review-bundle.schema.json +346 -0
- package/schemas/v1.9.0/design-review-workspace.schema.json +108 -0
- package/schemas/v1.9.0/design-workspace-create.schema.json +170 -0
- package/schemas/v1.9.0/design-workspace-event.schema.json +97 -0
- package/schemas/v1.9.0/design-workspace-revision.schema.json +56 -0
- package/schemas/v2.0.0/agent-runtime-manifest.schema.json +59 -0
- package/schemas/v2.0.0/business-operating-snapshot-projection.schema.json +14 -0
- package/schemas/v2.0.0/operate-allowed-action.schema.json +181 -0
- package/schemas/v2.0.0/operate-api-envelope.schema.json +225 -0
- package/schemas/v2.0.0/operate-capability-provider-registration.schema.json +30 -0
- package/schemas/v2.0.0/operate-domain-registration.schema.json +284 -0
- package/schemas/v2.0.0/operate-evidence-provider-registration.schema.json +55 -0
- package/schemas/v2.0.0/operate-evidence-resolver-registration.schema.json +46 -0
- package/schemas/v2.0.0/operate-executor-registration.schema.json +27 -0
- package/schemas/v2.0.0/operate-experience-live-patch.schema.json +47 -0
- package/schemas/v2.0.0/operate-experience-preview.schema.json +51 -0
- package/schemas/v2.0.0/operate-experience-view.schema.json +281 -0
- package/schemas/v2.0.0/operate-live-evidence-provider-registration.schema.json +48 -0
- package/schemas/v2.0.0/operate-live-evidence-provider-registry.schema.json +17 -0
- package/schemas/v2.0.0/operate-metric-provider-registration.schema.json +12 -0
- package/schemas/v2.0.0/operate-policy-provider-registration.schema.json +33 -0
- package/schemas/v2.0.0/operate-review-bound-submission.schema.json +29 -0
- package/schemas/v2.0.0/operate-review-display-workspace.schema.json +390 -0
- package/schemas/v2.0.0/operate-snapshot-provider-registration.schema.json +16 -0
- package/schemas/v2.0.0/operate-tool-call.schema.json +172 -0
- package/schemas/v2.0.0/operate-verification-provider-registration.schema.json +12 -0
- package/schemas/v2.0.0/operating-action-policy.schema.json +31 -0
- package/schemas/v2.0.0/operating-action-verification-plan.schema.json +13 -0
- package/schemas/v2.0.0/operating-action.schema.json +86 -0
- package/schemas/v2.0.0/operating-advisor-result.schema.json +394 -0
- package/schemas/v2.0.0/operating-approval-record.schema.json +23 -0
- package/schemas/v2.0.0/operating-approval-requirement.schema.json +31 -0
- package/schemas/v2.0.0/operating-artifact.schema.json +52 -0
- package/schemas/v2.0.0/operating-assignment.schema.json +437 -0
- package/schemas/v2.0.0/operating-assumption.schema.json +16 -0
- package/schemas/v2.0.0/operating-capability-availability.schema.json +15 -0
- package/schemas/v2.0.0/operating-capability-grant.schema.json +14 -0
- package/schemas/v2.0.0/operating-challenger-review.schema.json +204 -0
- package/schemas/v2.0.0/operating-checkpoint.schema.json +43 -0
- package/schemas/v2.0.0/operating-claim.schema.json +17 -0
- package/schemas/v2.0.0/operating-connector-checkpoint.schema.json +28 -0
- package/schemas/v2.0.0/operating-context-capture.schema.json +74 -0
- package/schemas/v2.0.0/operating-cycle-input-binding.schema.json +30 -0
- package/schemas/v2.0.0/operating-cycle.schema.json +42 -0
- package/schemas/v2.0.0/operating-decision-ledger.schema.json +237 -0
- package/schemas/v2.0.0/operating-decision.schema.json +137 -0
- package/schemas/v2.0.0/operating-delivery-evidence.schema.json +46 -0
- package/schemas/v2.0.0/operating-delivery-route.schema.json +43 -0
- package/schemas/v2.0.0/operating-delta.schema.json +13 -0
- package/schemas/v2.0.0/operating-domain-projection.schema.json +15 -0
- package/schemas/v2.0.0/operating-event-trigger.schema.json +11 -0
- package/schemas/v2.0.0/operating-event.schema.json +505 -0
- package/schemas/v2.0.0/operating-evidence-candidate.schema.json +88 -0
- package/schemas/v2.0.0/operating-evidence-edge.schema.json +39 -0
- package/schemas/v2.0.0/operating-evidence-graph.schema.json +25 -0
- package/schemas/v2.0.0/operating-evidence-observation.schema.json +48 -0
- package/schemas/v2.0.0/operating-evidence-ref.schema.json +51 -0
- package/schemas/v2.0.0/operating-evidence-resolution.schema.json +54 -0
- package/schemas/v2.0.0/operating-execution-result.schema.json +23 -0
- package/schemas/v2.0.0/operating-executive-board.schema.json +78 -0
- package/schemas/v2.0.0/operating-finding.schema.json +116 -0
- package/schemas/v2.0.0/operating-governed-operation.schema.json +54 -0
- package/schemas/v2.0.0/operating-intelligence-input-bundle.schema.json +128 -0
- package/schemas/v2.0.0/operating-intelligence-plan.schema.json +302 -0
- package/schemas/v2.0.0/operating-learning-receipt.schema.json +31 -0
- package/schemas/v2.0.0/operating-learning.schema.json +13 -0
- package/schemas/v2.0.0/operating-live-evidence-consent-record.schema.json +42 -0
- package/schemas/v2.0.0/operating-live-evidence-ingestion.schema.json +31 -0
- package/schemas/v2.0.0/operating-measurement-plan.schema.json +18 -0
- package/schemas/v2.0.0/operating-measurement-schedule-receipt.schema.json +7 -0
- package/schemas/v2.0.0/operating-measurement-schedule.schema.json +16 -0
- package/schemas/v2.0.0/operating-metric-observation.schema.json +15 -0
- package/schemas/v2.0.0/operating-metric.schema.json +18 -0
- package/schemas/v2.0.0/operating-model-state.schema.json +36 -0
- package/schemas/v2.0.0/operating-objective.schema.json +21 -0
- package/schemas/v2.0.0/operating-origin.schema.json +31 -0
- package/schemas/v2.0.0/operating-outcome-evaluation.schema.json +46 -0
- package/schemas/v2.0.0/operating-outcome.schema.json +13 -0
- package/schemas/v2.0.0/operating-planning-proposal.schema.json +45 -0
- package/schemas/v2.0.0/operating-policy-evaluation.schema.json +28 -0
- package/schemas/v2.0.0/operating-review-read.schema.json +217 -0
- package/schemas/v2.0.0/operating-review-receipt.schema.json +64 -0
- package/schemas/v2.0.0/operating-review.schema.json +47 -0
- package/schemas/v2.0.0/operating-risk.schema.json +96 -0
- package/schemas/v2.0.0/operating-rollback-plan.schema.json +10 -0
- package/schemas/v2.0.0/operating-rollback-result.schema.json +20 -0
- package/schemas/v2.0.0/operating-runtime-state.schema.json +289 -0
- package/schemas/v2.0.0/operating-scenario.schema.json +13 -0
- package/schemas/v2.0.0/operating-snapshot.schema.json +38 -0
- package/schemas/v2.0.0/operating-submission.schema.json +34 -0
- package/schemas/v2.0.0/operating-trace-matrix.schema.json +176 -0
- package/schemas/v2.0.0/operating-work-change-set.schema.json +89 -0
- package/schemas/v2.0.0/operating-work-ledger.schema.json +40 -0
- package/schemas/v2.0.0/software-operating-snapshot-projection.schema.json +14 -0
- package/src/browser-contracts.d.mts +5 -0
- package/src/browser-contracts.mjs +40 -0
- package/src/canonical-json.d.mts +5 -0
- package/src/canonical-json.mjs +142 -0
- package/src/compat/live-evidence-v2.mjs +1019 -0
- package/src/compat/operate-experience-live-patch.mjs +66 -0
- package/src/compat/operating-planning-contracts.mjs +114 -0
- package/src/contracts.d.mts +42 -0
- package/src/contracts.mjs +990 -0
- package/src/design-contracts.d.mts +62 -0
- package/src/design-contracts.mjs +186 -0
- package/src/design-publication-contracts.d.mts +4 -0
- package/src/design-publication-contracts.mjs +85 -0
- package/src/diagram-contracts.d.mts +19 -0
- package/src/diagram-contracts.mjs +28 -0
- package/src/enterprise-contracts.d.mts +107 -0
- package/src/enterprise-contracts.mjs +463 -0
- package/src/errors.d.mts +11 -0
- package/src/errors.mjs +109 -0
- package/src/generated/canonical-registries.mjs +5554 -0
- package/src/generated/contract-catalog-v2.mjs +7076 -0
- package/src/generated/diagram-registries.mjs +2529 -0
- package/src/index.d.mts +10 -0
- package/src/index.mjs +40 -0
- package/src/json-schema.d.mts +7 -0
- package/src/json-schema.mjs +283 -0
- package/src/planning-contracts.d.mts +10 -0
- package/src/planning-contracts.mjs +53 -0
- package/src/registries.d.mts +40 -0
- package/src/registries.mjs +261 -0
- package/src/review-experience-contracts.d.mts +11 -0
- package/src/review-experience-contracts.mjs +103 -0
- package/src/semver.d.mts +2 -0
- package/src/semver.mjs +7 -0
- package/src/skill-source-contracts.d.mts +25 -0
- package/src/skill-source-contracts.mjs +105 -0
- package/src/task-contracts.d.mts +7 -0
- package/src/task-contracts.mjs +130 -0
- package/src/workspace-contracts.d.mts +26 -0
- package/src/workspace-contracts.mjs +83 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/landing-confirmation.schema.json",
|
|
4
|
+
"title": "Protocol 1.2 Landing Confirmation Proof",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "confirmationId", "authority", "ownerActorId", "planId", "planHash", "shipReceiptHash", "phaseId", "operationIds", "effectSet", "currentTargetHash", "docket", "docketHash", "choice", "issuedAt", "expiresAt", "opaqueCapabilityHash", "confirmationHash"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": { "const": "landing-confirmation" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "1.2.0" },
|
|
10
|
+
"confirmationId": { "type": "string", "pattern": "^lcnf_[a-f0-9]{32}$" }, "authority": { "const": "none" }, "ownerActorId": { "type": "string", "minLength": 1, "maxLength": 128 }, "planId": { "type": "string", "pattern": "^land_[a-f0-9]{32}$" }, "planHash": { "$ref": "#/$defs/hash" }, "shipReceiptHash": { "$ref": "#/$defs/hash" }, "phaseId": { "$ref": "#/$defs/id" }, "operationIds": { "type": "array", "minItems": 1, "maxItems": 16, "uniqueItems": true, "items": { "type": "string", "pattern": "^lop_[a-f0-9]{32}$" } }, "effectSet": { "type": "array", "minItems": 1, "maxItems": 4, "uniqueItems": true, "items": { "enum": ["commit", "push-or-pr", "merge", "publish", "staging-deploy", "production-deploy", "rollback-or-compensation"] } }, "currentTargetHash": { "$ref": "#/$defs/hash" }, "docket": { "$ref": "#/$defs/docket" }, "docketHash": { "$ref": "#/$defs/hash" }, "choice": { "const": "confirm" }, "issuedAt": { "type": "string", "format": "date-time" }, "expiresAt": { "type": "string", "format": "date-time" }, "opaqueCapabilityHash": { "$ref": "#/$defs/hash" }, "confirmationHash": { "$ref": "#/$defs/hash" }
|
|
11
|
+
},
|
|
12
|
+
"allOf": [{ "properties": { "operationIds": { "maxItems": 1 }, "docket": { "properties": { "operationIds": { "maxItems": 1 } } } } }],
|
|
13
|
+
"$defs": {
|
|
14
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
15
|
+
"docket": { "type": "object", "additionalProperties": false, "required": ["sourceReceiptHash", "candidateDigest", "targetHash", "currentTargetHash", "operationIds", "effectSet", "inputDigest", "providerPreconditionHashes", "sensitivity", "consequences", "recoveryClass", "canaryPolicyHash", "containmentPolicyHash", "expiresAt", "changedStateDiffHash", "authorityBoundary", "choices", "defaultChoice", "cancelEffect"], "properties": { "sourceReceiptHash": { "$ref": "#/$defs/hash" }, "candidateDigest": { "$ref": "#/$defs/hash" }, "targetHash": { "$ref": "#/$defs/hash" }, "currentTargetHash": { "$ref": "#/$defs/hash" }, "operationIds": { "type": "array", "minItems": 1, "maxItems": 16, "uniqueItems": true, "items": { "type": "string", "pattern": "^lop_[a-f0-9]{32}$" } }, "effectSet": { "type": "array", "minItems": 1, "maxItems": 4, "uniqueItems": true, "items": { "enum": ["commit", "push-or-pr", "merge", "publish", "staging-deploy", "production-deploy", "rollback-or-compensation"] } }, "inputDigest": { "$ref": "#/$defs/hash" }, "providerPreconditionHashes": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } }, "sensitivity": { "enum": ["public", "internal", "confidential", "restricted"] }, "consequences": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "type": "string", "minLength": 1, "maxLength": 512 } }, "recoveryClass": { "enum": ["reversible", "compensatable", "irreversible"] }, "canaryPolicyHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "containmentPolicyHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "expiresAt": { "type": "string", "format": "date-time" }, "changedStateDiffHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "authorityBoundary": { "const": "portable-confirmation-is-not-effect-authority" }, "choices": { "type": "array", "minItems": 2, "maxItems": 2, "prefixItems": [{ "const": "confirm" }, { "const": "cancel" }], "items": false }, "defaultChoice": { "const": null }, "cancelEffect": { "const": "none" } } }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/landing-event.schema.json",
|
|
4
|
+
"title": "Protocol 1.2 Landing Event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "eventId", "sequence", "runId", "type", "fromState", "toState", "actor", "planHash", "requestHash", "operationId", "confirmationHash", "targetStateHash", "trafficStateHash", "residualStateHash", "previousEventHash", "timestamp", "eventHash"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": { "const": "landing-event" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "1.2.0" }, "eventId": { "type": "string", "pattern": "^levt_[a-f0-9]{32}$" }, "sequence": { "type": "integer", "minimum": 1 }, "runId": { "type": "string", "pattern": "^lrun_[a-f0-9]{32}$" }, "type": { "enum": ["plan.created", "phase.intent-recorded", "phase.dispatching", "phase.succeeded", "phase.failed", "phase.blocked", "phase.uncertain", "containment.applied", "recovery.required", "recovery.confirmed", "recovery.succeeded", "recovery.failed", "landing.completed", "landing.blocked"] }, "fromState": { "$ref": "#/$defs/state" }, "toState": { "$ref": "#/$defs/state" }, "actor": { "type": "object", "additionalProperties": false, "required": ["kind", "id"], "properties": { "kind": { "enum": ["human", "engine", "runtime"] }, "id": { "type": "string", "minLength": 1, "maxLength": 128 } } }, "planHash": { "$ref": "#/$defs/hash" }, "requestHash": { "$ref": "#/$defs/hash" }, "operationId": { "type": ["string", "null"], "pattern": "^lop_[a-f0-9]{32}$" }, "confirmationHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "targetStateHash": { "$ref": "#/$defs/hash" }, "trafficStateHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "residualStateHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "previousEventHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "timestamp": { "type": "string", "format": "date-time" }, "eventHash": { "$ref": "#/$defs/hash" }
|
|
10
|
+
},
|
|
11
|
+
"$defs": { "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "state": { "enum": ["planned", "awaiting-confirmation", "intent-recorded", "dispatching", "verifying", "recovery_required", "completed", "blocked", "uncertain"] } }
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/landing-operation-registry.schema.json",
|
|
4
|
+
"title": "Protocol 1.2 Landing Operation Registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "registryVersion", "authority", "operations", "registryHash"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": { "const": "landing-operation-registry" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "1.2.0" }, "registryVersion": { "const": "1.0.0" }, "authority": { "const": "none" }, "operations": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "#/$defs/operation" } }, "registryHash": { "$ref": "#/$defs/hash" }
|
|
10
|
+
},
|
|
11
|
+
"$defs": {
|
|
12
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
13
|
+
"operation": { "type": "object", "additionalProperties": false, "required": ["operationId", "operationVersion", "kind", "effectClass", "recoveryClass", "runtimeAdapterRequired", "portableAuthority", "inputContract", "outputContract", "compatibleOperateContracts", "registrationHash"], "properties": { "operationId": { "$ref": "#/$defs/id" }, "operationVersion": { "$ref": "#/$defs/version" }, "kind": { "enum": ["commit", "pull-request", "merge", "package", "publish", "deploy", "canary", "verify", "rollback", "compensate"] }, "effectClass": { "enum": ["project-write", "provider-call", "external-effect", "destructive"] }, "recoveryClass": { "enum": ["reversible", "compensatable", "irreversible"] }, "runtimeAdapterRequired": { "const": true }, "portableAuthority": { "const": "none" }, "inputContract": { "$ref": "#/$defs/contract" }, "outputContract": { "$ref": "#/$defs/contract" }, "compatibleOperateContracts": { "type": "array", "maxItems": 4, "uniqueItems": true, "items": { "enum": ["operate-executor-registration", "operating-governed-operation", "operating-action-verification-plan", "operating-checkpoint", "operating-rollback-plan", "operating-rollback-result"] } }, "registrationHash": { "$ref": "#/$defs/hash" } } },
|
|
14
|
+
"contract": { "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion", "protocolVersion"], "properties": { "schemaId": { "$ref": "#/$defs/id" }, "schemaVersion": { "$ref": "#/$defs/version" }, "protocolVersion": { "$ref": "#/$defs/version" } } }
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/landing-phase-receipt.schema.json",
|
|
4
|
+
"title": "Protocol 1.2 Landing Phase Receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "receiptId", "runId", "planId", "planHash", "phaseId", "operationId", "operationRegistrationHash", "status", "effectClass", "authority", "requestHash", "attemptIdentity", "confirmation", "targetBeforeHash", "targetAfterHash", "evidenceHashes", "canary", "containment", "recovery", "operateBinding", "previousReceiptHash", "startedAt", "completedAt", "receiptHash"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": { "const": "landing-phase-receipt" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "1.2.0" }, "receiptId": { "type": "string", "pattern": "^lprc_[a-f0-9]{32}$" }, "runId": { "type": "string", "pattern": "^lrun_[a-f0-9]{32}$" }, "planId": { "type": "string", "pattern": "^land_[a-f0-9]{32}$" }, "planHash": { "$ref": "#/$defs/hash" }, "phaseId": { "$ref": "#/$defs/id" }, "operationId": { "type": "string", "pattern": "^lop_[a-f0-9]{32}$" }, "operationRegistrationHash": { "$ref": "#/$defs/hash" }, "status": { "enum": ["succeeded", "failed", "blocked", "uncertain", "recovery_required"] }, "effectClass": { "enum": ["project-write", "provider-call", "external-effect", "destructive"] }, "authority": { "const": "consumed-runtime-capability" }, "requestHash": { "$ref": "#/$defs/hash" }, "attemptIdentity": { "type": "string", "pattern": "^latm_[a-f0-9]{32}$" }, "confirmation": { "type": "object", "additionalProperties": false, "required": ["confirmationId", "confirmationHash", "opaqueCapabilityHash", "consumedAt"], "properties": { "confirmationId": { "type": "string", "pattern": "^lcnf_[a-f0-9]{32}$" }, "confirmationHash": { "$ref": "#/$defs/hash" }, "opaqueCapabilityHash": { "$ref": "#/$defs/hash" }, "consumedAt": { "type": "string", "format": "date-time" } } }, "targetBeforeHash": { "$ref": "#/$defs/hash" }, "targetAfterHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "evidenceHashes": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } }, "canary": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/canary" }] }, "containment": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/containment" }] }, "recovery": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/recovery" }] }, "operateBinding": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/recordRef" }] }, "previousReceiptHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "startedAt": { "type": "string", "format": "date-time" }, "completedAt": { "type": "string", "format": "date-time" }, "receiptHash": { "$ref": "#/$defs/hash" }
|
|
10
|
+
},
|
|
11
|
+
"allOf": [{ "if": { "properties": { "status": { "const": "recovery_required" } }, "required": ["status"] }, "then": { "properties": { "containment": { "$ref": "#/$defs/containment" }, "recovery": { "$ref": "#/$defs/recovery" } } } }],
|
|
12
|
+
"$defs": {
|
|
13
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
14
|
+
"canary": { "type": "object", "additionalProperties": false, "required": ["status", "windowHash", "thresholdHash", "minimumEvidence", "artifactHashes", "absenceHashes"], "properties": { "status": { "enum": ["passed", "failed", "insufficient-evidence"] }, "windowHash": { "$ref": "#/$defs/hash" }, "thresholdHash": { "$ref": "#/$defs/hash" }, "minimumEvidence": { "type": "integer", "minimum": 1 }, "artifactHashes": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } }, "absenceHashes": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } } } },
|
|
15
|
+
"containment": { "type": "object", "additionalProperties": false, "required": ["policyHash", "applied", "stopPromotion", "stopNewTraffic", "failedTargetIsolated", "lastKnownGoodRetained", "trafficStateHash", "residualStateHash", "appliedAt"], "properties": { "policyHash": { "$ref": "#/$defs/hash" }, "applied": { "const": true }, "stopPromotion": { "const": true }, "stopNewTraffic": { "const": true }, "failedTargetIsolated": { "const": true }, "lastKnownGoodRetained": { "type": "boolean" }, "trafficStateHash": { "$ref": "#/$defs/hash" }, "residualStateHash": { "$ref": "#/$defs/hash" }, "appliedAt": { "type": "string", "format": "date-time" } } },
|
|
16
|
+
"recovery": { "type": "object", "additionalProperties": false, "required": ["state", "trafficStateHash", "residualStateHash", "expiresAt", "consequences", "choices", "defaultChoice", "authority"], "properties": { "state": { "const": "recovery_required" }, "trafficStateHash": { "$ref": "#/$defs/hash" }, "residualStateHash": { "$ref": "#/$defs/hash" }, "expiresAt": { "type": "string", "format": "date-time" }, "consequences": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "type": "string", "minLength": 1, "maxLength": 512 } }, "choices": { "type": "array", "minItems": 1, "maxItems": 3, "uniqueItems": true, "items": { "enum": ["rollback", "compensate", "forward-fix"] } }, "defaultChoice": { "const": null }, "authority": { "const": "none" } } },
|
|
17
|
+
"recordRef": { "type": "object", "additionalProperties": false, "required": ["contractId", "schemaVersion", "protocolVersion", "recordId", "recordDigest"], "properties": { "contractId": { "enum": ["operating-governed-operation", "operating-action-verification-plan", "operating-checkpoint", "operating-rollback-plan", "operating-rollback-result"] }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "recordId": { "type": "string", "minLength": 1, "maxLength": 128 }, "recordDigest": { "$ref": "#/$defs/hash" } } }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/landing-plan.schema.json",
|
|
4
|
+
"title": "Protocol 1.2 Landing Plan",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "planId", "authority", "shipClosure", "feature", "candidateDigest", "candidateInventoryDigest", "repositories", "currentTargetHash", "operations", "preconditions", "createdAt", "expiresAt", "planHash"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": { "const": "landing-plan" },
|
|
10
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
11
|
+
"protocolVersion": { "const": "1.2.0" },
|
|
12
|
+
"planId": { "type": "string", "pattern": "^land_[a-f0-9]{32}$" },
|
|
13
|
+
"authority": { "const": "none" },
|
|
14
|
+
"shipClosure": { "$ref": "#/$defs/shipClosure" },
|
|
15
|
+
"feature": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
16
|
+
"candidateDigest": { "$ref": "#/$defs/hash" },
|
|
17
|
+
"candidateInventoryDigest": { "$ref": "#/$defs/hash" },
|
|
18
|
+
"repositories": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/repository" } },
|
|
19
|
+
"currentTargetHash": { "$ref": "#/$defs/hash" },
|
|
20
|
+
"operations": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "#/$defs/operation" } },
|
|
21
|
+
"preconditions": { "type": "array", "maxItems": 64, "items": { "type": "object", "additionalProperties": false, "required": ["id", "kind", "proofHash", "mandatory"], "properties": { "id": { "$ref": "#/$defs/id" }, "kind": { "enum": ["candidate-current", "target-current", "provider-available", "canary-ready", "rollback-ready", "containment-ready"] }, "proofHash": { "$ref": "#/$defs/hash" }, "mandatory": { "const": true } } } },
|
|
22
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
23
|
+
"expiresAt": { "type": "string", "format": "date-time" },
|
|
24
|
+
"planHash": { "$ref": "#/$defs/hash" }
|
|
25
|
+
},
|
|
26
|
+
"$defs": {
|
|
27
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
28
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
|
|
29
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
30
|
+
"shipClosure": { "type": "object", "additionalProperties": false, "required": ["contractId", "schemaVersion", "protocolVersion", "recordType", "runId", "terminalStatus", "receiptHash", "recordDigest"], "properties": { "contractId": { "const": "ship-closure" }, "schemaVersion": { "enum": ["1.0.0", "1.1.0", "1.2.0"] }, "protocolVersion": { "const": "1.1.0" }, "recordType": { "const": "receipt" }, "runId": { "type": "string", "pattern": "^ship_[a-f0-9]{32}$" }, "terminalStatus": { "const": "passed" }, "receiptHash": { "$ref": "#/$defs/hash" }, "recordDigest": { "$ref": "#/$defs/hash" } } },
|
|
31
|
+
"repository": { "type": "object", "additionalProperties": false, "required": ["repositoryKey", "baselineDigest", "head", "inventoryDigest", "projectionDigest"], "properties": { "repositoryKey": { "$ref": "#/$defs/id" }, "baselineDigest": { "$ref": "#/$defs/hash" }, "head": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" }, "inventoryDigest": { "$ref": "#/$defs/hash" }, "projectionDigest": { "$ref": "#/$defs/hash" } } },
|
|
32
|
+
"recordRef": { "type": "object", "additionalProperties": false, "required": ["contractId", "schemaVersion", "protocolVersion", "recordId", "recordDigest"], "properties": { "contractId": { "enum": ["operate-executor-registration", "operating-governed-operation", "operating-action-verification-plan", "operating-checkpoint", "operating-rollback-plan", "operating-rollback-result"] }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "recordId": { "type": "string", "minLength": 1, "maxLength": 128 }, "recordDigest": { "$ref": "#/$defs/hash" } } },
|
|
33
|
+
"containment": { "type": "object", "additionalProperties": false, "required": ["policyHash", "state", "stopPromotion", "stopNewTraffic", "isolateFailedTarget", "retainLastKnownGood", "trafficStateHash", "residualStateHash", "expiresAt", "consequences", "recoveryChoices", "authority"], "properties": { "policyHash": { "$ref": "#/$defs/hash" }, "state": { "const": "preconfirmed" }, "stopPromotion": { "const": true }, "stopNewTraffic": { "const": true }, "isolateFailedTarget": { "const": true }, "retainLastKnownGood": { "type": "boolean" }, "trafficStateHash": { "$ref": "#/$defs/hash" }, "residualStateHash": { "$ref": "#/$defs/hash" }, "expiresAt": { "type": "string", "format": "date-time" }, "consequences": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "type": "string", "minLength": 1, "maxLength": 512 } }, "recoveryChoices": { "type": "array", "minItems": 1, "maxItems": 3, "uniqueItems": true, "items": { "enum": ["rollback", "compensate", "forward-fix"] } }, "authority": { "const": "containment-only" } } },
|
|
34
|
+
"operation": { "type": "object", "additionalProperties": false, "required": ["operationId", "registryOperationId", "registrationHash", "kind", "repositoryKey", "dependsOn", "effectClass", "recoveryClass", "targetBeforeHash", "inputDigest", "outputContract", "preconditionHashes", "timeoutMs", "retryPolicy", "executorRegistration", "operateBindings", "containment"], "properties": { "operationId": { "type": "string", "pattern": "^lop_[a-f0-9]{32}$" }, "registryOperationId": { "$ref": "#/$defs/id" }, "registrationHash": { "$ref": "#/$defs/hash" }, "kind": { "enum": ["commit", "pull-request", "merge", "package", "publish", "deploy", "canary", "verify", "rollback", "compensate"] }, "repositoryKey": { "$ref": "#/$defs/id" }, "dependsOn": { "type": "array", "maxItems": 16, "uniqueItems": true, "items": { "type": "string", "pattern": "^lop_[a-f0-9]{32}$" } }, "effectClass": { "enum": ["project-write", "provider-call", "external-effect", "destructive"] }, "recoveryClass": { "enum": ["reversible", "compensatable", "irreversible"] }, "targetBeforeHash": { "$ref": "#/$defs/hash" }, "inputDigest": { "$ref": "#/$defs/hash" }, "outputContract": { "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"], "properties": { "schemaId": { "$ref": "#/$defs/id" }, "schemaVersion": { "$ref": "#/$defs/version" } } }, "preconditionHashes": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } }, "timeoutMs": { "type": "integer", "minimum": 1, "maximum": 3600000 }, "retryPolicy": { "enum": ["none", "reconcile-before-retry"] }, "executorRegistration": { "allOf": [{ "$ref": "#/$defs/recordRef" }, { "properties": { "contractId": { "const": "operate-executor-registration" } } }] }, "operateBindings": { "type": "array", "maxItems": 6, "items": { "$ref": "#/$defs/recordRef" } }, "containment": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/containment" }] } }, "allOf": [{ "if": { "properties": { "kind": { "const": "deploy" } }, "required": ["kind"] }, "then": { "properties": { "containment": { "$ref": "#/$defs/containment" } } } }] }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/landing-receipt.schema.json",
|
|
4
|
+
"title": "Protocol 1.2 Landing Receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "receiptId", "runId", "authority", "shipClosure", "planId", "planHash", "candidateDigest", "candidateInventoryDigest", "status", "phaseReceipts", "journalHeadHash", "targetHash", "trafficStateHash", "residualStateHash", "recovery", "startedAt", "completedAt", "receiptHash"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": { "const": "landing-receipt" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "1.2.0" }, "receiptId": { "type": "string", "pattern": "^lrcp_[a-f0-9]{32}$" }, "runId": { "type": "string", "pattern": "^lrun_[a-f0-9]{32}$" }, "authority": { "const": "none" }, "shipClosure": { "$ref": "#/$defs/shipClosure" }, "planId": { "type": "string", "pattern": "^land_[a-f0-9]{32}$" }, "planHash": { "$ref": "#/$defs/hash" }, "candidateDigest": { "$ref": "#/$defs/hash" }, "candidateInventoryDigest": { "$ref": "#/$defs/hash" }, "status": { "enum": ["landed", "blocked", "uncertain", "recovery_required"] }, "phaseReceipts": { "type": "array", "maxItems": 64, "items": { "type": "object", "additionalProperties": false, "required": ["receiptId", "receiptHash", "operationId", "status"], "properties": { "receiptId": { "type": "string", "pattern": "^lprc_[a-f0-9]{32}$" }, "receiptHash": { "$ref": "#/$defs/hash" }, "operationId": { "type": "string", "pattern": "^lop_[a-f0-9]{32}$" }, "status": { "enum": ["succeeded", "failed", "blocked", "uncertain", "recovery_required"] } } } }, "journalHeadHash": { "$ref": "#/$defs/hash" }, "targetHash": { "$ref": "#/$defs/hash" }, "trafficStateHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "residualStateHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "recovery": { "type": "object", "additionalProperties": false, "required": ["required", "authority", "planHash", "resultHash", "choices", "defaultChoice"], "properties": { "required": { "type": "boolean" }, "authority": { "const": "none" }, "planHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "resultHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "choices": { "type": "array", "maxItems": 3, "uniqueItems": true, "items": { "enum": ["rollback", "compensate", "forward-fix"] } }, "defaultChoice": { "const": null } } }, "startedAt": { "type": "string", "format": "date-time" }, "completedAt": { "type": "string", "format": "date-time" }, "receiptHash": { "$ref": "#/$defs/hash" }
|
|
10
|
+
},
|
|
11
|
+
"$defs": { "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "shipClosure": { "type": "object", "additionalProperties": false, "required": ["contractId", "schemaVersion", "protocolVersion", "recordType", "runId", "terminalStatus", "receiptHash", "recordDigest"], "properties": { "contractId": { "const": "ship-closure" }, "schemaVersion": { "enum": ["1.0.0", "1.1.0", "1.2.0"] }, "protocolVersion": { "const": "1.1.0" }, "recordType": { "const": "receipt" }, "runId": { "type": "string", "pattern": "^ship_[a-f0-9]{32}$" }, "terminalStatus": { "const": "passed" }, "receiptHash": { "$ref": "#/$defs/hash" }, "recordDigest": { "$ref": "#/$defs/hash" } } } }
|
|
12
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/landing-workflow-catalog.schema.json",
|
|
4
|
+
"title": "Protocol 1.2 Landing Workflow Catalog",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"kind",
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"protocolVersion",
|
|
11
|
+
"catalogVersion",
|
|
12
|
+
"authority",
|
|
13
|
+
"workflow",
|
|
14
|
+
"catalogHash"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"kind": { "const": "landing-workflow-catalog" },
|
|
18
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
19
|
+
"protocolVersion": { "const": "1.2.0" },
|
|
20
|
+
"catalogVersion": { "const": "1.0.0" },
|
|
21
|
+
"authority": { "const": "none" },
|
|
22
|
+
"workflow": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"workflowId",
|
|
27
|
+
"workflowVersion",
|
|
28
|
+
"objective",
|
|
29
|
+
"commands",
|
|
30
|
+
"hostAssets",
|
|
31
|
+
"authorityBoundary"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"workflowId": { "const": "planr-land" },
|
|
35
|
+
"workflowVersion": { "const": "1.0.0" },
|
|
36
|
+
"objective": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
37
|
+
"commands": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"minItems": 4,
|
|
40
|
+
"maxItems": 4,
|
|
41
|
+
"prefixItems": [
|
|
42
|
+
{ "$ref": "#/$defs/prepareCommand" },
|
|
43
|
+
{ "$ref": "#/$defs/showCommand" },
|
|
44
|
+
{ "$ref": "#/$defs/statusCommand" },
|
|
45
|
+
{ "$ref": "#/$defs/advanceCommand" }
|
|
46
|
+
],
|
|
47
|
+
"items": false
|
|
48
|
+
},
|
|
49
|
+
"hostAssets": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"minItems": 3,
|
|
52
|
+
"maxItems": 3,
|
|
53
|
+
"prefixItems": [
|
|
54
|
+
{ "$ref": "#/$defs/claudeAsset" },
|
|
55
|
+
{ "$ref": "#/$defs/codexAsset" },
|
|
56
|
+
{ "$ref": "#/$defs/cursorAsset" }
|
|
57
|
+
],
|
|
58
|
+
"items": false
|
|
59
|
+
},
|
|
60
|
+
"authorityBoundary": { "const": "portable-json-is-not-effect-authority" }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"catalogHash": { "$ref": "#/$defs/hash" }
|
|
64
|
+
},
|
|
65
|
+
"$defs": {
|
|
66
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
67
|
+
"command": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"required": [
|
|
71
|
+
"id",
|
|
72
|
+
"invocation",
|
|
73
|
+
"access",
|
|
74
|
+
"effect",
|
|
75
|
+
"agentCallable",
|
|
76
|
+
"machineJson",
|
|
77
|
+
"requiresTty",
|
|
78
|
+
"terminal"
|
|
79
|
+
],
|
|
80
|
+
"properties": {
|
|
81
|
+
"id": { "enum": ["prepare", "show", "status", "advance"] },
|
|
82
|
+
"invocation": { "type": "string", "pattern": "^planr land (?:prepare|show|status|advance)$" },
|
|
83
|
+
"access": { "enum": ["read-only", "owner-interactive"] },
|
|
84
|
+
"effect": { "enum": ["none", "runtime-dispatch"] },
|
|
85
|
+
"agentCallable": { "type": "boolean" },
|
|
86
|
+
"machineJson": { "type": "boolean" },
|
|
87
|
+
"requiresTty": { "type": "boolean" },
|
|
88
|
+
"terminal": { "enum": ["ownerActionRequired", "read-only", "receipt-or-recovery"] }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"prepareCommand": {
|
|
92
|
+
"allOf": [
|
|
93
|
+
{ "$ref": "#/$defs/command" },
|
|
94
|
+
{ "properties": { "id": { "const": "prepare" }, "invocation": { "const": "planr land prepare" }, "access": { "const": "read-only" }, "effect": { "const": "none" }, "agentCallable": { "const": true }, "machineJson": { "const": true }, "requiresTty": { "const": false }, "terminal": { "const": "ownerActionRequired" } } }
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"showCommand": {
|
|
98
|
+
"allOf": [
|
|
99
|
+
{ "$ref": "#/$defs/command" },
|
|
100
|
+
{ "properties": { "id": { "const": "show" }, "invocation": { "const": "planr land show" }, "access": { "const": "read-only" }, "effect": { "const": "none" }, "agentCallable": { "const": true }, "machineJson": { "const": true }, "requiresTty": { "const": false }, "terminal": { "const": "ownerActionRequired" } } }
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"statusCommand": {
|
|
104
|
+
"allOf": [
|
|
105
|
+
{ "$ref": "#/$defs/command" },
|
|
106
|
+
{ "properties": { "id": { "const": "status" }, "invocation": { "const": "planr land status" }, "access": { "const": "read-only" }, "effect": { "const": "none" }, "agentCallable": { "const": true }, "machineJson": { "const": true }, "requiresTty": { "const": false }, "terminal": { "const": "read-only" } } }
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"advanceCommand": {
|
|
110
|
+
"allOf": [
|
|
111
|
+
{ "$ref": "#/$defs/command" },
|
|
112
|
+
{ "properties": { "id": { "const": "advance" }, "invocation": { "const": "planr land advance" }, "access": { "const": "owner-interactive" }, "effect": { "const": "runtime-dispatch" }, "agentCallable": { "const": false }, "machineJson": { "const": false }, "requiresTty": { "const": true }, "terminal": { "const": "receipt-or-recovery" } } }
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"asset": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": ["runtime", "path"],
|
|
119
|
+
"properties": {
|
|
120
|
+
"runtime": { "enum": ["claude-code", "codex", "cursor"] },
|
|
121
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 256 }
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"claudeAsset": {
|
|
125
|
+
"allOf": [
|
|
126
|
+
{ "$ref": "#/$defs/asset" },
|
|
127
|
+
{ "properties": { "runtime": { "const": "claude-code" }, "path": { "const": "skills/planr-land/SKILL.md" } } }
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"codexAsset": {
|
|
131
|
+
"allOf": [
|
|
132
|
+
{ "$ref": "#/$defs/asset" },
|
|
133
|
+
{ "properties": { "runtime": { "const": "codex" }, "path": { "const": "adapters/codex/skills/planr-land/SKILL.md" } } }
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"cursorAsset": {
|
|
137
|
+
"allOf": [
|
|
138
|
+
{ "$ref": "#/$defs/asset" },
|
|
139
|
+
{ "properties": { "runtime": { "const": "cursor" }, "path": { "const": "adapters/cursor/rules/openplanr-land.mdc" } } }
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/operate-action-display-workspace.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "operate-action-display-workspace",
|
|
6
|
+
"version": "1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"title": "OpenPlanr browser-verifiable sanitized Action workspace",
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "payload", "integrity"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"kind": { "const": "operate-action-display-workspace" },
|
|
14
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
15
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
16
|
+
"payload": { "$ref": "#/$defs/workspace" },
|
|
17
|
+
"integrity": { "$ref": "#/$defs/integrity" }
|
|
18
|
+
},
|
|
19
|
+
"$defs": {
|
|
20
|
+
"workspace": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"ok", "kind", "schemaVersion", "protocolVersion", "readOnly",
|
|
25
|
+
"mutationEnabled", "scopeId", "domainId", "domainVersion", "actorId",
|
|
26
|
+
"accessLevel", "generatedAt", "eventHead", "viewHash", "status",
|
|
27
|
+
"reasonCodes", "data"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"ok": { "const": true },
|
|
31
|
+
"kind": { "const": "operate-action-workspace" },
|
|
32
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
33
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
34
|
+
"readOnly": { "type": "boolean" },
|
|
35
|
+
"mutationEnabled": { "type": "boolean" },
|
|
36
|
+
"scopeId": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/id" },
|
|
37
|
+
"domainId": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/id" },
|
|
38
|
+
"domainVersion": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/version" },
|
|
39
|
+
"actorId": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/id" },
|
|
40
|
+
"accessLevel": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/accessLevel" },
|
|
41
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
42
|
+
"eventHead": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/eventHead" },
|
|
43
|
+
"viewHash": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/hash" },
|
|
44
|
+
"status": {
|
|
45
|
+
"enum": ["ready", "read-only", "stale", "partial", "blocked", "offline"]
|
|
46
|
+
},
|
|
47
|
+
"reasonCodes": {
|
|
48
|
+
"type": "array", "uniqueItems": true, "items": { "type": "string" }
|
|
49
|
+
},
|
|
50
|
+
"data": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"required": [
|
|
54
|
+
"action", "outcome", "learnings", "inbox", "history", "replay",
|
|
55
|
+
"verification", "boundaries", "allowedActions"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"action": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/action" },
|
|
59
|
+
"outcome": {
|
|
60
|
+
"oneOf": [
|
|
61
|
+
{ "type": "null" },
|
|
62
|
+
{ "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/outcome" }
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"learnings": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/learning" }
|
|
68
|
+
},
|
|
69
|
+
"inbox": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/inbox" }
|
|
72
|
+
},
|
|
73
|
+
"history": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/history" }
|
|
76
|
+
},
|
|
77
|
+
"replay": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/replay" },
|
|
78
|
+
"verification": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"required": ["status", "reasonCodes"],
|
|
82
|
+
"properties": {
|
|
83
|
+
"status": { "enum": ["not-required", "verified", "unverified"] },
|
|
84
|
+
"reasonCodes": {
|
|
85
|
+
"type": "array", "uniqueItems": true, "items": { "type": "string" }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"boundaries": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": ["approvalExecution", "verification", "retry"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"approvalExecution": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
95
|
+
"verification": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
96
|
+
"retry": { "type": "string", "minLength": 1, "maxLength": 512 }
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"allowedActions": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/boundAllowedAction" }
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"integrity": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"required": ["algorithm", "domain", "sourceViewHash", "contentHash"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"algorithm": { "const": "sha-256-jcs" },
|
|
113
|
+
"domain": { "const": "openplanr:operate-action-display-workspace:1.0.0" },
|
|
114
|
+
"sourceViewHash": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/hash" },
|
|
115
|
+
"contentHash": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/hash" }
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.2.0/operate-cycle-display-workspace.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "operate-cycle-display-workspace",
|
|
6
|
+
"version": "1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"title": "OpenPlanr browser-verifiable sanitized Cycle workspace",
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "payload", "integrity"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"kind": { "const": "operate-cycle-display-workspace" },
|
|
14
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
15
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
16
|
+
"payload": { "$ref": "#/$defs/workspace" },
|
|
17
|
+
"integrity": { "$ref": "#/$defs/integrity" }
|
|
18
|
+
},
|
|
19
|
+
"$defs": {
|
|
20
|
+
"workspace": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"ok", "kind", "schemaVersion", "protocolVersion", "readOnly",
|
|
25
|
+
"mutationEnabled", "scopeId", "domainId", "domainVersion", "actorId",
|
|
26
|
+
"accessLevel", "generatedAt", "eventHead", "viewHash", "truthSummary", "status",
|
|
27
|
+
"reasonCodes", "data"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"ok": { "const": true },
|
|
31
|
+
"kind": { "const": "operate-cycle-workspace" },
|
|
32
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
33
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
34
|
+
"readOnly": { "const": true },
|
|
35
|
+
"mutationEnabled": { "const": false },
|
|
36
|
+
"scopeId": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/id" },
|
|
37
|
+
"domainId": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/id" },
|
|
38
|
+
"domainVersion": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/version" },
|
|
39
|
+
"actorId": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/id" },
|
|
40
|
+
"accessLevel": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/accessLevel" },
|
|
41
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
42
|
+
"eventHead": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/eventHead" },
|
|
43
|
+
"viewHash": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/hash" },
|
|
44
|
+
"truthSummary": { "$ref": "../v2.0.0/operate-review-display-workspace.schema.json#/$defs/sharedTruthSummary" },
|
|
45
|
+
"status": {
|
|
46
|
+
"enum": ["ready", "read-only", "stale", "partial", "blocked", "offline"]
|
|
47
|
+
},
|
|
48
|
+
"reasonCodes": {
|
|
49
|
+
"type": "array", "uniqueItems": true, "items": { "type": "string" }
|
|
50
|
+
},
|
|
51
|
+
"data": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"ownerCycle", "cycle", "progress", "replay", "verification",
|
|
56
|
+
"persistentWork", "allowedActions"
|
|
57
|
+
],
|
|
58
|
+
"properties": {
|
|
59
|
+
"ownerCycle": { "type": "object" },
|
|
60
|
+
"cycle": { "type": "object" },
|
|
61
|
+
"progress": {
|
|
62
|
+
"$ref": "../v2.0.0/operate-api-envelope.schema.json#/$defs/cycleView/properties/progress"
|
|
63
|
+
},
|
|
64
|
+
"replay": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/replay" },
|
|
65
|
+
"verification": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": ["status", "reasonCodes"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"status": { "enum": ["not-required", "verified", "unverified"] },
|
|
71
|
+
"reasonCodes": {
|
|
72
|
+
"type": "array", "uniqueItems": true, "items": { "type": "string" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"persistentWork": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"additionalProperties": false,
|
|
79
|
+
"required": ["findings", "decisions", "actions", "outcomes", "learnings", "cycleLinks"],
|
|
80
|
+
"properties": {
|
|
81
|
+
"findings": { "type": "array" },
|
|
82
|
+
"decisions": { "type": "array" },
|
|
83
|
+
"actions": { "type": "array" },
|
|
84
|
+
"outcomes": { "type": "array" },
|
|
85
|
+
"learnings": { "type": "array" },
|
|
86
|
+
"cycleLinks": { "type": "array" }
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"allowedActions": {
|
|
90
|
+
"type": "array", "minItems": 1, "maxItems": 1,
|
|
91
|
+
"items": { "$ref": "../v2.0.0/operate-allowed-action.schema.json" }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"integrity": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": ["algorithm", "domain", "sourceViewHash", "contentHash"],
|
|
101
|
+
"properties": {
|
|
102
|
+
"algorithm": { "const": "sha-256-jcs" },
|
|
103
|
+
"domain": { "const": "openplanr:operate-cycle-display-workspace:1.0.0" },
|
|
104
|
+
"sourceViewHash": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/hash" },
|
|
105
|
+
"contentHash": { "$ref": "../v2.0.0/operate-experience-view.schema.json#/$defs/hash" }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|