@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,127 @@
|
|
|
1
|
+
// Generated by scripts/generate-dashboard-surface-schema-data.mjs.
|
|
2
|
+
// Shared lossless token dictionary for browser-safe dashboard schema decoding.
|
|
3
|
+
// Canonical JSON schemas remain authoritative. Do not edit this file.
|
|
4
|
+
|
|
5
|
+
const DASHBOARD_SCHEMA_TOKENS = Object.freeze(["type","$ref","properties","string","required","const","object","additionalProperties","array","items","null","pattern","1","#/$defs/id","enum","maxLength","minimum","kind","integer","0","maxItems","128","uniqueItems","minLength","title","oneOf","id","schemaVersion","state","format","version","status","date-time","protocolVersion","if","then","2.0.0","#/$defs/text","minItems","data","#/$defs/hash","domainId","domainVersion","reason","scopeId","surface","1.0.0","cycleId","action","hash","actorId","allOf","eventHead","subjectId","outcome","reasonCodes","#/$defs/version","deepLink","ownerActorId","scope","artifactId","origin","sequence","^sha256:[a-f0-9]{64}$","rejected","$id","$schema","https://json-schema.org/draft/2020-12/schema","x-openplanr-contract","$defs","../v2.0.0/operate-experience-view.schema.json#/$defs/id","confidence","not","number","roleId","#/$defs/identifier","256","maximum","actions","evidence","recoveryDisposition","revision","stale","assignmentId","assignmentKind","available","mutationEnabled","restricted","accessLevel","actionId","disposition","rationale","statement","#/$defs/nonPlaceholder","../v2.0.0/operate-experience-view.schema.json#/$defs/hash","boolean","evidenceRefIds","integrity","2048","blocked","decision","generatedAt","mediaType","sourceArtifactId","sourceViewHash","^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absenceId","actor","target","verification","4096","64","accessReason","code","createdAt","effect","ok","rawHash","read-only","roleKind","tool","failed","payload","reviewId","roleVersion","#/$defs/nullableText","512","arguments","canonicalHash","cycle","evidenceRefId","history","operation","total","viewHash","8192","dissent","gaps","outcomes","review","schemaId","#/$defs/deepLink","16","algorithm","approved","cancelled","contentHash","current","domain","learnings","observedAt","producer","readOnly","requirementId","runtime","uncertain","description","evidenceKind","findings","partial","sourceAssignmentId","summary","#/$defs/shortText","#/$defs/successBase","absenceCode","actionHash","allowedActions","encoding","error","inbox","label","metricId","outputContract","uncertainty","verificationPlanId","workDispositions","^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","claims","contradicted","contradictingEvidenceRefIds","decisions","findingType","pending","replay","resolved","severity","supportingEvidenceRefIds","unknown","#/$defs/artifactId","#/$defs/scope","abandoned","advisor","capability","chair","challenger","changes_requested","claim","classification","deferred","dueAt","evidenceArtifactId","freshness","inputArtifactIds","operating-intelligence","persistent-work","relation","resolvedAt","reversibility","rollbackPlanId","source","#/$defs/accessLevel","#/$defs/evidenceRefId","#/$defs/title","1024","^[\\s\\S]*\\S[\\s\\S]*$","absence","accepted","artifact","cycles","entityId","filesystem","git","governedOperationId","historical","offline","operate-artifact","planr","project-write","ready","revisitAt","subject","terminal","utf-8","#/$defs/absenceId","#/$defs/accessReason","#/$defs/eventHead","#/$defs/objectArray","^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absent","accessState","actorKind","anyOf","application/json","assignment","baseline","causalLinks","choiceHash","choiceId","completedAt","consequence","context","dissentIds","domainMetrics","errors","expectedResult","findingId","message","omissions","operate-experience-view.schema.json#/$defs/hash","operationKind","provenance","representation","retryable","sensitivity","sourceArtifactKind","sourceContract","sourceContracts","subjectKind","submitArguments","truthSummary","updatedAt","validated","#/$defs/integrity","#/$defs/safeToken","../v2.0.0/operate-experience-view.schema.json#/$defs/eventHead","../v2.0.0/operate-experience-view.schema.json#/$defs/version","^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$","^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$","^cyc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rev_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","attention","contentBase64","export","human","operate-experience-view.schema.json#/$defs/id","requestBinding","resolutionId","sha-256-jcs","supported","targets","text","#/$defs/contractRef","#/$defs/producer","(?:<[^>]+>|\\{\\{[^}]+\\}\\})","../v2.0.0/operate-experience-view.schema.json#/$defs/accessLevel","^[A-Z][A-Z0-9_]{0,127}$","^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^op_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","advisorArtifactId","analysisProfile","appliedChoiceHash","appliedChoiceId","approvalIds","claimId","corrupt","cycleLinks","decisionId","deltaId","dependsOn","evaluationId","eventReplayIndexHash","execution","executor","expectedDownside","expectedUpside","expiresAt","generation","grantId","incompatible","intelligenceContext","localDissentId","machine-local-write","metadata","operating-review-read","operating-review.schema.json#/$defs/workDisposition","operationId","outputArtifactIds","projectId","provider","query","question","recommendation","redacted","resolutionCondition","resolver","resultId","revisitConditions","role","rollback","seatStatus","sizeBytes","sourceEventHead","threshold","unavailableReason","unverified","verificationMethod","verificationWindow","verified","window","#/$defs/humanActor","#/$defs/nullableShortText","#/$defs/omission","#/$defs/rubricClauses","32768","^cgr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","actionLocator","active","analysisRubric","capabilityGrantId","complete","confidential","contentJson","correctionCondition","effectSummary","entityKind","evidenceRequirements","identifier","internal","mandate","maxBytes","operate-allowed-action.schema.json","operate-experience-view.schema.json#/$defs/eventHead","operate.action.approve","operate.action.execute","operate.action.rollback","operate.artifact.get","operate.assignment.claim","operate.assignment.submit","operate.cycle.get","operate.cycle.resume","operate.cycle.start","operate.recovery.inspect","operate.review.get","operate.review.submit","operating-review-receipt","proof","public","result","resultRequirements","revisited","search","skipped","sourceLocalFindingId","submissionId","superseded","terminalDisposition","waiting","#/$defs/action","#/$defs/artifactIds","#/$defs/causalLink","#/$defs/cycleId","#/$defs/implementationRef","#/$defs/resolutionError","#/$defs/result","#/$defs/sourceContract","#/$defs/versionedId","../v2.0.0/operate-experience-view.schema.json#/$defs/action","../v2.0.0/operate-experience-view.schema.json#/$defs/outcome","4","7","^\\S(?:[\\s\\S]*\\S)?$","^dissent:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^fnd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rbp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absenceIds","actionCount","actionDigest","allowedCapabilities","appliedWorkDispositions","approval","artifactType","assignmentState","authority","blockers","blocking","change","changed","choices","claimStatus","committedAt","connector","contains","content","contradictClaimIds","contradictEvidenceRefIds","correlated-reasoning","count","critical","currentSnapshotId","decisionCount","decisionIds","delta","dependencies","destructive","dispositionChoices","dissentCount","effectClass","epistemicStatus","eventId","evidenceKinds","executiveBoard","executorId","executorVersion","findingCount","focus","gapCount","high","html","informs","intelligencePlanId","irreversibility-mismatch","json","low","medium","metricHash","missing-alternative","navigationLocator","next","open","operate.recovery.clear-stale-lock","operate.recovery.restore","operating-review.schema.json","originalOperationId","outcomeId","overconfidence","parentOperationId","partyId","persistentActionIds","persistentWork","priorSnapshotId","progress","readEventHead","reasonCode","receiptId","recorded","redactions","requestFingerprint","requiredCapability","results","revisit","running","scope-violation","seats","snapshot","snapshotId","sourceArtifactHash","sourceArtifactIds","sourceClaimRefs","sourceDecisionId","sourceEventId","sourceEventIds","sourceEvidenceRefIds","sourceStateHash","stages","supportClaimIds","supportEvidenceRefIds","targetAfterHash","targetBeforeHash","traceMatrix","typedAbsences","unit","unpriced-downside","unsupported","#/$defs/actionIdentity","#/$defs/assignmentId","#/$defs/cycleView","#/$defs/nodeId","#/$defs/nodeKind","#/$defs/nonBlankText","#/$defs/payload","#/$defs/publicActor","#/$defs/reviewSubmitArguments","#/$defs/target","#/$defs/workspace","../v2.0.0/operate-experience-view.schema.json#/$defs/cycle","../v2.0.0/operate-experience-view.schema.json#/$defs/history","../v2.0.0/operate-experience-view.schema.json#/$defs/inbox","../v2.0.0/operate-experience-view.schema.json#/$defs/learning","../v2.0.0/operate-experience-view.schema.json#/$defs/replay","../v2.0.0/operate-review-display-workspace.schema.json#/$defs/sharedTruthSummary","^#/operate/(?:cycles|inbox|actions|evidence|outcomes|history)/","^abs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^tre_[a-f0-9]{32}$","access-denied","agent","analysisIds","beforeAfter","binary","candidateId","canonical","claimIds","completed","contradiction","decoded-json","deliveryRoute","dependencyPolicy","dueVerification","evaluates","execute","executiveSummary","external-effect","finding","humanActor","inputBundle","issuedEvidence","learning","localClaimId","localRecommendationId","locator","measurementIds","nextObservation","nodeId","nonPlaceholder","not-applicable","not-required","observationRequest","omission","omitted","operate-experience-surface","operate-experience-view","operating-assignment","operating-evidence-resolution","operating-finding","operating-review","operating-review-read.schema.json#/$defs/dispositionChoice/properties/choiceId","operating-review-read.schema.json#/$defs/eventHead","operating-review-read.schema.json#/$defs/hash","operating-review-read.schema.json#/$defs/text","parityProof","policyBinding","proposed","provider-call","raw","recommendationIds","replayCheckpoint","reversible","reviewSubmitArguments","riskIds","rollbackClass","safeErrorContext","submitted","support","terminalOutcome","today","transition","unavailable","workspace","#/$defs/analysisProfile","#/$defs/artifactMetadata","#/$defs/artifactProvenance","#/$defs/assignmentDependency","#/$defs/cycleIdentityArguments","#/$defs/deltaRef","#/$defs/digest","#/$defs/effect","#/$defs/endpoint","#/$defs/evidenceData","#/$defs/evidenceGapSummary","#/$defs/evidenceKind","#/$defs/evidenceProvenance","#/$defs/evidenceRefIds","#/$defs/evidenceRequirement","#/$defs/evidenceSource","#/$defs/executiveBoardArtifact","#/$defs/executiveBoardClaimRef","#/$defs/executiveBoardDissent","#/$defs/executor","#/$defs/exportData","#/$defs/historyData","#/$defs/inboxActionLocator","#/$defs/inboxNavigationLocator","#/$defs/inboxUnavailableReason","#/$defs/intelligenceContext","#/$defs/nextAction","#/$defs/outcomeData","#/$defs/outcomesData","#/$defs/replayCheckpoint","#/$defs/resultRequirement","#/$defs/roleGapSummary","#/$defs/safeError","#/$defs/safeErrorContext","#/$defs/searchData","#/$defs/snapshotRef","#/$defs/subject","#/$defs/terminalDisposition","#/$defs/unavailableReason","../v2.0.0/operate-allowed-action.schema.json","../v2.0.0/operate-experience-view.schema.json#/$defs/boundAllowedAction","../v2.0.0/operate-experience-view.schema.json#/$defs/deepLink","../v2.0.0/operate-experience-view.schema.json#/$defs/domainMetric","2","32","8","ANCESTRY_MISMATCH","ARTIFACT_HASH_MISMATCH","ARTIFACT_NOT_FOUND","CAPABILITY_DENIED","CONSENT_REQUIRED","EVIDENCE_LOCATOR_INVALID","EVIDENCE_PROVIDER_UNAVAILABLE","EVIDENCE_RESOLVER_UNAVAILABLE","EVIDENCE_RESOLVER_UNREGISTERED","EVIDENCE_RESOLVER_VERSION_UNSUPPORTED","EVIDENCE_SOURCE_SCOPE_MISMATCH","LINE_RANGE_INVALID","OBJECT_TYPE_MISMATCH","OpenPlanr Operate 2.0 Phase 1 operating assignment","OpenPlanr Operate 2.0 evidence resolution outcome","OpenPlanr Operate 2.0 owner-bound review read","OpenPlanr Operate access-safe product experience","PATH_NOT_FOUND","REVISION_NOT_FOUND","Runtime-owned outcome envelope. A rejection contains safe structured context only; a resolution binds one immutable evidence Artifact.","Runtime-projected pre-commit Review data for the exact immutable human owner. The runtime owns readAt.","SECRET_DETECTED","SENSITIVITY_BLOCKED","SOURCE_NOT_FOUND","SOURCE_STALE","SOURCE_UNTRACKED","UNSUPPORTED_EVIDENCE_KIND","^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","^(?:fnd|dec|act)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^.*\\S.*$","^aprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^pevl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rrc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^sub_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^vfy_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^xres_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","acceptedArtifactIds","acceptedArtifacts","acceptedEvidenceKinds","acceptedFreshness","acceptedSourceContracts","accessSafe","accountabilityDisposition","act","actionHypotheses","actionSummary","actionable","activeCycle","actorMatchesOwner","added","advisorArtifactIds","affectedTargetIds","allowedAction","allowedEvidence","allowedRecovery","allowedTerminalOutcomes","alternativeDispositions","appliesToOutcomes","approvalExecution","approvals","artifact.read","artifact.submit","artifactIds","artifactMetadata","artifactProvenance","artifactQualityBar","assignments","assumptionIds","attempt","attemptPolicy","attentionId","authenticity","authoritativeForMutation","authorityBoundary","availableAssignments","availableAt","baselineArtifactId","baselineHash","blockingSubjectIds","boardId","boundAllowedAction","boundSubmission","boundSubmissionHash","boundaries","bundleArtifactId","bundleCanonicalHash","bundleId","bundleRawHash","byStage","capabilities","capabilityCeiling","causalLink","causationId","chairSynthesis","challengerArtifactId","challengerFindingIds","challengerFindings","checkpoint","checkpointVerified","conditions","conflict","contained-execution","context-capture","contract","contractRef","contradictedClaims","correlationId","currentGeneration","currentValue","decide","decisionOwnerActorId","decisionSummary","deepLinks","deltaValue","dependencyActionIds","dependsOnActionHypothesisIds","derivedAt","detects","dispositionChoice","dissentSummary","edgeId","edges","else","endSequence","engine","entityType","evaluation","evaluationRules","eventCount","eventHash","eventIds","evidenceData","evidenceGapIds","evidenceGapSummary","evidenceInputAbsence","evidenceProvenance","evidenceSource","executionResultId","executions","expectedReadEventHead","expectedTargetHash","exportData","externalEffectsAuthorized","failureModes","filterDimensions","finalEventHashMatches","finalHead","findingSummary","forbiddenEffects","formats","from","future-analysis","future-observation","futureRequirement","gapSummary","gates","generationCount","govern","health","historyData","https://openplanr.dev/schemas/v2.0.0/operate-experience-view.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-assignment.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-evidence-resolution.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review-read.schema.json","human-external","implementationRef","in_progress","inboundEdgeIds","incidentEdgeCount","inputAbsences","inspection","insufficientEvidence","integrityBoundary","intentEventId","issuedAt","itemId","known","learn","learningId","ledger","lensAbsences","limits","linked","linkedEvidence","liveAccessUsed","local-claim","localActionHypothesisId","localAlternativeId","localDecisionId","lock","manual","materializedEventId","matrixHash","matrixId","maxAttempts","maxEdges","maxNodes","maximumEvidenceRefs","maximumItems","method","metric","minimumEvidenceRefs","minimumItems","minimumSatisfied","mode","model","necessity","nextState","nodes","nonce","none","not-authorized","not-available","notRequired","note","nullableText","objective","objectiveId","observationIds","observe","observe-only","observed","omissionId","operate-action-display-workspace","operate-cycle-display-workspace","operate-executive-board-display-surface","operate-experience-audit-display-surface","operate-experience-display-surface","operate-experience-preview","operate-recovery-display-surface","operate-review-bound-submission","operate-review-bound-submission.schema.json","operate-review-display-workspace","operating-action.schema.json","operating-advisor-result","operating-artifact.schema.json","operating-assignment.schema.json","operating-assignment.schema.json#/$defs/evidenceInputAbsence/properties/reason","operating-assignment.schema.json#/$defs/evidenceInputAbsence/properties/recoveryDisposition","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/reason","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/recoveryDisposition","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/roleId","operating-challenger-review","operating-cycle.schema.json","operating-decision-ledger","operating-delivery-route","operating-evidence-candidate.schema.json#/$defs/implementationRef","operating-evidence-resolution.schema.json#/$defs/safeErrorContext","operating-execution-result","operating-governed-operation","operating-governed-operation.schema.json","operating-governed-operation.schema.json#/$defs/versionedId","operating-review-read.schema.json","operating-review-read.schema.json#/$defs/cycleId","operating-review-read.schema.json#/$defs/decisionSummary","operating-review-read.schema.json#/$defs/dissentSummary","operating-review-read.schema.json#/$defs/findingSummary","operating-review-read.schema.json#/$defs/gapSummary","operating-review-read.schema.json#/$defs/reviewSubmitArguments","operating-review-read.schema.json#/$defs/title","operating-trace-matrix","operating-trace-matrix.schema.json","operating-work-ledger","operationHash","outOfScope","outboundEdgeIds","outcomeData","outcomesData","outsideBoundary","ownerCycle","ownerLabel","ownerPid","parties","planHash","planId","planning-work","preconditionArtifactIds","previewHash","previewId","previousEventHash","prior","priorValue","priority","probable","projectionMode","proofState","questionIds","queued","read","readActionDigest","readAt","reader","recoverableGeneration","recoveryState","recoveryVersion","redactionCount","remaining","removed","repositoryId","requiredDispositions","requiredEvidence","requiredParties","requiredQuestions","requirements","resolution-failed","resolutionError","resolvedClaims","resolverId","restrictedEvidence","restrictedNodes","resultArtifactId","resultHash","retry","roleGapSummary","roleInputAbsence","rollbacks","rolled-back","route","routeHash","routeId","runtimeStateHash","safeError","searchData","seat","semanticHash","skillId","sourceBoardHash","sourceCycleId","sourceFindingIds","sourceId","sourceKind","sourceReadEventHead","sourceRecommendationRefs","sourceRootId","speculative","staleEvidence","startSequence","stateParityVerified","strongly-supported","subjectIds","succeeded","supportedClaims","tail","terminalAssignments","text/html; charset=utf-8","timeoutMs","timestamp","to","trigger","truncated","uncertaintyCount","uncertaintyId","uncertaintyIds","understand","unresolvedClaims","unresolvedGaps","unverifiedClaims","unverifiedOutcomes","value","verificationPlanHash","verifiedActions","verifiedEvidence","verifiedOutcomes","verify","versionedId","viewId","why","whyNow","#/$defs/actionApproval","#/$defs/actionApproveArguments","#/$defs/actionApproveSuccess","#/$defs/actionData","#/$defs/actionDependency","#/$defs/actionExecuteArguments","#/$defs/actionExecuteSuccess","#/$defs/actionRollbackArguments","#/$defs/actionRollbackSuccess","#/$defs/actionSummary","#/$defs/actionsData","#/$defs/advisorOutputContract","#/$defs/analysisRubric","#/$defs/artifactGetArguments","#/$defs/artifactGetSuccess","#/$defs/artifactRepresentation","#/$defs/assignment","#/$defs/assignmentClaim","#/$defs/assignmentClaimArguments","#/$defs/assignmentClaimSuccess","#/$defs/assignmentSubmitArguments","#/$defs/assignmentSubmitSuccess","#/$defs/attention","#/$defs/attentionCounts","#/$defs/beforeAfter","#/$defs/blockedReasons","#/$defs/blocker","#/$defs/boundAllowedAction","#/$defs/candidateId","#/$defs/capability","#/$defs/chairOutputContract","#/$defs/challengerOutputContract","#/$defs/choice","#/$defs/claim","#/$defs/claimCounts","#/$defs/contextCaptureOutputContract","#/$defs/corruptReasons","#/$defs/cycle","#/$defs/cycleData","#/$defs/cycleGetSuccess","#/$defs/cycleLink","#/$defs/cycleResumeSuccess","#/$defs/cycleStartArguments","#/$defs/cycleStartSuccess","#/$defs/cyclesData","#/$defs/data","#/$defs/decisionRef","#/$defs/decisionSummary","#/$defs/dependency","#/$defs/dependencyPolicy","#/$defs/dispositionChoice","#/$defs/dissentSummary","#/$defs/domainMetric","#/$defs/dueVerification","#/$defs/edge","#/$defs/effectSummary","#/$defs/error","#/$defs/errorCode","#/$defs/evidence","#/$defs/evidenceCounts","#/$defs/evidenceInputAbsence","#/$defs/executiveBoard","#/$defs/executiveBoardActionHypothesis","#/$defs/executiveBoardAlternativeDisposition","#/$defs/executiveBoardChairArtifact","#/$defs/executiveBoardChairDecision","#/$defs/executiveBoardChairSynthesis","#/$defs/executiveBoardChallengerFinding","#/$defs/executiveBoardChallengerFindings","#/$defs/executiveBoardEvidenceGap","#/$defs/executiveBoardGap","#/$defs/executiveBoardRecommendationRef","#/$defs/executiveBoardRoleGap","#/$defs/executiveBoardSeat","#/$defs/executiveBoardSeatAbsence","#/$defs/executiveSummary","#/$defs/findingSummary","#/$defs/gapSummary","#/$defs/gate","#/$defs/history","#/$defs/historyAuthority","#/$defs/historyChange","#/$defs/historyPrior","#/$defs/historyResult","#/$defs/inbox","#/$defs/inboxData","#/$defs/inboxEvidence","#/$defs/inboxParty","#/$defs/incompatibleReasons","#/$defs/inputAbsence","#/$defs/inputBundle","#/$defs/intelligenceInputBundleOutputContract","#/$defs/issuedEvidence","#/$defs/learning","#/$defs/lensAbsence","#/$defs/localAnalysisId","#/$defs/localClaimId","#/$defs/localFindingId","#/$defs/localMeasurementId","#/$defs/localRecommendationId","#/$defs/localRiskId","#/$defs/locator","#/$defs/mandate","#/$defs/mandateCapability","#/$defs/mandateForbiddenEffect","#/$defs/metricChange","#/$defs/nextObservation","#/$defs/node","#/$defs/nullableDeepLink","#/$defs/observationRequest","#/$defs/offlineReasons","#/$defs/outcome","#/$defs/outcomeMetric","#/$defs/parityProof","#/$defs/partialReasons","#/$defs/party","#/$defs/policyBinding","#/$defs/proof","#/$defs/proofCounts","#/$defs/rationale","#/$defs/readOnlyReasons","#/$defs/recommendation","#/$defs/recoveryInspectSuccess","#/$defs/recoveryInspection","#/$defs/replay","#/$defs/replayTail","#/$defs/requestBinding","#/$defs/resolutionId","#/$defs/reviewGetSuccess","#/$defs/reviewIdentityArguments","#/$defs/reviewSubmitSuccess","#/$defs/revisit","#/$defs/roleInputAbsence","#/$defs/searchResult","#/$defs/seatCounts","#/$defs/seatStatus","#/$defs/sharedTruthSummary","#/$defs/stage","#/$defs/stageCounts","#/$defs/staleReasons","#/$defs/submissionAcceptance","#/$defs/summary","#/$defs/summaryOmissions","#/$defs/terminalAbsence","#/$defs/terminalOutcome","#/$defs/threshold","#/$defs/todayData","#/$defs/toolName","#/$defs/transition","#/$defs/transitionTarget","#/$defs/uncertainty","#/$defs/verification","#/$defs/verificationCounts","#/$defs/workDisposition","#/properties/appliedChoiceHash","#/properties/appliedChoiceId","../v2.0.0/operate-api-envelope.schema.json#/$defs/cycleView/properties/progress","../v2.0.0/operate-experience-view.schema.json#/$defs/attention","../v2.0.0/operate-experience-view.schema.json#/$defs/claim","../v2.0.0/operate-experience-view.schema.json#/$defs/evidence","../v2.0.0/operate-experience-view.schema.json#/$defs/executiveBoard","../v2.0.0/operate-experience-view.schema.json#/$defs/rationale","1000","3","5","ACTION_NOT_FOUND","ACTION_REVISION_MISMATCH","APPROVAL_EXPIRED","APPROVAL_INVALID","APPROVAL_REQUIRED","ASSIGNMENT_ALREADY_CLAIMED","ASSIGNMENT_ALREADY_SUBMITTED","ASSIGNMENT_NOT_AVAILABLE","Access-safe identity graph joining operating requirements and absences to seats, accepted work, proof, decisions, governed actions, and verification. Every edge is listed once and reciprocally indexed by both endpoint nodes.","Access-safe, content-hashed projection over either one verified pending operating-review-read or one immutable terminal operating-review-receipt and its exact actor-bound experience view.","Additive wrapper that binds one exact advertised Review choice and optional owner note to the source Event head without changing the legacy operate.review.submit tool arguments.","CAPABILITY_GRANT_CONSUMED","CAPABILITY_GRANT_INVALID","CAPABILITY_PROVIDER_UNAVAILABLE","CAPABILITY_UNAVAILABLE","CONCURRENT_MODIFICATION","CONTRACT_VERSION_UNSUPPORTED","CYCLE_NOT_FOUND","CYCLE_TERMINAL","DOMAIN_CONTRACT_UNSUPPORTED","EVIDENCE_RESOLUTION_FAILED","EXECUTOR_UNAVAILABLE","OPERATE_CONTRACT_INCOMPATIBLE","OPERATE_OFFLINE","OPERATE_PROJECTION_BLOCKED","OPERATE_PROJECTION_PARTIAL","OPERATE_PROJECTION_STALE","OPERATE_READ_ONLY","OPERATE_STATE_CORRUPT","OPERATE_TRACE_ACCESS_RESTRICTED","OPERATE_TRACE_ROLE_NOT_SELECTED","OPERATE_TRACE_TYPED_ABSENCE","OPERATING_PROVIDER_INPUT_INVALID","OPERATING_PROVIDER_UNAVAILABLE","OPERATING_SCOPE_INVALID","OPERATION_CONFLICT","OPERATION_UNCERTAIN","OpenPlanr Operate 2.0 API envelope","OpenPlanr Operate 2.0 allowed action","OpenPlanr Operate 2.0 bounded reciprocal trace matrix","OpenPlanr Operate 2.0 cycle-scoped review","OpenPlanr Operate 2.0 execution result","OpenPlanr Operate 2.0 governed operation","OpenPlanr Operate 2.0 owner-bound review receipt","OpenPlanr Operate 2.0 persistent finding","OpenPlanr Operate 2.0 rebuildable persistent-work ledger","OpenPlanr Operate delivery route","OpenPlanr Operate governed experience preview","OpenPlanr browser-verifiable Operate display surface","OpenPlanr browser-verifiable access-safe audit display surface","OpenPlanr browser-verifiable executive board display surface","OpenPlanr browser-verifiable owner Review display workspace","OpenPlanr browser-verifiable recovery display surface","OpenPlanr browser-verifiable sanitized Action workspace","OpenPlanr browser-verifiable sanitized Cycle workspace","OpenPlanr dashboard Operate experience surface","OpenPlanr owner-bound Review submission","POLICY_EVALUATION_DEFERRED","POLICY_EVALUATION_REJECTED","POLICY_PROHIBITED","POLICY_PROVIDER_UNAVAILABLE","Post-commit proof of the exact human owner's Review disposition. The runtime owns receiptId and committedAt.","RESULT_CONTRACT_INVALID","REVIEW_NOT_AUTHORIZED","REVIEW_NOT_FOUND","REVIEW_NOT_PENDING","REVIEW_TERMINAL","ROLLBACK_NOT_ELIGIBLE","Runtime-owned pre-commit Review read and exact applied choice proof retained for byte-identical receipt replay. Receipt identity, post-commit Event head, and commit time derive from the committed Event and are intentionally excluded to avoid a hash cycle.","STATE_TRANSITION_INVALID","SUBMISSION_ID_CONFLICT","^(?:ceiling_[a-f0-9]{24}|grant-[A-Za-z0-9][A-Za-z0-9._-]{2,127})$","^(?:xres|rbres)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^[0-9]+\\.[0-9]+\\.[0-9]+$","^[A-Z][A-Z0-9_]*$","^analysis:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^claim:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^droute_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^finding:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^ibd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^ipl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^measurement:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^recommendation:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:1$","^risk:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^tro_[a-f0-9]{32}$","^trx_[a-f0-9]{32}$","^xbr_[a-f0-9]{32}$","^xprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^xview_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","action.approve success","action.execute success","action.rollback success","actionApproval","actionApproveArguments","actionApproveSuccess","actionData","actionDependency","actionExecuteArguments","actionExecuteSuccess","actionIdentity","actionRollbackArguments","actionRollbackSuccess","actionsData","advisorOutputContract","all-required","allowed","alternatives","always","analysis","approved review","artifact.get success","artifactGetArguments","artifactGetSuccess","artifactRepresentation","assigned-to","assignment.claim success","assignment.submit success","assignmentClaim","assignmentClaimArguments","assignmentClaimSuccess","assignmentDependency","assignmentSubmitArguments","assignmentSubmitSuccess","attentionCounts","authorized","blockedReasons","blocker","body-never-projected","cancelled review","canonical bytes","carried-forward","chairOutputContract","challenge","challengerOutputContract","challenges","changes requested review","choice","claimCounts","claimed","clear-stale-lock","compatibility","compensating","contested","contextCaptureOutputContract","contradicted-by","corruptReasons","custody","customer-contact","cycle.get success","cycle.resume success","cycle.start success","cycleData","cycleGetSuccess","cycleIdentityArguments","cycleLink","cycleResumeSuccess","cycleStartArguments","cycleStartSuccess","cycleView","cyclesData","date","decides","decisionRef","declares","deltaRef","dependency","dependentRequired","digest","dispatching","disposes","divergent","domainMetric","edge","empty","endpoint","errorCode","event-type","evidence-ref","evidenceCounts","evidenceRequirement","executiveBoardActionHypothesis","executiveBoardAlternativeDisposition","executiveBoardArtifact","executiveBoardChairArtifact","executiveBoardChairDecision","executiveBoardChairSynthesis","executiveBoardChallengerFinding","executiveBoardChallengerFindings","executiveBoardClaimRef","executiveBoardDissent","executiveBoardEvidenceGap","executiveBoardGap","executiveBoardRecommendationRef","executiveBoardRoleGap","executiveBoardSeat","executiveBoardSeatAbsence","failure","gap","gate","git.read","governed","governed-by","governed-execution","healthy","historyAuthority","historyChange","historyPrior","historyResult","https://openplanr.dev/schemas/v1.2.0/operate-action-display-workspace.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-cycle-display-workspace.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-executive-board-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-audit-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-recovery-display-surface.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-allowed-action.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-api-envelope.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-experience-preview.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-review-bound-submission.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-review-display-workspace.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-delivery-route.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-execution-result.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-finding.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-governed-operation.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review-receipt.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-trace-matrix.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-work-ledger.schema.json","identity-redacted","immutable-review-event","inboxActionLocator","inboxData","inboxEvidence","inboxNavigationLocator","inboxParty","inboxUnavailableReason","incompatibleReasons","inputAbsence","insufficient","intelligenceInputBundleOutputContract","intent-recorded","issued-as","lens","lensAbsence","localAnalysisId","localFindingId","localMeasurementId","localRiskId","locked","mandateCapability","mandateForbiddenEffect","materialized","measurements","metadata only","metricChange","nextAction","node","nodeKind","nonBlankText","nullableDeepLink","nullableShortText","objectArray","observed-as","offlineReasons","openplanr:operate-action-display-workspace:1.0.0","openplanr:operate-cycle-display-workspace:1.0.0","openplanr:operate-executive-board-display-surface:1.0.0","openplanr:operate-experience-audit-display-surface:1.0.0","openplanr:operate-experience-display-surface:1.0.0","openplanr:operate-recovery-display-surface:1.0.0","openplanr:operate-review-display-workspace:1.0.0","operate-action-workspace","operate-allowed-action","operate-api-envelope","operate-cycle-workspace","operate-executive-board","operate-experience-surface.schema.json","operate-experience-view.schema.json#/$defs/accessLevel","operate-experience-view.schema.json#/$defs/boundAllowedAction","operate-experience-view.schema.json#/$defs/claim","operate-experience-view.schema.json#/$defs/evidence","operate-experience-view.schema.json#/$defs/version","operate-planning-decision-revisit","operate-planning-delivery-verifier","operate-recovery","operate-review-workspace","operate-shared-truth-summary","operating-action","operating-approval-record.schema.json","operating-approval-requirement.schema.json","operating-context-capture","operating-decision","operating-decision.schema.json","operating-delivery-route.schema.json","operating-execution-result.schema.json#/$defs/effectSummary","operating-finding.schema.json","operating-finding.schema.json#/$defs/target","operating-intelligence-input-bundle","operating-policy-evaluation.schema.json","operating-review-read.schema.json#/$defs/actionSummary","operating-review-read.schema.json#/$defs/dispositionChoice","operating-review-read.schema.json#/$defs/humanActor","operating-review-read.schema.json#/$defs/scope","operating-review-read.schema.json#/$defs/seatStatus","operating-review-receipt.schema.json","operating-work-ledger.schema.json","operating-work-ledger.schema.json#/$defs/cycleLink","outcomeMetric","partialReasons","party","payment.change","pending review","planr.read","preferred","preview","produces","production.deploy","proofCounts","proposes","publicActor","publish","question-coverage","quiet","raw bytes","readOnlyReasons","records","recovery.inspect success","recoveryInspectSuccess","recoveryInspection","refused","rejected review","repairable","replayProjection","replayTail","repository.read","repository.write","requirement","restore-generation","restored","resultRequirement","review-only","review.get success","review.submit success","reviewGetSuccess","reviewIdentityArguments","reviewSubmit","reviewSubmitSuccess","risks","rubricClauses","safeToken","searchResult","seatCounts","separately-governed-follow-on","sharedTruthSummary","ship","shortText","snapshotRef","source-dispositions","spend","stage","stageCounts","staleReasons","standard","submissionAcceptance","submissionState","successBase","summaryOmissions","supported-by","synthesis","terminalAbsence","todayData","toolName","touched","transitionTarget","unowned","verificationCounts","verified decoded JSON","verified-by","workDisposition"]);
|
|
6
|
+
const MAX_PAYLOAD_LENGTH = 1_000_000;
|
|
7
|
+
const MAX_NODES = 500_000;
|
|
8
|
+
const MAX_DEPTH = 256;
|
|
9
|
+
const BASE64 = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u;
|
|
10
|
+
const JSON_NUMBER = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/u;
|
|
11
|
+
|
|
12
|
+
function invalidTokenPayload() {
|
|
13
|
+
const error = new TypeError("Dashboard schema token payload is invalid.");
|
|
14
|
+
Object.defineProperty(error, "code", {
|
|
15
|
+
value: "E_DASHBOARD_SCHEMA_TOKEN_INVALID",
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: false,
|
|
18
|
+
writable: false,
|
|
19
|
+
});
|
|
20
|
+
return error;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function decodeBase64(payload) {
|
|
24
|
+
if (
|
|
25
|
+
typeof payload !== "string"
|
|
26
|
+
|| payload.length === 0
|
|
27
|
+
|| payload.length > MAX_PAYLOAD_LENGTH
|
|
28
|
+
|| payload.length % 4 !== 0
|
|
29
|
+
|| !BASE64.test(payload)
|
|
30
|
+
) throw invalidTokenPayload();
|
|
31
|
+
let decoded;
|
|
32
|
+
try {
|
|
33
|
+
decoded = globalThis.atob(payload);
|
|
34
|
+
if (globalThis.btoa(decoded) !== payload) throw invalidTokenPayload();
|
|
35
|
+
} catch {
|
|
36
|
+
throw invalidTokenPayload();
|
|
37
|
+
}
|
|
38
|
+
const bytes = new Uint8Array(decoded.length);
|
|
39
|
+
for (let index = 0; index < decoded.length; index += 1) {
|
|
40
|
+
const byte = decoded.charCodeAt(index);
|
|
41
|
+
if (byte > 0xff) throw invalidTokenPayload();
|
|
42
|
+
bytes[index] = byte;
|
|
43
|
+
}
|
|
44
|
+
return bytes;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function decodeDashboardSchema(payload) {
|
|
48
|
+
const bytes = decodeBase64(payload);
|
|
49
|
+
let offset = 0;
|
|
50
|
+
let nodeCount = 0;
|
|
51
|
+
const readByte = () => {
|
|
52
|
+
if (offset >= bytes.length) throw invalidTokenPayload();
|
|
53
|
+
const byte = bytes[offset];
|
|
54
|
+
offset += 1;
|
|
55
|
+
return byte;
|
|
56
|
+
};
|
|
57
|
+
const readVarUint = () => {
|
|
58
|
+
let value = 0;
|
|
59
|
+
let multiplier = 1;
|
|
60
|
+
for (let index = 0; index < 5; index += 1) {
|
|
61
|
+
const byte = readByte();
|
|
62
|
+
value += (byte & 0x7f) * multiplier;
|
|
63
|
+
if (value > 0xffff_ffff) throw invalidTokenPayload();
|
|
64
|
+
if ((byte & 0x80) === 0) {
|
|
65
|
+
if (index > 0 && byte === 0) throw invalidTokenPayload();
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
multiplier *= 128;
|
|
69
|
+
}
|
|
70
|
+
throw invalidTokenPayload();
|
|
71
|
+
};
|
|
72
|
+
const readToken = () => {
|
|
73
|
+
const token = DASHBOARD_SCHEMA_TOKENS[readVarUint()];
|
|
74
|
+
if (typeof token !== "string") throw invalidTokenPayload();
|
|
75
|
+
return token;
|
|
76
|
+
};
|
|
77
|
+
const readValue = (depth) => {
|
|
78
|
+
nodeCount += 1;
|
|
79
|
+
if (nodeCount > MAX_NODES || depth > MAX_DEPTH) throw invalidTokenPayload();
|
|
80
|
+
switch (readByte()) {
|
|
81
|
+
case 0: return null;
|
|
82
|
+
case 1: return false;
|
|
83
|
+
case 2: return true;
|
|
84
|
+
case 3: {
|
|
85
|
+
const token = readToken();
|
|
86
|
+
if (!JSON_NUMBER.test(token)) throw invalidTokenPayload();
|
|
87
|
+
const number = Number(token);
|
|
88
|
+
if (!Number.isFinite(number) || JSON.stringify(number) !== token) {
|
|
89
|
+
throw invalidTokenPayload();
|
|
90
|
+
}
|
|
91
|
+
return number;
|
|
92
|
+
}
|
|
93
|
+
case 4: return readToken();
|
|
94
|
+
case 5: {
|
|
95
|
+
const length = readVarUint();
|
|
96
|
+
if (length > MAX_NODES - nodeCount) throw invalidTokenPayload();
|
|
97
|
+
const value = new Array(length);
|
|
98
|
+
for (let index = 0; index < length; index += 1) {
|
|
99
|
+
value[index] = readValue(depth + 1);
|
|
100
|
+
}
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
case 6: {
|
|
104
|
+
const length = readVarUint();
|
|
105
|
+
if (length > MAX_NODES - nodeCount) throw invalidTokenPayload();
|
|
106
|
+
const value = {};
|
|
107
|
+
for (let index = 0; index < length; index += 1) {
|
|
108
|
+
const key = readToken();
|
|
109
|
+
if (Object.hasOwn(value, key)) throw invalidTokenPayload();
|
|
110
|
+
Object.defineProperty(value, key, {
|
|
111
|
+
value: readValue(depth + 1),
|
|
112
|
+
enumerable: true,
|
|
113
|
+
configurable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
default: throw invalidTokenPayload();
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
const schema = readValue(0);
|
|
123
|
+
if (offset !== bytes.length || !schema || typeof schema !== "object" || Array.isArray(schema)) {
|
|
124
|
+
throw invalidTokenPayload();
|
|
125
|
+
}
|
|
126
|
+
return schema;
|
|
127
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
OperateExperienceClaimV1,
|
|
3
|
+
OperateExperienceDomainMetricV1,
|
|
4
|
+
OperateExperienceEvidenceV1,
|
|
5
|
+
OperateExperienceHistoryV1,
|
|
6
|
+
OperateExperienceLearningV1,
|
|
7
|
+
OperateExperienceOutcomeV1,
|
|
8
|
+
OperateExperienceRationaleV1,
|
|
9
|
+
OperateExperienceReplayV1,
|
|
10
|
+
ProtocolValidationError,
|
|
11
|
+
} from "../protocol/index.js";
|
|
12
|
+
import type { OperateExperienceSurfaceBaseV1 } from "./operate-experience-surface-contract.mjs";
|
|
13
|
+
|
|
14
|
+
export type OperateAuditEventHeadV1 =
|
|
15
|
+
| Readonly<{ sequence: 0; hash: null }>
|
|
16
|
+
| Readonly<{ sequence: number; hash: string }>;
|
|
17
|
+
|
|
18
|
+
type NullableDeepLink<T extends object> = Readonly<
|
|
19
|
+
Omit<T, "deepLink"> & { deepLink: string | null }
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type OperateAuditDisplayBindingV1 = Readonly<{
|
|
23
|
+
actorId: string;
|
|
24
|
+
scopeId: string;
|
|
25
|
+
domainId: string;
|
|
26
|
+
domainVersion: string;
|
|
27
|
+
cycleId: string;
|
|
28
|
+
subjectId: string | null;
|
|
29
|
+
surface:
|
|
30
|
+
| "evidence"
|
|
31
|
+
| "outcomes"
|
|
32
|
+
| "outcome"
|
|
33
|
+
| "history"
|
|
34
|
+
| "search"
|
|
35
|
+
| "export";
|
|
36
|
+
query: string | null;
|
|
37
|
+
format: "json" | "html" | null;
|
|
38
|
+
generatedAt: string;
|
|
39
|
+
eventHead: OperateAuditEventHeadV1;
|
|
40
|
+
viewHash: string;
|
|
41
|
+
}>;
|
|
42
|
+
|
|
43
|
+
export type OperateAuditDisplayIntegrityV1 = Readonly<{
|
|
44
|
+
algorithm: "sha-256-jcs";
|
|
45
|
+
domain: "openplanr:operate-experience-audit-display-surface:1.0.0";
|
|
46
|
+
sourceViewHash: string;
|
|
47
|
+
contentHash: string;
|
|
48
|
+
}>;
|
|
49
|
+
|
|
50
|
+
export type OperateAuditEvidenceV1 = Readonly<
|
|
51
|
+
Omit<OperateExperienceEvidenceV1, "deepLink" | "causalLinks"> & {
|
|
52
|
+
deepLink: string | null;
|
|
53
|
+
causalLinks: readonly NullableDeepLink<
|
|
54
|
+
OperateExperienceEvidenceV1["causalLinks"][number]
|
|
55
|
+
>[];
|
|
56
|
+
}
|
|
57
|
+
>;
|
|
58
|
+
|
|
59
|
+
export type OperateAuditClaimV1 = Readonly<
|
|
60
|
+
Omit<OperateExperienceClaimV1, "deepLink" | "causalLinks"> & {
|
|
61
|
+
deepLink: string | null;
|
|
62
|
+
causalLinks: readonly NullableDeepLink<
|
|
63
|
+
OperateExperienceClaimV1["causalLinks"][number]
|
|
64
|
+
>[];
|
|
65
|
+
}
|
|
66
|
+
>;
|
|
67
|
+
|
|
68
|
+
export type OperateAuditDomainMetricV1 = Readonly<
|
|
69
|
+
Omit<OperateExperienceDomainMetricV1, "dueVerification"> & {
|
|
70
|
+
dueVerification: readonly NullableDeepLink<
|
|
71
|
+
OperateExperienceDomainMetricV1["dueVerification"][number]
|
|
72
|
+
>[];
|
|
73
|
+
}
|
|
74
|
+
>;
|
|
75
|
+
|
|
76
|
+
export type OperateAuditOutcomeV1 = Readonly<
|
|
77
|
+
Omit<
|
|
78
|
+
OperateExperienceOutcomeV1,
|
|
79
|
+
"deepLink" | "decision" | "execution" | "rollback"
|
|
80
|
+
> & {
|
|
81
|
+
deepLink: string | null;
|
|
82
|
+
decision: null | NullableDeepLink<
|
|
83
|
+
NonNullable<OperateExperienceOutcomeV1["decision"]>
|
|
84
|
+
>;
|
|
85
|
+
execution: readonly NullableDeepLink<
|
|
86
|
+
OperateExperienceOutcomeV1["execution"][number]
|
|
87
|
+
>[];
|
|
88
|
+
rollback: readonly NullableDeepLink<
|
|
89
|
+
OperateExperienceOutcomeV1["rollback"][number]
|
|
90
|
+
>[];
|
|
91
|
+
}
|
|
92
|
+
>;
|
|
93
|
+
|
|
94
|
+
type AuditPayloadBase = Readonly<
|
|
95
|
+
Omit<
|
|
96
|
+
OperateExperienceSurfaceBaseV1,
|
|
97
|
+
"surface" | "mutationEnabled" | "eventHead"
|
|
98
|
+
> & {
|
|
99
|
+
mutationEnabled: false;
|
|
100
|
+
eventHead: OperateAuditEventHeadV1;
|
|
101
|
+
}
|
|
102
|
+
>;
|
|
103
|
+
|
|
104
|
+
type OperateAuditReplayV1 = Readonly<
|
|
105
|
+
Omit<OperateExperienceReplayV1, "checkpoint" | "finalHead"> & {
|
|
106
|
+
checkpoint: null | Readonly<
|
|
107
|
+
Omit<
|
|
108
|
+
NonNullable<OperateExperienceReplayV1["checkpoint"]>,
|
|
109
|
+
"eventHead"
|
|
110
|
+
> & { eventHead: OperateAuditEventHeadV1 }
|
|
111
|
+
>;
|
|
112
|
+
finalHead: OperateAuditEventHeadV1;
|
|
113
|
+
}
|
|
114
|
+
>;
|
|
115
|
+
|
|
116
|
+
export type OperateExperienceAuditDisplaySurfacePayloadV1 = AuditPayloadBase &
|
|
117
|
+
(
|
|
118
|
+
| Readonly<{
|
|
119
|
+
surface: "evidence";
|
|
120
|
+
data: Readonly<{
|
|
121
|
+
evidence: readonly OperateAuditEvidenceV1[];
|
|
122
|
+
claims: readonly OperateAuditClaimV1[];
|
|
123
|
+
rationale: readonly OperateExperienceRationaleV1[];
|
|
124
|
+
}>;
|
|
125
|
+
}>
|
|
126
|
+
| Readonly<{
|
|
127
|
+
surface: "outcomes";
|
|
128
|
+
data: Readonly<{
|
|
129
|
+
domainMetrics: readonly OperateAuditDomainMetricV1[];
|
|
130
|
+
outcomes: readonly OperateAuditOutcomeV1[];
|
|
131
|
+
learnings: readonly OperateExperienceLearningV1[];
|
|
132
|
+
}>;
|
|
133
|
+
}>
|
|
134
|
+
| Readonly<{
|
|
135
|
+
surface: "outcome";
|
|
136
|
+
data: Readonly<{
|
|
137
|
+
outcome: OperateAuditOutcomeV1;
|
|
138
|
+
learnings: readonly OperateExperienceLearningV1[];
|
|
139
|
+
}>;
|
|
140
|
+
}>
|
|
141
|
+
| Readonly<{
|
|
142
|
+
surface: "history";
|
|
143
|
+
data: Readonly<{
|
|
144
|
+
history: readonly OperateExperienceHistoryV1[];
|
|
145
|
+
replay: OperateAuditReplayV1;
|
|
146
|
+
}>;
|
|
147
|
+
}>
|
|
148
|
+
| Readonly<{
|
|
149
|
+
surface: "search";
|
|
150
|
+
data: Readonly<{
|
|
151
|
+
query: string;
|
|
152
|
+
results: readonly Readonly<{
|
|
153
|
+
kind: string;
|
|
154
|
+
subjectId: string;
|
|
155
|
+
title: string;
|
|
156
|
+
summary: string;
|
|
157
|
+
state: string;
|
|
158
|
+
deepLink?: string;
|
|
159
|
+
}>[];
|
|
160
|
+
}>;
|
|
161
|
+
}>
|
|
162
|
+
| Readonly<{
|
|
163
|
+
surface: "export";
|
|
164
|
+
data: Readonly<{
|
|
165
|
+
format: "json" | "html";
|
|
166
|
+
mediaType: "application/json" | "text/html; charset=utf-8";
|
|
167
|
+
content: string;
|
|
168
|
+
}>;
|
|
169
|
+
}>
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
export type OperateExperienceAuditDisplaySurfaceV1 = Readonly<{
|
|
173
|
+
kind: "operate-experience-audit-display-surface";
|
|
174
|
+
schemaVersion: "1.0.0";
|
|
175
|
+
protocolVersion: "2.0.0";
|
|
176
|
+
requestBinding: OperateAuditDisplayBindingV1;
|
|
177
|
+
payload: OperateExperienceAuditDisplaySurfacePayloadV1;
|
|
178
|
+
integrity: OperateAuditDisplayIntegrityV1;
|
|
179
|
+
}>;
|
|
180
|
+
|
|
181
|
+
export function validateOperateExperienceAuditDisplaySurfaceV1(
|
|
182
|
+
value: unknown,
|
|
183
|
+
expected?: OperateAuditDisplayBindingV1,
|
|
184
|
+
): ProtocolValidationError[];
|
|
185
|
+
export function assertOperateExperienceAuditDisplaySurfaceV1(
|
|
186
|
+
value: unknown,
|
|
187
|
+
expected?: OperateAuditDisplayBindingV1,
|
|
188
|
+
): OperateExperienceAuditDisplaySurfaceV1;
|
|
189
|
+
export function issueOperateExperienceAuditDisplaySurfaceV1(
|
|
190
|
+
payload: OperateExperienceAuditDisplaySurfacePayloadV1,
|
|
191
|
+
binding: OperateAuditDisplayBindingV1,
|
|
192
|
+
): OperateExperienceAuditDisplaySurfaceV1;
|
|
193
|
+
|
|
194
|
+
export const OPERATE_EXPERIENCE_AUDIT_DISPLAY_SURFACE_SCHEMA_V1: Readonly<
|
|
195
|
+
Record<string, unknown>
|
|
196
|
+
>;
|