@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,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-governed-operation.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-governed-operation", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 governed operation",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "operationId", "operationKind", "action", "assignmentId", "requestFingerprint", "evaluationId", "approvalIds", "grantId", "capability", "target", "effectClass", "executor", "connector", "preconditionArtifactIds", "inputArtifactIds", "verificationPlanId", "rollbackClass", "state", "intentEventId", "resultId", "rollbackPlanId", "parentOperationId", "createdAt", "updatedAt", "operationHash"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-governed-operation" },
|
|
11
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
12
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
13
|
+
"operationId": { "type": "string", "pattern": "^op_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
14
|
+
"operationKind": { "enum": ["execute", "rollback"] },
|
|
15
|
+
"action": { "$ref": "#/$defs/action" },
|
|
16
|
+
"assignmentId": { "type": "string", "pattern": "^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
17
|
+
"requestFingerprint": { "$ref": "#/$defs/hash" },
|
|
18
|
+
"evaluationId": { "type": "string", "pattern": "^pevl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
19
|
+
"approvalIds": { "type": "array", "uniqueItems": true, "items": { "type": "string", "pattern": "^aprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } },
|
|
20
|
+
"grantId": { "type": "string", "pattern": "^cgr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
21
|
+
"capability": { "$ref": "#/$defs/versionedId" },
|
|
22
|
+
"target": { "$ref": "#/$defs/target" },
|
|
23
|
+
"effectClass": { "$ref": "#/$defs/effect" },
|
|
24
|
+
"executor": { "$ref": "#/$defs/executor" },
|
|
25
|
+
"connector": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/versionedId" }] },
|
|
26
|
+
"preconditionArtifactIds": { "$ref": "#/$defs/artifactIds" },
|
|
27
|
+
"inputArtifactIds": { "$ref": "#/$defs/artifactIds" },
|
|
28
|
+
"verificationPlanId": { "type": "string", "pattern": "^vfy_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
29
|
+
"rollbackClass": { "enum": ["not-applicable", "reversible", "compensating", "manual"] },
|
|
30
|
+
"state": { "enum": ["authorized", "intent-recorded", "dispatching", "succeeded", "failed", "partial", "uncertain", "blocked", "cancelled", "rolled-back"] },
|
|
31
|
+
"intentEventId": { "type": "string", "pattern": "^evt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
32
|
+
"resultId": { "type": ["string", "null"], "pattern": "^(?:xres|rbres)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
33
|
+
"rollbackPlanId": { "type": ["string", "null"], "pattern": "^rbp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
34
|
+
"parentOperationId": { "type": ["string", "null"], "pattern": "^op_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
35
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
36
|
+
"updatedAt": { "type": "string", "format": "date-time" },
|
|
37
|
+
"operationHash": { "$ref": "#/$defs/hash" }
|
|
38
|
+
},
|
|
39
|
+
"allOf": [
|
|
40
|
+
{ "if": { "properties": { "operationKind": { "const": "execute" } }, "required": ["operationKind"] }, "then": { "properties": { "rollbackPlanId": { "const": null }, "parentOperationId": { "const": null }, "state": { "not": { "const": "rolled-back" } } } } },
|
|
41
|
+
{ "if": { "properties": { "operationKind": { "const": "rollback" } }, "required": ["operationKind"] }, "then": { "properties": { "rollbackPlanId": { "type": "string" }, "parentOperationId": { "type": "string" }, "rollbackClass": { "not": { "const": "not-applicable" } } } } }
|
|
42
|
+
],
|
|
43
|
+
"$defs": {
|
|
44
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
45
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
|
|
46
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
47
|
+
"effect": { "enum": ["read-only", "machine-local-write", "project-write", "provider-call", "external-effect", "destructive"] },
|
|
48
|
+
"versionedId": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } },
|
|
49
|
+
"artifactIds": { "type": "array", "uniqueItems": true, "items": { "type": "string", "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } },
|
|
50
|
+
"action": { "type": "object", "additionalProperties": false, "required": ["actionId", "revision", "actionHash"], "properties": { "actionId": { "type": "string", "pattern": "^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "revision": { "type": "integer", "minimum": 1 }, "actionHash": { "$ref": "#/$defs/hash" } } },
|
|
51
|
+
"target": { "type": "object", "additionalProperties": false, "required": ["kind", "id", "revision"], "properties": { "kind": { "$ref": "#/$defs/id" }, "id": { "type": "string", "minLength": 1, "maxLength": 128 }, "revision": { "type": "string", "minLength": 1, "maxLength": 128 } } },
|
|
52
|
+
"executor": { "type": "object", "additionalProperties": false, "required": ["executorId", "executorVersion"], "properties": { "executorId": { "$ref": "#/$defs/id" }, "executorVersion": { "$ref": "#/$defs/version" } } }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-intelligence-input-bundle.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-intelligence-input-bundle", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 intelligence input bundle",
|
|
6
|
+
"description": "Runtime-owned immutable Artifact body binding one Assignment to a Snapshot, Delta, authorized evidence, and explicit evidence absences. Callers never author its identities or content, and no Assignment receives another role's evidence metadata.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": [
|
|
10
|
+
"kind", "schemaVersion", "protocolVersion", "bundleId", "cycleId", "snapshotId", "deltaId",
|
|
11
|
+
"scopeId", "domainId", "domainVersion", "snapshot", "delta", "operatingState",
|
|
12
|
+
"sourceArtifactIds", "assignmentBinding", "createdAt"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"kind": { "const": "operating-intelligence-input-bundle" },
|
|
16
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
17
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
18
|
+
"bundleId": { "$ref": "#/$defs/bundleId" },
|
|
19
|
+
"cycleId": { "$ref": "#/$defs/cycleId" },
|
|
20
|
+
"snapshotId": { "$ref": "#/$defs/snapshotId" },
|
|
21
|
+
"deltaId": { "$ref": "#/$defs/deltaId" },
|
|
22
|
+
"scopeId": { "$ref": "#/$defs/id" },
|
|
23
|
+
"domainId": { "$ref": "#/$defs/identifier" },
|
|
24
|
+
"domainVersion": { "$ref": "#/$defs/version" },
|
|
25
|
+
"snapshot": { "$ref": "operating-snapshot.schema.json" },
|
|
26
|
+
"delta": { "$ref": "operating-delta.schema.json" },
|
|
27
|
+
"operatingState": { "$ref": "#/$defs/operatingStateProjection" },
|
|
28
|
+
"sourceArtifactIds": { "type": "array", "minItems": 1, "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/artifactId" } },
|
|
29
|
+
"assignmentBinding": { "$ref": "#/$defs/assignmentBinding" },
|
|
30
|
+
"createdAt": { "type": "string", "format": "date-time" }
|
|
31
|
+
},
|
|
32
|
+
"$defs": {
|
|
33
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
34
|
+
"identifier": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
35
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
|
|
36
|
+
"bundleId": { "type": "string", "pattern": "^ibd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
37
|
+
"cycleId": { "type": "string", "pattern": "^cyc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
38
|
+
"snapshotId": { "type": "string", "pattern": "^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
39
|
+
"deltaId": { "type": "string", "pattern": "^dlt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
40
|
+
"artifactId": { "type": "string", "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
41
|
+
"assignmentId": { "type": "string", "pattern": "^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
42
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
43
|
+
"stateId": { "type": "string", "pattern": "^oms_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
44
|
+
"operatingRecordRef": {
|
|
45
|
+
"type": "object", "additionalProperties": false,
|
|
46
|
+
"required": ["recordId", "recordKind", "title", "state", "evidenceRefIds"],
|
|
47
|
+
"properties": {
|
|
48
|
+
"recordId": { "$ref": "#/$defs/id" },
|
|
49
|
+
"recordKind": { "enum": ["objective", "metric", "finding", "decision", "action", "risk", "assumption"] },
|
|
50
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^\\S(?:[\\s\\S]*\\S)?$" },
|
|
51
|
+
"state": { "$ref": "#/$defs/id" },
|
|
52
|
+
"evidenceRefIds": {
|
|
53
|
+
"type": "array", "maxItems": 32, "uniqueItems": true,
|
|
54
|
+
"items": { "type": "string", "pattern": "^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"boundedOperatingCollection": {
|
|
59
|
+
"type": "array", "maxItems": 64, "items": { "$ref": "#/$defs/operatingRecordRef" }
|
|
60
|
+
},
|
|
61
|
+
"collectionCoverage": {
|
|
62
|
+
"type": "object", "additionalProperties": false,
|
|
63
|
+
"required": ["included", "total", "omitted"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"included": { "type": "integer", "minimum": 0, "maximum": 64 },
|
|
66
|
+
"total": { "type": "integer", "minimum": 0 },
|
|
67
|
+
"omitted": { "type": "integer", "minimum": 0 }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"operatingStateProjection": {
|
|
71
|
+
"type": "object", "additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"kind", "schemaVersion", "protocolVersion", "sourceStateId", "sourceRuntimeHash",
|
|
74
|
+
"scopeId", "domainId", "domainVersion", "snapshotId", "selectionPolicy",
|
|
75
|
+
"objectives", "metrics", "findings", "decisions", "actions", "risks", "assumptions",
|
|
76
|
+
"coverage", "projectedAt"
|
|
77
|
+
],
|
|
78
|
+
"properties": {
|
|
79
|
+
"kind": { "const": "operating-state-projection" },
|
|
80
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
81
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
82
|
+
"sourceStateId": { "$ref": "#/$defs/stateId" },
|
|
83
|
+
"sourceRuntimeHash": { "$ref": "#/$defs/hash" },
|
|
84
|
+
"scopeId": { "$ref": "#/$defs/id" },
|
|
85
|
+
"domainId": { "$ref": "#/$defs/identifier" },
|
|
86
|
+
"domainVersion": { "$ref": "#/$defs/version" },
|
|
87
|
+
"snapshotId": { "$ref": "#/$defs/snapshotId" },
|
|
88
|
+
"selectionPolicy": { "const": "deterministic-priority-v1" },
|
|
89
|
+
"objectives": { "$ref": "#/$defs/boundedOperatingCollection" },
|
|
90
|
+
"metrics": { "$ref": "#/$defs/boundedOperatingCollection" },
|
|
91
|
+
"findings": { "$ref": "#/$defs/boundedOperatingCollection" },
|
|
92
|
+
"decisions": { "$ref": "#/$defs/boundedOperatingCollection" },
|
|
93
|
+
"actions": { "$ref": "#/$defs/boundedOperatingCollection" },
|
|
94
|
+
"risks": { "$ref": "#/$defs/boundedOperatingCollection" },
|
|
95
|
+
"assumptions": { "$ref": "#/$defs/boundedOperatingCollection" },
|
|
96
|
+
"coverage": {
|
|
97
|
+
"type": "object", "additionalProperties": false,
|
|
98
|
+
"required": ["objectives", "metrics", "findings", "decisions", "actions", "risks", "assumptions"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"objectives": { "$ref": "#/$defs/collectionCoverage" },
|
|
101
|
+
"metrics": { "$ref": "#/$defs/collectionCoverage" },
|
|
102
|
+
"findings": { "$ref": "#/$defs/collectionCoverage" },
|
|
103
|
+
"decisions": { "$ref": "#/$defs/collectionCoverage" },
|
|
104
|
+
"actions": { "$ref": "#/$defs/collectionCoverage" },
|
|
105
|
+
"risks": { "$ref": "#/$defs/collectionCoverage" },
|
|
106
|
+
"assumptions": { "$ref": "#/$defs/collectionCoverage" }
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"projectedAt": { "type": "string", "format": "date-time" }
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"assignmentBinding": {
|
|
113
|
+
"type": "object", "additionalProperties": false,
|
|
114
|
+
"required": ["assignmentId", "roleId", "roleKind", "roleVersion", "analysisProfile", "evidenceRequirements", "resultRequirements", "issuedEvidence", "evidenceAbsences"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"assignmentId": { "$ref": "#/$defs/assignmentId" },
|
|
117
|
+
"roleId": { "$ref": "#/$defs/identifier" },
|
|
118
|
+
"roleKind": { "enum": ["advisor", "challenger", "chair"] },
|
|
119
|
+
"roleVersion": { "$ref": "#/$defs/version" },
|
|
120
|
+
"analysisProfile": { "$ref": "operating-assignment.schema.json#/$defs/analysisProfile" },
|
|
121
|
+
"evidenceRequirements": { "type": "array", "minItems": 0, "maxItems": 64, "items": { "$ref": "operating-assignment.schema.json#/$defs/evidenceRequirement" } },
|
|
122
|
+
"resultRequirements": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "$ref": "operating-assignment.schema.json#/$defs/resultRequirement" } },
|
|
123
|
+
"issuedEvidence": { "type": "array", "maxItems": 128, "items": { "$ref": "operating-assignment.schema.json#/$defs/issuedEvidence" } },
|
|
124
|
+
"evidenceAbsences": { "type": "array", "maxItems": 128, "items": { "$ref": "operating-assignment.schema.json#/$defs/evidenceInputAbsence" } }
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-intelligence-plan.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "operating-intelligence-plan",
|
|
6
|
+
"version": "2.0.0"
|
|
7
|
+
},
|
|
8
|
+
"title": "OpenPlanr Operate 2.0 explainable intelligence plan",
|
|
9
|
+
"type": "object",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"required": [
|
|
12
|
+
"kind",
|
|
13
|
+
"schemaVersion",
|
|
14
|
+
"protocolVersion",
|
|
15
|
+
"planId",
|
|
16
|
+
"scopeId",
|
|
17
|
+
"domainId",
|
|
18
|
+
"domainVersion",
|
|
19
|
+
"snapshotId",
|
|
20
|
+
"deltaId",
|
|
21
|
+
"selectedRoles",
|
|
22
|
+
"omittedRoles",
|
|
23
|
+
"challengerRequired",
|
|
24
|
+
"scenarioRequest",
|
|
25
|
+
"sourceArtifactId",
|
|
26
|
+
"decisionOwnerActorId",
|
|
27
|
+
"createdAt"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"kind": {
|
|
31
|
+
"const": "operating-intelligence-plan"
|
|
32
|
+
},
|
|
33
|
+
"schemaVersion": {
|
|
34
|
+
"const": "1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"protocolVersion": {
|
|
37
|
+
"const": "2.0.0"
|
|
38
|
+
},
|
|
39
|
+
"planId": {
|
|
40
|
+
"$ref": "#/$defs/planId"
|
|
41
|
+
},
|
|
42
|
+
"scopeId": {
|
|
43
|
+
"$ref": "#/$defs/id"
|
|
44
|
+
},
|
|
45
|
+
"domainId": {
|
|
46
|
+
"$ref": "#/$defs/id"
|
|
47
|
+
},
|
|
48
|
+
"domainVersion": {
|
|
49
|
+
"$ref": "#/$defs/version"
|
|
50
|
+
},
|
|
51
|
+
"snapshotId": {
|
|
52
|
+
"$ref": "#/$defs/snapshotId"
|
|
53
|
+
},
|
|
54
|
+
"deltaId": {
|
|
55
|
+
"$ref": "#/$defs/deltaId"
|
|
56
|
+
},
|
|
57
|
+
"selectedRoles": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"minItems": 1,
|
|
60
|
+
"uniqueItems": true,
|
|
61
|
+
"items": {
|
|
62
|
+
"$ref": "#/$defs/selectedRole"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"omittedRoles": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"uniqueItems": true,
|
|
68
|
+
"items": {
|
|
69
|
+
"$ref": "#/$defs/omittedRole"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"challengerRequired": {
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
},
|
|
75
|
+
"scenarioRequest": {
|
|
76
|
+
"$ref": "#/$defs/scenarioRequest"
|
|
77
|
+
},
|
|
78
|
+
"sourceArtifactId": {
|
|
79
|
+
"$ref": "#/$defs/artifactId"
|
|
80
|
+
},
|
|
81
|
+
"decisionOwnerActorId": {
|
|
82
|
+
"$ref": "#/$defs/id"
|
|
83
|
+
},
|
|
84
|
+
"createdAt": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"format": "date-time"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"allOf": [
|
|
90
|
+
{
|
|
91
|
+
"if": {
|
|
92
|
+
"properties": {
|
|
93
|
+
"challengerRequired": {
|
|
94
|
+
"const": true
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": [
|
|
98
|
+
"challengerRequired"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"then": {
|
|
102
|
+
"properties": {
|
|
103
|
+
"selectedRoles": {
|
|
104
|
+
"contains": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"required": [
|
|
107
|
+
"roleId",
|
|
108
|
+
"roleKind",
|
|
109
|
+
"roleVersion",
|
|
110
|
+
"outputContract"
|
|
111
|
+
],
|
|
112
|
+
"properties": {
|
|
113
|
+
"roleKind": {
|
|
114
|
+
"const": "challenger"
|
|
115
|
+
},
|
|
116
|
+
"roleVersion": {
|
|
117
|
+
"const": "2.0.0"
|
|
118
|
+
},
|
|
119
|
+
"outputContract": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"required": [
|
|
122
|
+
"schemaId",
|
|
123
|
+
"schemaVersion"
|
|
124
|
+
],
|
|
125
|
+
"properties": {
|
|
126
|
+
"schemaId": {
|
|
127
|
+
"const": "operating-challenger-review"
|
|
128
|
+
},
|
|
129
|
+
"schemaVersion": {
|
|
130
|
+
"const": "2.0.0"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"minContains": 1
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"$defs": {
|
|
143
|
+
"artifactId": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$"
|
|
146
|
+
},
|
|
147
|
+
"contract": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"additionalProperties": false,
|
|
150
|
+
"required": [
|
|
151
|
+
"schemaId",
|
|
152
|
+
"schemaVersion"
|
|
153
|
+
],
|
|
154
|
+
"properties": {
|
|
155
|
+
"schemaId": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"minLength": 1,
|
|
158
|
+
"maxLength": 128
|
|
159
|
+
},
|
|
160
|
+
"schemaVersion": {
|
|
161
|
+
"$ref": "#/$defs/version"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"deltaId": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"pattern": "^dlt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$"
|
|
168
|
+
},
|
|
169
|
+
"id": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"minLength": 1,
|
|
172
|
+
"maxLength": 128
|
|
173
|
+
},
|
|
174
|
+
"omittedRole": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": [
|
|
178
|
+
"roleId",
|
|
179
|
+
"roleKind",
|
|
180
|
+
"roleVersion",
|
|
181
|
+
"reason"
|
|
182
|
+
],
|
|
183
|
+
"properties": {
|
|
184
|
+
"roleId": {
|
|
185
|
+
"$ref": "#/$defs/id"
|
|
186
|
+
},
|
|
187
|
+
"roleVersion": {
|
|
188
|
+
"$ref": "#/$defs/version"
|
|
189
|
+
},
|
|
190
|
+
"reason": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"minLength": 1,
|
|
193
|
+
"maxLength": 4096,
|
|
194
|
+
"pattern": "^not-selected: .+"
|
|
195
|
+
},
|
|
196
|
+
"roleKind": {
|
|
197
|
+
"enum": [
|
|
198
|
+
"advisor",
|
|
199
|
+
"challenger",
|
|
200
|
+
"chair"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"planId": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"pattern": "^ipl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$"
|
|
208
|
+
},
|
|
209
|
+
"scenarioRequest": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"additionalProperties": false,
|
|
212
|
+
"required": [
|
|
213
|
+
"requested",
|
|
214
|
+
"reason"
|
|
215
|
+
],
|
|
216
|
+
"properties": {
|
|
217
|
+
"requested": {
|
|
218
|
+
"type": "boolean"
|
|
219
|
+
},
|
|
220
|
+
"reason": {
|
|
221
|
+
"$ref": "#/$defs/text"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"selectedRole": {
|
|
226
|
+
"type": "object",
|
|
227
|
+
"additionalProperties": false,
|
|
228
|
+
"required": [
|
|
229
|
+
"roleId",
|
|
230
|
+
"roleKind",
|
|
231
|
+
"roleVersion",
|
|
232
|
+
"inputArtifactIds",
|
|
233
|
+
"outputContract",
|
|
234
|
+
"dependsOnRoleIds",
|
|
235
|
+
"reason"
|
|
236
|
+
],
|
|
237
|
+
"properties": {
|
|
238
|
+
"roleId": {
|
|
239
|
+
"$ref": "#/$defs/id"
|
|
240
|
+
},
|
|
241
|
+
"roleVersion": {
|
|
242
|
+
"$ref": "#/$defs/version"
|
|
243
|
+
},
|
|
244
|
+
"inputArtifactIds": {
|
|
245
|
+
"type": "array",
|
|
246
|
+
"uniqueItems": true,
|
|
247
|
+
"items": {
|
|
248
|
+
"$ref": "#/$defs/artifactId"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"outputContract": {
|
|
252
|
+
"$ref": "#/$defs/contract"
|
|
253
|
+
},
|
|
254
|
+
"dependsOnRoleIds": {
|
|
255
|
+
"type": "array",
|
|
256
|
+
"uniqueItems": true,
|
|
257
|
+
"items": {
|
|
258
|
+
"$ref": "#/$defs/id"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"reason": {
|
|
262
|
+
"$ref": "#/$defs/text"
|
|
263
|
+
},
|
|
264
|
+
"roleKind": {
|
|
265
|
+
"enum": [
|
|
266
|
+
"advisor",
|
|
267
|
+
"challenger",
|
|
268
|
+
"chair"
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"allOf": [
|
|
273
|
+
{
|
|
274
|
+
"if": { "properties": { "roleKind": { "const": "advisor" } }, "required": ["roleKind"] },
|
|
275
|
+
"then": { "properties": { "outputContract": { "properties": { "schemaId": { "const": "operating-advisor-result" }, "schemaVersion": { "const": "2.0.0" } } } } }
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"if": { "properties": { "roleKind": { "const": "challenger" } }, "required": ["roleKind"] },
|
|
279
|
+
"then": { "properties": { "outputContract": { "properties": { "schemaId": { "const": "operating-challenger-review" }, "schemaVersion": { "const": "2.0.0" } } } } }
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"if": { "properties": { "roleKind": { "const": "chair" } }, "required": ["roleKind"] },
|
|
283
|
+
"then": { "properties": { "outputContract": { "properties": { "schemaId": { "const": "operating-decision-ledger" }, "schemaVersion": { "const": "2.0.0" } } } } }
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
"snapshotId": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"pattern": "^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$"
|
|
290
|
+
},
|
|
291
|
+
"text": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"minLength": 1,
|
|
294
|
+
"maxLength": 4096,
|
|
295
|
+
"pattern": "^.*\\S.*$"
|
|
296
|
+
},
|
|
297
|
+
"version": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-learning-receipt.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-learning-receipt", "version": "2.0.0" },
|
|
5
|
+
"title": "Operating Learning Receipt",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "receiptId", "learning", "outcome", "evaluation", "statementDigest", "assumptionIds", "decisionIds", "evidenceRefIds", "revisitConditions", "createdAt", "receiptHash"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-learning-receipt" },
|
|
11
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
12
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
13
|
+
"receiptId": { "type": "string", "pattern": "^lrcp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
14
|
+
"learning": { "allOf": [{ "$ref": "#/$defs/recordRef" }, { "properties": { "contractId": { "const": "operating-learning" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "recordId": { "type": "string", "pattern": "^lrn_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } } }] },
|
|
15
|
+
"outcome": { "allOf": [{ "$ref": "#/$defs/recordRef" }, { "properties": { "contractId": { "const": "operating-outcome" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "recordId": { "type": "string", "pattern": "^out_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } } }] },
|
|
16
|
+
"evaluation": { "type": "object", "additionalProperties": false, "required": ["evaluationId", "evaluationHash", "result"], "properties": { "evaluationId": { "type": "string", "pattern": "^oevl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "evaluationHash": { "$ref": "#/$defs/hash" }, "result": { "enum": ["passed", "failed", "insufficient-evidence"] } } },
|
|
17
|
+
"statementDigest": { "$ref": "#/$defs/hash" },
|
|
18
|
+
"assumptionIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "type": "string", "pattern": "^asm_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } },
|
|
19
|
+
"decisionIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "type": "string", "pattern": "^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } },
|
|
20
|
+
"evidenceRefIds": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "type": "string", "pattern": "^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } },
|
|
21
|
+
"revisitConditions": { "type": "array", "maxItems": 64, "items": { "type": "object", "additionalProperties": false, "required": ["kind", "condition", "targetIds"], "properties": { "kind": { "enum": ["assumption", "decision"] }, "condition": { "type": "string", "minLength": 1, "maxLength": 1024 }, "targetIds": { "type": "array", "minItems": 1, "maxItems": 64, "uniqueItems": true, "items": { "type": "string", "minLength": 1, "maxLength": 128 } } } } },
|
|
22
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
23
|
+
"receiptHash": { "$ref": "#/$defs/hash" }
|
|
24
|
+
},
|
|
25
|
+
"$defs": {
|
|
26
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
27
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
|
|
28
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
29
|
+
"recordRef": { "type": "object", "additionalProperties": false, "required": ["contractId", "schemaVersion", "protocolVersion", "recordId", "recordDigest"], "properties": { "contractId": { "$ref": "#/$defs/id" }, "schemaVersion": { "$ref": "#/$defs/version" }, "protocolVersion": { "$ref": "#/$defs/version" }, "recordId": { "type": "string", "minLength": 1, "maxLength": 128 }, "recordDigest": { "$ref": "#/$defs/hash" } } }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-learning.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-learning", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 durable operating learning",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "learningId", "scopeId", "domainId", "domainVersion", "statement", "outcomeId", "assumptionIds", "decisionIds", "evidenceRefIds", "sourceArtifactId", "createdAt"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-learning" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "learningId": { "$ref": "#/$defs/learningId" }, "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "statement": { "$ref": "#/$defs/text" }, "outcomeId": { "$ref": "#/$defs/outcomeId" }, "assumptionIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/assumptionId" } }, "decisionIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/decisionId" } }, "evidenceRefIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } }, "sourceArtifactId": { "$ref": "#/$defs/artifactId" }, "createdAt": { "type": "string", "format": "date-time" }
|
|
11
|
+
},
|
|
12
|
+
"$defs": { "artifactId": { "type": "string", "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "assumptionId": { "type": "string", "pattern": "^asm_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "decisionId": { "type": "string", "pattern": "^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "evidenceRefId": { "type": "string", "pattern": "^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "id": { "type": "string", "minLength": 1, "maxLength": 128 }, "learningId": { "type": "string", "pattern": "^lrn_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "outcomeId": { "type": "string", "pattern": "^out_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "text": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^.*\\S.*$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" } }
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-live-evidence-consent-record.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-live-evidence-consent-record", "version": "2.0.0" },
|
|
5
|
+
"title": "Operating Live Evidence Consent Record",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "consentRecordId", "authority", "decision", "docket", "docketHash", "actor", "provider", "adapterVersion", "accountIdentityHash", "selectors", "scopes", "queryHash", "window", "ceilings", "classification", "purpose", "issuedAt", "expiresAt", "consentHash"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-live-evidence-consent-record" },
|
|
11
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
12
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
13
|
+
"consentRecordId": { "type": "string", "pattern": "^lcon_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
14
|
+
"authority": { "const": "none" },
|
|
15
|
+
"decision": { "const": "approved" },
|
|
16
|
+
"docket": { "$ref": "#/$defs/docket" },
|
|
17
|
+
"docketHash": { "$ref": "#/$defs/hash" },
|
|
18
|
+
"actor": { "type": "object", "additionalProperties": false, "required": ["actorId", "kind"], "properties": { "actorId": { "$ref": "#/$defs/textId" }, "kind": { "const": "human" } } },
|
|
19
|
+
"provider": { "$ref": "#/$defs/versionedId" },
|
|
20
|
+
"adapterVersion": { "$ref": "#/$defs/version" },
|
|
21
|
+
"accountIdentityHash": { "$ref": "#/$defs/hash" },
|
|
22
|
+
"selectors": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/textId" } },
|
|
23
|
+
"scopes": { "type": "array", "minItems": 1, "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/textId" } },
|
|
24
|
+
"queryHash": { "$ref": "#/$defs/hash" },
|
|
25
|
+
"window": { "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "type": "string", "format": "date-time" }, "to": { "type": "string", "format": "date-time" } } },
|
|
26
|
+
"ceilings": { "$ref": "#/$defs/bounds" },
|
|
27
|
+
"classification": { "enum": ["public", "internal", "confidential", "restricted"] },
|
|
28
|
+
"purpose": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
29
|
+
"issuedAt": { "type": "string", "format": "date-time" },
|
|
30
|
+
"expiresAt": { "type": "string", "format": "date-time" },
|
|
31
|
+
"consentHash": { "$ref": "#/$defs/hash" }
|
|
32
|
+
},
|
|
33
|
+
"$defs": {
|
|
34
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
35
|
+
"textId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$" },
|
|
36
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
|
|
37
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
38
|
+
"versionedId": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } },
|
|
39
|
+
"bounds": { "type": "object", "additionalProperties": false, "required": ["maxCalls", "maxPages", "maxRecords", "maxBytes"], "properties": { "maxCalls": { "type": "integer", "minimum": 1, "maximum": 100 }, "maxPages": { "type": "integer", "minimum": 1, "maximum": 100 }, "maxRecords": { "type": "integer", "minimum": 1, "maximum": 10000 }, "maxBytes": { "type": "integer", "minimum": 1, "maximum": 10485760 } } },
|
|
40
|
+
"docket": { "type": "object", "additionalProperties": false, "required": ["provider", "adapterVersion", "accountIdentityHash", "selectors", "effect", "scopes", "queryHash", "window", "ceilings", "classification", "sensitivity", "purpose", "expiresAt", "changedRecordDiffHash", "consequences", "authorityBoundary", "choices", "defaultChoice", "cancelEffect"], "properties": { "provider": { "$ref": "#/$defs/versionedId" }, "adapterVersion": { "$ref": "#/$defs/version" }, "accountIdentityHash": { "$ref": "#/$defs/hash" }, "selectors": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/textId" } }, "effect": { "const": "provider-call" }, "scopes": { "type": "array", "minItems": 1, "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/textId" } }, "queryHash": { "$ref": "#/$defs/hash" }, "window": { "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "type": "string", "format": "date-time" }, "to": { "type": "string", "format": "date-time" } } }, "ceilings": { "$ref": "#/$defs/bounds" }, "classification": { "enum": ["public", "internal", "confidential", "restricted"] }, "sensitivity": { "enum": ["public", "internal", "confidential", "restricted"] }, "purpose": { "type": "string", "minLength": 1, "maxLength": 512 }, "expiresAt": { "type": "string", "format": "date-time" }, "changedRecordDiffHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "consequences": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "type": "string", "minLength": 1, "maxLength": 512 } }, "authorityBoundary": { "const": "consent-is-not-access-authority" }, "choices": { "type": "array", "minItems": 2, "maxItems": 2, "prefixItems": [{ "const": "approve" }, { "const": "cancel" }], "items": false }, "defaultChoice": { "const": null }, "cancelEffect": { "const": "none" } } }
|
|
41
|
+
}
|
|
42
|
+
}
|