@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,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.1.0/professional-specification.schema.json",
|
|
4
|
+
"title": "OpenPlanr Protocol 1.1 professional specification projection",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"kind", "schemaVersion", "protocolVersion", "source", "audience", "outcome",
|
|
9
|
+
"constraints", "evidenceExpectations", "failureModes", "rollback", "scope",
|
|
10
|
+
"acceptanceCriteria", "declaredSpecialists", "decisionComplete", "sourceDigest", "digest"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"kind": { "const": "professional-specification" },
|
|
14
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
15
|
+
"protocolVersion": { "const": "1.1.0" },
|
|
16
|
+
"source": {
|
|
17
|
+
"type": "object", "additionalProperties": false,
|
|
18
|
+
"required": ["mode", "featureId", "slug", "title"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"mode": { "type": "string", "enum": ["spec-driven", "default"] },
|
|
21
|
+
"featureId": { "type": "string", "pattern": "^(?:SPEC|FEAT)-[0-9]{3}$" },
|
|
22
|
+
"slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "maxLength": 160 },
|
|
23
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 240 }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"audience": {
|
|
27
|
+
"type": "object", "additionalProperties": false,
|
|
28
|
+
"required": ["primary", "affected"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"primary": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
31
|
+
"affected": { "type": "array", "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/boundedText" } }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"outcome": {
|
|
35
|
+
"type": "object", "additionalProperties": false,
|
|
36
|
+
"required": ["statement", "measure", "target", "timeframe"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"statement": { "$ref": "#/$defs/boundedText" },
|
|
39
|
+
"measure": { "$ref": "#/$defs/boundedText" },
|
|
40
|
+
"target": { "$ref": "#/$defs/boundedText" },
|
|
41
|
+
"timeframe": { "$ref": "#/$defs/boundedText" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"constraints": { "$ref": "#/$defs/explicitList" },
|
|
45
|
+
"evidenceExpectations": { "type": "array", "minItems": 1, "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/boundedText" } },
|
|
46
|
+
"failureModes": { "type": "array", "minItems": 1, "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/boundedText" } },
|
|
47
|
+
"rollback": {
|
|
48
|
+
"type": "object", "additionalProperties": false,
|
|
49
|
+
"required": ["trigger", "strategy", "verification"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"trigger": { "$ref": "#/$defs/boundedText" },
|
|
52
|
+
"strategy": { "$ref": "#/$defs/boundedText" },
|
|
53
|
+
"verification": { "$ref": "#/$defs/boundedText" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"scope": {
|
|
57
|
+
"type": "object", "additionalProperties": false,
|
|
58
|
+
"required": ["inScope", "outOfScope"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"inScope": { "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/boundedText" } },
|
|
61
|
+
"outOfScope": { "type": "array", "minItems": 1, "maxItems": 128, "uniqueItems": true, "items": { "$ref": "#/$defs/boundedText" } }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"acceptanceCriteria": {
|
|
65
|
+
"type": "array", "minItems": 1, "maxItems": 128,
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object", "additionalProperties": false,
|
|
68
|
+
"required": ["id", "statement", "evidence"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"id": { "type": "string", "pattern": "^AC-[0-9]{1,3}$" },
|
|
71
|
+
"statement": { "$ref": "#/$defs/boundedText" },
|
|
72
|
+
"evidence": { "$ref": "#/$defs/boundedText" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"declaredSpecialists": {
|
|
77
|
+
"type": "array", "maxItems": 5, "uniqueItems": true,
|
|
78
|
+
"items": { "$ref": "#/$defs/specialistId" }
|
|
79
|
+
},
|
|
80
|
+
"decisionComplete": { "const": true },
|
|
81
|
+
"sourceDigest": { "$ref": "#/$defs/digest" },
|
|
82
|
+
"digest": { "$ref": "#/$defs/digest" }
|
|
83
|
+
},
|
|
84
|
+
"$defs": {
|
|
85
|
+
"boundedText": { "type": "string", "minLength": 1, "maxLength": 4000 },
|
|
86
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
87
|
+
"specialistId": { "type": "string", "enum": ["security-reviewer", "performance-reviewer", "migration-reviewer", "api-contract-reviewer", "data-integrity-reviewer"] },
|
|
88
|
+
"explicitList": {
|
|
89
|
+
"oneOf": [
|
|
90
|
+
{
|
|
91
|
+
"title": "declared constraints",
|
|
92
|
+
"type": "object", "additionalProperties": false,
|
|
93
|
+
"required": ["status", "items"],
|
|
94
|
+
"properties": {
|
|
95
|
+
"status": { "const": "declared" },
|
|
96
|
+
"items": { "type": "array", "minItems": 1, "maxItems": 64, "uniqueItems": true, "items": { "$ref": "#/$defs/boundedText" } }
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"title": "explicitly no constraints",
|
|
101
|
+
"type": "object", "additionalProperties": false,
|
|
102
|
+
"required": ["status", "items"],
|
|
103
|
+
"properties": {
|
|
104
|
+
"status": { "const": "none" },
|
|
105
|
+
"items": { "type": "array", "maxItems": 0 }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.1.0/provenance-event.schema.json",
|
|
4
|
+
"title": "OpenPlanr provenance JSONL event",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "event_id", "timestamp", "artifact_id", "artifact_path", "operation", "producer", "run_id"],
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"if": { "properties": { "operation": { "const": "rolled-back" } }, "required": ["operation"] },
|
|
11
|
+
"then": { "required": ["rollback_evidence"] },
|
|
12
|
+
"else": { "not": { "required": ["rollback_evidence"] } }
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schema_version": { "const": "1.0.0" },
|
|
17
|
+
"event_id": { "type": "string", "minLength": 1 },
|
|
18
|
+
"timestamp": { "type": "string", "format": "date-time" },
|
|
19
|
+
"artifact_id": { "type": "string", "minLength": 1 },
|
|
20
|
+
"artifact_path": { "type": "string", "minLength": 1 },
|
|
21
|
+
"operation": { "type": "string", "enum": ["created", "shaped", "decomposed", "updated", "promoted", "designed", "implemented", "verified", "shipped", "rolled-back", "recovered"] },
|
|
22
|
+
"producer": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": ["product", "version", "runtime", "phase"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"product": { "type": "string", "enum": ["openplanr", "planr-pipeline"] },
|
|
28
|
+
"version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+" },
|
|
29
|
+
"runtime": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
30
|
+
"phase": { "type": "string", "enum": ["planning", "po", "design", "dev", "qa", "delivery"] }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"run_id": { "type": "string", "minLength": 1 },
|
|
34
|
+
"correlation": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["correlation_id", "proposal_id", "proposal_hash", "transaction_id", "receipt_hash"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"correlation_id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
40
|
+
"proposal_id": { "type": "string", "pattern": "^oprop_[a-f0-9]{32}$" },
|
|
41
|
+
"proposal_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
42
|
+
"transaction_id": { "type": "string", "pattern": "^txn_[a-f0-9]{32}$" },
|
|
43
|
+
"receipt_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"run_evidence": {
|
|
47
|
+
"type": "object", "additionalProperties": false,
|
|
48
|
+
"required": ["manifest_hash", "manifest_start_line", "manifest_end_line", "marker_hash"],
|
|
49
|
+
"allOf": [
|
|
50
|
+
{
|
|
51
|
+
"if": { "required": ["closure_receipt_hash"] },
|
|
52
|
+
"then": { "required": ["candidate_hash", "gate_evidence_hash"] }
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"manifest_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
57
|
+
"manifest_start_line": { "type": "integer", "minimum": 1 },
|
|
58
|
+
"manifest_end_line": { "type": "integer", "minimum": 1 },
|
|
59
|
+
"marker_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
60
|
+
"closure_receipt_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
61
|
+
"candidate_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
62
|
+
"gate_evidence_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"rollback_evidence": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": ["original_ship_run_id", "rollback_plan_artifact_id", "rollback_plan_hash", "rollback_result_artifact_id", "rollback_result_hash", "rollback_receipt_artifact_id", "target_before_hash", "target_after_hash", "completed_at"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"original_ship_run_id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
71
|
+
"rollback_plan_artifact_id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
72
|
+
"rollback_plan_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
73
|
+
"rollback_result_artifact_id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
74
|
+
"rollback_result_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
75
|
+
"rollback_receipt_artifact_id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
76
|
+
"target_before_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
77
|
+
"target_after_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
78
|
+
"completed_at": { "type": "string", "format": "date-time" }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.1.0/role-registry.schema.json",
|
|
4
|
+
"title": "OpenPlanr canonical role registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "roles"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
10
|
+
"roles": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"uniqueItems": true,
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": ["id", "phase", "activation", "capability", "writeBoundary", "source"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*-agent$" },
|
|
19
|
+
"phase": { "type": "string", "enum": ["po-preflight", "po", "dev", "qa", "post-build"] },
|
|
20
|
+
"activation": { "type": "string", "enum": ["always", "conditional", "manual"] },
|
|
21
|
+
"capability": { "type": "string", "enum": ["analysis-high", "implementation-high", "read-only-qa"] },
|
|
22
|
+
"writeBoundary": { "type": "string", "minLength": 1 },
|
|
23
|
+
"source": { "type": "string", "pattern": "^agents/[a-z0-9-]+\\.md$" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.1.0/runtime-lock.schema.json",
|
|
4
|
+
"title": "OpenPlanr project runtime lock",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "generatedAt", "manifestDigest", "protocolVersion", "components", "adapters"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": "1.0.0" },
|
|
10
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
11
|
+
"manifestDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
12
|
+
"protocolVersion": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+$" },
|
|
13
|
+
"components": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": ["cli", "pipeline", "skills"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"cli": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+" },
|
|
19
|
+
"pipeline": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+" },
|
|
20
|
+
"skills": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+" }
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"adapters": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["runtime", "version", "capabilityLevel", "installScope"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"runtime": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
31
|
+
"version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+" },
|
|
32
|
+
"capabilityLevel": { "type": "string", "enum": ["artifact", "workflow", "product"] },
|
|
33
|
+
"installScope": { "type": "string", "enum": ["user", "project", "both"] },
|
|
34
|
+
"model": { "type": "string", "minLength": 1 }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.1.0/ship-closure.schema.json",
|
|
4
|
+
"title": "OpenPlanr monotonic SHIP closure",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"kind", "schemaVersion", "protocolVersion", "recordType", "runId",
|
|
9
|
+
"generation", "state", "feature", "mode", "runtime", "createdAt",
|
|
10
|
+
"updatedAt", "approvedScope", "tasks", "repositories", "reviewerRoster",
|
|
11
|
+
"rosterDigest", "gates", "gateSetDigest", "candidateRevisions", "reviews", "gateEvidence", "events",
|
|
12
|
+
"correctionImpact", "terminal", "receiptHash", "startedFromReceiptHash",
|
|
13
|
+
"reopenReason", "operatingOriginCorrelation"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"kind": { "const": "ship-closure" },
|
|
17
|
+
"schemaVersion": { "type": "string", "enum": ["1.0.0", "1.1.0", "1.2.0"] },
|
|
18
|
+
"protocolVersion": { "const": "1.1.0" },
|
|
19
|
+
"recordType": { "type": "string", "enum": ["active", "receipt"] },
|
|
20
|
+
"runId": { "type": "string", "pattern": "^ship_[a-f0-9]{32}$" },
|
|
21
|
+
"generation": { "type": "integer", "minimum": 0 },
|
|
22
|
+
"state": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"implementing", "reviewing_initial", "correction_required",
|
|
26
|
+
"reviewing_targeted", "ready_for_final", "passed", "blocked"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"feature": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
30
|
+
"mode": { "type": "string", "enum": ["default", "spec-driven"] },
|
|
31
|
+
"runtime": { "type": "string", "enum": ["claude-code", "cursor", "codex", "unknown"] },
|
|
32
|
+
"createdAt": { "type": "string", "format": "date-time" },
|
|
33
|
+
"updatedAt": { "type": "string", "format": "date-time" },
|
|
34
|
+
"approvedScope": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["featureRoot", "taskIds", "digest"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"featureRoot": { "type": "string", "minLength": 1, "maxLength": 1024 },
|
|
40
|
+
"taskIds": { "type": "array", "maxItems": 256, "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true },
|
|
41
|
+
"digest": { "$ref": "#/$defs/digest" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"tasks": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"minItems": 1,
|
|
47
|
+
"maxItems": 256,
|
|
48
|
+
"items": { "$ref": "#/$defs/task" }
|
|
49
|
+
},
|
|
50
|
+
"repositories": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"minItems": 1,
|
|
53
|
+
"maxItems": 16,
|
|
54
|
+
"items": { "$ref": "#/$defs/repository" }
|
|
55
|
+
},
|
|
56
|
+
"reviewerRoster": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"minItems": 1,
|
|
59
|
+
"maxItems": 16,
|
|
60
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
61
|
+
"uniqueItems": true
|
|
62
|
+
},
|
|
63
|
+
"rosterDigest": { "$ref": "#/$defs/digest" },
|
|
64
|
+
"gates": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"minItems": 1,
|
|
67
|
+
"maxItems": 32,
|
|
68
|
+
"items": { "$ref": "#/$defs/gate" }
|
|
69
|
+
},
|
|
70
|
+
"gateSetDigest": { "$ref": "#/$defs/digest" },
|
|
71
|
+
"candidateRevisions": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"maxItems": 2,
|
|
74
|
+
"items": { "$ref": "#/$defs/candidate" }
|
|
75
|
+
},
|
|
76
|
+
"reviews": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"maxItems": 2,
|
|
79
|
+
"items": { "$ref": "#/$defs/review" }
|
|
80
|
+
},
|
|
81
|
+
"gateEvidence": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"maxItems": 96,
|
|
84
|
+
"items": { "$ref": "#/$defs/gateEvidence" }
|
|
85
|
+
},
|
|
86
|
+
"events": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"maxItems": 512,
|
|
89
|
+
"items": { "$ref": "#/$defs/eventReceipt" }
|
|
90
|
+
},
|
|
91
|
+
"correctionImpact": {
|
|
92
|
+
"oneOf": [
|
|
93
|
+
{ "type": "null" },
|
|
94
|
+
{
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"required": ["summary", "findingIds", "paths", "affectedGateIds"],
|
|
98
|
+
"properties": {
|
|
99
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
100
|
+
"findingIds": { "type": "array", "minItems": 1, "maxItems": 256, "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true },
|
|
101
|
+
"paths": { "type": "array", "maxItems": 1000, "items": { "$ref": "#/$defs/repositoryPath" }, "uniqueItems": true },
|
|
102
|
+
"affectedGateIds": { "type": "array", "maxItems": 32, "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true }
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"terminal": {
|
|
108
|
+
"oneOf": [
|
|
109
|
+
{ "type": "null" },
|
|
110
|
+
{
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": ["status", "at", "reason", "candidateDigest", "gateEvidenceDigest"],
|
|
114
|
+
"properties": {
|
|
115
|
+
"status": { "type": "string", "enum": ["passed", "blocked"] },
|
|
116
|
+
"at": { "type": "string", "format": "date-time" },
|
|
117
|
+
"reason": { "type": ["string", "null"], "maxLength": 4096 },
|
|
118
|
+
"candidateDigest": { "$ref": "#/$defs/digest" },
|
|
119
|
+
"gateEvidenceDigest": { "$ref": "#/$defs/digest" }
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"receiptHash": {
|
|
125
|
+
"oneOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }]
|
|
126
|
+
},
|
|
127
|
+
"startedFromReceiptHash": {
|
|
128
|
+
"oneOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }]
|
|
129
|
+
},
|
|
130
|
+
"reopenReason": { "type": ["string", "null"], "minLength": 1, "maxLength": 4096 },
|
|
131
|
+
"planningReview": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"additionalProperties": false,
|
|
134
|
+
"required": ["receiptHash", "planDigest", "ownerDecisionDigest"],
|
|
135
|
+
"properties": {
|
|
136
|
+
"receiptHash": { "$ref": "#/$defs/digest" },
|
|
137
|
+
"planDigest": { "$ref": "#/$defs/digest" },
|
|
138
|
+
"ownerDecisionDigest": { "$ref": "#/$defs/digest" }
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"riskClassification": { "$ref": "ship-risk-classification.schema.json" },
|
|
142
|
+
"browserQaRecords": {
|
|
143
|
+
"type": "array", "maxItems": 2,
|
|
144
|
+
"items": { "$ref": "browser-qa-gate.schema.json" }
|
|
145
|
+
},
|
|
146
|
+
"operatingOriginCorrelation": {
|
|
147
|
+
"oneOf": [
|
|
148
|
+
{ "type": "null" },
|
|
149
|
+
{
|
|
150
|
+
"type": "object",
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"required": ["correlation_id", "proposal_id", "proposal_hash", "transaction_id", "receipt_hash"],
|
|
153
|
+
"properties": {
|
|
154
|
+
"correlation_id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
155
|
+
"proposal_id": { "type": "string", "pattern": "^oprop_[a-f0-9]{32}$" },
|
|
156
|
+
"proposal_hash": { "$ref": "#/$defs/digest" },
|
|
157
|
+
"transaction_id": { "type": "string", "pattern": "^txn_[a-f0-9]{32}$" },
|
|
158
|
+
"receipt_hash": { "$ref": "#/$defs/digest" }
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"$defs": {
|
|
165
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
166
|
+
"repositoryPath": {
|
|
167
|
+
"type": "object",
|
|
168
|
+
"additionalProperties": false,
|
|
169
|
+
"required": ["repositoryKey", "path"],
|
|
170
|
+
"properties": {
|
|
171
|
+
"repositoryKey": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
172
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"task": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"additionalProperties": false,
|
|
178
|
+
"required": ["id", "storyId", "path", "status", "dependsOn", "agent", "filesWritten", "filesModified", "blockedReason", "preserve"],
|
|
179
|
+
"properties": {
|
|
180
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
181
|
+
"storyId": { "type": ["string", "null"], "maxLength": 128 },
|
|
182
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
183
|
+
"status": { "type": "string", "enum": ["pending", "completed", "blocked"] },
|
|
184
|
+
"dependsOn": { "type": "array", "maxItems": 256, "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true },
|
|
185
|
+
"agent": { "type": ["string", "null"], "maxLength": 128 },
|
|
186
|
+
"filesWritten": { "type": "array", "maxItems": 1000, "items": { "$ref": "#/$defs/repositoryPath" }, "uniqueItems": true },
|
|
187
|
+
"filesModified": { "type": "array", "maxItems": 1000, "items": { "$ref": "#/$defs/repositoryPath" }, "uniqueItems": true },
|
|
188
|
+
"blockedReason": { "type": ["string", "null"], "maxLength": 4096 },
|
|
189
|
+
"preserve": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/preserve" }, "uniqueItems": true }
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"preserve": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"additionalProperties": false,
|
|
195
|
+
"required": ["repositoryKey", "path", "identity"],
|
|
196
|
+
"properties": {
|
|
197
|
+
"repositoryKey": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
198
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 1024 },
|
|
199
|
+
"identity": { "$ref": "#/$defs/digest" }
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"repository": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"additionalProperties": false,
|
|
205
|
+
"required": ["repositoryKey", "root", "head", "baselineDigest"],
|
|
206
|
+
"properties": {
|
|
207
|
+
"repositoryKey": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
208
|
+
"root": { "type": ["string", "null"], "maxLength": 4096 },
|
|
209
|
+
"head": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" },
|
|
210
|
+
"baselineDigest": { "$ref": "#/$defs/digest" }
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"gate": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"additionalProperties": false,
|
|
216
|
+
"required": ["id", "repositoryKey", "argv", "inputs", "dependsOn", "finalRelevantSuite"],
|
|
217
|
+
"properties": {
|
|
218
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
219
|
+
"repositoryKey": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
220
|
+
"argv": { "type": "array", "minItems": 1, "maxItems": 128, "items": { "type": "string", "minLength": 1, "maxLength": 4096 } },
|
|
221
|
+
"inputs": { "type": "array", "minItems": 1, "maxItems": 512, "items": { "$ref": "#/$defs/repositoryPath" }, "uniqueItems": true },
|
|
222
|
+
"dependsOn": { "type": "array", "maxItems": 32, "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true },
|
|
223
|
+
"finalRelevantSuite": { "type": "boolean" },
|
|
224
|
+
"gateType": { "type": "string", "enum": ["command", "browser-qa"] }
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"inventoryEntry": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"additionalProperties": false,
|
|
230
|
+
"required": ["repositoryKey", "path", "changeType", "kind", "mode", "contentDigest", "symlinkTarget", "originalPath"],
|
|
231
|
+
"properties": {
|
|
232
|
+
"repositoryKey": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
233
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 1024 },
|
|
234
|
+
"changeType": { "type": "string", "enum": ["added", "modified", "deleted", "renamed"] },
|
|
235
|
+
"kind": { "type": "string", "enum": ["file", "directory", "symlink", "missing"] },
|
|
236
|
+
"mode": { "type": ["integer", "null"], "minimum": 0 },
|
|
237
|
+
"contentDigest": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/digest" }] },
|
|
238
|
+
"symlinkTarget": { "type": ["string", "null"], "maxLength": 4096 },
|
|
239
|
+
"originalPath": { "type": ["string", "null"], "maxLength": 1024 }
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"candidate": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"additionalProperties": false,
|
|
245
|
+
"required": ["revision", "sealedAt", "digest", "repositories", "inventory"],
|
|
246
|
+
"properties": {
|
|
247
|
+
"revision": { "type": "integer", "minimum": 1, "maximum": 2 },
|
|
248
|
+
"sealedAt": { "type": "string", "format": "date-time" },
|
|
249
|
+
"digest": { "$ref": "#/$defs/digest" },
|
|
250
|
+
"repositories": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"minItems": 1,
|
|
253
|
+
"maxItems": 16,
|
|
254
|
+
"items": {
|
|
255
|
+
"type": "object",
|
|
256
|
+
"additionalProperties": false,
|
|
257
|
+
"required": ["repositoryKey", "head", "baselineDigest", "inventoryDigest"],
|
|
258
|
+
"properties": {
|
|
259
|
+
"repositoryKey": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
260
|
+
"head": { "type": "string", "pattern": "^[a-f0-9]{40,64}$" },
|
|
261
|
+
"baselineDigest": { "$ref": "#/$defs/digest" },
|
|
262
|
+
"inventoryDigest": { "$ref": "#/$defs/digest" }
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"inventory": { "type": "array", "maxItems": 10000, "items": { "$ref": "#/$defs/inventoryEntry" } }
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"finding": {
|
|
270
|
+
"type": "object",
|
|
271
|
+
"additionalProperties": false,
|
|
272
|
+
"required": ["id", "severity", "basis", "title", "evidence", "taskIds", "paths", "acceptanceRefs", "disposition"],
|
|
273
|
+
"properties": {
|
|
274
|
+
"id": { "type": "string", "pattern": "^fnd_[a-f0-9]{32}$" },
|
|
275
|
+
"severity": { "type": "string", "enum": ["P0", "P1", "P2"] },
|
|
276
|
+
"basis": { "type": "string", "enum": ["acceptance", "security", "privacy", "correctness", "data-loss", "release-integrity"] },
|
|
277
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
278
|
+
"evidence": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
279
|
+
"taskIds": { "type": "array", "maxItems": 256, "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true },
|
|
280
|
+
"paths": { "type": "array", "maxItems": 1000, "items": { "$ref": "#/$defs/repositoryPath" }, "uniqueItems": true },
|
|
281
|
+
"acceptanceRefs": { "type": "array", "maxItems": 256, "items": { "type": "string", "minLength": 1, "maxLength": 512 }, "uniqueItems": true },
|
|
282
|
+
"disposition": { "type": "string", "enum": ["open", "resolved", "remains", "deferred"] }
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"review": {
|
|
286
|
+
"type": "object",
|
|
287
|
+
"additionalProperties": false,
|
|
288
|
+
"required": ["phase", "candidateRevision", "reviewerIds", "contributions", "candidateDigest", "rosterDigest", "gateSetDigest", "summary", "reviewedFindingIds", "findings", "closedAt"],
|
|
289
|
+
"properties": {
|
|
290
|
+
"phase": { "type": "string", "enum": ["initial", "targeted"] },
|
|
291
|
+
"candidateRevision": { "type": "integer", "minimum": 1, "maximum": 2 },
|
|
292
|
+
"reviewerIds": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 }, "uniqueItems": true },
|
|
293
|
+
"contributions": { "type": "array", "minItems": 1, "maxItems": 16, "items": { "$ref": "#/$defs/reviewContribution" } },
|
|
294
|
+
"candidateDigest": { "$ref": "#/$defs/digest" },
|
|
295
|
+
"rosterDigest": { "$ref": "#/$defs/digest" },
|
|
296
|
+
"gateSetDigest": { "$ref": "#/$defs/digest" },
|
|
297
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
298
|
+
"reviewedFindingIds": { "type": "array", "maxItems": 256, "items": { "type": "string", "minLength": 1, "maxLength": 128 }, "uniqueItems": true },
|
|
299
|
+
"findings": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/finding" } },
|
|
300
|
+
"closedAt": { "type": "string", "format": "date-time" }
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"reviewContribution": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"additionalProperties": false,
|
|
306
|
+
"required": ["reviewerId", "summary", "evidenceDigest"],
|
|
307
|
+
"properties": {
|
|
308
|
+
"reviewerId": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
309
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
310
|
+
"evidenceDigest": { "$ref": "#/$defs/digest" }
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"gateEvidence": {
|
|
314
|
+
"type": "object",
|
|
315
|
+
"additionalProperties": false,
|
|
316
|
+
"required": ["gateId", "phase", "candidateDigest", "inputDigest", "status", "startedAt", "endedAt", "exitCode", "stdoutDigest", "stderrDigest", "stdoutExcerpt", "stderrExcerpt", "reusedFromPhase"],
|
|
317
|
+
"properties": {
|
|
318
|
+
"gateId": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 128 },
|
|
319
|
+
"phase": { "type": "string", "enum": ["initial", "targeted", "final"] },
|
|
320
|
+
"candidateDigest": { "$ref": "#/$defs/digest" },
|
|
321
|
+
"inputDigest": { "$ref": "#/$defs/digest" },
|
|
322
|
+
"status": { "type": "string", "enum": ["passed", "failed", "skipped", "reused"] },
|
|
323
|
+
"startedAt": { "type": "string", "format": "date-time" },
|
|
324
|
+
"endedAt": { "type": "string", "format": "date-time" },
|
|
325
|
+
"exitCode": { "type": ["integer", "null"] },
|
|
326
|
+
"stdoutDigest": { "$ref": "#/$defs/digest" },
|
|
327
|
+
"stderrDigest": { "$ref": "#/$defs/digest" },
|
|
328
|
+
"stdoutExcerpt": { "type": "string", "maxLength": 4096 },
|
|
329
|
+
"stderrExcerpt": { "type": "string", "maxLength": 4096 },
|
|
330
|
+
"reusedFromPhase": { "type": ["string", "null"], "enum": ["initial", "targeted", "final", null] }
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"eventReceipt": {
|
|
334
|
+
"type": "object",
|
|
335
|
+
"additionalProperties": false,
|
|
336
|
+
"required": ["eventId", "type", "inputDigest", "generation", "at"],
|
|
337
|
+
"properties": {
|
|
338
|
+
"eventId": { "type": "string", "pattern": "^evt_[a-f0-9]{32}$" },
|
|
339
|
+
"type": { "type": "string", "enum": ["task.completed", "task.blocked", "review.opened", "review.closed", "correction.registered", "browser-qa.recorded", "gates.recorded", "closure.finalized"] },
|
|
340
|
+
"inputDigest": { "$ref": "#/$defs/digest" },
|
|
341
|
+
"generation": { "type": "integer", "minimum": 1 },
|
|
342
|
+
"at": { "type": "string", "format": "date-time" }
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"allOf": [
|
|
347
|
+
{
|
|
348
|
+
"if": { "properties": { "schemaVersion": { "const": "1.2.0" } }, "required": ["schemaVersion"] },
|
|
349
|
+
"then": { "required": ["planningReview", "riskClassification", "browserQaRecords"] },
|
|
350
|
+
"else": { "not": { "anyOf": [{ "required": ["riskClassification"] }, { "required": ["browserQaRecords"] }] } }
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
}
|