project-tiny-context-harness 0.8.17 → 0.11.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/README.md +93 -30
- package/assets/README.md +158 -44
- package/assets/README.zh-CN.md +88 -29
- package/assets/agents/AGENTS_CORE.md +2 -2
- package/assets/context_templates/context.toml +6 -1
- package/assets/runtime/windows-job-supervisor/formal_process_supervisor_native_helpers.cs +301 -0
- package/assets/runtime/windows-job-supervisor/formal_process_supervisor_native_run.cs +197 -0
- package/assets/runtime/windows-job-supervisor/formal_process_supervisor_native_types.cs +215 -0
- package/assets/runtime/windows-job-supervisor/windows_job_process_supervisor.ps1 +117 -0
- package/assets/skills/design-resource-authoring/SKILL.md +6 -3
- package/assets/skills/design-resource-authoring/references/authority-delta-assessment.md +52 -0
- package/assets/skills/design-resource-authoring/references/downstream-handoff.md +5 -1
- package/assets/skills/design-system-authoring/SKILL.md +23 -17
- package/assets/skills/design-system-authoring/references/authority-adoption.md +19 -9
- package/assets/skills/design-system-authoring/references/open-design-design-system-provider.md +4 -0
- package/assets/skills/long-task-workflow/SKILL.md +6 -6
- package/assets/skills/long-task-workflow/references/authority-lifecycle.md +10 -4
- package/assets/skills/long-task-workflow/references/contract-authoring.md +5 -5
- package/assets/skills/long-task-workflow/references/evidence-design.md +14 -3
- package/assets/skills/long-task-workflow/references/source-authoring.md +11 -8
- package/assets/tools/context_rules.json +53 -0
- package/assets/tools/validate_context.py +302 -77
- package/dist/cli.js +2 -1
- package/dist/commands/context-create.d.ts +1 -0
- package/dist/commands/context-create.js +90 -0
- package/dist/commands/context-inspect.d.ts +1 -0
- package/dist/commands/context-inspect.js +98 -0
- package/dist/commands/context-move.d.ts +1 -0
- package/dist/commands/context-move.js +78 -0
- package/dist/commands/context-register.d.ts +1 -0
- package/dist/commands/context-register.js +110 -0
- package/dist/commands/context-transaction.d.ts +1 -0
- package/dist/commands/context-transaction.js +84 -0
- package/dist/commands/context.d.ts +1 -0
- package/dist/commands/context.js +36 -0
- package/dist/commands/design-authority-delta.d.ts +1 -0
- package/dist/commands/design-authority-delta.js +53 -0
- package/dist/commands/design-authority.d.ts +1 -0
- package/dist/commands/design-authority.js +104 -0
- package/dist/commands/design-resource.js +8 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +61 -3
- package/dist/commands/index.js +19 -2
- package/dist/commands/long-task-authoring.js +20 -2
- package/dist/commands/long-task-workdir.d.ts +2 -0
- package/dist/commands/long-task-workdir.js +23 -0
- package/dist/commands/long-task.js +75 -6
- package/dist/commands/route.d.ts +15 -0
- package/dist/commands/route.js +142 -0
- package/dist/index.d.ts +3 -13
- package/dist/index.js +3 -12
- package/dist/lib/cli-exit.d.ts +14 -0
- package/dist/lib/cli-exit.js +19 -0
- package/dist/lib/context-catalog/catalog-default-footprint.d.ts +3 -0
- package/dist/lib/context-catalog/catalog-default-footprint.js +53 -0
- package/dist/lib/context-catalog/catalog-diagnostics.d.ts +9 -0
- package/dist/lib/context-catalog/catalog-diagnostics.js +34 -0
- package/dist/lib/context-catalog/catalog-discovery.d.ts +7 -0
- package/dist/lib/context-catalog/catalog-discovery.js +81 -0
- package/dist/lib/context-catalog/catalog-load.d.ts +8 -0
- package/dist/lib/context-catalog/catalog-load.js +187 -0
- package/dist/lib/context-catalog/catalog-path-validation.d.ts +7 -0
- package/dist/lib/context-catalog/catalog-path-validation.js +62 -0
- package/dist/lib/context-catalog/catalog-paths.d.ts +11 -0
- package/dist/lib/context-catalog/catalog-paths.js +41 -0
- package/dist/lib/context-catalog/catalog-portable-contract.d.ts +15 -0
- package/dist/lib/context-catalog/catalog-portable-contract.js +68 -0
- package/dist/lib/context-catalog/catalog-staged-path-safety.d.ts +1 -0
- package/dist/lib/context-catalog/catalog-staged-path-safety.js +36 -0
- package/dist/lib/context-catalog/catalog-types.d.ts +40 -0
- package/dist/lib/context-catalog/catalog-types.js +1 -0
- package/dist/lib/context-catalog/catalog-validation.d.ts +9 -0
- package/dist/lib/context-catalog/catalog-validation.js +148 -0
- package/dist/lib/context-create/context-create-path.d.ts +2 -0
- package/dist/lib/context-create/context-create-path.js +30 -0
- package/dist/lib/context-create/context-create-template.d.ts +2 -0
- package/dist/lib/context-create/context-create-template.js +95 -0
- package/dist/lib/context-create/context-create-types.d.ts +28 -0
- package/dist/lib/context-create/context-create-types.js +1 -0
- package/dist/lib/context-create/context-create-write.d.ts +1 -0
- package/dist/lib/context-create/context-create-write.js +85 -0
- package/dist/lib/context-create/context-create.d.ts +2 -0
- package/dist/lib/context-create/context-create.js +84 -0
- package/dist/lib/context-default-footprint.d.ts +2 -3
- package/dist/lib/context-default-footprint.js +49 -57
- package/dist/lib/context-doctor/context-doctor-types.d.ts +16 -0
- package/dist/lib/context-doctor/context-doctor-types.js +15 -0
- package/dist/lib/context-doctor/context-doctor.d.ts +2 -0
- package/dist/lib/context-doctor/context-doctor.js +130 -0
- package/dist/lib/context-graph-snapshot.d.ts +5 -0
- package/dist/lib/context-graph-snapshot.js +46 -25
- package/dist/lib/context-inspect/context-inspect-projection.d.ts +9 -0
- package/dist/lib/context-inspect/context-inspect-projection.js +49 -0
- package/dist/lib/context-inspect/context-inspect-render.d.ts +2 -0
- package/dist/lib/context-inspect/context-inspect-render.js +29 -0
- package/dist/lib/context-inspect/context-inspect-types.d.ts +43 -0
- package/dist/lib/context-inspect/context-inspect-types.js +1 -0
- package/dist/lib/context-inspect/context-inspect.d.ts +2 -0
- package/dist/lib/context-inspect/context-inspect.js +104 -0
- package/dist/lib/context-manifest-schema.d.ts +1 -1
- package/dist/lib/context-manifest-schema.js +4 -20
- package/dist/lib/context-markdown/context-markdown-analysis.d.ts +15 -0
- package/dist/lib/context-markdown/context-markdown-analysis.js +245 -0
- package/dist/lib/context-markdown/context-markdown-extract.d.ts +7 -0
- package/dist/lib/context-markdown/context-markdown-extract.js +114 -0
- package/dist/lib/context-markdown/context-markdown-types.d.ts +57 -0
- package/dist/lib/context-markdown/context-markdown-types.js +1 -0
- package/dist/lib/context-move/context-move-input.d.ts +8 -0
- package/dist/lib/context-move/context-move-input.js +17 -0
- package/dist/lib/context-move/context-move-literal-scan.d.ts +20 -0
- package/dist/lib/context-move/context-move-literal-scan.js +213 -0
- package/dist/lib/context-move/context-move-live-validation.d.ts +3 -0
- package/dist/lib/context-move/context-move-live-validation.js +56 -0
- package/dist/lib/context-move/context-move-markdown-plan.d.ts +22 -0
- package/dist/lib/context-move/context-move-markdown-plan.js +39 -0
- package/dist/lib/context-move/context-move-projection.d.ts +3 -0
- package/dist/lib/context-move/context-move-projection.js +11 -0
- package/dist/lib/context-move/context-move-reference-validation.d.ts +11 -0
- package/dist/lib/context-move/context-move-reference-validation.js +64 -0
- package/dist/lib/context-move/context-move-render.d.ts +2 -0
- package/dist/lib/context-move/context-move-render.js +24 -0
- package/dist/lib/context-move/context-move-support.d.ts +10 -0
- package/dist/lib/context-move/context-move-support.js +88 -0
- package/dist/lib/context-move/context-move-transaction-plan.d.ts +24 -0
- package/dist/lib/context-move/context-move-transaction-plan.js +108 -0
- package/dist/lib/context-move/context-move-types.d.ts +74 -0
- package/dist/lib/context-move/context-move-types.js +1 -0
- package/dist/lib/context-move/context-move.d.ts +8 -0
- package/dist/lib/context-move/context-move.js +180 -0
- package/dist/lib/context-mutation/manifest-lossless-patch.d.ts +28 -0
- package/dist/lib/context-mutation/manifest-lossless-patch.js +208 -0
- package/dist/lib/context-mutation/markdown-link-patch.d.ts +34 -0
- package/dist/lib/context-mutation/markdown-link-patch.js +143 -0
- package/dist/lib/context-mutation/markdown-link-spans.d.ts +10 -0
- package/dist/lib/context-mutation/markdown-link-spans.js +179 -0
- package/dist/lib/context-mutation/mutation-cas.d.ts +13 -0
- package/dist/lib/context-mutation/mutation-cas.js +365 -0
- package/dist/lib/context-mutation/mutation-command-support.d.ts +12 -0
- package/dist/lib/context-mutation/mutation-command-support.js +57 -0
- package/dist/lib/context-mutation/mutation-commit.d.ts +12 -0
- package/dist/lib/context-mutation/mutation-commit.js +89 -0
- package/dist/lib/context-mutation/mutation-directories.d.ts +5 -0
- package/dist/lib/context-mutation/mutation-directories.js +56 -0
- package/dist/lib/context-mutation/mutation-file-state.d.ts +14 -0
- package/dist/lib/context-mutation/mutation-file-state.js +137 -0
- package/dist/lib/context-mutation/mutation-journal-file-validation.d.ts +1 -0
- package/dist/lib/context-mutation/mutation-journal-file-validation.js +106 -0
- package/dist/lib/context-mutation/mutation-journal-io.d.ts +5 -0
- package/dist/lib/context-mutation/mutation-journal-io.js +55 -0
- package/dist/lib/context-mutation/mutation-journal-storage.d.ts +18 -0
- package/dist/lib/context-mutation/mutation-journal-storage.js +283 -0
- package/dist/lib/context-mutation/mutation-journal-validation-support.d.ts +16 -0
- package/dist/lib/context-mutation/mutation-journal-validation-support.js +140 -0
- package/dist/lib/context-mutation/mutation-journal-validation.d.ts +3 -0
- package/dist/lib/context-mutation/mutation-journal-validation.js +177 -0
- package/dist/lib/context-mutation/mutation-journal.d.ts +8 -0
- package/dist/lib/context-mutation/mutation-journal.js +111 -0
- package/dist/lib/context-mutation/mutation-live-validation.d.ts +3 -0
- package/dist/lib/context-mutation/mutation-live-validation.js +51 -0
- package/dist/lib/context-mutation/mutation-long-task-guard.d.ts +6 -0
- package/dist/lib/context-mutation/mutation-long-task-guard.js +57 -0
- package/dist/lib/context-mutation/mutation-recovery.d.ts +4 -0
- package/dist/lib/context-mutation/mutation-recovery.js +189 -0
- package/dist/lib/context-mutation/mutation-staged-fs.d.ts +5 -0
- package/dist/lib/context-mutation/mutation-staged-fs.js +56 -0
- package/dist/lib/context-mutation/mutation-types.d.ts +103 -0
- package/dist/lib/context-mutation/mutation-types.js +1 -0
- package/dist/lib/context-register/context-register-input.d.ts +11 -0
- package/dist/lib/context-register/context-register-input.js +43 -0
- package/dist/lib/context-register/context-register-render.d.ts +2 -0
- package/dist/lib/context-register/context-register-render.js +21 -0
- package/dist/lib/context-register/context-register-support.d.ts +6 -0
- package/dist/lib/context-register/context-register-support.js +46 -0
- package/dist/lib/context-register/context-register-types.d.ts +46 -0
- package/dist/lib/context-register/context-register-types.js +1 -0
- package/dist/lib/context-register/context-register.d.ts +8 -0
- package/dist/lib/context-register/context-register.js +155 -0
- package/dist/lib/context-router/context-route-budget.d.ts +15 -0
- package/dist/lib/context-router/context-route-budget.js +14 -0
- package/dist/lib/context-router/context-route-candidates.d.ts +15 -0
- package/dist/lib/context-router/context-route-candidates.js +112 -0
- package/dist/lib/context-router/context-route-order.d.ts +6 -0
- package/dist/lib/context-router/context-route-order.js +53 -0
- package/dist/lib/context-router/context-route-paths.d.ts +16 -0
- package/dist/lib/context-router/context-route-paths.js +109 -0
- package/dist/lib/context-router/context-route-render.d.ts +2 -0
- package/dist/lib/context-router/context-route-render.js +32 -0
- package/dist/lib/context-router/context-route-scan.d.ts +18 -0
- package/dist/lib/context-router/context-route-scan.js +156 -0
- package/dist/lib/context-router/context-route-selection.d.ts +16 -0
- package/dist/lib/context-router/context-route-selection.js +72 -0
- package/dist/lib/context-router/context-route-terms.d.ts +13 -0
- package/dist/lib/context-router/context-route-terms.js +202 -0
- package/dist/lib/context-router/context-route-types.d.ts +101 -0
- package/dist/lib/context-router/context-route-types.js +1 -0
- package/dist/lib/context-router/context-route.d.ts +2 -0
- package/dist/lib/context-router/context-route.js +127 -0
- package/dist/lib/context-units-migration.d.ts +13 -0
- package/dist/lib/context-units-migration.js +217 -0
- package/dist/lib/design-authority-binding.d.ts +7 -0
- package/dist/lib/design-authority-binding.js +96 -0
- package/dist/lib/design-authority-closure.d.ts +3 -0
- package/dist/lib/design-authority-closure.js +201 -0
- package/dist/lib/design-authority-delta-codec-primitives.d.ts +10 -0
- package/dist/lib/design-authority-delta-codec-primitives.js +58 -0
- package/dist/lib/design-authority-delta-codec.d.ts +2 -0
- package/dist/lib/design-authority-delta-codec.js +193 -0
- package/dist/lib/design-authority-delta-types.d.ts +65 -0
- package/dist/lib/design-authority-delta-types.js +6 -0
- package/dist/lib/design-authority-delta-validation.d.ts +2 -0
- package/dist/lib/design-authority-delta-validation.js +16 -0
- package/dist/lib/design-authority-digest.d.ts +8 -0
- package/dist/lib/design-authority-digest.js +36 -0
- package/dist/lib/design-authority-files.d.ts +9 -0
- package/dist/lib/design-authority-files.js +62 -0
- package/dist/lib/design-authority-format.d.ts +2 -0
- package/dist/lib/design-authority-format.js +93 -0
- package/dist/lib/design-authority-links.d.ts +10 -0
- package/dist/lib/design-authority-links.js +137 -0
- package/dist/lib/design-authority-manifest.d.ts +4 -0
- package/dist/lib/design-authority-manifest.js +144 -0
- package/dist/lib/design-authority-tokens.d.ts +9 -0
- package/dist/lib/design-authority-tokens.js +45 -0
- package/dist/lib/design-authority-types.d.ts +80 -0
- package/dist/lib/design-authority-types.js +23 -0
- package/dist/lib/design-md-tool-adapter.d.ts +9 -0
- package/dist/lib/design-md-tool-adapter.js +152 -0
- package/dist/lib/design-md-tool-normalization.d.ts +7 -0
- package/dist/lib/design-md-tool-normalization.js +78 -0
- package/dist/lib/design-md-tool-types.d.ts +99 -0
- package/dist/lib/design-md-tool-types.js +8 -0
- package/dist/lib/design-resource-handoff-input-types.d.ts +1 -1
- package/dist/lib/design-resource-handoff-manifest-projection.js +3 -0
- package/dist/lib/design-resource-handoff-shape.js +14 -2
- package/dist/lib/design-resource-handoff-types.d.ts +3 -0
- package/dist/lib/design-resource-handoff-validation.js +16 -4
- package/dist/lib/design-resource-implementation-feasibility-validation-support.js +1 -1
- package/dist/lib/design-resource-recovery-current.js +22 -0
- package/dist/lib/design-resource-recovery-shape.js +64 -7
- package/dist/lib/design-resource-recovery-types.d.ts +4 -1
- package/dist/lib/design-resource-symbolic-fact-shape.js +7 -1
- package/dist/lib/design-resource-symbolic-fact-types.d.ts +3 -0
- package/dist/lib/design-resource-symbolic-fact-validation.js +15 -3
- package/dist/lib/doctor.d.ts +2 -1
- package/dist/lib/doctor.js +29 -1
- package/dist/lib/fs.js +1 -1
- package/dist/lib/long-task-acceptance-reachability-claims.d.ts +2 -0
- package/dist/lib/long-task-acceptance-reachability-claims.js +279 -0
- package/dist/lib/long-task-acceptance-reachability-design.d.ts +2 -0
- package/dist/lib/long-task-acceptance-reachability-design.js +96 -0
- package/dist/lib/long-task-acceptance-reachability-external.d.ts +9 -0
- package/dist/lib/long-task-acceptance-reachability-external.js +123 -0
- package/dist/lib/long-task-acceptance-reachability-helpers.d.ts +64 -0
- package/dist/lib/long-task-acceptance-reachability-helpers.js +473 -0
- package/dist/lib/long-task-acceptance-reachability-semantic.d.ts +2 -0
- package/dist/lib/long-task-acceptance-reachability-semantic.js +122 -0
- package/dist/lib/long-task-acceptance-reachability-types.d.ts +91 -0
- package/dist/lib/long-task-acceptance-reachability-types.js +1 -0
- package/dist/lib/long-task-acceptance-reachability.d.ts +4 -0
- package/dist/lib/long-task-acceptance-reachability.js +115 -0
- package/dist/lib/long-task-activation-validation.d.ts +6 -0
- package/dist/lib/long-task-activation-validation.js +72 -69
- package/dist/lib/long-task-active-authority-lock-context.d.ts +4 -0
- package/dist/lib/long-task-active-authority-lock-context.js +29 -0
- package/dist/lib/long-task-applicability-identity.d.ts +25 -0
- package/dist/lib/long-task-applicability-identity.js +60 -0
- package/dist/lib/long-task-authoring-preflight-diagnostics.js +8 -0
- package/dist/lib/long-task-authoring-preflight-types.d.ts +2 -0
- package/dist/lib/long-task-authoring-preflight-types.js +9 -0
- package/dist/lib/long-task-authoring-preflight.js +18 -2
- package/dist/lib/long-task-authority-material-diff.js +4 -0
- package/dist/lib/long-task-authority-materials.js +19 -0
- package/dist/lib/long-task-authority-policy.d.ts +3 -0
- package/dist/lib/long-task-authority-policy.js +3 -0
- package/dist/lib/long-task-authority-revision-details.js +2 -1
- package/dist/lib/long-task-authority-types.d.ts +2 -0
- package/dist/lib/long-task-authority.js +2 -0
- package/dist/lib/long-task-check-shape.js +6 -1
- package/dist/lib/long-task-claim-definitions.js +1 -3
- package/dist/lib/long-task-claim-semantic-proof-floor.d.ts +3 -0
- package/dist/lib/long-task-claim-semantic-proof-floor.js +78 -0
- package/dist/lib/long-task-claims.d.ts +0 -18
- package/dist/lib/long-task-claims.js +15 -14
- package/dist/lib/long-task-command-process.js +3 -0
- package/dist/lib/long-task-compact-authoring.js +3 -0
- package/dist/lib/long-task-compact-projections.js +10 -0
- package/dist/lib/long-task-complete-delivery-evidence-types.d.ts +38 -0
- package/dist/lib/long-task-complete-delivery-evidence-types.js +1 -0
- package/dist/lib/long-task-completion-types.d.ts +109 -0
- package/dist/lib/long-task-completion-types.js +1 -0
- package/dist/lib/long-task-conformance-policy.d.ts +2 -1
- package/dist/lib/long-task-conformance-policy.js +11 -4
- package/dist/lib/long-task-context-authority-topology.js +6 -4
- package/dist/lib/long-task-contract-types.d.ts +52 -1
- package/dist/lib/long-task-counterfactual-sandbox.d.ts +7 -1
- package/dist/lib/long-task-counterfactual-sandbox.js +86 -6
- package/dist/lib/long-task-delivery-compiler-preflight.d.ts +24 -0
- package/dist/lib/long-task-delivery-compiler-preflight.js +32 -0
- package/dist/lib/long-task-delivery-compiler.d.ts +1 -0
- package/dist/lib/long-task-delivery-compiler.js +59 -44
- package/dist/lib/long-task-delivery-parser.d.ts +3 -0
- package/dist/lib/long-task-delivery-parser.js +26 -8
- package/dist/lib/long-task-delivery-types.d.ts +2 -0
- package/dist/lib/long-task-delivery-types.js +2 -0
- package/dist/lib/long-task-delivery-validation.d.ts +6 -1
- package/dist/lib/long-task-delivery-validation.js +19 -4
- package/dist/lib/long-task-design-feasibility-binding.d.ts +1 -0
- package/dist/lib/long-task-design-feasibility-binding.js +3 -3
- package/dist/lib/long-task-design-feasibility-source-closure.js +11 -2
- package/dist/lib/long-task-design-obligation.d.ts +50 -0
- package/dist/lib/long-task-design-obligation.js +99 -0
- package/dist/lib/long-task-design-resource-handoff.d.ts +3 -1
- package/dist/lib/long-task-design-resource-handoff.js +36 -12
- package/dist/lib/long-task-design-resource-method-binding.js +12 -0
- package/dist/lib/long-task-effective-external-takeover.d.ts +15 -0
- package/dist/lib/long-task-effective-external-takeover.js +109 -0
- package/dist/lib/long-task-effective-external-ui-takeover.d.ts +5 -0
- package/dist/lib/long-task-effective-external-ui-takeover.js +117 -0
- package/dist/lib/long-task-evidence-capability-codec.js +91 -0
- package/dist/lib/long-task-evidence-capability-runtime.js +62 -14
- package/dist/lib/long-task-evidence-capability-types.d.ts +3 -2
- package/dist/lib/long-task-evidence-v2.d.ts +6 -1
- package/dist/lib/long-task-evidence-v2.js +253 -170
- package/dist/lib/long-task-execution-observation.d.ts +7 -0
- package/dist/lib/long-task-execution-observation.js +21 -4
- package/dist/lib/long-task-expected-authority.d.ts +4 -0
- package/dist/lib/long-task-expected-authority.js +126 -0
- package/dist/lib/long-task-external-confirmation-artifacts.d.ts +9 -0
- package/dist/lib/long-task-external-confirmation-artifacts.js +138 -0
- package/dist/lib/long-task-external-confirmation-attestation.d.ts +20 -0
- package/dist/lib/long-task-external-confirmation-attestation.js +115 -0
- package/dist/lib/long-task-external-confirmation-challenge.d.ts +23 -0
- package/dist/lib/long-task-external-confirmation-challenge.js +164 -0
- package/dist/lib/long-task-external-confirmation-context.d.ts +14 -0
- package/dist/lib/long-task-external-confirmation-context.js +53 -0
- package/dist/lib/long-task-external-confirmation-evaluation.d.ts +11 -0
- package/dist/lib/long-task-external-confirmation-evaluation.js +454 -0
- package/dist/lib/long-task-external-confirmation-expected.d.ts +8 -0
- package/dist/lib/long-task-external-confirmation-expected.js +200 -0
- package/dist/lib/long-task-external-confirmation-identity.d.ts +10 -0
- package/dist/lib/long-task-external-confirmation-identity.js +77 -0
- package/dist/lib/long-task-external-confirmation-plan.d.ts +25 -0
- package/dist/lib/long-task-external-confirmation-plan.js +148 -0
- package/dist/lib/long-task-external-confirmation-preparation.d.ts +4 -0
- package/dist/lib/long-task-external-confirmation-preparation.js +100 -0
- package/dist/lib/long-task-external-confirmation-shape.d.ts +8 -0
- package/dist/lib/long-task-external-confirmation-shape.js +387 -0
- package/dist/lib/long-task-external-confirmation-state.d.ts +10 -0
- package/dist/lib/long-task-external-confirmation-state.js +109 -0
- package/dist/lib/long-task-external-confirmation-types.d.ts +195 -0
- package/dist/lib/long-task-external-confirmation-types.js +1 -0
- package/dist/lib/long-task-final-integrity.d.ts +2 -0
- package/dist/lib/long-task-final-integrity.js +21 -10
- package/dist/lib/long-task-final-v2.d.ts +7 -2
- package/dist/lib/long-task-final-v2.js +179 -55
- package/dist/lib/long-task-finalization-identity.d.ts +27 -0
- package/dist/lib/long-task-finalization-identity.js +58 -0
- package/dist/lib/long-task-finding-context.d.ts +1 -1
- package/dist/lib/long-task-finding-context.js +139 -13
- package/dist/lib/long-task-freshness.d.ts +27 -0
- package/dist/lib/long-task-freshness.js +128 -5
- package/dist/lib/long-task-git.js +3 -3
- package/dist/lib/long-task-material-input-closure.d.ts +3 -0
- package/dist/lib/long-task-material-input-closure.js +92 -0
- package/dist/lib/long-task-obligation-authority-resolution.d.ts +12 -0
- package/dist/lib/long-task-obligation-authority-resolution.js +57 -0
- package/dist/lib/long-task-obligation-semantic-identity.d.ts +16 -0
- package/dist/lib/long-task-obligation-semantic-identity.js +116 -0
- package/dist/lib/long-task-observation-authority.d.ts +11 -0
- package/dist/lib/long-task-observation-authority.js +137 -6
- package/dist/lib/long-task-process-table.d.ts +2 -5
- package/dist/lib/long-task-process-table.js +21 -53
- package/dist/lib/long-task-process-tree.d.ts +0 -1
- package/dist/lib/long-task-process-tree.js +24 -54
- package/dist/lib/long-task-proof-adequacy.d.ts +12 -0
- package/dist/lib/long-task-proof-adequacy.js +57 -0
- package/dist/lib/long-task-proof-capability-floor.d.ts +6 -0
- package/dist/lib/long-task-proof-capability-floor.js +137 -0
- package/dist/lib/long-task-repair-frontier-checks.d.ts +8 -0
- package/dist/lib/long-task-repair-frontier-checks.js +93 -0
- package/dist/lib/long-task-repair-frontier-groups.d.ts +2 -0
- package/dist/lib/long-task-repair-frontier-groups.js +64 -0
- package/dist/lib/long-task-repair-frontier-utils.d.ts +6 -0
- package/dist/lib/long-task-repair-frontier-utils.js +27 -0
- package/dist/lib/long-task-repair-frontier.d.ts +14 -0
- package/dist/lib/long-task-repair-frontier.js +132 -0
- package/dist/lib/long-task-risk.d.ts +3 -2
- package/dist/lib/long-task-risk.js +73 -24
- package/dist/lib/long-task-root-shape.js +148 -8
- package/dist/lib/long-task-runner-freeze.d.ts +2 -1
- package/dist/lib/long-task-runner-freeze.js +23 -8
- package/dist/lib/long-task-runtime-types.d.ts +34 -40
- package/dist/lib/long-task-semantic-assurance-policy.js +2 -11
- package/dist/lib/long-task-semantic-contract-types.d.ts +2 -1
- package/dist/lib/long-task-semantic-drift-migration.js +48 -2
- package/dist/lib/long-task-semantic-fact-binding-types.d.ts +20 -0
- package/dist/lib/long-task-semantic-fact-closure.d.ts +5 -1
- package/dist/lib/long-task-semantic-fact-closure.js +33 -5
- package/dist/lib/long-task-semantic-fact-contract-closure.js +176 -1
- package/dist/lib/long-task-semantic-fact-contract-proofs.js +18 -1
- package/dist/lib/long-task-semantic-fact-input-closure.d.ts +16 -2
- package/dist/lib/long-task-semantic-fact-input-closure.js +138 -15
- package/dist/lib/long-task-semantic-fact-provenance-closure.js +1 -1
- package/dist/lib/long-task-semantic-fact-shape.d.ts +2 -1
- package/dist/lib/long-task-semantic-fact-shape.js +35 -1
- package/dist/lib/long-task-semantic-proof-adequacy.d.ts +2 -0
- package/dist/lib/long-task-semantic-proof-adequacy.js +19 -0
- package/dist/lib/long-task-semantic-proof-profile.d.ts +5 -0
- package/dist/lib/long-task-semantic-proof-profile.js +187 -0
- package/dist/lib/long-task-shape-primitives.d.ts +1 -1
- package/dist/lib/long-task-shape-primitives.js +5 -0
- package/dist/lib/long-task-source-anchors.d.ts +10 -0
- package/dist/lib/long-task-source-anchors.js +102 -0
- package/dist/lib/long-task-source-authority-types.d.ts +46 -0
- package/dist/lib/long-task-source-claim-validation.js +36 -0
- package/dist/lib/long-task-source-conservation-facts.d.ts +8 -0
- package/dist/lib/long-task-source-conservation-facts.js +57 -0
- package/dist/lib/long-task-source-conservation-types.d.ts +34 -0
- package/dist/lib/long-task-source-conservation-types.js +1 -0
- package/dist/lib/long-task-source-conservation.d.ts +7 -0
- package/dist/lib/long-task-source-conservation.js +110 -0
- package/dist/lib/long-task-source-fragments.d.ts +6 -0
- package/dist/lib/long-task-source-fragments.js +219 -0
- package/dist/lib/long-task-source-projection-resolution.d.ts +5 -0
- package/dist/lib/long-task-source-projection-resolution.js +57 -0
- package/dist/lib/long-task-source-projection-validation.d.ts +17 -0
- package/dist/lib/long-task-source-projection-validation.js +154 -0
- package/dist/lib/long-task-source-shape.js +14 -6
- package/dist/lib/long-task-source-supersession.d.ts +5 -0
- package/dist/lib/long-task-source-supersession.js +138 -0
- package/dist/lib/long-task-stage-policy.d.ts +7 -2
- package/dist/lib/long-task-stage-policy.js +67 -23
- package/dist/lib/long-task-state.d.ts +18 -4
- package/dist/lib/long-task-state.js +319 -33
- package/dist/lib/long-task-static-observation-freeze.js +4 -3
- package/dist/lib/long-task-status-projection.d.ts +3 -1
- package/dist/lib/long-task-status-projection.js +44 -13
- package/dist/lib/long-task-status-v2.d.ts +10 -6
- package/dist/lib/long-task-status-v2.js +70 -58
- package/dist/lib/long-task-target-policy.d.ts +8 -3
- package/dist/lib/long-task-target-policy.js +40 -9
- package/dist/lib/long-task-terminal-finalization.d.ts +12 -0
- package/dist/lib/long-task-terminal-finalization.js +190 -0
- package/dist/lib/long-task-ui-design-policy.js +15 -4
- package/dist/lib/long-task-verifier-counterfactuals.d.ts +11 -0
- package/dist/lib/long-task-verifier-counterfactuals.js +96 -0
- package/dist/lib/long-task-verifier-execution.d.ts +9 -0
- package/dist/lib/long-task-verifier-execution.js +67 -0
- package/dist/lib/long-task-verifier-identity.js +16 -5
- package/dist/lib/long-task-verifier-v2.js +52 -65
- package/dist/lib/long-task-windows-job-supervisor-helper.d.ts +1 -0
- package/dist/lib/long-task-windows-job-supervisor-helper.js +104 -0
- package/dist/lib/long-task-windows-job-supervisor-protocol.d.ts +28 -0
- package/dist/lib/long-task-windows-job-supervisor-protocol.js +124 -0
- package/dist/lib/long-task-windows-job-supervisor-result.d.ts +11 -0
- package/dist/lib/long-task-windows-job-supervisor-result.js +152 -0
- package/dist/lib/long-task-windows-job-supervisor.d.ts +2 -0
- package/dist/lib/long-task-windows-job-supervisor.js +126 -0
- package/dist/lib/long-task-workspace-scope.d.ts +1 -0
- package/dist/lib/long-task-workspace-scope.js +4 -1
- package/dist/lib/long-task-workspace.d.ts +1 -0
- package/dist/lib/long-task-workspace.js +10 -0
- package/dist/lib/migrations.js +43 -2
- package/dist/lib/repository-path-safety.d.ts +1 -0
- package/dist/lib/repository-path-safety.js +3 -3
- package/dist/lib/semantic-fact-input-shape.d.ts +7 -2
- package/dist/lib/semantic-fact-input-shape.js +25 -1
- package/dist/lib/semantic-fact-inventory-types.d.ts +8 -2
- package/dist/lib/semantic-fact-policy-census.d.ts +1 -1
- package/dist/lib/semantic-fact-policy-census.js +5 -2
- package/dist/lib/semantic-fact-policy.d.ts +1 -1
- package/dist/lib/semantic-fact-policy.js +2 -2
- package/dist/lib/semantic-fact-proof-shape.d.ts +1 -1
- package/dist/lib/semantic-fact-property-shape.d.ts +1 -1
- package/dist/lib/validators.d.ts +3 -0
- package/dist/lib/validators.js +45 -157
- package/dist/public-api-core.d.ts +12 -0
- package/dist/public-api-core.js +12 -0
- package/dist/public-api-long-task.d.ts +10 -0
- package/dist/public-api-long-task.js +10 -0
- package/dist/public-types.d.ts +5 -1
- package/dist/schemas/design-authority-delta-assessment-v1.schema.json +191 -0
- package/dist/schemas/long-task-delivery-v2/long-task-delivery-v2.schema.json +166 -2
- package/dist/schemas/long-task-external-confirmation-record-v1.schema.json +155 -0
- package/dist/schemas/long-task-external-confirmation-record-v2.schema.json +209 -0
- package/migrations/README.md +99 -0
- package/package.json +7 -5
- package/source-mappings.yaml +18 -0
|
@@ -396,6 +396,42 @@
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
},
|
|
399
|
+
"semanticFactGlobalBindings": {
|
|
400
|
+
"type": "object",
|
|
401
|
+
"additionalProperties": false,
|
|
402
|
+
"required": ["manifest_ref", "obligations"],
|
|
403
|
+
"properties": {
|
|
404
|
+
"manifest_ref": { "$ref": "#/$defs/semanticRef" },
|
|
405
|
+
"obligations": {
|
|
406
|
+
"type": "array",
|
|
407
|
+
"minItems": 1,
|
|
408
|
+
"items": {
|
|
409
|
+
"type": "object",
|
|
410
|
+
"additionalProperties": false,
|
|
411
|
+
"required": [
|
|
412
|
+
"claim_ref",
|
|
413
|
+
"applicability_ref",
|
|
414
|
+
"target_ref",
|
|
415
|
+
"outcome_ref",
|
|
416
|
+
"fact_ref",
|
|
417
|
+
"proof_ref",
|
|
418
|
+
"method",
|
|
419
|
+
"required_polarity"
|
|
420
|
+
],
|
|
421
|
+
"properties": {
|
|
422
|
+
"claim_ref": { "$ref": "#/$defs/semanticRef" },
|
|
423
|
+
"applicability_ref": { "$ref": "#/$defs/semanticRef" },
|
|
424
|
+
"target_ref": { "$ref": "#/$defs/semanticRef" },
|
|
425
|
+
"outcome_ref": { "$ref": "#/$defs/semanticRef" },
|
|
426
|
+
"fact_ref": { "$ref": "#/$defs/semanticRef" },
|
|
427
|
+
"proof_ref": { "$ref": "#/$defs/semanticRef" },
|
|
428
|
+
"method": { "$ref": "#/$defs/semanticRef" },
|
|
429
|
+
"required_polarity": { "enum": ["positive", "negative"] }
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
},
|
|
399
435
|
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
400
436
|
"nonEmpty": { "type": "string", "minLength": 1 },
|
|
401
437
|
"nonEmptyStrings": {
|
|
@@ -468,7 +504,11 @@
|
|
|
468
504
|
"production_release_ready"
|
|
469
505
|
]
|
|
470
506
|
},
|
|
471
|
-
"required_target_refs": { "$ref": "#/$defs/keys" }
|
|
507
|
+
"required_target_refs": { "$ref": "#/$defs/keys" },
|
|
508
|
+
"completion_authority": {
|
|
509
|
+
"enum": ["machine_only", "declared_authorities"],
|
|
510
|
+
"default": "machine_only"
|
|
511
|
+
}
|
|
472
512
|
}
|
|
473
513
|
},
|
|
474
514
|
"executionTarget": {
|
|
@@ -611,6 +651,22 @@
|
|
|
611
651
|
"key": { "$ref": "#/$defs/key" },
|
|
612
652
|
"source_ref": { "type": "string", "pattern": "^[^#]+(?:#[^#]+)?$" },
|
|
613
653
|
"statement": { "$ref": "#/$defs/nonEmpty" },
|
|
654
|
+
"judgment_basis": {
|
|
655
|
+
"type": "object",
|
|
656
|
+
"additionalProperties": false,
|
|
657
|
+
"required": ["kind", "claim_ref", "applicability_refs"],
|
|
658
|
+
"properties": {
|
|
659
|
+
"kind": {
|
|
660
|
+
"enum": [
|
|
661
|
+
"subjective_preference",
|
|
662
|
+
"expert_assessment",
|
|
663
|
+
"authorization"
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
"claim_ref": { "$ref": "#/$defs/nonEmpty" },
|
|
667
|
+
"applicability_refs": { "$ref": "#/$defs/nonEmptyStrings" }
|
|
668
|
+
}
|
|
669
|
+
},
|
|
614
670
|
"disposition": {
|
|
615
671
|
"oneOf": [
|
|
616
672
|
{
|
|
@@ -724,6 +780,9 @@
|
|
|
724
780
|
"items": { "$ref": "#/$defs/claimApplicability" },
|
|
725
781
|
"default": []
|
|
726
782
|
},
|
|
783
|
+
"semantic_fact_bindings": {
|
|
784
|
+
"$ref": "#/$defs/semanticFactGlobalBindings"
|
|
785
|
+
},
|
|
727
786
|
"product": {
|
|
728
787
|
"type": "object",
|
|
729
788
|
"additionalProperties": false,
|
|
@@ -804,7 +863,55 @@
|
|
|
804
863
|
"uniqueItems": true,
|
|
805
864
|
"items": { "$ref": "#/$defs/nonEmpty" }
|
|
806
865
|
},
|
|
807
|
-
"blocks_target": { "type": "boolean" }
|
|
866
|
+
"blocks_target": { "type": "boolean" },
|
|
867
|
+
"actor": {
|
|
868
|
+
"type": "object",
|
|
869
|
+
"additionalProperties": false,
|
|
870
|
+
"required": ["id", "role", "authority_kind"],
|
|
871
|
+
"properties": {
|
|
872
|
+
"id": { "$ref": "#/$defs/nonEmpty" },
|
|
873
|
+
"role": { "$ref": "#/$defs/nonEmpty" },
|
|
874
|
+
"authority_kind": {
|
|
875
|
+
"enum": ["human", "expert", "external_system"]
|
|
876
|
+
},
|
|
877
|
+
"identity_assurance": {
|
|
878
|
+
"oneOf": [
|
|
879
|
+
{
|
|
880
|
+
"type": "object",
|
|
881
|
+
"additionalProperties": false,
|
|
882
|
+
"required": ["scheme", "key_id", "public_key_ref"],
|
|
883
|
+
"properties": {
|
|
884
|
+
"scheme": { "const": "ed25519" },
|
|
885
|
+
"key_id": { "$ref": "#/$defs/key" },
|
|
886
|
+
"public_key_ref": { "$ref": "#/$defs/nonEmpty" }
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"type": "object",
|
|
891
|
+
"additionalProperties": false,
|
|
892
|
+
"required": ["scheme"],
|
|
893
|
+
"properties": {
|
|
894
|
+
"scheme": { "const": "declared_only" }
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
]
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"target_ref": { "$ref": "#/$defs/key" },
|
|
902
|
+
"environment_identity": { "$ref": "#/$defs/nonEmpty" },
|
|
903
|
+
"scenario": { "$ref": "#/$defs/scenario" },
|
|
904
|
+
"evidence_requirements": {
|
|
905
|
+
"type": "array",
|
|
906
|
+
"minItems": 1,
|
|
907
|
+
"uniqueItems": true,
|
|
908
|
+
"items": { "$ref": "#/$defs/keyedStatement" }
|
|
909
|
+
},
|
|
910
|
+
"obligations": {
|
|
911
|
+
"type": "array",
|
|
912
|
+
"minItems": 1,
|
|
913
|
+
"items": { "$ref": "#/$defs/externalObligation" }
|
|
914
|
+
}
|
|
808
915
|
}
|
|
809
916
|
},
|
|
810
917
|
"default": []
|
|
@@ -814,6 +921,57 @@
|
|
|
814
921
|
}
|
|
815
922
|
}
|
|
816
923
|
},
|
|
924
|
+
"externalObligation": {
|
|
925
|
+
"type": "object",
|
|
926
|
+
"additionalProperties": false,
|
|
927
|
+
"required": [
|
|
928
|
+
"key",
|
|
929
|
+
"claim_ref",
|
|
930
|
+
"applicability_ref",
|
|
931
|
+
"fact_ref",
|
|
932
|
+
"proof_ref",
|
|
933
|
+
"method",
|
|
934
|
+
"proof_surface",
|
|
935
|
+
"evidence_capabilities",
|
|
936
|
+
"expected_authority_ref",
|
|
937
|
+
"result_kind"
|
|
938
|
+
],
|
|
939
|
+
"properties": {
|
|
940
|
+
"key": { "$ref": "#/$defs/key" },
|
|
941
|
+
"claim_ref": { "$ref": "#/$defs/nonEmpty" },
|
|
942
|
+
"applicability_ref": { "$ref": "#/$defs/key" },
|
|
943
|
+
"fact_ref": {
|
|
944
|
+
"oneOf": [{ "type": "null" }, { "$ref": "#/$defs/nonEmpty" }]
|
|
945
|
+
},
|
|
946
|
+
"proof_ref": {
|
|
947
|
+
"oneOf": [{ "type": "null" }, { "$ref": "#/$defs/nonEmpty" }]
|
|
948
|
+
},
|
|
949
|
+
"method": { "$ref": "#/$defs/nonEmpty" },
|
|
950
|
+
"proof_surface": { "$ref": "#/$defs/proofSurface" },
|
|
951
|
+
"evidence_capabilities": {
|
|
952
|
+
"type": "array",
|
|
953
|
+
"uniqueItems": true,
|
|
954
|
+
"items": { "$ref": "#/$defs/evidenceCapability" }
|
|
955
|
+
},
|
|
956
|
+
"expected_authority_ref": { "$ref": "#/$defs/nonEmpty" },
|
|
957
|
+
"result_kind": { "enum": ["actual", "judgment"] },
|
|
958
|
+
"judgment_basis": {
|
|
959
|
+
"type": "object",
|
|
960
|
+
"additionalProperties": false,
|
|
961
|
+
"required": ["kind", "source_ref"],
|
|
962
|
+
"properties": {
|
|
963
|
+
"kind": {
|
|
964
|
+
"enum": [
|
|
965
|
+
"subjective_preference",
|
|
966
|
+
"expert_assessment",
|
|
967
|
+
"authorization"
|
|
968
|
+
]
|
|
969
|
+
},
|
|
970
|
+
"source_ref": { "$ref": "#/$defs/key" }
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
},
|
|
817
975
|
"outcome": {
|
|
818
976
|
"type": "object",
|
|
819
977
|
"additionalProperties": false,
|
|
@@ -1830,6 +1988,7 @@
|
|
|
1830
1988
|
"criterion": { "$ref": "#/$defs/nonEmpty" },
|
|
1831
1989
|
"claims": { "$ref": "#/$defs/nonEmptyStrings" },
|
|
1832
1990
|
"applicability_ref": { "$ref": "#/$defs/key" },
|
|
1991
|
+
"expected_authority_ref": { "$ref": "#/$defs/nonEmpty" },
|
|
1833
1992
|
"observation": { "$ref": "#/$defs/nonEmpty" },
|
|
1834
1993
|
"evidence_capabilities": {
|
|
1835
1994
|
"type": "array",
|
|
@@ -1957,8 +2116,13 @@
|
|
|
1957
2116
|
"cross_surface_consistency",
|
|
1958
2117
|
"durable_readback",
|
|
1959
2118
|
"boundary_invocation",
|
|
2119
|
+
"actual_provenance",
|
|
1960
2120
|
"external_side_effect",
|
|
2121
|
+
"distinct_identity",
|
|
2122
|
+
"data_state",
|
|
2123
|
+
"population_coverage",
|
|
1961
2124
|
"failure_injection",
|
|
2125
|
+
"recovery",
|
|
1962
2126
|
"visual_render",
|
|
1963
2127
|
"design_conformance",
|
|
1964
2128
|
"design_method",
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/Seven128/project-tiny-context-harness/schemas/long-task-external-confirmation-record-v1.schema.json",
|
|
4
|
+
"title": "Tiny Context Long-Task External Confirmation Record v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"confirmation_ref",
|
|
10
|
+
"compiled_identity",
|
|
11
|
+
"authority_revision",
|
|
12
|
+
"candidate",
|
|
13
|
+
"actor",
|
|
14
|
+
"session",
|
|
15
|
+
"results",
|
|
16
|
+
"artifact_hashes",
|
|
17
|
+
"relevant_input_identity",
|
|
18
|
+
"record_sha256"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schema_version": {
|
|
22
|
+
"const": "long-task-external-confirmation-record-v1"
|
|
23
|
+
},
|
|
24
|
+
"confirmation_ref": {
|
|
25
|
+
"$ref": "#/$defs/key"
|
|
26
|
+
},
|
|
27
|
+
"compiled_identity": {
|
|
28
|
+
"$ref": "#/$defs/sha256"
|
|
29
|
+
},
|
|
30
|
+
"authority_revision": {
|
|
31
|
+
"type": "integer",
|
|
32
|
+
"minimum": 0
|
|
33
|
+
},
|
|
34
|
+
"candidate": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["git_head", "git_tree", "snapshot_sha256"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"git_head": { "$ref": "#/$defs/gitObject" },
|
|
40
|
+
"git_tree": { "$ref": "#/$defs/gitObject" },
|
|
41
|
+
"snapshot_sha256": { "$ref": "#/$defs/sha256" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"actor": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": ["id", "role", "authority_kind"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"id": { "$ref": "#/$defs/nonempty" },
|
|
50
|
+
"role": { "$ref": "#/$defs/nonempty" },
|
|
51
|
+
"authority_kind": {
|
|
52
|
+
"enum": ["human", "expert", "external_system"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"session": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"additionalProperties": false,
|
|
59
|
+
"required": [
|
|
60
|
+
"id",
|
|
61
|
+
"target_ref",
|
|
62
|
+
"environment_identity",
|
|
63
|
+
"started_at",
|
|
64
|
+
"completed_at"
|
|
65
|
+
],
|
|
66
|
+
"properties": {
|
|
67
|
+
"id": { "$ref": "#/$defs/nonempty" },
|
|
68
|
+
"target_ref": { "$ref": "#/$defs/semanticRef" },
|
|
69
|
+
"environment_identity": { "$ref": "#/$defs/nonempty" },
|
|
70
|
+
"started_at": { "type": "string", "format": "date-time" },
|
|
71
|
+
"completed_at": { "type": "string", "format": "date-time" }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"results": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"minItems": 1,
|
|
77
|
+
"items": { "$ref": "#/$defs/result" }
|
|
78
|
+
},
|
|
79
|
+
"artifact_hashes": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"minProperties": 1,
|
|
82
|
+
"propertyNames": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 1,
|
|
85
|
+
"pattern": "^(?![A-Za-z]:)(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"
|
|
86
|
+
},
|
|
87
|
+
"additionalProperties": { "$ref": "#/$defs/sha256" }
|
|
88
|
+
},
|
|
89
|
+
"relevant_input_identity": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^(?:bounded|whole):[a-f0-9]{64}$"
|
|
92
|
+
},
|
|
93
|
+
"record_sha256": {
|
|
94
|
+
"$ref": "#/$defs/sha256"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"$defs": {
|
|
98
|
+
"nonempty": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1
|
|
101
|
+
},
|
|
102
|
+
"key": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
105
|
+
},
|
|
106
|
+
"semanticRef": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"pattern": "^[a-z0-9][a-z0-9._:-]*$"
|
|
109
|
+
},
|
|
110
|
+
"sha256": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
113
|
+
},
|
|
114
|
+
"gitObject": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
|
|
117
|
+
},
|
|
118
|
+
"result": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"required": [
|
|
122
|
+
"obligation_ref",
|
|
123
|
+
"fact_ref",
|
|
124
|
+
"claim_ref",
|
|
125
|
+
"applicability_ref",
|
|
126
|
+
"verdict",
|
|
127
|
+
"evidence_refs"
|
|
128
|
+
],
|
|
129
|
+
"properties": {
|
|
130
|
+
"obligation_ref": { "$ref": "#/$defs/semanticRef" },
|
|
131
|
+
"fact_ref": {
|
|
132
|
+
"oneOf": [
|
|
133
|
+
{ "type": "null" },
|
|
134
|
+
{ "$ref": "#/$defs/semanticRef" }
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"claim_ref": { "$ref": "#/$defs/semanticRef" },
|
|
138
|
+
"applicability_ref": { "$ref": "#/$defs/semanticRef" },
|
|
139
|
+
"actual": true,
|
|
140
|
+
"verdict": { "enum": ["passed", "failed", "unable"] },
|
|
141
|
+
"evidence_refs": {
|
|
142
|
+
"type": "array",
|
|
143
|
+
"minItems": 1,
|
|
144
|
+
"uniqueItems": true,
|
|
145
|
+
"items": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"minLength": 1,
|
|
148
|
+
"pattern": "^(?![A-Za-z]:)(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"rationale": { "type": "string" }
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/Seven128/project-tiny-context-harness/schemas/long-task-external-confirmation-record-v2.schema.json",
|
|
4
|
+
"title": "Tiny Context Long-Task External Confirmation Record v2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"confirmation_ref",
|
|
10
|
+
"compiled_identity",
|
|
11
|
+
"authority_revision",
|
|
12
|
+
"candidate",
|
|
13
|
+
"challenge",
|
|
14
|
+
"actor",
|
|
15
|
+
"session",
|
|
16
|
+
"results",
|
|
17
|
+
"artifact_snapshots",
|
|
18
|
+
"relevant_input_identity",
|
|
19
|
+
"attestation",
|
|
20
|
+
"record_sha256"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"schema_version": {
|
|
24
|
+
"const": "long-task-external-confirmation-record-v2"
|
|
25
|
+
},
|
|
26
|
+
"confirmation_ref": { "$ref": "#/$defs/key" },
|
|
27
|
+
"compiled_identity": { "$ref": "#/$defs/sha256" },
|
|
28
|
+
"authority_revision": { "type": "integer", "minimum": 0 },
|
|
29
|
+
"candidate": { "$ref": "#/$defs/candidate" },
|
|
30
|
+
"challenge": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
33
|
+
},
|
|
34
|
+
"actor": { "$ref": "#/$defs/actor" },
|
|
35
|
+
"session": { "$ref": "#/$defs/session" },
|
|
36
|
+
"results": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"minItems": 1,
|
|
39
|
+
"items": { "$ref": "#/$defs/result" }
|
|
40
|
+
},
|
|
41
|
+
"artifact_snapshots": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"minProperties": 1,
|
|
44
|
+
"propertyNames": { "$ref": "#/$defs/repoPath" },
|
|
45
|
+
"additionalProperties": { "$ref": "#/$defs/artifactSnapshot" }
|
|
46
|
+
},
|
|
47
|
+
"relevant_input_identity": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"pattern": "^(?:bounded|whole):[a-f0-9]{64}$"
|
|
50
|
+
},
|
|
51
|
+
"attestation": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": ["scheme", "key_id", "signature_base64"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"scheme": { "const": "ed25519" },
|
|
57
|
+
"key_id": { "$ref": "#/$defs/key" },
|
|
58
|
+
"signature_base64": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"pattern": "^[A-Za-z0-9+/]{86}==$"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"record_sha256": { "$ref": "#/$defs/sha256" }
|
|
65
|
+
},
|
|
66
|
+
"$defs": {
|
|
67
|
+
"nonempty": { "type": "string", "minLength": 1 },
|
|
68
|
+
"key": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
71
|
+
},
|
|
72
|
+
"semanticRef": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"pattern": "^[a-z0-9][a-z0-9._:-]*$"
|
|
75
|
+
},
|
|
76
|
+
"sha256": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
79
|
+
},
|
|
80
|
+
"gitObject": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
|
|
83
|
+
},
|
|
84
|
+
"repoPath": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"pattern": "^(?![A-Za-z]:)(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"
|
|
88
|
+
},
|
|
89
|
+
"candidate": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": ["git_head", "git_tree", "snapshot_sha256"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"git_head": { "$ref": "#/$defs/gitObject" },
|
|
95
|
+
"git_tree": { "$ref": "#/$defs/gitObject" },
|
|
96
|
+
"snapshot_sha256": { "$ref": "#/$defs/sha256" }
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"actor": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": ["id", "role", "authority_kind"],
|
|
103
|
+
"properties": {
|
|
104
|
+
"id": { "$ref": "#/$defs/nonempty" },
|
|
105
|
+
"role": { "$ref": "#/$defs/nonempty" },
|
|
106
|
+
"authority_kind": {
|
|
107
|
+
"enum": ["human", "expert", "external_system"]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"session": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": [
|
|
115
|
+
"id",
|
|
116
|
+
"target_ref",
|
|
117
|
+
"environment_identity",
|
|
118
|
+
"started_at",
|
|
119
|
+
"completed_at"
|
|
120
|
+
],
|
|
121
|
+
"properties": {
|
|
122
|
+
"id": { "$ref": "#/$defs/nonempty" },
|
|
123
|
+
"target_ref": { "$ref": "#/$defs/semanticRef" },
|
|
124
|
+
"environment_identity": { "$ref": "#/$defs/nonempty" },
|
|
125
|
+
"started_at": { "type": "string", "format": "date-time" },
|
|
126
|
+
"completed_at": { "type": "string", "format": "date-time" }
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"artifactSnapshot": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": ["sha256", "size_bytes", "media_type", "store_ref"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
135
|
+
"size_bytes": { "type": "integer", "minimum": 0 },
|
|
136
|
+
"media_type": {
|
|
137
|
+
"oneOf": [{ "type": "null" }, { "$ref": "#/$defs/nonempty" }]
|
|
138
|
+
},
|
|
139
|
+
"store_ref": { "$ref": "#/$defs/repoPath" }
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"result": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"required": [
|
|
146
|
+
"obligation_ref",
|
|
147
|
+
"fact_ref",
|
|
148
|
+
"claim_ref",
|
|
149
|
+
"applicability_ref",
|
|
150
|
+
"result_kind",
|
|
151
|
+
"verdict",
|
|
152
|
+
"evidence_refs"
|
|
153
|
+
],
|
|
154
|
+
"properties": {
|
|
155
|
+
"obligation_ref": { "$ref": "#/$defs/semanticRef" },
|
|
156
|
+
"fact_ref": {
|
|
157
|
+
"oneOf": [
|
|
158
|
+
{ "type": "null" },
|
|
159
|
+
{ "$ref": "#/$defs/semanticRef" }
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"claim_ref": { "$ref": "#/$defs/semanticRef" },
|
|
163
|
+
"applicability_ref": { "$ref": "#/$defs/semanticRef" },
|
|
164
|
+
"result_kind": { "enum": ["actual", "judgment"] },
|
|
165
|
+
"actual": true,
|
|
166
|
+
"verdict": { "enum": ["passed", "failed", "unable"] },
|
|
167
|
+
"evidence_refs": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"minItems": 1,
|
|
170
|
+
"uniqueItems": true,
|
|
171
|
+
"items": { "$ref": "#/$defs/repoPath" }
|
|
172
|
+
},
|
|
173
|
+
"rationale": { "$ref": "#/$defs/nonempty" }
|
|
174
|
+
},
|
|
175
|
+
"allOf": [
|
|
176
|
+
{
|
|
177
|
+
"if": {
|
|
178
|
+
"properties": { "result_kind": { "const": "judgment" } },
|
|
179
|
+
"required": ["result_kind"]
|
|
180
|
+
},
|
|
181
|
+
"then": {
|
|
182
|
+
"required": ["rationale"],
|
|
183
|
+
"not": { "required": ["actual"] }
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"if": {
|
|
188
|
+
"properties": {
|
|
189
|
+
"result_kind": { "const": "actual" },
|
|
190
|
+
"verdict": { "enum": ["passed", "failed"] }
|
|
191
|
+
},
|
|
192
|
+
"required": ["result_kind", "verdict"]
|
|
193
|
+
},
|
|
194
|
+
"then": { "required": ["actual"] }
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"if": {
|
|
198
|
+
"properties": {
|
|
199
|
+
"result_kind": { "const": "actual" },
|
|
200
|
+
"verdict": { "const": "unable" }
|
|
201
|
+
},
|
|
202
|
+
"required": ["result_kind", "verdict"]
|
|
203
|
+
},
|
|
204
|
+
"then": { "required": ["rationale"] }
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|