@c4a/context-cli 0.7.0 → 0.7.4
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 +18 -39
- package/README.zh-CN.md +13 -27
- package/cli.js +59230 -80555
- package/indexers/bundles/context-code-indexer/SKILL.md +30 -3
- package/indexers/bundles/context-code-indexer/context-indexer.yaml +3 -8
- package/indexers/bundles/context-code-indexer/references/indexer.md +110 -7
- package/indexers/bundles/context-code-indexer/references/metrics.md +143 -37
- package/indexers/bundles/context-code-indexer/templates/adapter-integration.md +2 -2
- package/indexers/bundles/context-code-indexer/templates/component-library.md +8 -0
- package/indexers/bundles/context-code-indexer/templates/gateway-facade.md +16 -0
- package/indexers/bundles/context-markdown-indexer/SKILL.md +13 -3
- package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +20 -7
- package/indexers/bundles/context-markdown-indexer/references/indexer.md +33 -4
- package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +30 -14
- package/indexers/bundles/context-markdown-indexer/references/structure-and-artifacts.md +6 -0
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/anonymous.json +1 -1
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/profiles.json +13 -13
- package/indexers/bundles/context-markdown-indexer/tests/fixtures/routing.json +122 -0
- package/indexers/contracts/operator-contract.json +2 -2
- package/indexers/contracts/profile-contract.json +3819 -454
- package/indexers/release-manifest.json +22 -22
- package/package.json +13 -3
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +44 -85
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +44 -85
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +44 -85
- package/plugins/skills/context/SKILL.md +44 -85
- package/plugins/skills/context-code-indexer/SKILL.md +30 -3
- package/plugins/skills/context-code-indexer/context-indexer.yaml +3 -8
- package/plugins/skills/context-code-indexer/references/indexer.md +110 -7
- package/plugins/skills/context-code-indexer/references/metrics.md +143 -37
- package/plugins/skills/context-code-indexer/templates/adapter-integration.md +2 -2
- package/plugins/skills/context-code-indexer/templates/component-library.md +8 -0
- package/plugins/skills/context-code-indexer/templates/gateway-facade.md +16 -0
- package/plugins/skills/context-markdown-indexer/SKILL.md +13 -3
- package/plugins/skills/context-markdown-indexer/context-indexer.yaml +20 -7
- package/plugins/skills/context-markdown-indexer/references/indexer.md +33 -4
- package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +30 -14
- package/plugins/skills/context-markdown-indexer/references/structure-and-artifacts.md +6 -0
- package/plugins/skills/context-markdown-indexer/tests/fixtures/anonymous.json +1 -1
- package/plugins/skills/context-markdown-indexer/tests/fixtures/profiles.json +13 -13
- package/plugins/skills/context-markdown-indexer/tests/fixtures/routing.json +122 -0
- package/providers/context/actions/advance-current-indexer-lifecycle.yaml +6 -0
- package/providers/context/actions/configure-indexer-providers.yaml +1 -1
- package/providers/context/actions/materialize-indexer-workset-view.yaml +7 -0
- package/providers/context/actions/run-indexer-lifecycle.yaml +7 -0
- package/providers/context/actions/run-indexer-post-author-composer.yaml +1 -1
- package/providers/context/codes.yaml +9 -49
- package/providers/context/graphs/indexer.yaml +75 -592
- package/providers/context/graphs/workspace.yaml +25 -500
- package/providers/context/manifest.json +110 -1199
- package/providers/context/provider.yaml +2 -2
- package/providers/context/resources/diagnostics/projection-stale.md +0 -1
- package/providers/context/resources/dialogue/human-gates.md +3 -3
- package/providers/context/resources/manuals/reference/package-templates.md +2 -3
- package/providers/context/resources/manuals/reference/project-api.md +52 -985
- package/providers/context/resources/procedures/close-and-build.md +8 -23
- package/providers/context/resources/procedures/knowledge-review.md +13 -4
- package/providers/context/resources/procedures/source-capture-detailed.md +6 -8
- package/providers/context/resources/views/authorized-indexer-workset-view.yaml +15 -0
- package/providers/context/resources/views/package-current.yaml +1 -1
- package/providers/context/resources/views/resolved-indexer-instructions.yaml +1 -1
- package/providers/context/resources/views/review-current.yaml +1 -1
- package/providers/context/resources/views/source-boundary.yaml +1 -1
- package/providers/context/resources/views/source-current.yaml +1 -1
- package/providers/context/resources/views/verification-current.yaml +1 -1
- package/providers/context/resources/views/workspace-current.yaml +1 -1
- package/providers/context/schemas/indexer-agent-step-input.schema.json +2 -2
- package/providers/context/schemas/indexer-agent-step-result.schema.json +298 -32
- package/providers/context/schemas/indexer-authorized-workset-view.schema.json +65 -0
- package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +0 -42
- package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +27 -122
- package/providers/context/schemas/indexer-lifecycle-continuation.schema.json +15 -0
- package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +13 -20
- package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +17 -2
- package/providers/context/schemas/indexer-materialized-resource.schema.json +8 -1
- package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +55 -6
- package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +4 -4
- package/providers/context/schemas/indexer-workset-view-materialization-request.schema.json +32 -0
- package/providers/context/skills/configure-indexer-providers/SKILL.md +40 -27
- package/providers/context/skills/run-indexer-agent-step/SKILL.md +34 -8
- package/providers/context/skills/run-indexer-lifecycle/SKILL.md +37 -0
- package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +38 -9
- package/docs/document-optimization.md +0 -82
- package/docs/document-optimization.zh-CN.md +0 -70
- package/indexers/capability-manifest.json +0 -40
- package/indexers/contracts/hard-rule-conformance.json +0 -2644
- package/providers/context/actions/accept-main-index-run.yaml +0 -7
- package/providers/context/actions/accept-material-answer-run.yaml +0 -7
- package/providers/context/actions/accept-post-author-composer-run.yaml +0 -7
- package/providers/context/actions/actualize-material-answer-bindings.yaml +0 -8
- package/providers/context/actions/align-next.yaml +0 -6
- package/providers/context/actions/apply-code-index-guidance.yaml +0 -5
- package/providers/context/actions/apply-document-optimization-guidance.yaml +0 -5
- package/providers/context/actions/apply-structure-confirmation.yaml +0 -5
- package/providers/context/actions/audit-material-gap-state.yaml +0 -8
- package/providers/context/actions/audit-projected-artifact-fan-out.yaml +0 -8
- package/providers/context/actions/authorize-indexer-contract-overlay.yaml +0 -7
- package/providers/context/actions/build-main-index-author-worksets.yaml +0 -7
- package/providers/context/actions/build-main-index-catalog-fallback.yaml +0 -7
- package/providers/context/actions/build-main-index-partition-worksets.yaml +0 -7
- package/providers/context/actions/build-material-question-workset.yaml +0 -7
- package/providers/context/actions/build-post-author-composer-worksets.yaml +0 -7
- package/providers/context/actions/build-question-target-inventory.yaml +0 -7
- package/providers/context/actions/build-subject-catalog.yaml +0 -7
- package/providers/context/actions/build-target-resolution-views.yaml +0 -7
- package/providers/context/actions/checkpoint-material-answer-review.yaml +0 -8
- package/providers/context/actions/checkpoint-material-gaps.yaml +0 -8
- package/providers/context/actions/close-indexer-approved-knowledge.yaml +0 -8
- package/providers/context/actions/compile-next.yaml +0 -5
- package/providers/context/actions/compose-indexer-post-author-fragments.yaml +0 -7
- package/providers/context/actions/configure-code-extraction.yaml +0 -5
- package/providers/context/actions/configure-prose-lifecycle.yaml +0 -5
- package/providers/context/actions/converge-main-index-partition-run.yaml +0 -7
- package/providers/context/actions/evaluate-material-gaps.yaml +0 -8
- package/providers/context/actions/extract-next.yaml +0 -5
- package/providers/context/actions/fail-main-index-run.yaml +0 -7
- package/providers/context/actions/fail-material-answer-run.yaml +0 -7
- package/providers/context/actions/fail-post-author-composer-run.yaml +0 -7
- package/providers/context/actions/inspect-code-extraction.yaml +0 -5
- package/providers/context/actions/inspect-document-classification.yaml +0 -5
- package/providers/context/actions/inspect-index-candidate-review-readiness.yaml +0 -8
- package/providers/context/actions/inspect-index-profile-failure.yaml +0 -7
- package/providers/context/actions/inspect-material-answer-review.yaml +0 -8
- package/providers/context/actions/inspect-structure.yaml +0 -5
- package/providers/context/actions/migrate-codeindex.yaml +0 -5
- package/providers/context/actions/observe-main-index-run-ledger.yaml +0 -7
- package/providers/context/actions/observe-material-answer-runs.yaml +0 -7
- package/providers/context/actions/observe-post-author-composer-worksets.yaml +0 -7
- package/providers/context/actions/optimize-documents.yaml +0 -6
- package/providers/context/actions/override-index-profile-audit.yaml +0 -7
- package/providers/context/actions/prepare-main-index-run-ledger.yaml +0 -7
- package/providers/context/actions/prepare-material-answer-runs.yaml +0 -7
- package/providers/context/actions/preview-extraction-batch.yaml +0 -5
- package/providers/context/actions/reconcile-indexer-results.yaml +0 -7
- package/providers/context/actions/reconcile-review-identities.yaml +0 -5
- package/providers/context/actions/record-index-profile-revision.yaml +0 -7
- package/providers/context/actions/report-index-profile-failure.yaml +0 -7
- package/providers/context/actions/resolve-effective-composers.yaml +0 -7
- package/providers/context/actions/review-material-answer-candidate.yaml +0 -8
- package/providers/context/actions/revise-code-index-audit.yaml +0 -5
- package/providers/context/actions/revise-document.yaml +0 -5
- package/providers/context/actions/revise-index-output.yaml +0 -7
- package/providers/context/actions/run-material-answer-indexers.yaml +0 -7
- package/providers/context/actions/start-main-index-run.yaml +0 -7
- package/providers/context/actions/start-material-answer-run.yaml +0 -7
- package/providers/context/actions/start-post-author-composer-run.yaml +0 -7
- package/providers/context/actions/submit-code-index-audit.yaml +0 -6
- package/providers/context/resources/dialogue/code-extraction.md +0 -87
- package/providers/context/resources/dialogue/document-classification.md +0 -33
- package/providers/context/resources/dialogue/structure-confirmation.md +0 -44
- package/providers/context/resources/dialogue/workflow-mode-after-capture.md +0 -25
- package/providers/context/resources/manuals/reference/code-extractors.md +0 -152
- package/providers/context/resources/procedures/code-extraction.md +0 -188
- package/providers/context/resources/procedures/code-index-audit.md +0 -113
- package/providers/context/resources/procedures/document-classification.md +0 -22
- package/providers/context/resources/procedures/document-optimization.md +0 -110
- package/providers/context/resources/procedures/document-revision.md +0 -36
- package/providers/context/resources/procedures/prose-align.md +0 -68
- package/providers/context/resources/procedures/prose-compile.md +0 -23
- package/providers/context/resources/semantic/align/candidate-resolution.md +0 -106
- package/providers/context/resources/semantic/align/density-profile.md +0 -41
- package/providers/context/resources/semantic/align/gates.md +0 -276
- package/providers/context/resources/semantic/align/structure-planning.md +0 -337
- package/providers/context/resources/semantic/code-index/classification.md +0 -270
- package/providers/context/resources/semantic/code-index/templates/adapter.md +0 -118
- package/providers/context/resources/semantic/code-index/templates/api-service.md +0 -116
- package/providers/context/resources/semantic/code-index/templates/background-runtime.md +0 -109
- package/providers/context/resources/semantic/code-index/templates/cli-tool.md +0 -129
- package/providers/context/resources/semantic/code-index/templates/contract-source.md +0 -73
- package/providers/context/resources/semantic/code-index/templates/contracts-and-chains.md +0 -81
- package/providers/context/resources/semantic/code-index/templates/cross-module-chain.md +0 -78
- package/providers/context/resources/semantic/code-index/templates/derived-source.md +0 -116
- package/providers/context/resources/semantic/code-index/templates/domain-service.md +0 -109
- package/providers/context/resources/semantic/code-index/templates/event-flow.md +0 -62
- package/providers/context/resources/semantic/code-index/templates/monorepo-container.md +0 -124
- package/providers/context/resources/semantic/code-index/templates/persistence-boundary.md +0 -56
- package/providers/context/resources/semantic/code-index/templates/plugin-extension.md +0 -52
- package/providers/context/resources/semantic/code-index/templates/protocol-boundary.md +0 -88
- package/providers/context/resources/semantic/code-index/templates/sdk-library.md +0 -132
- package/providers/context/resources/semantic/code-index/templates/web-application.md +0 -145
- package/providers/context/resources/semantic/compile/index.md +0 -31
- package/providers/context/resources/views/code-index-audit.yaml +0 -6
- package/providers/context/resources/views/document-optimization-current.yaml +0 -6
- package/providers/context/resources/views/extraction-preview.yaml +0 -6
- package/providers/context/resources/views/structure-current.yaml +0 -6
- package/providers/context/schemas/code-index-audit-decision.schema.json +0 -94
- package/providers/context/schemas/document-optimization-decisions.schema.json +0 -57
- package/providers/context/schemas/indexer-candidate-review-readiness-input.schema.json +0 -46
- package/providers/context/schemas/indexer-candidate-review-readiness-output.schema.json +0 -104
- package/providers/context/schemas/indexer-contract-overlay-authorization-input.schema.json +0 -32
- package/providers/context/schemas/indexer-contract-overlay-authorization-result.schema.json +0 -121
- package/providers/context/schemas/indexer-material-answer-lifecycle-input.schema.json +0 -90
- package/providers/context/schemas/indexer-material-answer-lifecycle-output.schema.json +0 -80
- package/providers/context/schemas/indexer-material-answer-review-inspection-input.schema.json +0 -32
- package/providers/context/schemas/indexer-material-answer-review-inspection-output.schema.json +0 -32
- package/providers/context/schemas/indexer-material-answer-review-resolution-input.schema.json +0 -19
- package/providers/context/schemas/indexer-material-answer-review-resolution-output.schema.json +0 -87
- package/providers/context/schemas/indexer-material-gap-lifecycle-input.schema.json +0 -86
- package/providers/context/schemas/indexer-material-gap-lifecycle-output.schema.json +0 -19
- package/providers/context/schemas/indexer-post-author-fragment-result.schema.json +0 -18
- package/providers/context/schemas/indexer-post-author-lifecycle-input.schema.json +0 -94
- package/providers/context/schemas/indexer-post-author-lifecycle-output.schema.json +0 -72
- package/providers/context/schemas/indexer-profile-failure-inspection-input.schema.json +0 -13
- package/providers/context/schemas/indexer-profile-failure-inspection-result.schema.json +0 -19
- package/providers/context/schemas/indexer-profile-failure-report-input.schema.json +0 -22
- package/providers/context/schemas/indexer-profile-failure-report-result.schema.json +0 -49
- package/providers/context/schemas/indexer-profile-override-decision.schema.json +0 -20
- package/providers/context/schemas/indexer-profile-override-result.schema.json +0 -49
- package/providers/context/schemas/indexer-profile-revision-agent-input.schema.json +0 -18
- package/providers/context/schemas/indexer-profile-revision-record-input.schema.json +0 -31
- package/providers/context/schemas/indexer-profile-revision-record-result.schema.json +0 -45
- package/providers/context/schemas/indexer-result-reconciliation-input.schema.json +0 -59
- package/providers/context/schemas/indexer-result-reconciliation-output.schema.json +0 -43
- package/providers/context/schemas/prose-structure-batch.schema.json +0 -35
- package/providers/context/skills/revise-index-output/SKILL.md +0 -12
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.code-index-audit-decision.v1",
|
|
4
|
-
"title": "Context code-index Agent audit decision",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": [
|
|
8
|
-
"schema",
|
|
9
|
-
"report_digest",
|
|
10
|
-
"decision",
|
|
11
|
-
"summary",
|
|
12
|
-
"reviewed_units",
|
|
13
|
-
"scope_assessment",
|
|
14
|
-
"signal_assessments"
|
|
15
|
-
],
|
|
16
|
-
"properties": {
|
|
17
|
-
"schema": { "const": "context.code-index-audit-decision.v1" },
|
|
18
|
-
"report_digest": { "type": "string", "minLength": 1 },
|
|
19
|
-
"decision": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"enum": ["accept", "revise", "request-input"]
|
|
22
|
-
},
|
|
23
|
-
"summary": { "type": "string", "minLength": 1 },
|
|
24
|
-
"reviewed_units": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"minItems": 1,
|
|
27
|
-
"uniqueItems": true,
|
|
28
|
-
"items": { "type": "string", "minLength": 1 }
|
|
29
|
-
},
|
|
30
|
-
"scope_assessment": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"additionalProperties": false,
|
|
33
|
-
"required": ["matches_requested_scope", "omissions", "summary"],
|
|
34
|
-
"properties": {
|
|
35
|
-
"matches_requested_scope": { "type": "boolean" },
|
|
36
|
-
"omissions": {
|
|
37
|
-
"type": "array",
|
|
38
|
-
"uniqueItems": true,
|
|
39
|
-
"items": { "type": "string" }
|
|
40
|
-
},
|
|
41
|
-
"summary": { "type": "string", "minLength": 1 }
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"signal_assessments": {
|
|
45
|
-
"type": "array",
|
|
46
|
-
"items": {
|
|
47
|
-
"type": "object",
|
|
48
|
-
"additionalProperties": false,
|
|
49
|
-
"required": ["signal_id", "disposition", "reason"],
|
|
50
|
-
"properties": {
|
|
51
|
-
"signal_id": { "type": "string", "minLength": 1 },
|
|
52
|
-
"disposition": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"enum": ["fix", "acceptable", "not-applicable"]
|
|
55
|
-
},
|
|
56
|
-
"reason": { "type": "string", "minLength": 1 }
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"revision_plan": {
|
|
61
|
-
"type": "object",
|
|
62
|
-
"additionalProperties": false,
|
|
63
|
-
"required": ["units", "actions"],
|
|
64
|
-
"properties": {
|
|
65
|
-
"units": {
|
|
66
|
-
"type": "array",
|
|
67
|
-
"minItems": 1,
|
|
68
|
-
"uniqueItems": true,
|
|
69
|
-
"items": { "type": "string", "minLength": 1 }
|
|
70
|
-
},
|
|
71
|
-
"actions": {
|
|
72
|
-
"type": "array",
|
|
73
|
-
"minItems": 1,
|
|
74
|
-
"items": { "type": "string", "minLength": 1 }
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"requested_material": {
|
|
79
|
-
"type": "array",
|
|
80
|
-
"minItems": 1,
|
|
81
|
-
"items": { "type": "string", "minLength": 1 }
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"allOf": [
|
|
85
|
-
{
|
|
86
|
-
"if": { "properties": { "decision": { "const": "revise" } } },
|
|
87
|
-
"then": { "required": ["revision_plan"] }
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"if": { "properties": { "decision": { "const": "request-input" } } },
|
|
91
|
-
"then": { "required": ["requested_material"] }
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.document-optimization-decisions.v2",
|
|
4
|
-
"title": "Context source-constrained editorial revision decisions",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"required": ["schema", "decisions"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"schema": { "const": "context.document-optimization-decisions.v2" },
|
|
10
|
-
"decisions": {
|
|
11
|
-
"type": "array",
|
|
12
|
-
"items": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"additionalProperties": false,
|
|
15
|
-
"required": ["fragment_id", "input_digest", "context_digest", "policy_digest", "action"],
|
|
16
|
-
"properties": {
|
|
17
|
-
"fragment_id": { "type": "string", "minLength": 1 },
|
|
18
|
-
"input_digest": { "type": "string", "minLength": 1 },
|
|
19
|
-
"context_digest": { "type": "string", "minLength": 1 },
|
|
20
|
-
"policy_digest": { "type": "string", "minLength": 1 },
|
|
21
|
-
"action": {
|
|
22
|
-
"enum": ["keep", "repair", "reshape", "omit"],
|
|
23
|
-
"description": "Keep the Section, repair local presentation, reshape it within the same source boundary, or omit a mechanically eligible non-knowledge Section."
|
|
24
|
-
},
|
|
25
|
-
"replacement": { "type": "string" },
|
|
26
|
-
"assessment": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"minLength": 12,
|
|
29
|
-
"description": "Required when keeping a Section that has mechanical signals and when a repair or reshape retains review-confidence signals after rescan. Name every remaining signal code and explain why it is a false positive or why changing the Section would reduce source fidelity. Repair and reshape replacements cannot retain high-confidence signals. This value is decision-only and is not published."
|
|
30
|
-
},
|
|
31
|
-
"reason": {
|
|
32
|
-
"enum": [
|
|
33
|
-
"unanswered-question",
|
|
34
|
-
"empty-or-placeholder",
|
|
35
|
-
"draft-without-decision",
|
|
36
|
-
"duplicate-content",
|
|
37
|
-
"obsolete-without-replacement",
|
|
38
|
-
"volatile-reference",
|
|
39
|
-
"sensitive-value-candidate",
|
|
40
|
-
"conversion-artifact"
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"allOf": [
|
|
45
|
-
{
|
|
46
|
-
"if": { "properties": { "action": { "enum": ["repair", "reshape"] } } },
|
|
47
|
-
"then": { "required": ["replacement"] }
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"if": { "properties": { "action": { "const": "omit" } } },
|
|
51
|
-
"then": { "required": ["reason"] }
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.candidate-review-readiness-input/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": [
|
|
7
|
-
"protocol",
|
|
8
|
-
"binding",
|
|
9
|
-
"precompile_audit_report_digest",
|
|
10
|
-
"postcompile_audit_report_digest",
|
|
11
|
-
"profile_override_receipt_digest",
|
|
12
|
-
"input_digest"
|
|
13
|
-
],
|
|
14
|
-
"properties": {
|
|
15
|
-
"protocol": { "const": "context.indexer.candidate-review-readiness-input/v1" },
|
|
16
|
-
"binding": {
|
|
17
|
-
"type": "object",
|
|
18
|
-
"additionalProperties": false,
|
|
19
|
-
"required": [
|
|
20
|
-
"requirement_set_digest",
|
|
21
|
-
"registry_digest",
|
|
22
|
-
"inventory_digest",
|
|
23
|
-
"layout_digest",
|
|
24
|
-
"candidate_set_digest",
|
|
25
|
-
"effective_revision_digest"
|
|
26
|
-
],
|
|
27
|
-
"properties": {
|
|
28
|
-
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
29
|
-
"registry_digest": { "$ref": "#/$defs/digest" },
|
|
30
|
-
"inventory_digest": { "$ref": "#/$defs/digest" },
|
|
31
|
-
"layout_digest": { "$ref": "#/$defs/digest" },
|
|
32
|
-
"candidate_set_digest": { "$ref": "#/$defs/digest" },
|
|
33
|
-
"effective_revision_digest": { "$ref": "#/$defs/digest" }
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"precompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
37
|
-
"postcompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
38
|
-
"profile_override_receipt_digest": {
|
|
39
|
-
"oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }]
|
|
40
|
-
},
|
|
41
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
42
|
-
},
|
|
43
|
-
"$defs": {
|
|
44
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.candidate-review-readiness-result/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": [
|
|
7
|
-
"protocol",
|
|
8
|
-
"state",
|
|
9
|
-
"binding",
|
|
10
|
-
"precompile_audit_report_digest",
|
|
11
|
-
"postcompile_audit_report_digest",
|
|
12
|
-
"baseline_failed_check_ids",
|
|
13
|
-
"profile_state",
|
|
14
|
-
"profile_failed_metric_ids",
|
|
15
|
-
"profile_override_receipt_digest",
|
|
16
|
-
"profile_override_applied",
|
|
17
|
-
"audit_facts",
|
|
18
|
-
"review_binding_digest",
|
|
19
|
-
"graph_outcome",
|
|
20
|
-
"result_digest",
|
|
21
|
-
"reason_code"
|
|
22
|
-
],
|
|
23
|
-
"properties": {
|
|
24
|
-
"protocol": { "const": "context.indexer.candidate-review-readiness-result/v1" },
|
|
25
|
-
"state": { "enum": ["ready", "baseline-blocked", "profile-blocked"] },
|
|
26
|
-
"binding": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"additionalProperties": false,
|
|
29
|
-
"required": [
|
|
30
|
-
"requirement_set_digest",
|
|
31
|
-
"registry_digest",
|
|
32
|
-
"inventory_digest",
|
|
33
|
-
"layout_digest",
|
|
34
|
-
"candidate_set_digest",
|
|
35
|
-
"effective_revision_digest"
|
|
36
|
-
],
|
|
37
|
-
"properties": {
|
|
38
|
-
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
39
|
-
"registry_digest": { "$ref": "#/$defs/digest" },
|
|
40
|
-
"inventory_digest": { "$ref": "#/$defs/digest" },
|
|
41
|
-
"layout_digest": { "$ref": "#/$defs/digest" },
|
|
42
|
-
"candidate_set_digest": { "$ref": "#/$defs/digest" },
|
|
43
|
-
"effective_revision_digest": { "$ref": "#/$defs/digest" }
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"precompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
47
|
-
"postcompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
48
|
-
"baseline_failed_check_ids": {
|
|
49
|
-
"type": "array",
|
|
50
|
-
"uniqueItems": true,
|
|
51
|
-
"items": { "type": "string", "minLength": 1 }
|
|
52
|
-
},
|
|
53
|
-
"profile_state": {
|
|
54
|
-
"enum": ["not-applicable", "passed", "revision-required", "human-guidance-required"]
|
|
55
|
-
},
|
|
56
|
-
"profile_failed_metric_ids": {
|
|
57
|
-
"type": "array",
|
|
58
|
-
"uniqueItems": true,
|
|
59
|
-
"items": { "type": "string", "minLength": 1 }
|
|
60
|
-
},
|
|
61
|
-
"profile_override_receipt_digest": {
|
|
62
|
-
"oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }]
|
|
63
|
-
},
|
|
64
|
-
"profile_override_applied": { "type": "boolean" },
|
|
65
|
-
"audit_facts": { "$ref": "#/$defs/auditFacts" },
|
|
66
|
-
"review_binding_digest": { "$ref": "#/$defs/digest" },
|
|
67
|
-
"graph_outcome": { "enum": ["completed", "failed", "blocked"] },
|
|
68
|
-
"result_digest": { "$ref": "#/$defs/digest" },
|
|
69
|
-
"reason_code": {
|
|
70
|
-
"enum": [
|
|
71
|
-
"index-review-required",
|
|
72
|
-
"index-baseline-audit-failed",
|
|
73
|
-
"index-profile-revision-required",
|
|
74
|
-
"index-profile-human-guidance-required"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"$defs": {
|
|
79
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
80
|
-
"auditFacts": {
|
|
81
|
-
"type": "object",
|
|
82
|
-
"additionalProperties": false,
|
|
83
|
-
"required": ["protocol", "audit", "facts_digest"],
|
|
84
|
-
"properties": {
|
|
85
|
-
"protocol": { "const": "context.indexer.audit-facts/v1" },
|
|
86
|
-
"audit": {
|
|
87
|
-
"type": "object",
|
|
88
|
-
"additionalProperties": false,
|
|
89
|
-
"required": ["baseline_clear", "profile_state", "problem_lineage_id", "profile_attempt_count", "profile_report_digest", "profile_override_eligible", "profile_override_receipt_digest"],
|
|
90
|
-
"properties": {
|
|
91
|
-
"baseline_clear": { "type": "boolean" },
|
|
92
|
-
"profile_state": { "enum": ["not-applicable", "passed", "revision-required", "human-guidance-required"] },
|
|
93
|
-
"problem_lineage_id": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] },
|
|
94
|
-
"profile_attempt_count": { "type": "integer", "minimum": 0, "maximum": 3 },
|
|
95
|
-
"profile_report_digest": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] },
|
|
96
|
-
"profile_override_eligible": { "type": "boolean" },
|
|
97
|
-
"profile_override_receipt_digest": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] }
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"facts_digest": { "$ref": "#/$defs/digest" }
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.contract-overlay-authorization-input/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": [
|
|
7
|
-
"protocol",
|
|
8
|
-
"validation_input",
|
|
9
|
-
"expected_conformance_report_digest",
|
|
10
|
-
"authority_ref",
|
|
11
|
-
"authority_scope_digest",
|
|
12
|
-
"input_digest"
|
|
13
|
-
],
|
|
14
|
-
"properties": {
|
|
15
|
-
"protocol": { "const": "context.indexer.contract-overlay-authorization-input/v1" },
|
|
16
|
-
"validation_input": {
|
|
17
|
-
"type": "object",
|
|
18
|
-
"required": ["protocol", "input_digest"],
|
|
19
|
-
"properties": {
|
|
20
|
-
"protocol": { "const": "context.indexer.contract-overlay-validation-input/v1" },
|
|
21
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"expected_conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
25
|
-
"authority_ref": { "type": "string", "minLength": 1 },
|
|
26
|
-
"authority_scope_digest": { "$ref": "#/$defs/digest" },
|
|
27
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
28
|
-
},
|
|
29
|
-
"$defs": {
|
|
30
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.contract-overlay-authorization-result/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": [
|
|
7
|
-
"protocol",
|
|
8
|
-
"trusted_validation_input",
|
|
9
|
-
"validation",
|
|
10
|
-
"project_authorization",
|
|
11
|
-
"result_digest"
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"protocol": { "const": "context.indexer.contract-overlay-authorization-result/v1" },
|
|
15
|
-
"trusted_validation_input": {
|
|
16
|
-
"type": "object",
|
|
17
|
-
"required": ["protocol", "project_authorization", "input_digest"],
|
|
18
|
-
"properties": {
|
|
19
|
-
"protocol": { "const": "context.indexer.contract-overlay-validation-input/v1" },
|
|
20
|
-
"project_authorization": { "type": "object" },
|
|
21
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"validation": {
|
|
25
|
-
"type": "object",
|
|
26
|
-
"required": [
|
|
27
|
-
"protocol",
|
|
28
|
-
"outcome",
|
|
29
|
-
"graph_outcome",
|
|
30
|
-
"validation_input_digest",
|
|
31
|
-
"trust_receipt",
|
|
32
|
-
"result_digest"
|
|
33
|
-
],
|
|
34
|
-
"properties": {
|
|
35
|
-
"protocol": { "const": "context.indexer.contract-overlay-validation-result/v1" },
|
|
36
|
-
"outcome": { "const": "trusted" },
|
|
37
|
-
"graph_outcome": { "const": "completed" },
|
|
38
|
-
"validation_input_digest": { "$ref": "#/$defs/digest" },
|
|
39
|
-
"trust_receipt": {
|
|
40
|
-
"type": "object",
|
|
41
|
-
"additionalProperties": false,
|
|
42
|
-
"required": [
|
|
43
|
-
"protocol",
|
|
44
|
-
"trust_class",
|
|
45
|
-
"project_ref",
|
|
46
|
-
"overlay_digest",
|
|
47
|
-
"attestation_digest",
|
|
48
|
-
"base_contract_digest",
|
|
49
|
-
"provider_integrity",
|
|
50
|
-
"operator_contract_digest",
|
|
51
|
-
"conformance_report_digest",
|
|
52
|
-
"trust_adapter",
|
|
53
|
-
"trust_adapter_version",
|
|
54
|
-
"trust_management_authority_digest",
|
|
55
|
-
"trust_policy_digest",
|
|
56
|
-
"authorization_receipt_digest",
|
|
57
|
-
"receipt_digest"
|
|
58
|
-
],
|
|
59
|
-
"properties": {
|
|
60
|
-
"protocol": { "const": "context.indexer.overlay-trust-receipt/v1" },
|
|
61
|
-
"trust_class": { "const": "project-authorized-exact-digest" },
|
|
62
|
-
"project_ref": { "type": "string", "minLength": 1 },
|
|
63
|
-
"overlay_digest": { "$ref": "#/$defs/digest" },
|
|
64
|
-
"attestation_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
65
|
-
"base_contract_digest": { "$ref": "#/$defs/digest" },
|
|
66
|
-
"provider_integrity": { "$ref": "#/$defs/digest" },
|
|
67
|
-
"operator_contract_digest": { "$ref": "#/$defs/digest" },
|
|
68
|
-
"conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
69
|
-
"trust_adapter": { "type": "null" },
|
|
70
|
-
"trust_adapter_version": { "type": "null" },
|
|
71
|
-
"trust_management_authority_digest": { "type": "null" },
|
|
72
|
-
"trust_policy_digest": { "type": "null" },
|
|
73
|
-
"authorization_receipt_digest": { "$ref": "#/$defs/digest" },
|
|
74
|
-
"receipt_digest": { "$ref": "#/$defs/digest" }
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"result_digest": { "$ref": "#/$defs/digest" }
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"project_authorization": {
|
|
81
|
-
"type": "object",
|
|
82
|
-
"additionalProperties": false,
|
|
83
|
-
"required": [
|
|
84
|
-
"protocol",
|
|
85
|
-
"project_ref",
|
|
86
|
-
"overlay_digest",
|
|
87
|
-
"attestation_digest",
|
|
88
|
-
"base_contract_digest",
|
|
89
|
-
"provider_integrity",
|
|
90
|
-
"operator_contract_digest",
|
|
91
|
-
"conformance_report_digest",
|
|
92
|
-
"authority_ref",
|
|
93
|
-
"authority_scope_digest",
|
|
94
|
-
"authorization_receipt_digest"
|
|
95
|
-
],
|
|
96
|
-
"properties": {
|
|
97
|
-
"protocol": { "const": "context.indexer.overlay-project-authorization/v1" },
|
|
98
|
-
"project_ref": { "type": "string", "minLength": 1 },
|
|
99
|
-
"overlay_digest": { "$ref": "#/$defs/digest" },
|
|
100
|
-
"attestation_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
101
|
-
"base_contract_digest": { "$ref": "#/$defs/digest" },
|
|
102
|
-
"provider_integrity": { "$ref": "#/$defs/digest" },
|
|
103
|
-
"operator_contract_digest": { "$ref": "#/$defs/digest" },
|
|
104
|
-
"conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
105
|
-
"authority_ref": { "const": "context.indexer-contract-overlay" },
|
|
106
|
-
"authority_scope_digest": { "$ref": "#/$defs/digest" },
|
|
107
|
-
"authorization_receipt_digest": { "$ref": "#/$defs/digest" }
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"result_digest": { "$ref": "#/$defs/digest" }
|
|
111
|
-
},
|
|
112
|
-
"$defs": {
|
|
113
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
114
|
-
"nullableDigest": {
|
|
115
|
-
"oneOf": [
|
|
116
|
-
{ "type": "null" },
|
|
117
|
-
{ "$ref": "#/$defs/digest" }
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
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
|
-
}
|