@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,237 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-decision-ledger.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-decision-ledger", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 challenged decision ledger",
|
|
6
|
+
"description": "Chair-authored synthesis with exact local source references and a total disposition for every material board input. Runtime acceptance owns timestamps.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": [
|
|
10
|
+
"kind", "schemaVersion", "protocolVersion", "assignmentId", "roleId", "roleVersion", "analysisProfile", "ledgerId",
|
|
11
|
+
"scopeId", "domainId", "domainVersion", "snapshotId", "intelligencePlanId", "summary",
|
|
12
|
+
"advisorArtifactIds", "challengerArtifactId", "advisorAbsenceGaps", "evidenceGaps",
|
|
13
|
+
"questionCoverage", "decisions", "sourceDispositions", "dissent", "sourceArtifactId"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"kind": { "const": "operating-decision-ledger" },
|
|
17
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
18
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
19
|
+
"assignmentId": { "$ref": "#/$defs/assignmentId" },
|
|
20
|
+
"roleId": { "$ref": "#/$defs/identifier" },
|
|
21
|
+
"roleVersion": { "$ref": "#/$defs/version" },
|
|
22
|
+
"analysisProfile": { "$ref": "operating-assignment.schema.json#/$defs/analysisProfile" },
|
|
23
|
+
"ledgerId": { "$ref": "#/$defs/ledgerId" },
|
|
24
|
+
"scopeId": { "$ref": "#/$defs/id" },
|
|
25
|
+
"domainId": { "$ref": "#/$defs/identifier" },
|
|
26
|
+
"domainVersion": { "$ref": "#/$defs/version" },
|
|
27
|
+
"snapshotId": { "$ref": "#/$defs/snapshotId" },
|
|
28
|
+
"intelligencePlanId": { "$ref": "#/$defs/planId" },
|
|
29
|
+
"summary": { "$ref": "#/$defs/text" },
|
|
30
|
+
"advisorArtifactIds": { "type": "array", "maxItems": 16, "uniqueItems": true, "items": { "$ref": "#/$defs/artifactId" } },
|
|
31
|
+
"challengerArtifactId": { "type": ["string", "null"], "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
32
|
+
"advisorAbsenceGaps": { "type": "array", "maxItems": 16, "items": { "$ref": "operating-assignment.schema.json#/$defs/roleInputAbsence" } },
|
|
33
|
+
"evidenceGaps": { "type": "array", "maxItems": 2048, "items": { "$ref": "operating-assignment.schema.json#/$defs/evidenceInputAbsence" } },
|
|
34
|
+
"questionCoverage": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/questionCoverage" } },
|
|
35
|
+
"decisions": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/decision" } },
|
|
36
|
+
"sourceDispositions": { "type": "array", "maxItems": 4096, "items": { "$ref": "#/$defs/sourceDisposition" } },
|
|
37
|
+
"dissent": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/dissent" } },
|
|
38
|
+
"sourceArtifactId": { "$ref": "#/$defs/artifactId" }
|
|
39
|
+
},
|
|
40
|
+
"allOf": [{
|
|
41
|
+
"if": { "properties": { "decisions": { "maxItems": 0 } }, "required": ["decisions"] },
|
|
42
|
+
"then": {
|
|
43
|
+
"anyOf": [
|
|
44
|
+
{ "properties": { "advisorAbsenceGaps": { "minItems": 1 } } },
|
|
45
|
+
{ "properties": { "evidenceGaps": { "minItems": 1 } } },
|
|
46
|
+
{ "properties": { "sourceDispositions": { "minItems": 1 } } }
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}],
|
|
50
|
+
"$defs": {
|
|
51
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
52
|
+
"identifier": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
53
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
|
|
54
|
+
"assignmentId": { "type": "string", "pattern": "^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
55
|
+
"artifactId": { "type": "string", "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
56
|
+
"evidenceRefId": { "type": "string", "pattern": "^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
57
|
+
"assumptionId": { "type": "string", "pattern": "^asm_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
58
|
+
"ledgerId": { "type": "string", "pattern": "^ldg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
59
|
+
"planId": { "type": "string", "pattern": "^ipl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
60
|
+
"snapshotId": { "type": "string", "pattern": "^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
61
|
+
"localDecisionId": { "type": "string", "pattern": "^decision:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
62
|
+
"advisorClaimId": { "type": "string", "pattern": "^claim:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
63
|
+
"advisorRecommendationId": { "type": "string", "pattern": "^recommendation:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:1$" },
|
|
64
|
+
"advisorOutcomeId": { "type": "string", "pattern": "^outcome:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:1$" },
|
|
65
|
+
"alternativeId": { "type": "string", "pattern": "^alternative:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
66
|
+
"findingId": { "type": "string", "pattern": "^finding:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
67
|
+
"dissentId": { "type": "string", "pattern": "^dissent:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
68
|
+
"actionHypothesisId": { "type": "string", "pattern": "^action-hypothesis:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
69
|
+
"text": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^[\\s\\S]*\\S[\\s\\S]*$" },
|
|
70
|
+
"trimmedText": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^\\S(?:[\\s\\S]*\\S)?$" },
|
|
71
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^\\S(?:[\\s\\S]*\\S)?$", "not": { "pattern": "(?:<[^>]+>|\\{\\{[^}]+\\}\\})" } },
|
|
72
|
+
"claimRef": {
|
|
73
|
+
"type": "object", "additionalProperties": false, "required": ["advisorArtifactId", "localClaimId"],
|
|
74
|
+
"properties": { "advisorArtifactId": { "$ref": "#/$defs/artifactId" }, "localClaimId": { "$ref": "#/$defs/advisorClaimId" } }
|
|
75
|
+
},
|
|
76
|
+
"questionCoverage": {
|
|
77
|
+
"type": "object", "additionalProperties": false,
|
|
78
|
+
"required": ["questionId", "disposition", "answer", "decisionIds", "findingIds", "dissentIds", "absenceIds", "justification"],
|
|
79
|
+
"properties": {
|
|
80
|
+
"questionId": { "$ref": "#/$defs/identifier" },
|
|
81
|
+
"disposition": { "enum": ["answered", "gap", "not-applicable"] },
|
|
82
|
+
"answer": { "$ref": "#/$defs/text" },
|
|
83
|
+
"decisionIds": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/localDecisionId" } },
|
|
84
|
+
"findingIds": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/findingId" } },
|
|
85
|
+
"dissentIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/dissentId" } },
|
|
86
|
+
"absenceIds": { "type": "array", "maxItems": 2048, "uniqueItems": true, "items": { "$ref": "operating-assignment.schema.json#/$defs/absenceId" } },
|
|
87
|
+
"justification": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] }
|
|
88
|
+
},
|
|
89
|
+
"allOf": [
|
|
90
|
+
{
|
|
91
|
+
"if": { "properties": { "disposition": { "const": "answered" } }, "required": ["disposition"] },
|
|
92
|
+
"then": {
|
|
93
|
+
"properties": { "absenceIds": { "maxItems": 0 }, "justification": { "const": null } },
|
|
94
|
+
"anyOf": [
|
|
95
|
+
{ "properties": { "decisionIds": { "minItems": 1 } } },
|
|
96
|
+
{ "properties": { "findingIds": { "minItems": 1 } } },
|
|
97
|
+
{ "properties": { "dissentIds": { "minItems": 1 } } }
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"if": { "properties": { "disposition": { "const": "gap" } }, "required": ["disposition"] },
|
|
103
|
+
"then": {
|
|
104
|
+
"properties": {
|
|
105
|
+
"decisionIds": { "maxItems": 0 }, "findingIds": { "maxItems": 0 }, "dissentIds": { "maxItems": 0 },
|
|
106
|
+
"absenceIds": { "minItems": 1 }, "justification": { "const": null }
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"if": { "properties": { "disposition": { "const": "not-applicable" } }, "required": ["disposition"] },
|
|
112
|
+
"then": {
|
|
113
|
+
"properties": {
|
|
114
|
+
"decisionIds": { "maxItems": 0 }, "findingIds": { "maxItems": 0 }, "dissentIds": { "maxItems": 0 },
|
|
115
|
+
"absenceIds": { "maxItems": 0 }, "justification": { "$ref": "#/$defs/text" }
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"recommendationRef": {
|
|
122
|
+
"type": "object", "additionalProperties": false, "required": ["advisorArtifactId", "localRecommendationId"],
|
|
123
|
+
"properties": { "advisorArtifactId": { "$ref": "#/$defs/artifactId" }, "localRecommendationId": { "$ref": "#/$defs/advisorRecommendationId" } }
|
|
124
|
+
},
|
|
125
|
+
"alternativeDisposition": {
|
|
126
|
+
"type": "object", "additionalProperties": false,
|
|
127
|
+
"required": ["sourceArtifactId", "localAlternativeId", "title", "disposition", "rationale"],
|
|
128
|
+
"properties": {
|
|
129
|
+
"sourceArtifactId": { "$ref": "#/$defs/artifactId" }, "localAlternativeId": { "$ref": "#/$defs/alternativeId" },
|
|
130
|
+
"title": { "$ref": "#/$defs/title" }, "disposition": { "enum": ["accepted", "rejected", "deferred"] },
|
|
131
|
+
"rationale": { "$ref": "#/$defs/text" }
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"actionHypothesis": {
|
|
135
|
+
"type": "object", "additionalProperties": false,
|
|
136
|
+
"required": ["localActionHypothesisId", "title", "objectiveId", "ownerActorId", "accountabilityDisposition", "expectedResult", "metricId", "baseline", "target", "verificationWindow", "verificationMethod", "sourceClaimRefs", "sourceFindingIds", "dependsOnActionHypothesisIds"],
|
|
137
|
+
"properties": {
|
|
138
|
+
"localActionHypothesisId": { "$ref": "#/$defs/actionHypothesisId" }, "title": { "$ref": "#/$defs/title" },
|
|
139
|
+
"objectiveId": { "type": "string", "pattern": "^obj_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
140
|
+
"ownerActorId": { "type": ["string", "null"], "minLength": 1, "maxLength": 128 },
|
|
141
|
+
"accountabilityDisposition": { "type": ["string", "null"], "enum": [null, "unowned", "blocked"] },
|
|
142
|
+
"expectedResult": { "$ref": "#/$defs/trimmedText" }, "metricId": { "type": "string", "pattern": "^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
143
|
+
"baseline": { "type": "number" }, "target": { "type": "number" },
|
|
144
|
+
"verificationWindow": { "$ref": "#/$defs/trimmedText" }, "verificationMethod": { "$ref": "#/$defs/trimmedText" },
|
|
145
|
+
"sourceClaimRefs": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/claimRef" } },
|
|
146
|
+
"sourceFindingIds": { "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/findingId" } },
|
|
147
|
+
"dependsOnActionHypothesisIds": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/actionHypothesisId" } }
|
|
148
|
+
},
|
|
149
|
+
"allOf": [
|
|
150
|
+
{
|
|
151
|
+
"if": { "properties": { "ownerActorId": { "type": "null" } }, "required": ["ownerActorId"] },
|
|
152
|
+
"then": { "properties": { "accountabilityDisposition": { "enum": ["unowned", "blocked"] } } }
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"if": { "properties": { "ownerActorId": { "type": "string" } }, "required": ["ownerActorId"] },
|
|
156
|
+
"then": { "properties": { "accountabilityDisposition": { "const": null } } }
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"decision": {
|
|
161
|
+
"type": "object", "additionalProperties": false,
|
|
162
|
+
"required": [
|
|
163
|
+
"localDecisionId", "title", "question", "outcome", "rationale", "sourceClaimRefs", "sourceRecommendationRefs",
|
|
164
|
+
"challengerFindingIds", "evidenceRefIds", "alternativeDispositions", "confidence", "assumptionIds", "upside",
|
|
165
|
+
"downside", "uncertainty", "reversibility", "ownerActorId", "revisitConditions", "dissentIds", "actionHypotheses"
|
|
166
|
+
],
|
|
167
|
+
"properties": {
|
|
168
|
+
"localDecisionId": { "$ref": "#/$defs/localDecisionId" }, "title": { "$ref": "#/$defs/title" },
|
|
169
|
+
"question": { "$ref": "#/$defs/text" }, "outcome": { "$ref": "#/$defs/text" }, "rationale": { "$ref": "#/$defs/text" },
|
|
170
|
+
"sourceClaimRefs": { "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/claimRef" } },
|
|
171
|
+
"sourceRecommendationRefs": { "type": "array", "maxItems": 16, "items": { "$ref": "#/$defs/recommendationRef" } },
|
|
172
|
+
"challengerFindingIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/findingId" } },
|
|
173
|
+
"evidenceRefIds": { "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } },
|
|
174
|
+
"alternativeDispositions": { "type": "array", "maxItems": 64, "items": { "$ref": "#/$defs/alternativeDisposition" } },
|
|
175
|
+
"confidence": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
176
|
+
"assumptionIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/assumptionId" } },
|
|
177
|
+
"upside": { "$ref": "#/$defs/text" }, "downside": { "$ref": "#/$defs/text" }, "uncertainty": { "$ref": "#/$defs/text" },
|
|
178
|
+
"reversibility": { "$ref": "#/$defs/text" }, "ownerActorId": { "$ref": "#/$defs/id" },
|
|
179
|
+
"revisitConditions": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "#/$defs/text" } },
|
|
180
|
+
"dissentIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/dissentId" } },
|
|
181
|
+
"actionHypotheses": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/actionHypothesis" } }
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"sourceDisposition": {
|
|
185
|
+
"type": "object", "additionalProperties": false,
|
|
186
|
+
"required": ["sourceArtifactId", "sourceKind", "localSourceId", "sourceOutcome", "disposition", "localDecisionId", "rationale"],
|
|
187
|
+
"properties": {
|
|
188
|
+
"sourceArtifactId": { "$ref": "#/$defs/artifactId" },
|
|
189
|
+
"sourceKind": { "enum": ["advisor-outcome", "advisor-recommendation", "challenger-finding", "challenger-dissent"] },
|
|
190
|
+
"localSourceId": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
191
|
+
"sourceOutcome": { "type": ["string", "null"], "enum": [null, "partial", "quiet"] },
|
|
192
|
+
"disposition": { "enum": ["accepted", "rejected", "deferred", "noted"] },
|
|
193
|
+
"localDecisionId": { "type": ["string", "null"], "pattern": "^decision:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
194
|
+
"rationale": { "$ref": "#/$defs/text" }
|
|
195
|
+
},
|
|
196
|
+
"allOf": [
|
|
197
|
+
{
|
|
198
|
+
"if": { "properties": { "disposition": { "const": "accepted" } }, "required": ["disposition"] },
|
|
199
|
+
"then": { "properties": { "localDecisionId": { "$ref": "#/$defs/localDecisionId" } } }
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"if": { "properties": { "sourceKind": { "const": "advisor-outcome" } }, "required": ["sourceKind"] },
|
|
203
|
+
"then": {
|
|
204
|
+
"properties": {
|
|
205
|
+
"localSourceId": { "$ref": "#/$defs/advisorOutcomeId" },
|
|
206
|
+
"sourceOutcome": { "enum": ["partial", "quiet"] },
|
|
207
|
+
"disposition": { "const": "noted" },
|
|
208
|
+
"localDecisionId": { "const": null }
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"if": { "properties": { "sourceKind": { "const": "advisor-recommendation" } }, "required": ["sourceKind"] },
|
|
214
|
+
"then": { "properties": { "localSourceId": { "$ref": "#/$defs/advisorRecommendationId" }, "sourceOutcome": { "const": null } } }
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"if": { "properties": { "sourceKind": { "const": "challenger-finding" } }, "required": ["sourceKind"] },
|
|
218
|
+
"then": { "properties": { "localSourceId": { "$ref": "#/$defs/findingId" }, "sourceOutcome": { "const": null } } }
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"if": { "properties": { "sourceKind": { "const": "challenger-dissent" } }, "required": ["sourceKind"] },
|
|
222
|
+
"then": { "properties": { "localSourceId": { "$ref": "#/$defs/dissentId" }, "sourceOutcome": { "const": null } } }
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"dissent": {
|
|
227
|
+
"type": "object", "additionalProperties": false,
|
|
228
|
+
"required": ["sourceArtifactId", "localDissentId", "findingIds", "statement", "evidenceRefIds", "resolutionCondition"],
|
|
229
|
+
"properties": {
|
|
230
|
+
"sourceArtifactId": { "$ref": "#/$defs/artifactId" }, "localDissentId": { "$ref": "#/$defs/dissentId" },
|
|
231
|
+
"findingIds": { "type": "array", "minItems": 1, "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/findingId" } },
|
|
232
|
+
"statement": { "$ref": "#/$defs/text" }, "evidenceRefIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } },
|
|
233
|
+
"resolutionCondition": { "$ref": "#/$defs/text" }
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-decision.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-decision", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 persistent decision revision",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"kind", "schemaVersion", "protocolVersion", "decisionId", "scopeId", "domainId", "domainVersion",
|
|
10
|
+
"origin", "sourceCycleId", "sourceArtifactId", "title", "question", "outcome", "rationale",
|
|
11
|
+
"evidenceRefIds", "alternatives", "confidence", "assumptionIds", "expectedUpside", "expectedDownside", "dissent",
|
|
12
|
+
"reopenConditions", "revisitConditions", "state", "ownerActorId", "revisitAt", "revision",
|
|
13
|
+
"predecessorDecisionId", "historyDecisionIds", "createdAt", "updatedAt"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"kind": { "const": "operating-decision" },
|
|
17
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
18
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
19
|
+
"decisionId": { "type": "string", "pattern": "^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
20
|
+
"scopeId": { "$ref": "#/$defs/nonPlaceholder" },
|
|
21
|
+
"domainId": { "$ref": "#/$defs/nonPlaceholder" },
|
|
22
|
+
"domainVersion": { "allOf": [{ "$ref": "#/$defs/nonPlaceholder" }, { "maxLength": 64 }] },
|
|
23
|
+
"origin": { "enum": ["persistent-work", "operating-intelligence"] },
|
|
24
|
+
"sourceCycleId": { "$ref": "#/$defs/cycleId" },
|
|
25
|
+
"sourceArtifactId": { "$ref": "#/$defs/artifactId" },
|
|
26
|
+
"sourceAssignmentId": { "$ref": "#/$defs/assignmentId" },
|
|
27
|
+
"sourceLocalDecisionId": { "$ref": "#/$defs/localDecisionId" },
|
|
28
|
+
"title": { "$ref": "#/$defs/title" },
|
|
29
|
+
"question": { "$ref": "#/$defs/nonBlankText" },
|
|
30
|
+
"outcome": { "type": ["string", "null"], "minLength": 1, "maxLength": 4096, "pattern": "^[\\s\\S]*\\S[\\s\\S]*$" },
|
|
31
|
+
"rationale": { "$ref": "#/$defs/nonBlankText" },
|
|
32
|
+
"sourceClaimRefs": { "type": "array", "minItems": 1, "maxItems": 256, "items": { "$ref": "#/$defs/claimRef" } },
|
|
33
|
+
"claimIds": { "type": "array", "minItems": 1, "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/claimId" } },
|
|
34
|
+
"sourceRecommendationRefs": { "type": "array", "maxItems": 64, "items": { "$ref": "#/$defs/recommendationRef" } },
|
|
35
|
+
"challengerFindingIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/localFindingId" } },
|
|
36
|
+
"findingIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/findingId" } },
|
|
37
|
+
"evidenceRefIds": { "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } },
|
|
38
|
+
"alternativeDispositions": { "type": "array", "maxItems": 64, "items": { "$ref": "#/$defs/alternativeDisposition" } },
|
|
39
|
+
"alternatives": { "type": "array", "maxItems": 64, "items": { "$ref": "#/$defs/nonBlankText" } },
|
|
40
|
+
"confidence": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
41
|
+
"assumptionIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/assumptionId" } },
|
|
42
|
+
"expectedUpside": { "$ref": "#/$defs/nonBlankText" },
|
|
43
|
+
"expectedDownside": { "$ref": "#/$defs/nonBlankText" },
|
|
44
|
+
"uncertainty": { "$ref": "#/$defs/nonBlankText" },
|
|
45
|
+
"reversibility": { "$ref": "#/$defs/nonBlankText" },
|
|
46
|
+
"dissentIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/localDissentId" } },
|
|
47
|
+
"dissent": { "type": "array", "maxItems": 128, "items": { "$ref": "#/$defs/nonBlankText" } },
|
|
48
|
+
"reopenConditions": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "#/$defs/nonBlankText" } },
|
|
49
|
+
"revisitConditions": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "#/$defs/nonBlankText" } },
|
|
50
|
+
"state": { "type": "string", "enum": ["proposed", "approved", "rejected", "deferred", "superseded"] },
|
|
51
|
+
"ownerActorId": { "$ref": "#/$defs/nonPlaceholder" },
|
|
52
|
+
"revisitAt": { "type": ["string", "null"], "format": "date-time" },
|
|
53
|
+
"revision": { "type": "integer", "minimum": 1 },
|
|
54
|
+
"predecessorDecisionId": { "type": ["string", "null"], "pattern": "^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
55
|
+
"historyDecisionIds": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/decisionId" } },
|
|
56
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
57
|
+
"updatedAt": { "type": "string", "format": "date-time" }
|
|
58
|
+
},
|
|
59
|
+
"allOf": [
|
|
60
|
+
{
|
|
61
|
+
"if": { "properties": { "origin": { "const": "persistent-work" } }, "required": ["origin"] },
|
|
62
|
+
"then": {
|
|
63
|
+
"not": {
|
|
64
|
+
"anyOf": [
|
|
65
|
+
{ "required": ["sourceAssignmentId"] },
|
|
66
|
+
{ "required": ["sourceLocalDecisionId"] },
|
|
67
|
+
{ "required": ["sourceClaimRefs"] },
|
|
68
|
+
{ "required": ["claimIds"] },
|
|
69
|
+
{ "required": ["sourceRecommendationRefs"] },
|
|
70
|
+
{ "required": ["challengerFindingIds"] },
|
|
71
|
+
{ "required": ["findingIds"] },
|
|
72
|
+
{ "required": ["alternativeDispositions"] },
|
|
73
|
+
{ "required": ["uncertainty"] },
|
|
74
|
+
{ "required": ["reversibility"] },
|
|
75
|
+
{ "required": ["dissentIds"] }
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"if": { "properties": { "origin": { "const": "operating-intelligence" } }, "required": ["origin"] },
|
|
82
|
+
"then": {
|
|
83
|
+
"required": [
|
|
84
|
+
"sourceAssignmentId", "sourceLocalDecisionId", "sourceClaimRefs", "claimIds",
|
|
85
|
+
"sourceRecommendationRefs", "challengerFindingIds", "findingIds", "alternativeDispositions",
|
|
86
|
+
"uncertainty", "reversibility", "dissentIds"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"if": { "properties": { "state": { "const": "approved" } } },
|
|
92
|
+
"then": { "properties": { "outcome": { "type": "string", "minLength": 1, "pattern": "^[\\s\\S]*\\S[\\s\\S]*$" } } }
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"if": { "properties": { "revision": { "minimum": 2 } } },
|
|
96
|
+
"then": { "properties": { "predecessorDecisionId": { "type": "string", "pattern": "^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } } }
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"$defs": {
|
|
100
|
+
"assignmentId": { "type": "string", "pattern": "^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
101
|
+
"artifactId": { "type": "string", "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
102
|
+
"assumptionId": { "type": "string", "pattern": "^asm_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
103
|
+
"cycleId": { "type": "string", "pattern": "^cyc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
104
|
+
"decisionId": { "type": "string", "pattern": "^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
105
|
+
"claimId": { "type": "string", "pattern": "^clm_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
106
|
+
"findingId": { "type": "string", "pattern": "^fnd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
107
|
+
"evidenceRefId": { "type": "string", "pattern": "^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
108
|
+
"localAlternativeId": { "type": "string", "pattern": "^alternative:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
109
|
+
"localClaimId": { "type": "string", "pattern": "^claim:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
110
|
+
"localDecisionId": { "type": "string", "pattern": "^decision:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
111
|
+
"localDissentId": { "type": "string", "pattern": "^dissent:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
112
|
+
"localFindingId": { "type": "string", "pattern": "^finding:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$" },
|
|
113
|
+
"localRecommendationId": { "type": "string", "pattern": "^recommendation:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:1$" },
|
|
114
|
+
"claimRef": {
|
|
115
|
+
"type": "object", "additionalProperties": false, "required": ["advisorArtifactId", "localClaimId"],
|
|
116
|
+
"properties": { "advisorArtifactId": { "$ref": "#/$defs/artifactId" }, "localClaimId": { "$ref": "#/$defs/localClaimId" } }
|
|
117
|
+
},
|
|
118
|
+
"recommendationRef": {
|
|
119
|
+
"type": "object", "additionalProperties": false, "required": ["advisorArtifactId", "localRecommendationId"],
|
|
120
|
+
"properties": { "advisorArtifactId": { "$ref": "#/$defs/artifactId" }, "localRecommendationId": { "$ref": "#/$defs/localRecommendationId" } }
|
|
121
|
+
},
|
|
122
|
+
"alternativeDisposition": {
|
|
123
|
+
"type": "object", "additionalProperties": false,
|
|
124
|
+
"required": ["sourceArtifactId", "localAlternativeId", "title", "disposition", "rationale"],
|
|
125
|
+
"properties": {
|
|
126
|
+
"sourceArtifactId": { "$ref": "#/$defs/artifactId" },
|
|
127
|
+
"localAlternativeId": { "$ref": "#/$defs/localAlternativeId" },
|
|
128
|
+
"title": { "$ref": "#/$defs/title" },
|
|
129
|
+
"disposition": { "enum": ["accepted", "rejected", "deferred"] },
|
|
130
|
+
"rationale": { "$ref": "#/$defs/nonBlankText" }
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"nonBlankText": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^[\\s\\S]*\\S[\\s\\S]*$" },
|
|
134
|
+
"nonPlaceholder": { "type": "string", "minLength": 1, "maxLength": 128, "not": { "pattern": "(?:<[^>]+>|\\{\\{[^}]+\\}\\})" } },
|
|
135
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^\\S(?:[\\s\\S]*\\S)?$", "not": { "pattern": "(?:<[^>]+>|\\{\\{[^}]+\\}\\})" } }
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-delivery-evidence.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-delivery-evidence", "version": "1.0.0" },
|
|
5
|
+
"title": "OpenPlanr Planning delivery evidence for Operate",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "deliveryEvidenceId", "correlationId", "proposalId", "proposalRevision", "scopeId", "domainId", "domainVersion", "decision", "action", "metric", "verification", "spec", "planRun", "shipRun", "tasks", "changedSurfaces", "qa", "limitations", "artifacts", "classification", "summary", "deliveryStatus", "rollback", "outcomeStatus", "createdAt", "deliveryEvidenceHash"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-delivery-evidence" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" },
|
|
11
|
+
"deliveryEvidenceId": { "type": "string", "pattern": "^dlev_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "correlationId": { "$ref": "#/$defs/id" }, "proposalId": { "$ref": "#/$defs/id" }, "proposalRevision": { "const": 2 },
|
|
12
|
+
"scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" },
|
|
13
|
+
"decision": { "$ref": "#/$defs/source" }, "action": { "$ref": "#/$defs/source" }, "metric": { "$ref": "#/$defs/metric" }, "verification": { "$ref": "#/$defs/verification" },
|
|
14
|
+
"spec": { "type": "object", "additionalProperties": false, "required": ["specId", "contentHash", "originHash"], "properties": { "specId": { "type": "string", "pattern": "^SPEC-[0-9]{3,}$" }, "contentHash": { "$ref": "#/$defs/hash" }, "originHash": { "$ref": "#/$defs/hash" } } },
|
|
15
|
+
"planRun": { "$ref": "#/$defs/planRun" }, "shipRun": { "$ref": "#/$defs/shipRun" },
|
|
16
|
+
"tasks": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["taskId", "status", "artifactHash"], "properties": { "taskId": { "$ref": "#/$defs/id" }, "status": { "enum": ["done", "blocked", "failed", "skipped"] }, "artifactHash": { "$ref": "#/$defs/hash" } } } },
|
|
17
|
+
"changedSurfaces": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/text" } },
|
|
18
|
+
"qa": { "type": "object", "additionalProperties": false, "required": ["status", "reportHash", "summary"], "properties": { "status": { "enum": ["passed", "failed", "skipped"] }, "reportHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "summary": { "$ref": "#/$defs/text" } } },
|
|
19
|
+
"limitations": { "type": "array", "items": { "$ref": "#/$defs/text" } },
|
|
20
|
+
"artifacts": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["artifactId", "hash", "classification"], "properties": { "artifactId": { "$ref": "#/$defs/id" }, "hash": { "$ref": "#/$defs/hash" }, "classification": { "enum": ["public", "internal", "confidential", "restricted"] } } } },
|
|
21
|
+
"classification": { "enum": ["public", "internal", "confidential", "restricted"] }, "summary": { "$ref": "#/$defs/text" },
|
|
22
|
+
"deliveryStatus": { "enum": ["succeeded", "blocked", "failed", "rolled-back"] },
|
|
23
|
+
"rollback": { "oneOf": [
|
|
24
|
+
{ "type": "null" },
|
|
25
|
+
{ "type": "object", "additionalProperties": false, "required": ["rollbackPlanId", "rollbackPlanArtifactId", "rollbackPlanHash", "rollbackResultId", "rollbackResultArtifactId", "rollbackResultHash", "rollbackReceiptId", "rollbackReceiptArtifactId", "rollbackReceiptHash", "rollbackProvenanceEventId", "originalShipRunId", "rollbackRunId", "targetBeforeHash", "targetAfterHash", "status", "completedAt"], "properties": {
|
|
26
|
+
"rollbackPlanId": { "$ref": "#/$defs/id" }, "rollbackPlanArtifactId": { "$ref": "#/$defs/id" }, "rollbackPlanHash": { "$ref": "#/$defs/hash" },
|
|
27
|
+
"rollbackResultId": { "$ref": "#/$defs/id" }, "rollbackResultArtifactId": { "$ref": "#/$defs/id" }, "rollbackResultHash": { "$ref": "#/$defs/hash" },
|
|
28
|
+
"rollbackReceiptId": { "$ref": "#/$defs/id" }, "rollbackReceiptArtifactId": { "$ref": "#/$defs/id" }, "rollbackReceiptHash": { "$ref": "#/$defs/hash" }, "rollbackProvenanceEventId": { "$ref": "#/$defs/id" },
|
|
29
|
+
"originalShipRunId": { "$ref": "#/$defs/id" }, "rollbackRunId": { "$ref": "#/$defs/id" },
|
|
30
|
+
"targetBeforeHash": { "$ref": "#/$defs/hash" }, "targetAfterHash": { "$ref": "#/$defs/hash" },
|
|
31
|
+
"status": { "const": "succeeded" }, "completedAt": { "type": "string", "format": "date-time" }
|
|
32
|
+
} }
|
|
33
|
+
] },
|
|
34
|
+
"outcomeStatus": { "const": "verification-required" },
|
|
35
|
+
"createdAt": { "type": "string", "format": "date-time" }, "deliveryEvidenceHash": { "$ref": "#/$defs/hash" }
|
|
36
|
+
},
|
|
37
|
+
"$defs": {
|
|
38
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 }, "version": { "type": "string", "minLength": 1, "maxLength": 64 }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "text": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^.*\\S.*$" },
|
|
39
|
+
"source": { "type": "object", "additionalProperties": false, "required": ["id", "revision", "hash"], "properties": { "id": { "$ref": "#/$defs/id" }, "revision": { "type": "integer", "minimum": 1 }, "hash": { "$ref": "#/$defs/hash" } } },
|
|
40
|
+
"metric": { "type": "object", "additionalProperties": false, "required": ["metricId", "metricHash"], "properties": { "metricId": { "$ref": "#/$defs/id" }, "metricHash": { "$ref": "#/$defs/hash" } } },
|
|
41
|
+
"verification": { "type": "object", "additionalProperties": false, "required": ["verificationPlanId", "verificationPlanHash", "metricId", "metricHash", "window"], "properties": { "verificationPlanId": { "$ref": "#/$defs/id" }, "verificationPlanHash": { "$ref": "#/$defs/hash" }, "metricId": { "$ref": "#/$defs/id" }, "metricHash": { "$ref": "#/$defs/hash" }, "window": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^.*\\S.*$" } } },
|
|
42
|
+
"runBase": { "type": "object", "additionalProperties": false, "required": ["runId", "runtime", "packageVersion", "status"], "properties": { "runId": { "$ref": "#/$defs/id" }, "runtime": { "$ref": "#/$defs/id" }, "packageVersion": { "$ref": "#/$defs/version" }, "status": { "enum": ["succeeded", "blocked", "failed", "skipped"] } } },
|
|
43
|
+
"planRun": { "type": "object", "additionalProperties": false, "required": ["runId", "runtime", "packageVersion", "provenanceEventId", "provenanceEventHash", "status"], "properties": { "runId": { "$ref": "#/$defs/id" }, "runtime": { "$ref": "#/$defs/id" }, "packageVersion": { "$ref": "#/$defs/version" }, "provenanceEventId": { "$ref": "#/$defs/id" }, "provenanceEventHash": { "$ref": "#/$defs/hash" }, "status": { "enum": ["succeeded", "blocked", "failed", "skipped"] } } },
|
|
44
|
+
"shipRun": { "type": "object", "additionalProperties": false, "required": ["runId", "runtime", "packageVersion", "manifestHash", "provenanceEventId", "provenanceEventHash", "status"], "properties": { "runId": { "$ref": "#/$defs/id" }, "runtime": { "$ref": "#/$defs/id" }, "packageVersion": { "$ref": "#/$defs/version" }, "manifestHash": { "$ref": "#/$defs/hash" }, "provenanceEventId": { "$ref": "#/$defs/id" }, "provenanceEventHash": { "$ref": "#/$defs/hash" }, "status": { "enum": ["succeeded", "blocked", "failed", "skipped"] } } }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-delivery-route.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-delivery-route", "version": "1.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate delivery route",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "routeId", "scopeId", "domainId", "domainVersion", "action", "eventHead", "route", "rationale", "createdAt", "routeHash"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-delivery-route" },
|
|
11
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
12
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
13
|
+
"routeId": { "type": "string", "pattern": "^droute_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
14
|
+
"scopeId": { "$ref": "#/$defs/id" },
|
|
15
|
+
"domainId": { "$ref": "#/$defs/id" },
|
|
16
|
+
"domainVersion": { "$ref": "#/$defs/version" },
|
|
17
|
+
"action": { "$ref": "#/$defs/action" },
|
|
18
|
+
"eventHead": { "$ref": "#/$defs/eventHead" },
|
|
19
|
+
"route": { "enum": ["contained-execution", "planning-work", "human-external", "observe-only"] },
|
|
20
|
+
"rationale": { "$ref": "#/$defs/text" },
|
|
21
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
22
|
+
"routeHash": { "$ref": "#/$defs/hash" }
|
|
23
|
+
},
|
|
24
|
+
"$defs": {
|
|
25
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
26
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
|
|
27
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
28
|
+
"text": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^.*\\S.*$" },
|
|
29
|
+
"action": {
|
|
30
|
+
"type": "object", "additionalProperties": false,
|
|
31
|
+
"required": ["actionId", "revision", "actionHash"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"actionId": { "type": "string", "pattern": "^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
34
|
+
"revision": { "type": "integer", "minimum": 1 },
|
|
35
|
+
"actionHash": { "$ref": "#/$defs/hash" }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"eventHead": { "oneOf": [
|
|
39
|
+
{ "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "const": 0 }, "hash": { "type": "null" } } },
|
|
40
|
+
{ "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "type": "integer", "minimum": 1 }, "hash": { "$ref": "#/$defs/hash" } } }
|
|
41
|
+
] }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -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-delta.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-delta", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 deterministic operating delta",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "deltaId", "scopeId", "domainId", "domainVersion", "priorSnapshotId", "currentSnapshotId", "sourceRevisionChanges", "metricChanges", "staleEvidenceRefIds", "conflictingEvidenceRefIds", "invalidatedAssumptionIds", "exposedRiskIds", "decisionRevisitIds", "sourceArtifactId", "derivedAt"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-delta" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "deltaId": { "$ref": "#/$defs/deltaId" }, "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "priorSnapshotId": { "type": ["string", "null"], "pattern": "^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "currentSnapshotId": { "$ref": "#/$defs/snapshotId" }, "sourceRevisionChanges": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/change" } }, "metricChanges": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/change" } }, "staleEvidenceRefIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } }, "conflictingEvidenceRefIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } }, "invalidatedAssumptionIds": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/assumptionId" } }, "exposedRiskIds": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/riskId" } }, "decisionRevisitIds": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/decisionId" } }, "sourceArtifactId": { "$ref": "#/$defs/artifactId" }, "derivedAt": { "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}$" }, "change": { "type": "object", "additionalProperties": false, "required": ["subjectId", "kind"], "properties": { "subjectId": { "$ref": "#/$defs/id" }, "kind": { "enum": ["added", "removed", "changed", "stale", "conflict"] }, "evidenceRefIds": { "type": "array", "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } } } }, "decisionId": { "type": "string", "pattern": "^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "deltaId": { "type": "string", "pattern": "^dlt_[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 }, "riskId": { "type": "string", "pattern": "^rsk_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "snapshotId": { "type": "string", "pattern": "^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" } }
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-domain-projection.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-domain-projection", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 rebuildable domain projection descriptor",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "projectionId", "scopeId", "domainId", "domainVersion", "domainContract", "snapshotId", "stateId", "sourceArtifactIds", "projectionContract", "derivedAt"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-domain-projection" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "projectionId": { "$ref": "#/$defs/projectionId" }, "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "domainContract": { "$ref": "#/$defs/domainContract" }, "snapshotId": { "$ref": "#/$defs/snapshotId" }, "stateId": { "$ref": "#/$defs/stateId" }, "sourceArtifactIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/artifactId" } }, "projectionContract": { "$ref": "#/$defs/contract" }, "derivedAt": { "type": "string", "format": "date-time" }
|
|
11
|
+
},
|
|
12
|
+
"$defs": {
|
|
13
|
+
"artifactId": { "type": "string", "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "contract": { "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"], "properties": { "schemaId": { "type": "string", "minLength": 1, "maxLength": 128 }, "schemaVersion": { "$ref": "#/$defs/version" } } }, "domainContract": { "type": "object", "additionalProperties": false, "required": ["apiDomainId", "id", "version"], "properties": { "apiDomainId": { "$ref": "#/$defs/id" }, "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } }, "id": { "type": "string", "minLength": 1, "maxLength": 128 }, "projectionId": { "type": "string", "pattern": "^prj_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "snapshotId": { "type": "string", "pattern": "^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "stateId": { "type": "string", "pattern": "^oms_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-event-trigger.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-event-trigger", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 analytical event trigger",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "triggerId", "scopeId", "domainId", "domainVersion", "snapshotId", "condition", "evidenceRefIds", "requestedWork", "sourceArtifactId", "createdAt"],
|
|
9
|
+
"properties": { "kind": { "const": "operating-event-trigger" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "triggerId": { "$ref": "#/$defs/triggerId" }, "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "snapshotId": { "$ref": "#/$defs/snapshotId" }, "condition": { "$ref": "#/$defs/text" }, "evidenceRefIds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } }, "requestedWork": { "enum": ["observation", "cycle"] }, "sourceArtifactId": { "$ref": "#/$defs/artifactId" }, "createdAt": { "type": "string", "format": "date-time" } },
|
|
10
|
+
"$defs": { "artifactId": { "type": "string", "pattern": "^art_[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 }, "snapshotId": { "type": "string", "pattern": "^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "text": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^.*\\S.*$" }, "triggerId": { "type": "string", "pattern": "^trg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" } }
|
|
11
|
+
}
|