@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,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://openplanr.dev/schemas/v2.0.0/operating-live-evidence-ingestion.schema.json", "x-openplanr-contract": { "id": "operating-live-evidence-ingestion", "version": "2.0.0" }, "title": "Operating Live Evidence Ingestion",
|
|
3
|
+
"type": "object", "additionalProperties": false,
|
|
4
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "ingestionId", "requestId", "requestHash", "assignment", "submission", "provider", "providerRegistration", "providerRegistrationHash", "resolverRegistration", "resolverRegistrationHash", "adapterVersion", "status", "consentRecordHash", "runtimeCapabilityHash", "checkpoint", "health", "boundsHash", "classification", "sourceContract", "sourceTiming", "records", "absences", "evidenceCandidates", "evidenceClaimLinks", "materialization", "ingestionHash"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"kind": { "const": "operating-live-evidence-ingestion" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" },
|
|
7
|
+
"ingestionId": { "type": "string", "pattern": "^ling_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "requestId": { "type": "string", "pattern": "^lreq_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "requestHash": { "$ref": "#/$defs/hash" },
|
|
8
|
+
"assignment": { "type": "object", "additionalProperties": false, "required": ["assignmentId", "assignmentRevision", "assignmentHash", "requestHash", "assignmentKind", "outputContract"], "properties": { "assignmentId": { "type": "string", "pattern": "^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "assignmentRevision": { "type": "integer", "minimum": 1 }, "assignmentHash": { "$ref": "#/$defs/hash" }, "requestHash": { "$ref": "#/$defs/hash" }, "assignmentKind": { "const": "verification" }, "outputContract": { "type": "object", "additionalProperties": false, "required": ["schemaId", "schemaVersion"], "properties": { "schemaId": { "const": "operating-live-evidence-ingestion" }, "schemaVersion": { "const": "2.0.0" } } } } },
|
|
9
|
+
"submission": { "type": "object", "additionalProperties": false, "required": ["operation", "submissionId", "submittedEventId", "artifactCreatedEventId", "validatedEventId", "artifactId", "evidenceRefId"], "properties": { "operation": { "const": "operate.assignment.submit" }, "submissionId": { "type": "string", "pattern": "^sub_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "submittedEventId": { "type": "string", "pattern": "^evt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "artifactCreatedEventId": { "type": "string", "pattern": "^evt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "validatedEventId": { "type": "string", "pattern": "^evt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "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}$" } } },
|
|
10
|
+
"provider": { "$ref": "#/$defs/versionedId" }, "providerRegistration": { "$ref": "#/$defs/evidenceProviderRef" }, "providerRegistrationHash": { "$ref": "#/$defs/hash" }, "resolverRegistration": { "$ref": "#/$defs/resolverRef" }, "resolverRegistrationHash": { "$ref": "#/$defs/hash" }, "adapterVersion": { "$ref": "#/$defs/version" }, "status": { "enum": ["materialized", "absent", "uncertain"] }, "consentRecordHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "runtimeCapabilityHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
11
|
+
"checkpoint": { "type": "object", "additionalProperties": false, "required": ["checkpointId", "predecessorDigest", "checkpointHash"], "properties": { "checkpointId": { "type": "string", "pattern": "^lchk_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "predecessorDigest": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "checkpointHash": { "$ref": "#/$defs/hash" } } },
|
|
12
|
+
"health": { "$ref": "#/$defs/health" },
|
|
13
|
+
"boundsHash": { "$ref": "#/$defs/hash" }, "classification": { "$ref": "#/$defs/classification" }, "sourceContract": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "const": "1.0.0" } } },
|
|
14
|
+
"sourceTiming": { "type": "object", "additionalProperties": false, "required": ["requestedAt", "capturedAt", "freshUntil"], "properties": { "requestedAt": { "type": "string", "format": "date-time" }, "capturedAt": { "type": "string", "format": "date-time" }, "freshUntil": { "type": "string", "format": "date-time" } } },
|
|
15
|
+
"records": { "type": "array", "maxItems": 10000, "items": { "type": "object", "additionalProperties": false, "required": ["recordIdentityHash", "contentDigest", "classification"], "properties": { "recordIdentityHash": { "$ref": "#/$defs/hash" }, "contentDigest": { "$ref": "#/$defs/hash" }, "classification": { "$ref": "#/$defs/classification" } } } },
|
|
16
|
+
"absences": { "type": "array", "maxItems": 32, "items": { "$ref": "#/$defs/absence" } },
|
|
17
|
+
"evidenceCandidates": { "type": "array", "minItems": 1, "maxItems": 128, "items": { "$ref": "operating-evidence-candidate.schema.json" } },
|
|
18
|
+
"evidenceClaimLinks": { "type": "array", "maxItems": 256, "items": { "type": "object", "additionalProperties": false, "required": ["candidateId", "sourceArtifactId", "localClaimId", "relation", "confidence"], "properties": { "candidateId": { "type": "string", "pattern": "^evc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "sourceArtifactId": { "type": "string", "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "localClaimId": { "type": "string", "minLength": 1, "maxLength": 128 }, "relation": { "enum": ["supportedBy", "contradictedBy"] }, "confidence": { "type": "number", "minimum": 0, "maximum": 1 } } } },
|
|
19
|
+
"materialization": { "oneOf": [{ "type": "null" }, { "type": "object", "additionalProperties": false, "required": ["artifactId", "artifactCreatedEventId", "evidenceRefId", "contentDigest", "redactionVersion"], "properties": { "artifactId": { "type": "string", "pattern": "^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "artifactCreatedEventId": { "type": "string", "pattern": "^evt_[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}$" }, "contentDigest": { "$ref": "#/$defs/hash" }, "redactionVersion": { "$ref": "#/$defs/version" } } }] },
|
|
20
|
+
"ingestionHash": { "$ref": "#/$defs/hash" }
|
|
21
|
+
},
|
|
22
|
+
"$defs": {
|
|
23
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "classification": { "enum": ["public", "internal", "confidential", "restricted"] },
|
|
24
|
+
"versionedId": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } },
|
|
25
|
+
"absence": { "type": "object", "additionalProperties": false, "required": ["kind", "reasonCode", "required", "observedAt", "detailsHash"], "properties": { "kind": { "enum": ["missing-consent", "missing-credential", "stale", "unhealthy", "provider-unavailable", "rate-limited", "insufficient-evidence", "unsupported"] }, "reasonCode": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" }, "required": { "type": "boolean" }, "observedAt": { "type": "string", "format": "date-time" }, "detailsHash": { "$ref": "#/$defs/hash" } } },
|
|
26
|
+
"health": { "type": "object", "additionalProperties": false, "required": ["status", "checkedAt", "freshUntil", "proofDigest"], "properties": { "status": { "enum": ["available", "degraded", "unavailable"] }, "checkedAt": { "type": "string", "format": "date-time" }, "freshUntil": { "type": "string", "format": "date-time" }, "proofDigest": { "$ref": "#/$defs/hash" } } },
|
|
27
|
+
"evidenceProviderRef": { "type": "object", "additionalProperties": false, "required": ["contractId", "schemaVersion", "protocolVersion", "providerId", "providerVersion", "recordDigest"], "properties": { "contractId": { "const": "operate-evidence-provider-registration" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "providerId": { "$ref": "#/$defs/id" }, "providerVersion": { "$ref": "#/$defs/version" }, "recordDigest": { "$ref": "#/$defs/hash" } } },
|
|
28
|
+
"resolverRef": { "type": "object", "additionalProperties": false, "required": ["contractId", "schemaVersion", "protocolVersion", "resolverId", "resolverVersion", "recordDigest"], "properties": { "contractId": { "const": "operate-evidence-resolver-registration" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "resolverId": { "$ref": "#/$defs/id" }, "resolverVersion": { "$ref": "#/$defs/version" }, "recordDigest": { "$ref": "#/$defs/hash" } } }
|
|
29
|
+
},
|
|
30
|
+
"allOf": [{ "if": { "properties": { "status": { "const": "materialized" } }, "required": ["status"] }, "then": { "properties": { "health": { "properties": { "status": { "const": "available" } } }, "consentRecordHash": { "type": "string" }, "runtimeCapabilityHash": { "type": "string" }, "absences": { "maxItems": 0 }, "materialization": { "type": "object" } } } }]
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://openplanr.dev/schemas/v2.0.0/operating-measurement-plan.schema.json", "x-openplanr-contract": { "id": "operating-measurement-plan", "version": "2.0.0" }, "title": "Operating Measurement Plan",
|
|
3
|
+
"type": "object", "additionalProperties": false,
|
|
4
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "measurementPlanId", "action", "metric", "baseline", "target", "sources", "window", "dueAt", "freshnessSeconds", "sensitivity", "minimumEvidence", "terminalResults", "verificationPlan", "planHash"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"kind": { "const": "operating-measurement-plan" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "measurementPlanId": { "type": "string", "pattern": "^mpln_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
7
|
+
"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" } } },
|
|
8
|
+
"metric": { "type": "object", "additionalProperties": false, "required": ["metricId", "metricHash", "unit", "dimension"], "properties": { "metricId": { "type": "string", "pattern": "^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "metricHash": { "$ref": "#/$defs/hash" }, "unit": { "$ref": "#/$defs/id" }, "dimension": { "$ref": "#/$defs/id" } } },
|
|
9
|
+
"baseline": { "$ref": "#/$defs/value" },
|
|
10
|
+
"target": { "type": "object", "additionalProperties": false, "required": ["operator", "value", "unit", "direction"], "properties": { "operator": { "enum": ["gt", "gte", "lt", "lte", "eq", "between"] }, "value": { "oneOf": [{ "type": "number" }, { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number" } }] }, "unit": { "$ref": "#/$defs/id" }, "direction": { "enum": ["increase", "decrease", "maintain", "range"] } } },
|
|
11
|
+
"sources": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "type": "object", "additionalProperties": false, "required": ["provider", "queryHash", "consentRecordHash"], "properties": { "provider": { "$ref": "#/$defs/versionedId" }, "queryHash": { "$ref": "#/$defs/hash" }, "consentRecordHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" } } } },
|
|
12
|
+
"window": { "type": "object", "additionalProperties": false, "required": ["from", "to", "inclusive"], "properties": { "from": { "type": "string", "format": "date-time" }, "to": { "type": "string", "format": "date-time" }, "inclusive": { "const": true } } },
|
|
13
|
+
"dueAt": { "type": "string", "format": "date-time" }, "freshnessSeconds": { "type": "integer", "minimum": 1, "maximum": 31536000 }, "sensitivity": { "enum": ["public", "internal", "confidential", "restricted"] }, "minimumEvidence": { "type": "integer", "minimum": 1, "maximum": 1000 },
|
|
14
|
+
"terminalResults": { "type": "array", "minItems": 3, "maxItems": 3, "uniqueItems": true, "items": { "enum": ["passed", "failed", "insufficient-evidence"] } },
|
|
15
|
+
"verificationPlan": { "type": "object", "additionalProperties": false, "required": ["contractId", "schemaVersion", "protocolVersion", "verificationPlanId", "recordDigest", "canonicalTarget", "windowDigest", "methodDigest", "evaluationRulesDigest"], "properties": { "contractId": { "const": "operating-action-verification-plan" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "verificationPlanId": { "type": "string", "pattern": "^vfy_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "recordDigest": { "$ref": "#/$defs/hash" }, "canonicalTarget": { "type": "number" }, "windowDigest": { "$ref": "#/$defs/hash" }, "methodDigest": { "$ref": "#/$defs/hash" }, "evaluationRulesDigest": { "$ref": "#/$defs/hash" } } }, "planHash": { "$ref": "#/$defs/hash" }
|
|
16
|
+
},
|
|
17
|
+
"$defs": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "versionedId": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } }, "value": { "type": "object", "additionalProperties": false, "required": ["value", "unit", "observedAt", "evidenceHashes"], "properties": { "value": { "type": "number" }, "unit": { "$ref": "#/$defs/id" }, "observedAt": { "type": "string", "format": "date-time" }, "evidenceHashes": { "type": "array", "minItems": 1, "maxItems": 1000, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } } } } }
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://openplanr.dev/schemas/v2.0.0/operating-measurement-schedule-receipt.schema.json", "x-openplanr-contract": { "id": "operating-measurement-schedule-receipt", "version": "2.0.0" }, "title": "Operating Measurement Schedule Receipt",
|
|
3
|
+
"type": "object", "additionalProperties": false,
|
|
4
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "receiptId", "authority", "scheduleId", "scheduleHash", "previousScheduleHash", "resultingScheduleHash", "measurementPlanId", "planHash", "consentRecordHashes", "ceilingsHash", "clockHash", "recurrenceHash", "startsAt", "endsAt", "maxRuns", "misfirePolicy", "dstPolicy", "transition", "fromState", "toState", "previousRunCount", "resultingRunCount", "previousNextEventIdentity", "resultingNextEventIdentity", "previousNextDueAt", "resultingNextDueAt", "ownerActorId", "eventId", "nextEventIdentity", "at", "receiptHash"],
|
|
5
|
+
"properties": { "kind": { "const": "operating-measurement-schedule-receipt" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "receiptId": { "type": "string", "pattern": "^msrc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "authority": { "const": "none" }, "scheduleId": { "type": "string", "pattern": "^msch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "scheduleHash": { "$ref": "#/$defs/hash" }, "previousScheduleHash": { "$ref": "#/$defs/hash" }, "resultingScheduleHash": { "$ref": "#/$defs/hash" }, "measurementPlanId": { "type": "string", "pattern": "^mpln_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "planHash": { "$ref": "#/$defs/hash" }, "consentRecordHashes": { "type": "array", "maxItems": 16, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } }, "ceilingsHash": { "$ref": "#/$defs/hash" }, "clockHash": { "$ref": "#/$defs/hash" }, "recurrenceHash": { "$ref": "#/$defs/hash" }, "startsAt": { "type": "string", "format": "date-time" }, "endsAt": { "type": ["string", "null"], "format": "date-time" }, "maxRuns": { "type": "integer", "minimum": 1, "maximum": 10000 }, "misfirePolicy": { "enum": ["skip", "run-once"] }, "dstPolicy": { "enum": ["wall-clock", "elapsed-time"] }, "transition": { "enum": ["enable", "disable", "pause", "resume", "revoke", "expire", "complete", "run-issued"] }, "fromState": { "$ref": "#/$defs/state" }, "toState": { "$ref": "#/$defs/state" }, "previousRunCount": { "type": "integer", "minimum": 0 }, "resultingRunCount": { "type": "integer", "minimum": 0 }, "previousNextEventIdentity": { "type": ["string", "null"], "pattern": "^mevt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "resultingNextEventIdentity": { "type": ["string", "null"], "pattern": "^mevt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "previousNextDueAt": { "type": ["string", "null"], "format": "date-time" }, "resultingNextDueAt": { "type": ["string", "null"], "format": "date-time" }, "ownerActorId": { "type": "string", "minLength": 1, "maxLength": 128 }, "eventId": { "type": "string", "pattern": "^mevt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "nextEventIdentity": { "type": ["string", "null"], "pattern": "^mevt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "at": { "type": "string", "format": "date-time" }, "receiptHash": { "$ref": "#/$defs/hash" } },
|
|
6
|
+
"$defs": { "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "state": { "enum": ["disabled", "enabled", "paused", "revoked", "expired", "completed"] } }
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://openplanr.dev/schemas/v2.0.0/operating-measurement-schedule.schema.json", "x-openplanr-contract": { "id": "operating-measurement-schedule", "version": "2.0.0" }, "title": "Operating Measurement Schedule",
|
|
3
|
+
"type": "object", "additionalProperties": false,
|
|
4
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "scheduleId", "generation", "measurementPlanId", "planHash", "ownerActorId", "consentRecordHashes", "ceilingsHash", "recurrence", "startsAt", "endsAt", "maxRuns", "misfirePolicy", "dstPolicy", "state", "runCount", "nextEventIdentity", "nextDueAt", "lastReceiptId", "lastTransitionHash", "scheduleHash"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"kind": { "const": "operating-measurement-schedule" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "scheduleId": { "type": "string", "pattern": "^msch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "generation": { "type": "integer", "minimum": 0 }, "measurementPlanId": { "type": "string", "pattern": "^mpln_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "planHash": { "$ref": "#/$defs/hash" }, "ownerActorId": { "$ref": "#/$defs/textId" },
|
|
7
|
+
"consentRecordHashes": { "type": "array", "maxItems": 16, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } }, "ceilingsHash": { "$ref": "#/$defs/hash" },
|
|
8
|
+
"recurrence": { "type": "object", "additionalProperties": false, "required": ["kind", "intervalSeconds", "timeZone"], "properties": { "kind": { "enum": ["once", "interval"] }, "intervalSeconds": { "type": ["integer", "null"], "minimum": 60, "maximum": 31536000 }, "timeZone": { "type": "string", "minLength": 1, "maxLength": 64, "pattern": "^[A-Za-z_]+(?:/[A-Za-z0-9_+-]+)*$" } } },
|
|
9
|
+
"startsAt": { "type": "string", "format": "date-time" }, "endsAt": { "type": ["string", "null"], "format": "date-time" }, "maxRuns": { "type": "integer", "minimum": 1, "maximum": 10000 }, "misfirePolicy": { "enum": ["skip", "run-once"] }, "dstPolicy": { "enum": ["wall-clock", "elapsed-time"] }, "state": { "enum": ["disabled", "enabled", "paused", "revoked", "expired", "completed"] }, "runCount": { "type": "integer", "minimum": 0, "maximum": 10000 }, "nextEventIdentity": { "type": ["string", "null"], "pattern": "^mevt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "nextDueAt": { "type": ["string", "null"], "format": "date-time" }, "lastReceiptId": { "type": ["string", "null"], "pattern": "^msrc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "lastTransitionHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "scheduleHash": { "$ref": "#/$defs/hash" }
|
|
10
|
+
},
|
|
11
|
+
"allOf": [
|
|
12
|
+
{ "if": { "properties": { "state": { "const": "enabled" } }, "required": ["state"] }, "then": { "properties": { "consentRecordHashes": { "minItems": 1 }, "nextEventIdentity": { "type": "string" }, "nextDueAt": { "type": "string" } } } },
|
|
13
|
+
{ "if": { "properties": { "state": { "enum": ["disabled", "revoked", "expired", "completed"] } }, "required": ["state"] }, "then": { "properties": { "nextEventIdentity": { "const": null }, "nextDueAt": { "const": null } } } }
|
|
14
|
+
],
|
|
15
|
+
"$defs": { "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "textId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$" } }
|
|
16
|
+
}
|
|
@@ -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-metric-observation.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-metric-observation", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 immutable metric observation",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "observationId", "metricId", "scopeId", "domainId", "domainVersion", "value", "unit", "observedAt", "snapshotId", "evidenceRefIds", "sourceArtifactId"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-metric-observation" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "observationId": { "$ref": "#/$defs/observationId" }, "metricId": { "$ref": "#/$defs/metricId" }, "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "value": { "type": "number" }, "unit": { "$ref": "#/$defs/id" }, "observedAt": { "type": "string", "format": "date-time" }, "snapshotId": { "$ref": "#/$defs/snapshotId" }, "evidenceRefIds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } }, "sourceArtifactId": { "$ref": "#/$defs/artifactId" }
|
|
11
|
+
},
|
|
12
|
+
"$defs": {
|
|
13
|
+
"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 }, "metricId": { "type": "string", "pattern": "^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "observationId": { "type": "string", "pattern": "^mob_[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]*)$" }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-metric.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-metric", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 metric definition",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "metricId", "scopeId", "domainId", "domainVersion", "title", "unit", "aggregation", "window", "target", "threshold", "observationIds", "freshness", "evidenceRefIds", "sourceArtifactId", "createdAt", "updatedAt"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-metric" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" },
|
|
11
|
+
"metricId": { "$ref": "#/$defs/metricId" }, "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "title": { "$ref": "#/$defs/title" },
|
|
12
|
+
"unit": { "$ref": "#/$defs/id" }, "aggregation": { "enum": ["latest", "sum", "average", "minimum", "maximum", "ratio"] }, "window": { "$ref": "#/$defs/text" }, "target": { "type": ["number", "null"] }, "threshold": { "type": ["number", "null"] },
|
|
13
|
+
"observationIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/observationId" } }, "freshness": { "enum": ["current", "historical", "stale", "unknown"] }, "evidenceRefIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } }, "sourceArtifactId": { "$ref": "#/$defs/artifactId" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }
|
|
14
|
+
},
|
|
15
|
+
"$defs": {
|
|
16
|
+
"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 }, "metricId": { "type": "string", "pattern": "^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "observationId": { "type": "string", "pattern": "^mob_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "text": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^.*\\S.*$" }, "title": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^\\S(?:[\\s\\S]*\\S)?$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-model-state.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-model-state", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 domain-neutral operating model state",
|
|
6
|
+
"description": "A rebuildable projection containing exactly the seven domain-neutral operating collections. Typed claims, observations, outcomes, and learnings remain separately addressable records linked by IDs.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "stateId", "scopeId", "domainId", "domainVersion", "snapshotId", "runtimeHash", "objectives", "metrics", "findings", "decisions", "actions", "risks", "assumptions", "generatedAt"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": { "const": "operating-model-state" },
|
|
12
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
13
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
14
|
+
"stateId": { "$ref": "#/$defs/stateId" },
|
|
15
|
+
"scopeId": { "$ref": "#/$defs/id" },
|
|
16
|
+
"domainId": { "$ref": "#/$defs/id" },
|
|
17
|
+
"domainVersion": { "$ref": "#/$defs/version" },
|
|
18
|
+
"snapshotId": { "$ref": "#/$defs/snapshotId" },
|
|
19
|
+
"runtimeHash": { "$ref": "#/$defs/hash" },
|
|
20
|
+
"objectives": { "type": "array", "items": { "$ref": "operating-objective.schema.json" } },
|
|
21
|
+
"metrics": { "type": "array", "items": { "$ref": "operating-metric.schema.json" } },
|
|
22
|
+
"findings": { "type": "array", "items": { "$ref": "operating-finding.schema.json" } },
|
|
23
|
+
"decisions": { "type": "array", "items": { "$ref": "operating-decision.schema.json" } },
|
|
24
|
+
"actions": { "type": "array", "items": { "$ref": "operating-action.schema.json" } },
|
|
25
|
+
"risks": { "type": "array", "items": { "$ref": "operating-risk.schema.json" } },
|
|
26
|
+
"assumptions": { "type": "array", "items": { "$ref": "operating-assumption.schema.json" } },
|
|
27
|
+
"generatedAt": { "type": "string", "format": "date-time" }
|
|
28
|
+
},
|
|
29
|
+
"$defs": {
|
|
30
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
31
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128, "not": { "pattern": "(?:<[^>]+>|\\{\\{[^}]+\\}\\})" } },
|
|
32
|
+
"snapshotId": { "type": "string", "pattern": "^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
33
|
+
"stateId": { "type": "string", "pattern": "^oms_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
34
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-objective.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-objective", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 objective",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "objectiveId", "scopeId", "domainId", "domainVersion", "title", "status", "ownerActorId", "horizon", "successCriteria", "metricIds", "evidenceRefIds", "sourceArtifactId", "createdAt", "updatedAt"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-objective" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" },
|
|
11
|
+
"objectiveId": { "$ref": "#/$defs/objectiveId" }, "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" },
|
|
12
|
+
"title": { "$ref": "#/$defs/title" }, "status": { "enum": ["open", "at-risk", "achieved", "deferred", "superseded"] }, "ownerActorId": { "type": ["string", "null"], "minLength": 1, "maxLength": 128 },
|
|
13
|
+
"horizon": { "$ref": "#/$defs/text" }, "successCriteria": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/text" } }, "metricIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/metricId" } },
|
|
14
|
+
"evidenceRefIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } }, "sourceArtifactId": { "$ref": "#/$defs/artifactId" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }
|
|
15
|
+
},
|
|
16
|
+
"$defs": {
|
|
17
|
+
"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}$" },
|
|
18
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 }, "metricId": { "type": "string", "pattern": "^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "objectiveId": { "type": "string", "pattern": "^obj_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
19
|
+
"text": { "type": "string", "minLength": 1, "maxLength": 4096, "pattern": "^.*\\S.*$" }, "title": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^\\S(?:[\\s\\S]*\\S)?$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -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-origin.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-origin", "version": "1.0.0" },
|
|
5
|
+
"title": "OpenPlanr Planning operating origin sidecar",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "correlationId", "proposalId", "proposalRevision", "proposalHash", "scopeId", "domainId", "domainVersion", "cycleId", "eventHead", "decision", "action", "metric", "verification", "evidence", "spec", "actor", "transaction", "createdAt", "originHash"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-origin" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" },
|
|
11
|
+
"correlationId": { "$ref": "#/$defs/id" }, "proposalId": { "$ref": "#/$defs/id" }, "proposalRevision": { "const": 2 }, "proposalHash": { "$ref": "#/$defs/hash" },
|
|
12
|
+
"scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "cycleId": { "$ref": "#/$defs/id" }, "eventHead": { "$ref": "#/$defs/eventHead" },
|
|
13
|
+
"decision": { "$ref": "#/$defs/source" }, "action": { "$ref": "#/$defs/source" }, "metric": { "$ref": "#/$defs/metric" }, "verification": { "$ref": "#/$defs/verification" },
|
|
14
|
+
"evidence": { "type": "array", "items": { "$ref": "#/$defs/evidence" } },
|
|
15
|
+
"spec": { "type": "object", "additionalProperties": false, "required": ["specId", "slug", "contentHash", "status"], "properties": { "specId": { "type": "string", "pattern": "^SPEC-[0-9]{3,}$" }, "slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" }, "contentHash": { "$ref": "#/$defs/hash" }, "status": { "const": "shaping" } } },
|
|
16
|
+
"actor": { "type": "object", "additionalProperties": false, "required": ["actorId", "kind"], "properties": { "actorId": { "$ref": "#/$defs/id" }, "kind": { "const": "human" } } },
|
|
17
|
+
"transaction": { "type": "object", "additionalProperties": false, "required": ["transactionId", "receiptHash", "planningProvenanceEventId"], "properties": { "transactionId": { "$ref": "#/$defs/id" }, "receiptHash": { "$ref": "#/$defs/hash" }, "planningProvenanceEventId": { "$ref": "#/$defs/id" } } },
|
|
18
|
+
"createdAt": { "type": "string", "format": "date-time" }, "originHash": { "$ref": "#/$defs/hash" }
|
|
19
|
+
},
|
|
20
|
+
"$defs": {
|
|
21
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 }, "version": { "type": "string", "minLength": 1, "maxLength": 64 }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
22
|
+
"eventHead": { "oneOf": [
|
|
23
|
+
{ "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "const": 0 }, "hash": { "type": "null" } } },
|
|
24
|
+
{ "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "type": "integer", "minimum": 1 }, "hash": { "$ref": "#/$defs/hash" } } }
|
|
25
|
+
] },
|
|
26
|
+
"source": { "type": "object", "additionalProperties": false, "required": ["id", "revision", "hash"], "properties": { "id": { "$ref": "#/$defs/id" }, "revision": { "type": "integer", "minimum": 1 }, "hash": { "$ref": "#/$defs/hash" } } },
|
|
27
|
+
"metric": { "type": "object", "additionalProperties": false, "required": ["metricId", "metricHash"], "properties": { "metricId": { "$ref": "#/$defs/id" }, "metricHash": { "$ref": "#/$defs/hash" } } },
|
|
28
|
+
"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.*$" } } },
|
|
29
|
+
"evidence": { "type": "object", "additionalProperties": false, "required": ["evidenceRefId", "artifactId", "artifactHash", "classification", "accessState"], "properties": { "evidenceRefId": { "$ref": "#/$defs/id" }, "artifactId": { "$ref": "#/$defs/id" }, "artifactHash": { "$ref": "#/$defs/hash" }, "classification": { "enum": ["public", "internal", "confidential", "restricted"] }, "accessState": { "enum": ["available", "restricted"] } } }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -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-outcome-evaluation.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-outcome-evaluation", "version": "2.0.0" },
|
|
5
|
+
"title": "Operating Outcome Evaluation",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "evaluationId", "previousEvaluationHash", "measurementPlan", "verificationPlan", "outcome", "actionId", "metricId", "observations", "providerVersions", "window", "operator", "unit", "dimension", "baseline", "target", "minimumEvidence", "exactInputDigest", "result", "confidence", "absences", "contradictions", "evaluatedAt", "revisit", "evaluationHash"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-outcome-evaluation" },
|
|
11
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
12
|
+
"protocolVersion": { "const": "2.0.0" },
|
|
13
|
+
"evaluationId": { "type": "string", "pattern": "^oevl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
14
|
+
"previousEvaluationHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
15
|
+
"measurementPlan": { "$ref": "#/$defs/recordRef" },
|
|
16
|
+
"verificationPlan": { "allOf": [{ "$ref": "#/$defs/recordRef" }, { "properties": { "contractId": { "const": "operating-action-verification-plan" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "recordId": { "type": "string", "pattern": "^vfy_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } } }] },
|
|
17
|
+
"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}$" } } }] },
|
|
18
|
+
"actionId": { "type": "string", "pattern": "^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
19
|
+
"metricId": { "type": "string", "pattern": "^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" },
|
|
20
|
+
"observations": { "type": "array", "maxItems": 1000, "items": { "type": "object", "additionalProperties": false, "required": ["evidenceObservationId", "observationId", "observationHash", "metricObservationDigest", "value", "unit", "observedAt", "freshUntil", "status"], "properties": { "evidenceObservationId": { "type": "string", "pattern": "^eobs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "observationId": { "type": ["string", "null"], "pattern": "^mob_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "observationHash": { "$ref": "#/$defs/hash" }, "metricObservationDigest": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" }, "value": { "type": ["number", "null"] }, "unit": { "$ref": "#/$defs/id" }, "observedAt": { "type": "string", "format": "date-time" }, "freshUntil": { "type": "string", "format": "date-time" }, "status": { "enum": ["observed", "absent", "contradicted"] } }, "allOf": [{ "if": { "properties": { "status": { "const": "observed" } }, "required": ["status"] }, "then": { "properties": { "observationId": { "type": "string" }, "metricObservationDigest": { "type": "string" }, "value": { "type": "number" } } } }, { "if": { "properties": { "status": { "enum": ["absent", "contradicted"] } }, "required": ["status"] }, "then": { "properties": { "observationId": { "const": null }, "metricObservationDigest": { "const": null } } } }] } },
|
|
21
|
+
"providerVersions": { "type": "array", "maxItems": 16, "uniqueItems": true, "items": { "$ref": "#/$defs/versionedId" } },
|
|
22
|
+
"window": { "type": "object", "additionalProperties": false, "required": ["from", "to", "inclusive"], "properties": { "from": { "type": "string", "format": "date-time" }, "to": { "type": "string", "format": "date-time" }, "inclusive": { "const": true } } },
|
|
23
|
+
"operator": { "enum": ["gt", "gte", "lt", "lte", "eq", "between"] },
|
|
24
|
+
"unit": { "$ref": "#/$defs/id" },
|
|
25
|
+
"dimension": { "$ref": "#/$defs/id" },
|
|
26
|
+
"baseline": { "type": "number" },
|
|
27
|
+
"target": { "oneOf": [{ "type": "number" }, { "type": "array", "minItems": 2, "maxItems": 2, "items": { "type": "number" } }] },
|
|
28
|
+
"minimumEvidence": { "type": "integer", "minimum": 1, "maximum": 1000 },
|
|
29
|
+
"exactInputDigest": { "$ref": "#/$defs/hash" },
|
|
30
|
+
"result": { "enum": ["passed", "failed", "insufficient-evidence"] },
|
|
31
|
+
"confidence": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
32
|
+
"absences": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } },
|
|
33
|
+
"contradictions": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/hash" } },
|
|
34
|
+
"evaluatedAt": { "type": "string", "format": "date-time" },
|
|
35
|
+
"revisit": { "type": "object", "additionalProperties": false, "required": ["required", "condition", "decisionIds"], "properties": { "required": { "type": "boolean" }, "condition": { "type": ["string", "null"], "maxLength": 1024 }, "decisionIds": { "type": "array", "maxItems": 64, "uniqueItems": true, "items": { "type": "string", "pattern": "^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } } } },
|
|
36
|
+
"evaluationHash": { "$ref": "#/$defs/hash" }
|
|
37
|
+
},
|
|
38
|
+
"allOf": [{ "if": { "properties": { "result": { "const": "passed" } }, "required": ["result"] }, "then": { "properties": { "absences": { "maxItems": 0 }, "contradictions": { "maxItems": 0 } } } }],
|
|
39
|
+
"$defs": {
|
|
40
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
41
|
+
"version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" },
|
|
42
|
+
"hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
43
|
+
"versionedId": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } },
|
|
44
|
+
"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" } } }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -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-outcome.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-outcome", "version": "2.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate 2.0 observed action outcome",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "outcomeId", "actionId", "scopeId", "domainId", "domainVersion", "verificationPlanId", "status", "observationIds", "evidenceRefIds", "sourceArtifactId", "observedAt"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-outcome" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" }, "outcomeId": { "$ref": "#/$defs/outcomeId" }, "actionId": { "$ref": "#/$defs/actionId" }, "scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "verificationPlanId": { "$ref": "#/$defs/planId" }, "status": { "enum": ["succeeded", "failed", "blocked", "cancelled", "insufficient-evidence"] }, "observationIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/observationId" } }, "evidenceRefIds": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/evidenceRefId" } }, "sourceArtifactId": { "$ref": "#/$defs/artifactId" }, "observedAt": { "type": "string", "format": "date-time" }
|
|
11
|
+
},
|
|
12
|
+
"$defs": { "actionId": { "type": "string", "pattern": "^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "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 }, "observationId": { "type": "string", "pattern": "^mob_[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}$" }, "planId": { "type": "string", "pattern": "^vfy_[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,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v2.0.0/operating-planning-proposal.schema.json",
|
|
4
|
+
"x-openplanr-contract": { "id": "operating-planning-proposal", "version": "1.0.0" },
|
|
5
|
+
"title": "OpenPlanr Operate planning proposal",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "proposalId", "correlationId", "revision", "predecessorProposalHash", "state", "confirmation", "scopeId", "domainId", "domainVersion", "cycleId", "eventHead", "decision", "action", "deliveryRoute", "acceptedPerspectiveSummaries", "evidence", "omissions", "framing", "metric", "verification", "actor", "preview", "planningCommand", "createdAt", "proposalHash"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"kind": { "const": "operating-planning-proposal" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" },
|
|
11
|
+
"proposalId": { "type": "string", "pattern": "^oprop_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "correlationId": { "$ref": "#/$defs/id" },
|
|
12
|
+
"revision": { "type": "integer", "minimum": 1 }, "predecessorProposalHash": { "type": ["string", "null"], "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
13
|
+
"state": { "enum": ["review-required", "approved", "expired", "withdrawn", "superseded"] }, "confirmation": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/confirmation" }] },
|
|
14
|
+
"scopeId": { "$ref": "#/$defs/id" }, "domainId": { "$ref": "#/$defs/id" }, "domainVersion": { "$ref": "#/$defs/version" }, "cycleId": { "$ref": "#/$defs/id" }, "eventHead": { "$ref": "#/$defs/eventHead" },
|
|
15
|
+
"decision": { "$ref": "#/$defs/decision" }, "action": { "$ref": "#/$defs/action" },
|
|
16
|
+
"deliveryRoute": { "allOf": [{ "$ref": "operating-delivery-route.schema.json" }, { "properties": { "route": { "const": "planning-work" } } }] },
|
|
17
|
+
"acceptedPerspectiveSummaries": { "type": "array", "minItems": 3, "items": { "$ref": "#/$defs/perspective" }, "allOf": [{ "contains": { "properties": { "roleKind": { "const": "advisor" } }, "required": ["roleKind"] }, "minContains": 1 }, { "contains": { "properties": { "roleKind": { "const": "challenger" } }, "required": ["roleKind"] }, "minContains": 1, "maxContains": 1 }, { "contains": { "properties": { "roleKind": { "const": "chair" } }, "required": ["roleKind"] }, "minContains": 1, "maxContains": 1 }] },
|
|
18
|
+
"evidence": { "type": "array", "items": { "$ref": "#/$defs/evidence" } },
|
|
19
|
+
"omissions": { "type": "array", "items": { "$ref": "#/$defs/omission" } },
|
|
20
|
+
"framing": { "$ref": "#/$defs/framing" }, "metric": { "$ref": "#/$defs/metric" }, "verification": { "$ref": "#/$defs/verification" }, "actor": { "$ref": "#/$defs/actor" }, "preview": { "$ref": "#/$defs/preview" },
|
|
21
|
+
"planningCommand": { "const": "planr operate planning create-spec" }, "createdAt": { "type": "string", "format": "date-time" }, "proposalHash": { "$ref": "#/$defs/hash" }
|
|
22
|
+
},
|
|
23
|
+
"$defs": {
|
|
24
|
+
"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.*$" }, "title": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^\\S(?:[\\s\\S]*\\S)?$" },
|
|
25
|
+
"eventHead": { "oneOf": [
|
|
26
|
+
{ "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "const": 0 }, "hash": { "type": "null" } } },
|
|
27
|
+
{ "type": "object", "additionalProperties": false, "required": ["sequence", "hash"], "properties": { "sequence": { "type": "integer", "minimum": 1 }, "hash": { "$ref": "#/$defs/hash" } } }
|
|
28
|
+
] },
|
|
29
|
+
"decision": { "type": "object", "additionalProperties": false, "required": ["decisionId", "revision", "decisionHash", "sourceArtifactId", "title", "outcome", "rationale", "confidence", "evidenceRefIds"], "properties": { "decisionId": { "$ref": "#/$defs/id" }, "revision": { "type": "integer", "minimum": 1 }, "decisionHash": { "$ref": "#/$defs/hash" }, "sourceArtifactId": { "$ref": "#/$defs/id" }, "title": { "$ref": "#/$defs/title" }, "outcome": { "$ref": "#/$defs/text" }, "rationale": { "$ref": "#/$defs/text" }, "confidence": { "type": "number", "minimum": 0, "maximum": 1 }, "evidenceRefIds": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } } } },
|
|
30
|
+
"action": { "type": "object", "additionalProperties": false, "required": ["actionId", "revision", "actionHash", "sourceArtifactId", "title", "expectedResult", "metricId", "verificationPlanId"], "properties": { "actionId": { "$ref": "#/$defs/id" }, "revision": { "type": "integer", "minimum": 1 }, "actionHash": { "$ref": "#/$defs/hash" }, "sourceArtifactId": { "$ref": "#/$defs/id" }, "title": { "$ref": "#/$defs/title" }, "expectedResult": { "$ref": "#/$defs/text" }, "metricId": { "$ref": "#/$defs/id" }, "verificationPlanId": { "$ref": "#/$defs/id" } } },
|
|
31
|
+
"perspective": { "type": "object", "additionalProperties": false, "required": ["roleId", "roleVersion", "roleKind", "artifactId", "artifactHash", "accessClassification", "disposition", "normative", "stance", "summary", "constraints", "uncertainties"], "properties": { "roleId": { "$ref": "#/$defs/id" }, "roleVersion": { "const": "2.0.0" }, "roleKind": { "enum": ["advisor", "challenger", "chair"] }, "artifactId": { "$ref": "#/$defs/id" }, "artifactHash": { "$ref": "#/$defs/hash" }, "accessClassification": { "enum": ["public", "internal", "confidential", "restricted"] }, "disposition": { "const": "accepted" }, "normative": { "type": "boolean" }, "stance": { "enum": ["support", "object", "constraint", "unknown", "synthesis"] }, "summary": { "$ref": "#/$defs/text" }, "constraints": { "type": "array", "items": { "$ref": "#/$defs/text" } }, "uncertainties": { "type": "array", "items": { "$ref": "#/$defs/text" } } }, "allOf": [{ "if": { "properties": { "roleKind": { "const": "chair" } }, "required": ["roleKind"] }, "then": { "properties": { "normative": { "const": true }, "stance": { "const": "synthesis" } } }, "else": { "properties": { "normative": { "const": false } } } }] },
|
|
32
|
+
"evidence": { "type": "object", "additionalProperties": false, "required": ["evidenceRefId", "artifactId", "artifactHash", "classification", "accessState", "relation", "freshness", "confidence", "summary", "limitations"], "properties": { "evidenceRefId": { "$ref": "#/$defs/id" }, "artifactId": { "$ref": "#/$defs/id" }, "artifactHash": { "$ref": "#/$defs/hash" }, "classification": { "enum": ["public", "internal", "confidential", "restricted"] }, "accessState": { "enum": ["available", "restricted"] }, "relation": { "enum": ["support", "contradiction", "gap"] }, "freshness": { "enum": ["current", "historical", "stale", "unknown"] }, "confidence": { "type": "number", "minimum": 0, "maximum": 1 }, "summary": { "type": ["string", "null"], "maxLength": 4096 }, "limitations": { "type": "array", "items": { "$ref": "#/$defs/text" } } }, "allOf": [{ "if": { "properties": { "accessState": { "const": "restricted" } }, "required": ["accessState"] }, "then": { "properties": { "summary": { "type": "null" } } }, "else": { "properties": { "summary": { "$ref": "#/$defs/text" } } } }] },
|
|
33
|
+
"omission": { "type": "object", "additionalProperties": false, "required": ["classification", "count", "reason"], "properties": { "classification": { "enum": ["public", "internal", "confidential", "restricted"] }, "count": { "type": "integer", "minimum": 1 }, "reason": { "enum": ["access-denied", "hidden-reasoning-excluded", "raw-prompt-excluded", "rejected-advice-excluded", "restricted-body-excluded"] } } },
|
|
34
|
+
"framing": { "type": "object", "additionalProperties": false, "required": ["title", "slug", "problem", "objective", "users", "scope", "nonScope", "risks", "constraints", "requirements", "acceptanceOutcomes"], "properties": { "title": { "$ref": "#/$defs/title" }, "slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "maxLength": 96 }, "problem": { "$ref": "#/$defs/text" }, "objective": { "$ref": "#/$defs/text" }, "users": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/text" } }, "scope": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/text" } }, "nonScope": { "type": "array", "items": { "$ref": "#/$defs/text" } }, "risks": { "type": "array", "items": { "$ref": "#/$defs/text" } }, "constraints": { "type": "array", "items": { "$ref": "#/$defs/text" } }, "requirements": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/text" } }, "acceptanceOutcomes": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/text" } } } },
|
|
35
|
+
"metric": { "type": "object", "additionalProperties": false, "required": ["metricId", "metricHash"], "properties": { "metricId": { "$ref": "#/$defs/id" }, "metricHash": { "$ref": "#/$defs/hash" } } },
|
|
36
|
+
"verification": { "type": "object", "additionalProperties": false, "required": ["verificationPlanId", "verificationPlanHash", "metricId", "metricHash", "baseline", "target", "window", "method", "revisitConditions"], "properties": { "verificationPlanId": { "$ref": "#/$defs/id" }, "verificationPlanHash": { "$ref": "#/$defs/hash" }, "metricId": { "$ref": "#/$defs/id" }, "metricHash": { "$ref": "#/$defs/hash" }, "baseline": { "type": "number" }, "target": { "type": "number" }, "window": { "$ref": "#/$defs/text" }, "method": { "$ref": "#/$defs/text" }, "revisitConditions": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/text" } } } },
|
|
37
|
+
"actor": { "type": "object", "additionalProperties": false, "required": ["actorId", "kind"], "properties": { "actorId": { "$ref": "#/$defs/id" }, "kind": { "const": "human" } } },
|
|
38
|
+
"preview": { "type": "object", "additionalProperties": false, "required": ["digest", "issuedAt", "expiresAt"], "properties": { "digest": { "$ref": "#/$defs/hash" }, "issuedAt": { "type": "string", "format": "date-time" }, "expiresAt": { "type": "string", "format": "date-time" } } },
|
|
39
|
+
"confirmation": { "type": "object", "additionalProperties": false, "required": ["confirmationId", "reviewProposalHash", "reviewProposalRevision", "eventHead", "previewDigest", "actorId", "decision", "confirmedAt", "previewExpiresAt", "confirmationHash"], "properties": { "confirmationId": { "$ref": "#/$defs/id" }, "reviewProposalHash": { "$ref": "#/$defs/hash" }, "reviewProposalRevision": { "const": 1 }, "eventHead": { "$ref": "#/$defs/eventHead" }, "previewDigest": { "$ref": "#/$defs/hash" }, "actorId": { "$ref": "#/$defs/id" }, "decision": { "const": "approved" }, "confirmedAt": { "type": "string", "format": "date-time" }, "previewExpiresAt": { "type": "string", "format": "date-time" }, "confirmationHash": { "$ref": "#/$defs/hash" } } }
|
|
40
|
+
},
|
|
41
|
+
"allOf": [
|
|
42
|
+
{ "if": { "properties": { "state": { "const": "review-required" } }, "required": ["state"] }, "then": { "properties": { "revision": { "const": 1 }, "predecessorProposalHash": { "type": "null" }, "confirmation": { "type": "null" } } } },
|
|
43
|
+
{ "if": { "properties": { "state": { "const": "approved" } }, "required": ["state"] }, "then": { "properties": { "revision": { "minimum": 2 }, "predecessorProposalHash": { "$ref": "#/$defs/hash" }, "confirmation": { "$ref": "#/$defs/confirmation" } } } }
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://openplanr.dev/schemas/v2.0.0/operating-policy-evaluation.schema.json",
|
|
3
|
+
"x-openplanr-contract": { "id": "operating-policy-evaluation", "version": "2.0.0" }, "title": "OpenPlanr Operate 2.0 policy evaluation",
|
|
4
|
+
"type": "object", "additionalProperties": false,
|
|
5
|
+
"required": ["kind", "schemaVersion", "protocolVersion", "evaluationId", "policy", "policyTier", "precedence", "appliedPolicyRefs", "action", "capability", "target", "effectClass", "outcome", "approvalRequirementIds", "reasonCodes", "evaluatedBy", "evaluatedAt", "inputHash", "evaluationHash"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"kind": { "const": "operating-policy-evaluation" }, "schemaVersion": { "const": "1.0.0" }, "protocolVersion": { "const": "2.0.0" },
|
|
8
|
+
"evaluationId": { "type": "string", "pattern": "^pevl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" }, "policy": { "$ref": "#/$defs/policy" },
|
|
9
|
+
"policyTier": { "enum": ["core", "project", "domain"] }, "precedence": { "enum": [100, 200, 300] }, "appliedPolicyRefs": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/policy" } },
|
|
10
|
+
"action": { "$ref": "#/$defs/action" }, "capability": { "$ref": "#/$defs/versionedId" }, "target": { "$ref": "#/$defs/target" }, "effectClass": { "$ref": "#/$defs/effect" },
|
|
11
|
+
"outcome": { "enum": ["automatic", "named-single-party", "named-multi-party", "threshold", "deferred", "rejected", "prohibited"] },
|
|
12
|
+
"approvalRequirementIds": { "type": "array", "uniqueItems": true, "items": { "type": "string", "pattern": "^aprq_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$" } },
|
|
13
|
+
"reasonCodes": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/id" } }, "evaluatedBy": { "$ref": "#/$defs/provider" }, "evaluatedAt": { "$ref": "#/$defs/time" }, "inputHash": { "$ref": "#/$defs/hash" }, "evaluationHash": { "$ref": "#/$defs/hash" }
|
|
14
|
+
},
|
|
15
|
+
"allOf": [
|
|
16
|
+
{ "if": { "properties": { "policyTier": { "const": "core" } } }, "then": { "properties": { "precedence": { "const": 300 } } } },
|
|
17
|
+
{ "if": { "properties": { "policyTier": { "const": "project" } } }, "then": { "properties": { "precedence": { "const": 200 } } } },
|
|
18
|
+
{ "if": { "properties": { "policyTier": { "const": "domain" } } }, "then": { "properties": { "precedence": { "const": 100 } } } }
|
|
19
|
+
],
|
|
20
|
+
"$defs": {
|
|
21
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" }, "version": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$" }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, "time": { "type": "string", "format": "date-time" }, "effect": { "enum": ["read-only", "machine-local-write", "project-write", "provider-call", "external-effect", "destructive"] },
|
|
22
|
+
"versionedId": { "type": "object", "additionalProperties": false, "required": ["id", "version"], "properties": { "id": { "$ref": "#/$defs/id" }, "version": { "$ref": "#/$defs/version" } } },
|
|
23
|
+
"policy": { "type": "object", "additionalProperties": false, "required": ["policyId", "policyVersion", "policyHash"], "properties": { "policyId": { "$ref": "#/$defs/id" }, "policyVersion": { "$ref": "#/$defs/version" }, "policyHash": { "$ref": "#/$defs/hash" } } },
|
|
24
|
+
"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" } } },
|
|
25
|
+
"provider": { "type": "object", "additionalProperties": false, "required": ["providerId", "providerVersion"], "properties": { "providerId": { "$ref": "#/$defs/id" }, "providerVersion": { "$ref": "#/$defs/version" } } },
|
|
26
|
+
"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 } } }
|
|
27
|
+
}
|
|
28
|
+
}
|