@c4a/context-cli 0.6.19 → 0.7.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 +67 -6
- package/README.zh-CN.md +42 -5
- package/cli.js +75051 -42154
- package/indexers/bundles/context-code-indexer/SKILL.md +20 -0
- package/indexers/bundles/context-code-indexer/context-indexer.yaml +230 -0
- package/indexers/bundles/context-code-indexer/references/composers/contracts-and-chains.md +23 -0
- package/indexers/bundles/context-code-indexer/references/composers/cross-module-chain.md +22 -0
- package/indexers/bundles/context-code-indexer/references/composers/development-and-delivery.md +22 -0
- package/indexers/bundles/context-code-indexer/references/composers/event-flow.md +21 -0
- package/indexers/bundles/context-code-indexer/references/composers/examples-and-documentation.md +22 -0
- package/indexers/bundles/context-code-indexer/references/composers/persistence-boundary.md +21 -0
- package/indexers/bundles/context-code-indexer/references/composers/protocol-boundary.md +22 -0
- package/indexers/bundles/context-code-indexer/references/composers/public-contract.md +23 -0
- package/indexers/bundles/context-code-indexer/references/indexer.md +49 -0
- package/indexers/bundles/context-code-indexer/references/metrics.md +201 -0
- package/indexers/bundles/context-code-indexer/templates/adapter-integration.md +119 -0
- package/indexers/bundles/context-code-indexer/templates/api-service.md +118 -0
- package/indexers/bundles/context-code-indexer/templates/background-runtime.md +109 -0
- package/indexers/bundles/context-code-indexer/templates/cli-tool.md +129 -0
- package/indexers/bundles/context-code-indexer/templates/component-library.md +99 -0
- package/indexers/bundles/context-code-indexer/templates/contract-source.md +73 -0
- package/indexers/bundles/context-code-indexer/templates/data-sync-reconciliation.md +77 -0
- package/indexers/bundles/context-code-indexer/templates/derived-generated-source.md +117 -0
- package/indexers/bundles/context-code-indexer/templates/domain-service.md +109 -0
- package/indexers/bundles/context-code-indexer/templates/event-consumer.md +62 -0
- package/indexers/bundles/context-code-indexer/templates/gateway-facade.md +89 -0
- package/indexers/bundles/context-code-indexer/templates/monorepo-container.md +124 -0
- package/indexers/bundles/context-code-indexer/templates/plugin-extension.md +52 -0
- package/indexers/bundles/context-code-indexer/templates/sdk-library.md +132 -0
- package/indexers/bundles/context-code-indexer/templates/storage-repository.md +56 -0
- package/indexers/bundles/context-code-indexer/templates/web-application.md +146 -0
- package/indexers/bundles/context-code-indexer/tests/fixtures/chapters.json +226 -0
- package/indexers/bundles/context-code-indexer/tests/fixtures/composers.json +82 -0
- package/indexers/bundles/context-code-indexer/tests/fixtures/profiles.json +210 -0
- package/indexers/bundles/context-code-indexer/tests/fixtures/scenarios.json +122 -0
- package/indexers/bundles/context-markdown-indexer/SKILL.md +20 -0
- package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +147 -0
- package/indexers/bundles/context-markdown-indexer/references/classification.md +63 -0
- package/indexers/bundles/context-markdown-indexer/references/editorial-policy.md +106 -0
- package/indexers/bundles/context-markdown-indexer/references/indexer.md +23 -0
- package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +146 -0
- package/indexers/bundles/context-markdown-indexer/references/structure-and-artifacts.md +109 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/anonymous.json +31 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/editorial.json +309 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/migration-equivalence.json +186 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/profiles.json +171 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/routing.json +151 -0
- package/indexers/capability-manifest.json +40 -0
- package/indexers/contracts/hard-rule-conformance.json +2644 -0
- package/indexers/contracts/operator-contract.json +35 -0
- package/indexers/contracts/profile-contract.json +10162 -0
- package/indexers/release-manifest.json +208 -0
- package/package.json +5 -4
- package/plugins/README.md +17 -109
- package/plugins/README_CN.md +11 -89
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +3 -11
- package/plugins/claude/CLAUDE.md +1 -1
- package/plugins/claude/README.md +1 -1
- package/plugins/claude/commands/context.md +76 -1
- package/plugins/codex/.codex-plugin/plugin.json +6 -17
- package/plugins/codex/AGENTS.md +1 -1
- package/plugins/codex/README.md +1 -1
- package/plugins/codex/skills/context/SKILL.md +77 -13
- package/plugins/cursor/.cursor-plugin/plugin.json +4 -17
- package/plugins/cursor/AGENTS.md +1 -1
- package/plugins/cursor/README.md +3 -2
- package/plugins/cursor/commands/c4a-context.md +76 -3
- package/plugins/skills/{c4a-context → context}/SKILL.md +78 -14
- package/plugins/skills/context-code-indexer/SKILL.md +20 -0
- package/plugins/skills/context-code-indexer/context-indexer.yaml +230 -0
- package/plugins/skills/context-code-indexer/references/composers/contracts-and-chains.md +23 -0
- package/plugins/skills/context-code-indexer/references/composers/cross-module-chain.md +22 -0
- package/plugins/skills/context-code-indexer/references/composers/development-and-delivery.md +22 -0
- package/plugins/skills/context-code-indexer/references/composers/event-flow.md +21 -0
- package/plugins/skills/context-code-indexer/references/composers/examples-and-documentation.md +22 -0
- package/plugins/skills/context-code-indexer/references/composers/persistence-boundary.md +21 -0
- package/plugins/skills/context-code-indexer/references/composers/protocol-boundary.md +22 -0
- package/plugins/skills/context-code-indexer/references/composers/public-contract.md +23 -0
- package/plugins/skills/context-code-indexer/references/indexer.md +49 -0
- package/plugins/skills/context-code-indexer/references/metrics.md +201 -0
- package/plugins/skills/context-code-indexer/templates/adapter-integration.md +119 -0
- package/plugins/skills/context-code-indexer/templates/api-service.md +118 -0
- package/plugins/skills/context-code-indexer/templates/background-runtime.md +109 -0
- package/plugins/skills/context-code-indexer/templates/cli-tool.md +129 -0
- package/plugins/skills/context-code-indexer/templates/component-library.md +99 -0
- package/plugins/skills/context-code-indexer/templates/contract-source.md +73 -0
- package/plugins/skills/context-code-indexer/templates/data-sync-reconciliation.md +77 -0
- package/plugins/skills/context-code-indexer/templates/derived-generated-source.md +117 -0
- package/plugins/skills/context-code-indexer/templates/domain-service.md +109 -0
- package/plugins/skills/context-code-indexer/templates/event-consumer.md +62 -0
- package/plugins/skills/context-code-indexer/templates/gateway-facade.md +89 -0
- package/plugins/skills/context-code-indexer/templates/monorepo-container.md +124 -0
- package/plugins/skills/context-code-indexer/templates/plugin-extension.md +52 -0
- package/plugins/skills/context-code-indexer/templates/sdk-library.md +132 -0
- package/plugins/skills/context-code-indexer/templates/storage-repository.md +56 -0
- package/plugins/skills/context-code-indexer/templates/web-application.md +146 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/chapters.json +226 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/composers.json +82 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/profiles.json +210 -0
- package/plugins/skills/context-code-indexer/tests/fixtures/scenarios.json +122 -0
- package/plugins/skills/context-markdown-indexer/SKILL.md +20 -0
- package/plugins/skills/context-markdown-indexer/context-indexer.yaml +147 -0
- package/plugins/skills/context-markdown-indexer/references/classification.md +63 -0
- package/plugins/skills/context-markdown-indexer/references/editorial-policy.md +106 -0
- package/plugins/skills/context-markdown-indexer/references/indexer.md +23 -0
- package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +146 -0
- package/plugins/skills/context-markdown-indexer/references/structure-and-artifacts.md +109 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/anonymous.json +31 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/editorial.json +309 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/migration-equivalence.json +186 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/profiles.json +171 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/routing.json +151 -0
- package/providers/context/actions/accept-main-index-run.yaml +7 -0
- package/providers/context/actions/accept-material-answer-run.yaml +7 -0
- package/providers/context/actions/accept-post-author-composer-run.yaml +7 -0
- package/providers/context/actions/actualize-material-answer-bindings.yaml +8 -0
- package/providers/context/actions/apply-document-optimization-guidance.yaml +5 -0
- package/providers/context/actions/apply-indexer-project.yaml +7 -0
- package/providers/context/actions/audit-material-gap-state.yaml +8 -0
- package/providers/context/actions/audit-projected-artifact-fan-out.yaml +8 -0
- package/providers/context/actions/authorize-indexer-contract-overlay.yaml +7 -0
- package/providers/context/actions/authorize-indexer-dependencies.yaml +7 -0
- package/providers/context/actions/authorize-indexer-program-execution.yaml +7 -0
- package/providers/context/actions/build-main-index-author-worksets.yaml +7 -0
- package/providers/context/actions/build-main-index-catalog-fallback.yaml +7 -0
- package/providers/context/actions/build-main-index-partition-worksets.yaml +7 -0
- package/providers/context/actions/build-material-question-workset.yaml +7 -0
- package/providers/context/actions/build-post-author-composer-worksets.yaml +7 -0
- package/providers/context/actions/build-question-target-inventory.yaml +7 -0
- package/providers/context/actions/build-subject-catalog.yaml +7 -0
- package/providers/context/actions/build-target-resolution-views.yaml +7 -0
- package/providers/context/actions/checkpoint-material-answer-review.yaml +8 -0
- package/providers/context/actions/checkpoint-material-gaps.yaml +8 -0
- package/providers/context/actions/close-indexer-approved-knowledge.yaml +8 -0
- package/providers/context/actions/compile-indexer-candidates.yaml +8 -0
- package/providers/context/actions/compose-indexer-post-author-fragments.yaml +7 -0
- package/providers/context/actions/configure-community-indexer-fallback.yaml +6 -0
- package/providers/context/actions/configure-indexer-providers.yaml +6 -0
- package/providers/context/actions/confirm-index-requirement-workset.yaml +8 -0
- package/providers/context/actions/confirm-subject-reidentification.yaml +8 -0
- package/providers/context/actions/converge-main-index-partition-run.yaml +7 -0
- package/providers/context/actions/discover-markdown-indexer-providers.yaml +6 -0
- package/providers/context/actions/evaluate-material-gaps.yaml +8 -0
- package/providers/context/actions/fail-main-index-run.yaml +7 -0
- package/providers/context/actions/fail-material-answer-run.yaml +7 -0
- package/providers/context/actions/fail-post-author-composer-run.yaml +7 -0
- package/providers/context/actions/inspect-index-candidate-review-readiness.yaml +8 -0
- package/providers/context/actions/inspect-index-profile-failure.yaml +7 -0
- package/providers/context/actions/inspect-indexer-dependencies.yaml +7 -0
- package/providers/context/actions/inspect-indexer-program-execution.yaml +7 -0
- package/providers/context/actions/inspect-indexer-project-proposal.yaml +7 -0
- package/providers/context/actions/inspect-markdown-provider-capture.yaml +7 -0
- package/providers/context/actions/inspect-material-answer-review.yaml +8 -0
- package/providers/context/actions/materialize-indexer-instructions.yaml +7 -0
- package/providers/context/actions/observe-indexer-project.yaml +7 -0
- package/providers/context/actions/observe-main-index-run-ledger.yaml +7 -0
- package/providers/context/actions/observe-material-answer-runs.yaml +7 -0
- package/providers/context/actions/observe-post-author-composer-worksets.yaml +7 -0
- package/providers/context/actions/override-index-profile-audit.yaml +7 -0
- package/providers/context/actions/prepare-indexer-customization-project.yaml +7 -0
- package/providers/context/actions/prepare-main-index-run-ledger.yaml +7 -0
- package/providers/context/actions/prepare-material-answer-runs.yaml +7 -0
- package/providers/context/actions/propose-indexer-customization.yaml +7 -0
- package/providers/context/actions/propose-overlay-question-amendment.yaml +7 -0
- package/providers/context/actions/rebind-indexer-selection-to-requirement.yaml +7 -0
- package/providers/context/actions/reconcile-indexer-results.yaml +7 -0
- package/providers/context/actions/record-index-profile-revision.yaml +7 -0
- package/providers/context/actions/report-index-profile-failure.yaml +7 -0
- package/providers/context/actions/report-indexer-incremental-impact.yaml +8 -0
- package/providers/context/actions/resolve-effective-composers.yaml +7 -0
- package/providers/context/actions/review-material-answer-candidate.yaml +8 -0
- package/providers/context/actions/revise-index-output.yaml +7 -0
- package/providers/context/actions/route-index-requirement-confirmation.yaml +8 -0
- package/providers/context/actions/route-indexer-provider-selection.yaml +7 -0
- package/providers/context/actions/run-indexer-agent-step.yaml +7 -0
- package/providers/context/actions/run-indexer-post-author-composer.yaml +7 -0
- package/providers/context/actions/run-material-answer-indexers.yaml +7 -0
- package/providers/context/actions/start-main-index-run.yaml +7 -0
- package/providers/context/actions/start-material-answer-run.yaml +7 -0
- package/providers/context/actions/start-post-author-composer-run.yaml +7 -0
- package/providers/context/actions/validate-indexer-contract-overlays.yaml +7 -0
- package/providers/context/actions/validate-indexer-customization.yaml +7 -0
- package/providers/context/actions/validate-indexer-selection-proposal.yaml +7 -0
- package/providers/context/actions/validate-main-index-run.yaml +7 -0
- package/providers/context/actions/validate-markdown-provider-selection.yaml +7 -0
- package/providers/context/actions/validate-subject-key-schemas.yaml +8 -0
- package/providers/context/codes.yaml +70 -0
- package/providers/context/graphs/indexer.yaml +1068 -0
- package/providers/context/graphs/workspace.yaml +20 -1
- package/providers/context/manifest.json +1433 -121
- package/providers/context/provider.yaml +3 -2
- package/providers/context/resources/manuals/reference/code-extractors.md +2 -2
- package/providers/context/resources/manuals/reference/project-api.md +2 -2
- package/providers/context/resources/procedures/code-extraction.md +6 -2
- package/providers/context/resources/procedures/code-index-audit.md +36 -6
- package/providers/context/resources/procedures/document-optimization.md +23 -4
- package/providers/context/resources/semantic/code-index/templates/adapter.md +9 -0
- package/providers/context/resources/semantic/code-index/templates/contracts-and-chains.md +81 -0
- package/providers/context/resources/views/resolved-indexer-instructions.yaml +23 -0
- package/providers/context/schemas/document-optimization-decisions.schema.json +1 -1
- package/providers/context/schemas/indexer-agent-step-input.schema.json +30 -0
- package/providers/context/schemas/indexer-agent-step-result.schema.json +47 -0
- package/providers/context/schemas/indexer-candidate-compile-input.schema.json +57 -0
- package/providers/context/schemas/indexer-candidate-compile-output.schema.json +38 -0
- package/providers/context/schemas/indexer-candidate-review-readiness-input.schema.json +46 -0
- package/providers/context/schemas/indexer-candidate-review-readiness-output.schema.json +104 -0
- package/providers/context/schemas/indexer-contract-overlay-authorization-input.schema.json +32 -0
- package/providers/context/schemas/indexer-contract-overlay-authorization-result.schema.json +121 -0
- package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +90 -0
- package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +158 -0
- package/providers/context/schemas/indexer-customization-project-preparation-result.schema.json +44 -0
- package/providers/context/schemas/indexer-customization-proposal-draft.schema.json +83 -0
- package/providers/context/schemas/indexer-customization-validation-result.schema.json +36 -0
- package/providers/context/schemas/indexer-dependency-authorization-input.schema.json +71 -0
- package/providers/context/schemas/indexer-dependency-authorization-result.schema.json +138 -0
- package/providers/context/schemas/indexer-incremental-impact-input.schema.json +31 -0
- package/providers/context/schemas/indexer-incremental-impact-output.schema.json +52 -0
- package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +187 -0
- package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +180 -0
- package/providers/context/schemas/indexer-markdown-provider-capture-input.schema.json +17 -0
- package/providers/context/schemas/indexer-markdown-provider-capture-output.schema.json +54 -0
- package/providers/context/schemas/indexer-markdown-provider-validation-input.schema.json +34 -0
- package/providers/context/schemas/indexer-markdown-provider-validation-output.schema.json +75 -0
- package/providers/context/schemas/indexer-material-answer-lifecycle-input.schema.json +90 -0
- package/providers/context/schemas/indexer-material-answer-lifecycle-output.schema.json +80 -0
- package/providers/context/schemas/indexer-material-answer-review-inspection-input.schema.json +32 -0
- package/providers/context/schemas/indexer-material-answer-review-inspection-output.schema.json +32 -0
- package/providers/context/schemas/indexer-material-answer-review-resolution-input.schema.json +19 -0
- package/providers/context/schemas/indexer-material-answer-review-resolution-output.schema.json +87 -0
- package/providers/context/schemas/indexer-material-gap-lifecycle-input.schema.json +86 -0
- package/providers/context/schemas/indexer-material-gap-lifecycle-output.schema.json +19 -0
- package/providers/context/schemas/indexer-materialize-request.schema.json +53 -0
- package/providers/context/schemas/indexer-materialized-resource.schema.json +57 -0
- package/providers/context/schemas/indexer-overlay-question-amendment.schema.json +13 -0
- package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +40 -0
- package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +35 -0
- package/providers/context/schemas/indexer-overlay-question-rebind-result.schema.json +25 -0
- package/providers/context/schemas/indexer-post-author-fragment-request.schema.json +26 -0
- package/providers/context/schemas/indexer-post-author-fragment-result.schema.json +18 -0
- package/providers/context/schemas/indexer-post-author-lifecycle-input.schema.json +94 -0
- package/providers/context/schemas/indexer-post-author-lifecycle-output.schema.json +72 -0
- package/providers/context/schemas/indexer-profile-failure-inspection-input.schema.json +13 -0
- package/providers/context/schemas/indexer-profile-failure-inspection-result.schema.json +19 -0
- package/providers/context/schemas/indexer-profile-failure-report-input.schema.json +22 -0
- package/providers/context/schemas/indexer-profile-failure-report-result.schema.json +49 -0
- package/providers/context/schemas/indexer-profile-override-decision.schema.json +20 -0
- package/providers/context/schemas/indexer-profile-override-result.schema.json +49 -0
- package/providers/context/schemas/indexer-profile-revision-agent-input.schema.json +18 -0
- package/providers/context/schemas/indexer-profile-revision-record-input.schema.json +31 -0
- package/providers/context/schemas/indexer-profile-revision-record-result.schema.json +45 -0
- package/providers/context/schemas/indexer-program-execution-authorization-input.schema.json +145 -0
- package/providers/context/schemas/indexer-program-execution-authorization-result.schema.json +60 -0
- package/providers/context/schemas/indexer-project-action-result.schema.json +19 -0
- package/providers/context/schemas/indexer-project-gate-input.schema.json +100 -0
- package/providers/context/schemas/indexer-project-observation-input.schema.json +16 -0
- package/providers/context/schemas/indexer-project-observation-result.schema.json +42 -0
- package/providers/context/schemas/indexer-provider-route-input.schema.json +55 -0
- package/providers/context/schemas/indexer-provider-route-report.schema.json +188 -0
- package/providers/context/schemas/indexer-requirement-confirmation-input.schema.json +27 -0
- package/providers/context/schemas/indexer-requirement-confirmation-output.schema.json +24 -0
- package/providers/context/schemas/indexer-result-reconciliation-input.schema.json +59 -0
- package/providers/context/schemas/indexer-result-reconciliation-output.schema.json +43 -0
- package/providers/context/schemas/indexer-selection-proposal-input.schema.json +12 -0
- package/providers/context/schemas/indexer-selection-proposal-validation.schema.json +23 -0
- package/providers/context/schemas/indexer-subject-reidentification-input.schema.json +37 -0
- package/providers/context/schemas/indexer-subject-reidentification-output.schema.json +31 -0
- package/providers/context/skills/configure-indexer-providers/SKILL.md +58 -0
- package/providers/context/skills/prepare-indexer-customization-project/SKILL.md +31 -0
- package/providers/context/skills/propose-indexer-customization/SKILL.md +40 -0
- package/providers/context/skills/revise-index-output/SKILL.md +12 -0
- package/providers/context/skills/run-indexer-agent-step/SKILL.md +20 -0
- package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +21 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.main-lifecycle-output/v1",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["protocol", "inventory_digest", "requirement_set_digest", "items"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"protocol": { "const": "context.indexer.question-target-inventory/v1" },
|
|
10
|
+
"inventory_digest": { "$ref": "#/$defs/digest" },
|
|
11
|
+
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
12
|
+
"profile_contract_digests": { "type": "array" },
|
|
13
|
+
"source_inventory_digests": { "type": "array" },
|
|
14
|
+
"items": { "type": "array" }
|
|
15
|
+
},
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["protocol", "worksets", "workset_set"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"protocol": { "enum": ["context.indexer.main-partition-workset-build/v1", "context.indexer.main-author-workset-build/v1"] },
|
|
23
|
+
"worksets": { "type": "array" },
|
|
24
|
+
"workset_set": { "type": "object" },
|
|
25
|
+
"graph_outcome": { "const": "completed" }
|
|
26
|
+
},
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["protocol", "request", "result", "operation_result", "authoring_audit", "accepted_record", "graph_outcome"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"protocol": { "const": "context.indexer.main-run-validation/v1" },
|
|
34
|
+
"request": { "type": "object" },
|
|
35
|
+
"result": { "type": "object" },
|
|
36
|
+
"operation_result": { "type": "object" },
|
|
37
|
+
"authoring_audit": { "type": ["object", "null"] },
|
|
38
|
+
"accepted_record": { "type": "object" },
|
|
39
|
+
"graph_outcome": { "const": "completed" }
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": ["protocol", "requirement_ref", "subject_key_schema_digest", "entries", "catalog_digest"],
|
|
46
|
+
"properties": {
|
|
47
|
+
"protocol": { "const": "context.indexer.subject-catalog/v1" },
|
|
48
|
+
"requirement_ref": { "type": "string" },
|
|
49
|
+
"subject_key_schema_digest": { "$ref": "#/$defs/digest" },
|
|
50
|
+
"approved_subject_set_digest": { "$ref": "#/$defs/digest" },
|
|
51
|
+
"partition_subject_set_digest": { "$ref": "#/$defs/digest" },
|
|
52
|
+
"entries": { "type": "array" },
|
|
53
|
+
"catalog_digest": { "$ref": "#/$defs/digest" }
|
|
54
|
+
},
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["protocol", "views", "view_set", "outcome", "conflicts", "graph_outcome"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"protocol": { "const": "context.indexer.target-resolution-build/v1" },
|
|
62
|
+
"views": { "type": "array" },
|
|
63
|
+
"view_set": { "type": "object" },
|
|
64
|
+
"outcome": { "enum": ["target-resolution-current", "index-target-resolution-ambiguous"] },
|
|
65
|
+
"conflicts": { "type": "array", "items": { "type": "object" } },
|
|
66
|
+
"graph_outcome": { "enum": ["completed", "blocked"] }
|
|
67
|
+
},
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "object",
|
|
72
|
+
"required": ["protocol", "outcome", "conflicts", "message", "graph_outcome"],
|
|
73
|
+
"properties": {
|
|
74
|
+
"protocol": { "const": "context.indexer.target-resolution-outcome/v1" },
|
|
75
|
+
"outcome": { "enum": ["index-target-resolution-ambiguous", "index-target-resolution-invalid"] },
|
|
76
|
+
"conflicts": { "type": "array", "items": { "type": "object" } },
|
|
77
|
+
"message": { "type": "string", "minLength": 1 },
|
|
78
|
+
"graph_outcome": { "enum": ["blocked", "failed"] }
|
|
79
|
+
},
|
|
80
|
+
"additionalProperties": false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "object",
|
|
84
|
+
"required": ["protocol", "audit", "can_materialize_candidate", "outcome", "graph_outcome"],
|
|
85
|
+
"properties": {
|
|
86
|
+
"protocol": { "const": "context.indexer.candidate-materialization-readiness/v1" },
|
|
87
|
+
"audit": { "type": "object" },
|
|
88
|
+
"can_materialize_candidate": { "type": "boolean" },
|
|
89
|
+
"outcome": { "enum": ["projected-artifact-fan-out-current", "indexer-plan-revision-required"] },
|
|
90
|
+
"graph_outcome": { "enum": ["completed", "partial"] }
|
|
91
|
+
},
|
|
92
|
+
"additionalProperties": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": ["protocol", "workset_set_digest", "total_count", "pending_count", "accepted_count", "failed_count", "stale_count", "next_refs", "accepted_result_set_digest", "outcome", "can_advance", "status_digest"],
|
|
97
|
+
"properties": {
|
|
98
|
+
"protocol": { "const": "context.indexer.main-workset-status/v1" },
|
|
99
|
+
"workset_set_digest": { "$ref": "#/$defs/digest" },
|
|
100
|
+
"total_count": { "type": "integer", "minimum": 0 },
|
|
101
|
+
"pending_count": { "type": "integer", "minimum": 0 },
|
|
102
|
+
"accepted_count": { "type": "integer", "minimum": 0 },
|
|
103
|
+
"failed_count": { "type": "integer", "minimum": 0 },
|
|
104
|
+
"stale_count": { "type": "integer", "minimum": 0 },
|
|
105
|
+
"next_refs": { "type": "array" },
|
|
106
|
+
"accepted_result_set_digest": { "$ref": "#/$defs/digest" },
|
|
107
|
+
"outcome": { "type": "string" },
|
|
108
|
+
"can_advance": { "type": "boolean" },
|
|
109
|
+
"status_digest": { "$ref": "#/$defs/digest" }
|
|
110
|
+
},
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "object",
|
|
115
|
+
"required": ["protocol", "ledger", "status", "receipt"],
|
|
116
|
+
"properties": {
|
|
117
|
+
"protocol": {
|
|
118
|
+
"enum": [
|
|
119
|
+
"context.indexer.main-run-ledger-preparation/v1",
|
|
120
|
+
"context.indexer.main-run-store-acceptance/v1",
|
|
121
|
+
"context.indexer.main-run-store-failure/v1"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"ledger": { "type": "object" },
|
|
125
|
+
"status": { "type": "object" },
|
|
126
|
+
"receipt": { "type": ["object", "null"] }
|
|
127
|
+
},
|
|
128
|
+
"additionalProperties": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "object",
|
|
132
|
+
"required": ["protocol", "convergence", "next_request", "ledger", "status", "receipt", "outcome", "graph_outcome"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"protocol": { "const": "context.indexer.main-run-partition-convergence/v1" },
|
|
135
|
+
"convergence": { "type": "object" },
|
|
136
|
+
"next_request": { "type": ["object", "null"] },
|
|
137
|
+
"ledger": { "type": "object" },
|
|
138
|
+
"status": { "type": "object" },
|
|
139
|
+
"receipt": { "type": ["object", "null"] },
|
|
140
|
+
"outcome": {
|
|
141
|
+
"enum": ["accepted", "retry-required", "catalog-fallback-required", "blocked-invalid-input"]
|
|
142
|
+
},
|
|
143
|
+
"graph_outcome": { "enum": ["completed", "partial", "blocked", "failed"] }
|
|
144
|
+
},
|
|
145
|
+
"additionalProperties": false
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "object",
|
|
149
|
+
"required": ["protocol", "request", "fallback", "result", "ledger", "status", "receipt", "outcome", "graph_outcome", "user_gate_required"],
|
|
150
|
+
"properties": {
|
|
151
|
+
"protocol": { "const": "context.indexer.catalog-fallback-build/v1" },
|
|
152
|
+
"request": { "type": "object" },
|
|
153
|
+
"fallback": { "type": "object" },
|
|
154
|
+
"result": { "type": "object" },
|
|
155
|
+
"ledger": { "type": "object" },
|
|
156
|
+
"status": { "type": "object" },
|
|
157
|
+
"receipt": { "type": ["object", "null"] },
|
|
158
|
+
"outcome": { "const": "catalog-fallback-applied" },
|
|
159
|
+
"graph_outcome": { "const": "completed" },
|
|
160
|
+
"user_gate_required": { "const": false }
|
|
161
|
+
},
|
|
162
|
+
"additionalProperties": false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"type": "object",
|
|
166
|
+
"required": ["protocol", "ledger", "request", "status", "receipt"],
|
|
167
|
+
"properties": {
|
|
168
|
+
"protocol": { "const": "context.indexer.main-run-store-start/v1" },
|
|
169
|
+
"ledger": { "type": "object" },
|
|
170
|
+
"request": { "type": "object" },
|
|
171
|
+
"status": { "type": "object" },
|
|
172
|
+
"receipt": { "type": ["object", "null"] }
|
|
173
|
+
},
|
|
174
|
+
"additionalProperties": false
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"$defs": {
|
|
178
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.markdown-provider-capture-input/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["protocol", "project_ref", "source_refs"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"protocol": { "const": "context.indexer.markdown-provider-capture-input/v1" },
|
|
9
|
+
"project_ref": { "type": "string", "minLength": 1 },
|
|
10
|
+
"source_refs": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"minItems": 1,
|
|
13
|
+
"uniqueItems": true,
|
|
14
|
+
"items": { "type": "string", "minLength": 1 }
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.markdown-provider-capture-report/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"protocol",
|
|
8
|
+
"project_ref",
|
|
9
|
+
"requested_source_refs",
|
|
10
|
+
"source_inputs",
|
|
11
|
+
"unavailable_source_refs",
|
|
12
|
+
"capture_set_digest",
|
|
13
|
+
"outcome",
|
|
14
|
+
"graph_outcome",
|
|
15
|
+
"report_digest"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"protocol": { "const": "context.indexer.markdown-provider-capture-report/v1" },
|
|
19
|
+
"project_ref": { "type": "string", "minLength": 1 },
|
|
20
|
+
"requested_source_refs": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"minItems": 1,
|
|
23
|
+
"uniqueItems": true,
|
|
24
|
+
"items": { "type": "string", "minLength": 1 }
|
|
25
|
+
},
|
|
26
|
+
"source_inputs": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": ["source_ref", "snapshot_digest", "normalizer_version"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"source_ref": { "type": "string", "minLength": 1 },
|
|
34
|
+
"snapshot_digest": { "$ref": "#/$defs/digest" },
|
|
35
|
+
"normalizer_version": { "type": "string", "minLength": 1 }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"unavailable_source_refs": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"uniqueItems": true,
|
|
42
|
+
"items": { "type": "string", "minLength": 1 }
|
|
43
|
+
},
|
|
44
|
+
"capture_set_digest": { "$ref": "#/$defs/digest" },
|
|
45
|
+
"outcome": {
|
|
46
|
+
"enum": ["markdown-provider-discovery-required", "index-document-capture-not-current"]
|
|
47
|
+
},
|
|
48
|
+
"graph_outcome": { "enum": ["completed", "blocked"] },
|
|
49
|
+
"report_digest": { "$ref": "#/$defs/digest" }
|
|
50
|
+
},
|
|
51
|
+
"$defs": {
|
|
52
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.markdown-provider-validation-input/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"protocol",
|
|
8
|
+
"capture_report",
|
|
9
|
+
"provider_route_input",
|
|
10
|
+
"provider_route_report",
|
|
11
|
+
"static_validation"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"protocol": { "const": "context.indexer.markdown-provider-validation-input/v1" },
|
|
15
|
+
"capture_report": { "type": "object" },
|
|
16
|
+
"provider_route_input": { "type": "object" },
|
|
17
|
+
"provider_route_report": { "type": "object" },
|
|
18
|
+
"static_validation": { "type": "object" },
|
|
19
|
+
"host_results": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": ["indexer_id", "provider_id", "result"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"indexer_id": { "type": "string", "minLength": 1 },
|
|
27
|
+
"provider_id": { "type": "string", "minLength": 1 },
|
|
28
|
+
"result": { "type": "object" },
|
|
29
|
+
"managed_output": { "type": "object" }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.markdown-provider-validation-result/v1",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"protocol",
|
|
10
|
+
"outcome",
|
|
11
|
+
"capture_report_digest",
|
|
12
|
+
"provider_route_report_digest",
|
|
13
|
+
"static_validation_digest",
|
|
14
|
+
"final_report",
|
|
15
|
+
"graph_outcome"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"protocol": { "const": "context.indexer.markdown-provider-validation-result/v1" },
|
|
19
|
+
"outcome": { "const": "markdown-provider-selection-current" },
|
|
20
|
+
"capture_report_digest": { "$ref": "#/$defs/digest" },
|
|
21
|
+
"provider_route_report_digest": { "$ref": "#/$defs/digest" },
|
|
22
|
+
"static_validation_digest": { "$ref": "#/$defs/digest" },
|
|
23
|
+
"final_report": { "type": "object" },
|
|
24
|
+
"graph_outcome": { "const": "completed" }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": [
|
|
31
|
+
"protocol",
|
|
32
|
+
"outcome",
|
|
33
|
+
"capture_report_digest",
|
|
34
|
+
"provider_route_report_digest",
|
|
35
|
+
"static_validation_digest",
|
|
36
|
+
"host_requests",
|
|
37
|
+
"graph_outcome"
|
|
38
|
+
],
|
|
39
|
+
"properties": {
|
|
40
|
+
"protocol": { "const": "context.indexer.markdown-provider-validation-result/v1" },
|
|
41
|
+
"outcome": { "const": "markdown-provider-host-resolution-required" },
|
|
42
|
+
"capture_report_digest": { "$ref": "#/$defs/digest" },
|
|
43
|
+
"provider_route_report_digest": { "$ref": "#/$defs/digest" },
|
|
44
|
+
"static_validation_digest": { "$ref": "#/$defs/digest" },
|
|
45
|
+
"host_requests": { "type": "array", "minItems": 1, "items": { "type": "object" } },
|
|
46
|
+
"graph_outcome": { "const": "partial" }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"protocol",
|
|
54
|
+
"outcome",
|
|
55
|
+
"capture_report_digest",
|
|
56
|
+
"provider_route_report_digest",
|
|
57
|
+
"static_validation_digest",
|
|
58
|
+
"indexer_ids",
|
|
59
|
+
"graph_outcome"
|
|
60
|
+
],
|
|
61
|
+
"properties": {
|
|
62
|
+
"protocol": { "const": "context.indexer.markdown-provider-validation-result/v1" },
|
|
63
|
+
"outcome": { "const": "indexer-customization-required" },
|
|
64
|
+
"capture_report_digest": { "$ref": "#/$defs/digest" },
|
|
65
|
+
"provider_route_report_digest": { "$ref": "#/$defs/digest" },
|
|
66
|
+
"static_validation_digest": { "$ref": "#/$defs/digest" },
|
|
67
|
+
"indexer_ids": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
68
|
+
"graph_outcome": { "const": "blocked" }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"$defs": {
|
|
73
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.material-answer-lifecycle-input/v1",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["protocol", "requirement_set_digest", "registered_sources", "provider_capabilities", "resolved_questions", "question_target_inventory", "owner_cells", "target_facts", "allowed_selector_fact_paths"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"protocol": { "const": "context.indexer.build-material-question-workset-input/v1" },
|
|
10
|
+
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
11
|
+
"material_gap_ledger": { "type": "object" },
|
|
12
|
+
"registered_sources": { "type": "array", "items": { "type": "object" } },
|
|
13
|
+
"provider_capabilities": { "type": "array", "items": { "type": "object" } },
|
|
14
|
+
"resolved_questions": { "type": "array", "items": { "type": "object" } },
|
|
15
|
+
"question_target_inventory": { "type": "object" },
|
|
16
|
+
"owner_cells": { "type": "array", "items": { "type": "object" } },
|
|
17
|
+
"target_facts": { "type": "object" },
|
|
18
|
+
"allowed_selector_fact_paths": { "type": "array", "items": { "type": "string" } },
|
|
19
|
+
"answer_landings": { "type": "array", "items": { "type": "object" } }
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "object",
|
|
25
|
+
"required": ["protocol", "requirement_set_digest", "workset", "authorities"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"protocol": { "const": "context.indexer.prepare-material-answer-runs-input/v1" },
|
|
28
|
+
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
29
|
+
"workset": { "type": "object" },
|
|
30
|
+
"authorities": { "type": "array", "items": { "type": "object" } }
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "object",
|
|
36
|
+
"required": ["protocol", "requirement_set_digest", "plan_digest", "expected_revision"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"protocol": { "const": "context.indexer.observe-material-answer-runs-input/v1" },
|
|
39
|
+
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
40
|
+
"plan_digest": { "$ref": "#/$defs/digest" },
|
|
41
|
+
"expected_revision": { "$ref": "#/$defs/digest" }
|
|
42
|
+
},
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": ["protocol", "requirement_set_digest", "plan_digest", "expected_revision", "run_ref"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"protocol": { "const": "context.indexer.start-material-answer-run-input/v1" },
|
|
50
|
+
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
51
|
+
"plan_digest": { "$ref": "#/$defs/digest" },
|
|
52
|
+
"expected_revision": { "$ref": "#/$defs/digest" },
|
|
53
|
+
"run_ref": { "type": "string", "minLength": 1 }
|
|
54
|
+
},
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["protocol", "requirement_set_digest", "plan_digest", "expected_revision", "run_ref", "result", "reader_authority_digest", "evidence_read_receipts"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"protocol": { "const": "context.indexer.accept-material-answer-run-input/v1" },
|
|
62
|
+
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
63
|
+
"plan_digest": { "$ref": "#/$defs/digest" },
|
|
64
|
+
"expected_revision": { "$ref": "#/$defs/digest" },
|
|
65
|
+
"run_ref": { "type": "string", "minLength": 1 },
|
|
66
|
+
"result": { "type": "object" },
|
|
67
|
+
"reader_authority_digest": { "$ref": "#/$defs/digest" },
|
|
68
|
+
"evidence_read_receipts": { "type": "array", "items": { "type": "object" } }
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "object",
|
|
74
|
+
"required": ["protocol", "requirement_set_digest", "plan_digest", "expected_revision", "run_ref", "reason_code", "dependency_digests"],
|
|
75
|
+
"properties": {
|
|
76
|
+
"protocol": { "const": "context.indexer.fail-material-answer-run-input/v1" },
|
|
77
|
+
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
78
|
+
"plan_digest": { "$ref": "#/$defs/digest" },
|
|
79
|
+
"expected_revision": { "$ref": "#/$defs/digest" },
|
|
80
|
+
"run_ref": { "type": "string", "minLength": 1 },
|
|
81
|
+
"reason_code": { "type": "string", "minLength": 1 },
|
|
82
|
+
"dependency_digests": { "type": "array", "items": { "$ref": "#/$defs/digest" } }
|
|
83
|
+
},
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"$defs": {
|
|
88
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.material-answer-lifecycle-output/v1",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["protocol", "workset", "provider_authority_receipts", "unresolved_question_keys"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"protocol": { "const": "context.indexer.build-material-question-workset-result/v1" },
|
|
10
|
+
"workset": { "type": "object" },
|
|
11
|
+
"provider_authority_receipts": { "type": "array" },
|
|
12
|
+
"unresolved_question_keys": { "type": "array" }
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": ["protocol", "plan", "ledger", "observation", "receipt"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"protocol": { "const": "context.indexer.material-answer-run-preparation/v1" },
|
|
21
|
+
"plan": { "type": "object" },
|
|
22
|
+
"ledger": { "type": "object" },
|
|
23
|
+
"observation": { "type": "object" },
|
|
24
|
+
"receipt": { "type": "object" }
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["protocol", "plan", "ledger", "observation"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"protocol": { "const": "context.indexer.material-answer-run-observation-result/v1" },
|
|
33
|
+
"plan": { "type": "object" },
|
|
34
|
+
"ledger": { "type": "object" },
|
|
35
|
+
"observation": { "type": "object" }
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": ["protocol", "request", "ledger", "observation", "receipt"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"protocol": { "const": "context.indexer.material-answer-run-start/v1" },
|
|
44
|
+
"request": { "type": "object" },
|
|
45
|
+
"ledger": { "type": "object" },
|
|
46
|
+
"observation": { "type": "object" },
|
|
47
|
+
"receipt": { "type": "object" }
|
|
48
|
+
},
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "object",
|
|
53
|
+
"required": ["protocol", "accepted_record", "candidate_set", "ledger", "observation", "receipt"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"protocol": { "const": "context.indexer.material-answer-run-acceptance/v1" },
|
|
56
|
+
"accepted_record": { "type": "object" },
|
|
57
|
+
"candidate_set": { "type": "object" },
|
|
58
|
+
"ledger": { "type": "object" },
|
|
59
|
+
"observation": { "type": "object" },
|
|
60
|
+
"receipt": { "type": "object" }
|
|
61
|
+
},
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "object",
|
|
66
|
+
"required": ["protocol", "failure_digest", "ledger", "observation", "receipt"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"protocol": { "const": "context.indexer.material-answer-run-failure/v1" },
|
|
69
|
+
"failure_digest": { "$ref": "#/$defs/digest" },
|
|
70
|
+
"ledger": { "type": "object" },
|
|
71
|
+
"observation": { "type": "object" },
|
|
72
|
+
"receipt": { "type": "object" }
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": false
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"$defs": {
|
|
78
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.material-answer-review-inspection-input/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["protocol", "workset", "candidate_set", "question_key", "input_digest"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"protocol": { "const": "context.indexer.material-answer-review-inspection-input/v1" },
|
|
9
|
+
"workset": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"required": ["protocol", "workset_digest"],
|
|
12
|
+
"properties": {
|
|
13
|
+
"protocol": { "const": "context.indexer.material-question-workset/v1" },
|
|
14
|
+
"workset_digest": { "$ref": "#/$defs/digest" }
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"candidate_set": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": ["protocol", "workset_digest", "candidate_set_digest"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"protocol": { "const": "context.indexer.material-answer-candidate-set/v1" },
|
|
22
|
+
"workset_digest": { "$ref": "#/$defs/digest" },
|
|
23
|
+
"candidate_set_digest": { "$ref": "#/$defs/digest" }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"question_key": { "type": "string", "minLength": 1 },
|
|
27
|
+
"input_digest": { "$ref": "#/$defs/digest" }
|
|
28
|
+
},
|
|
29
|
+
"$defs": {
|
|
30
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
31
|
+
}
|
|
32
|
+
}
|
package/providers/context/schemas/indexer-material-answer-review-inspection-output.schema.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.material-answer-review-inspection-result/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["protocol", "state", "review_scope", "input_digest", "workset_digest", "candidate_set_digest", "baseline_report", "result_digest"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"protocol": { "const": "context.indexer.material-answer-review-inspection-result/v1" },
|
|
9
|
+
"state": { "const": "review-required" },
|
|
10
|
+
"review_scope": { "const": "question-target-source-span-evidence-binding" },
|
|
11
|
+
"input_digest": { "$ref": "#/$defs/digest" },
|
|
12
|
+
"workset_digest": { "$ref": "#/$defs/digest" },
|
|
13
|
+
"candidate_set_digest": { "$ref": "#/$defs/digest" },
|
|
14
|
+
"baseline_report": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": ["protocol", "review_scope", "workset_digest", "candidate_set_digest", "question_key", "binding_digest", "report_digest"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"protocol": { "const": "context.indexer.material-answer-baseline-report/v1" },
|
|
19
|
+
"review_scope": { "const": "question-target-source-span-evidence-binding" },
|
|
20
|
+
"workset_digest": { "$ref": "#/$defs/digest" },
|
|
21
|
+
"candidate_set_digest": { "$ref": "#/$defs/digest" },
|
|
22
|
+
"question_key": { "type": "string", "minLength": 1 },
|
|
23
|
+
"binding_digest": { "$ref": "#/$defs/digest" },
|
|
24
|
+
"report_digest": { "$ref": "#/$defs/digest" }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"result_digest": { "$ref": "#/$defs/digest" }
|
|
28
|
+
},
|
|
29
|
+
"$defs": {
|
|
30
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.material-answer-review-resolution-input/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["protocol", "ledger", "workset", "candidate_set", "baseline_report", "decision", "input_digest"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"protocol": { "const": "context.indexer.material-answer-review-resolution-input/v1" },
|
|
9
|
+
"ledger": { "type": "object", "required": ["protocol", "revision"] },
|
|
10
|
+
"workset": { "type": "object", "required": ["protocol", "workset_digest", "predecessor_ledger_revision"] },
|
|
11
|
+
"candidate_set": { "type": "object", "required": ["protocol", "workset_digest", "candidate_set_digest"] },
|
|
12
|
+
"baseline_report": { "type": "object", "required": ["protocol", "review_scope", "report_digest"] },
|
|
13
|
+
"decision": { "enum": ["approved", "rejected"] },
|
|
14
|
+
"input_digest": { "$ref": "#/$defs/digest" }
|
|
15
|
+
},
|
|
16
|
+
"$defs": {
|
|
17
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
18
|
+
}
|
|
19
|
+
}
|