@c4a/context-cli 0.7.1 → 0.7.5
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 +64945 -81995
- 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 +12 -2
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +56 -107
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +56 -107
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +56 -107
- package/plugins/skills/context/SKILL.md +56 -107
- 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/authorize-current-indexer-provider-program.yaml +6 -0
- package/providers/context/actions/configure-indexer-providers.yaml +1 -1
- package/providers/context/actions/finalize-current-indexer-provider-selection.yaml +5 -0
- package/providers/context/actions/materialize-indexer-workset-view.yaml +7 -0
- package/providers/context/actions/resolve-current-indexer-gate.yaml +6 -0
- package/providers/context/actions/resolve-current-indexer-provider.yaml +6 -0
- package/providers/context/actions/run-indexer-lifecycle.yaml +0 -1
- package/providers/context/actions/run-indexer-post-author-composer.yaml +2 -2
- package/providers/context/codes.yaml +8 -22
- package/providers/context/graphs/indexer.yaml +95 -564
- package/providers/context/graphs/workspace.yaml +5 -43
- package/providers/context/manifest.json +119 -678
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/dialogue/human-gates.md +3 -3
- package/providers/context/resources/dialogue/knowledge-review.md +6 -3
- package/providers/context/resources/manuals/reference/package-templates.md +2 -3
- package/providers/context/resources/manuals/reference/project-api.md +52 -986
- package/providers/context/resources/procedures/close-and-build.md +8 -23
- package/providers/context/resources/procedures/knowledge-review.md +17 -5
- 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/resolved-indexer-instructions.yaml +2 -4
- package/providers/context/schemas/indexer-agent-step-input.schema.json +71 -21
- package/providers/context/schemas/indexer-agent-step-result.schema.json +385 -32
- package/providers/context/schemas/indexer-authorized-workset-view.schema.json +65 -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-materialize-request.schema.json +4 -8
- package/providers/context/schemas/indexer-materialized-resource.schema.json +8 -1
- package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +51 -2
- package/providers/context/schemas/indexer-workset-view-materialization-request.schema.json +35 -0
- package/providers/context/skills/authorize-current-indexer-provider-program/SKILL.md +20 -0
- package/providers/context/skills/configure-indexer-providers/SKILL.md +47 -33
- package/providers/context/skills/resolve-current-indexer-gate/SKILL.md +27 -0
- package/providers/context/skills/resolve-current-indexer-provider/SKILL.md +20 -0
- package/providers/context/skills/run-indexer-agent-step/SKILL.md +49 -10
- package/providers/context/skills/run-indexer-lifecycle/SKILL.md +19 -13
- package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +52 -11
- package/docs/document-optimization.md +0 -82
- package/docs/document-optimization.zh-CN.md +0 -70
- package/indexers/capability-manifest.json +0 -35
- 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/audit-material-gap-state.yaml +0 -8
- package/providers/context/actions/audit-projected-artifact-fan-out.yaml +0 -8
- 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/compose-indexer-post-author-fragments.yaml +0 -7
- 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/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-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/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/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/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-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/resources/procedures/document-revision.md +0 -36
- package/providers/context/resources/views/document-optimization-current.yaml +0 -6
- 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-lifecycle-continuation.schema.json +0 -15
- 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-request.schema.json +0 -26
- 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/skills/revise-index-output/SKILL.md +0 -12
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.post-author-lifecycle-output/v1",
|
|
4
|
-
"oneOf": [
|
|
5
|
-
{
|
|
6
|
-
"type": "object",
|
|
7
|
-
"required": ["protocol", "entries", "effective_composer_set_digest"],
|
|
8
|
-
"properties": {
|
|
9
|
-
"protocol": { "const": "context.indexer.effective-composer-set/v1" },
|
|
10
|
-
"entries": { "type": "array" },
|
|
11
|
-
"effective_composer_set_digest": { "$ref": "#/$defs/digest" }
|
|
12
|
-
},
|
|
13
|
-
"additionalProperties": false
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "object",
|
|
17
|
-
"required": ["protocol", "plan", "ledger", "status", "expected_envelope"],
|
|
18
|
-
"properties": {
|
|
19
|
-
"protocol": { "const": "context.indexer.post-author-workset-build/v1" },
|
|
20
|
-
"plan": { "type": "object" },
|
|
21
|
-
"ledger": { "type": "object" },
|
|
22
|
-
"status": { "type": "object" },
|
|
23
|
-
"expected_envelope": { "type": ["object", "null"] }
|
|
24
|
-
},
|
|
25
|
-
"additionalProperties": false
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"type": "object",
|
|
29
|
-
"required": ["protocol", "ledger", "request"],
|
|
30
|
-
"properties": {
|
|
31
|
-
"protocol": { "const": "context.indexer.post-author-run-start/v1" },
|
|
32
|
-
"ledger": { "type": "object" },
|
|
33
|
-
"request": { "type": "object" }
|
|
34
|
-
},
|
|
35
|
-
"additionalProperties": false
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"type": "object",
|
|
39
|
-
"required": ["protocol", "ledger"],
|
|
40
|
-
"properties": {
|
|
41
|
-
"protocol": { "enum": ["context.indexer.post-author-run-acceptance/v1", "context.indexer.post-author-run-failure/v1"] },
|
|
42
|
-
"ledger": { "type": "object" }
|
|
43
|
-
},
|
|
44
|
-
"additionalProperties": false
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"type": "object",
|
|
48
|
-
"required": ["protocol", "ledger", "status", "expected_envelope"],
|
|
49
|
-
"properties": {
|
|
50
|
-
"protocol": { "const": "context.indexer.post-author-observation/v1" },
|
|
51
|
-
"ledger": { "type": "object" },
|
|
52
|
-
"status": { "type": "object" },
|
|
53
|
-
"expected_envelope": { "type": ["object", "null"] }
|
|
54
|
-
},
|
|
55
|
-
"additionalProperties": false
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"type": "object",
|
|
59
|
-
"required": ["protocol", "envelope", "ledger", "status"],
|
|
60
|
-
"properties": {
|
|
61
|
-
"protocol": { "const": "context.indexer.post-author-composition/v1" },
|
|
62
|
-
"envelope": { "type": "object" },
|
|
63
|
-
"ledger": { "type": "object" },
|
|
64
|
-
"status": { "type": "object" }
|
|
65
|
-
},
|
|
66
|
-
"additionalProperties": false
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"$defs": {
|
|
70
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-failure-inspection-input/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "failure_report_digest", "input_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-failure-inspection-input/v1" },
|
|
9
|
-
"failure_report_digest": { "$ref": "#/$defs/digest" },
|
|
10
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
11
|
-
},
|
|
12
|
-
"$defs": { "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } }
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-failure-inspection-result/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "state", "failure_report", "failed_metric_ids", "capability_losses", "options", "graph_outcome", "reason_code", "result_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-failure-inspection-result/v1" },
|
|
9
|
-
"state": { "const": "explicit-decision-required" },
|
|
10
|
-
"failure_report": { "type": "object" },
|
|
11
|
-
"failed_metric_ids": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
12
|
-
"capability_losses": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
13
|
-
"options": { "type": "array", "minItems": 3, "items": { "type": "string" } },
|
|
14
|
-
"graph_outcome": { "const": "completed" },
|
|
15
|
-
"reason_code": { "const": "index-profile-explicit-override-required" },
|
|
16
|
-
"result_digest": { "$ref": "#/$defs/digest" }
|
|
17
|
-
},
|
|
18
|
-
"$defs": { "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } }
|
|
19
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-failure-report-input/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "lineage_id", "precompile_audit_report_digest", "audit_report_digest", "expected_ledger_digest", "module_profiles", "expected_artifacts", "metrics", "likely_missing_inputs", "capability_losses", "options", "input_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-failure-report-input/v1" },
|
|
9
|
-
"lineage_id": { "$ref": "#/$defs/digest" },
|
|
10
|
-
"precompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
11
|
-
"audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
12
|
-
"expected_ledger_digest": { "$ref": "#/$defs/digest" },
|
|
13
|
-
"module_profiles": { "type": "array", "minItems": 1, "items": { "type": "object" } },
|
|
14
|
-
"expected_artifacts": { "type": "array", "minItems": 1, "items": { "type": "object" } },
|
|
15
|
-
"metrics": { "type": "array", "minItems": 1, "items": { "type": "object" } },
|
|
16
|
-
"likely_missing_inputs": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
17
|
-
"capability_losses": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
18
|
-
"options": { "type": "array", "minItems": 3, "uniqueItems": true, "items": { "enum": ["provide-material", "change-scope", "correct-classification", "force-approve-risk"] } },
|
|
19
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
20
|
-
},
|
|
21
|
-
"$defs": { "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } }
|
|
22
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-failure-report-result/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "state", "lineage_id", "precompile_audit_report_digest", "audit_report_digest", "failure_report_digest", "failed_metric_ids", "attempts", "capability_losses", "options", "audit_facts", "graph_outcome", "reason_code", "result_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-failure-report-result/v1" },
|
|
9
|
-
"state": { "const": "explicit-decision-required" },
|
|
10
|
-
"lineage_id": { "$ref": "#/$defs/digest" },
|
|
11
|
-
"precompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
12
|
-
"audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
13
|
-
"failure_report_digest": { "$ref": "#/$defs/digest" },
|
|
14
|
-
"failed_metric_ids": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
15
|
-
"attempts": { "type": "array", "minItems": 3, "maxItems": 3, "items": { "$ref": "#/$defs/digest" } },
|
|
16
|
-
"capability_losses": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
17
|
-
"options": { "type": "array", "minItems": 3, "items": { "type": "string" } },
|
|
18
|
-
"audit_facts": { "$ref": "#/$defs/auditFacts" },
|
|
19
|
-
"graph_outcome": { "const": "completed" },
|
|
20
|
-
"reason_code": { "const": "index-profile-explicit-override-required" },
|
|
21
|
-
"result_digest": { "$ref": "#/$defs/digest" }
|
|
22
|
-
},
|
|
23
|
-
"$defs": {
|
|
24
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
25
|
-
"auditFacts": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"additionalProperties": false,
|
|
28
|
-
"required": ["protocol", "audit", "facts_digest"],
|
|
29
|
-
"properties": {
|
|
30
|
-
"protocol": { "const": "context.indexer.audit-facts/v1" },
|
|
31
|
-
"audit": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"additionalProperties": false,
|
|
34
|
-
"required": ["baseline_clear", "profile_state", "problem_lineage_id", "profile_attempt_count", "profile_report_digest", "profile_override_eligible", "profile_override_receipt_digest"],
|
|
35
|
-
"properties": {
|
|
36
|
-
"baseline_clear": { "type": "boolean" },
|
|
37
|
-
"profile_state": { "enum": ["not-applicable", "passed", "revision-required", "human-guidance-required"] },
|
|
38
|
-
"problem_lineage_id": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] },
|
|
39
|
-
"profile_attempt_count": { "type": "integer", "minimum": 0, "maximum": 3 },
|
|
40
|
-
"profile_report_digest": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] },
|
|
41
|
-
"profile_override_eligible": { "type": "boolean" },
|
|
42
|
-
"profile_override_receipt_digest": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] }
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"facts_digest": { "$ref": "#/$defs/digest" }
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-override-decision/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "failure_report_digest", "audit_report_digest", "binding", "indexer_result_fingerprint", "failed_metric_ids", "decision", "confirmed_by", "confirmed_at", "decision_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-override-decision/v1" },
|
|
9
|
-
"failure_report_digest": { "$ref": "#/$defs/digest" },
|
|
10
|
-
"audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
11
|
-
"binding": { "type": "object" },
|
|
12
|
-
"indexer_result_fingerprint": { "$ref": "#/$defs/digest" },
|
|
13
|
-
"failed_metric_ids": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
14
|
-
"decision": { "const": "force-approve-profile-risk" },
|
|
15
|
-
"confirmed_by": { "type": "string", "minLength": 1 },
|
|
16
|
-
"confirmed_at": { "type": "string", "format": "date-time" },
|
|
17
|
-
"decision_digest": { "$ref": "#/$defs/digest" }
|
|
18
|
-
},
|
|
19
|
-
"$defs": { "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } }
|
|
20
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-override-result/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "state", "failure_report_digest", "precompile_audit_report_digest", "audit_report_digest", "profile_override_receipt_digest", "indexer_result_fingerprint", "failed_metric_ids", "confirmed_by", "confirmed_at", "audit_facts", "graph_outcome", "reason_code", "result_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-override-result/v1" },
|
|
9
|
-
"state": { "const": "profile-risk-overridden" },
|
|
10
|
-
"failure_report_digest": { "$ref": "#/$defs/digest" },
|
|
11
|
-
"precompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
12
|
-
"audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
13
|
-
"profile_override_receipt_digest": { "$ref": "#/$defs/digest" },
|
|
14
|
-
"indexer_result_fingerprint": { "$ref": "#/$defs/digest" },
|
|
15
|
-
"failed_metric_ids": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
16
|
-
"confirmed_by": { "type": "string", "minLength": 1 },
|
|
17
|
-
"confirmed_at": { "type": "string", "format": "date-time" },
|
|
18
|
-
"audit_facts": { "$ref": "#/$defs/auditFacts" },
|
|
19
|
-
"graph_outcome": { "const": "completed" },
|
|
20
|
-
"reason_code": { "const": "index-profile-override-recorded" },
|
|
21
|
-
"result_digest": { "$ref": "#/$defs/digest" }
|
|
22
|
-
},
|
|
23
|
-
"$defs": {
|
|
24
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
25
|
-
"auditFacts": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"additionalProperties": false,
|
|
28
|
-
"required": ["protocol", "audit", "facts_digest"],
|
|
29
|
-
"properties": {
|
|
30
|
-
"protocol": { "const": "context.indexer.audit-facts/v1" },
|
|
31
|
-
"audit": {
|
|
32
|
-
"type": "object",
|
|
33
|
-
"additionalProperties": false,
|
|
34
|
-
"required": ["baseline_clear", "profile_state", "problem_lineage_id", "profile_attempt_count", "profile_report_digest", "profile_override_eligible", "profile_override_receipt_digest"],
|
|
35
|
-
"properties": {
|
|
36
|
-
"baseline_clear": { "type": "boolean" },
|
|
37
|
-
"profile_state": { "enum": ["not-applicable", "passed", "revision-required", "human-guidance-required"] },
|
|
38
|
-
"problem_lineage_id": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] },
|
|
39
|
-
"profile_attempt_count": { "type": "integer", "minimum": 0, "maximum": 3 },
|
|
40
|
-
"profile_report_digest": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] },
|
|
41
|
-
"profile_override_eligible": { "type": "boolean" },
|
|
42
|
-
"profile_override_receipt_digest": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] }
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"facts_digest": { "$ref": "#/$defs/digest" }
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-revision-agent-input/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "lineage", "precompile_audit_report_digest", "audit_report_digest", "failed_metric_ids", "current_result_fingerprint", "expected_ledger_digest", "input_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-revision-agent-input/v1" },
|
|
9
|
-
"lineage": { "type": "object" },
|
|
10
|
-
"precompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
11
|
-
"audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
12
|
-
"failed_metric_ids": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
13
|
-
"current_result_fingerprint": { "$ref": "#/$defs/digest" },
|
|
14
|
-
"expected_ledger_digest": { "$ref": "#/$defs/digest" },
|
|
15
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
16
|
-
},
|
|
17
|
-
"$defs": { "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } }
|
|
18
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-revision-record-input/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "lineage", "precompile_audit_report_digest", "audit_report_digest", "indexer_result_fingerprint", "actions_taken", "unresolved_reasons", "expected_ledger_digest", "input_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-revision-record-input/v1" },
|
|
9
|
-
"lineage": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"additionalProperties": false,
|
|
12
|
-
"required": ["protocol", "requirement_lineage_id", "source_material_epoch", "unit_ref", "problem_class", "lineage_id"],
|
|
13
|
-
"properties": {
|
|
14
|
-
"protocol": { "const": "context.indexer.profile-problem-lineage/v1" },
|
|
15
|
-
"requirement_lineage_id": { "$ref": "#/$defs/digest" },
|
|
16
|
-
"source_material_epoch": { "$ref": "#/$defs/digest" },
|
|
17
|
-
"unit_ref": { "type": "string", "minLength": 1 },
|
|
18
|
-
"problem_class": { "type": "string", "minLength": 1 },
|
|
19
|
-
"lineage_id": { "$ref": "#/$defs/digest" }
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"precompile_audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
23
|
-
"audit_report_digest": { "$ref": "#/$defs/digest" },
|
|
24
|
-
"indexer_result_fingerprint": { "$ref": "#/$defs/digest" },
|
|
25
|
-
"actions_taken": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
26
|
-
"unresolved_reasons": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1 } },
|
|
27
|
-
"expected_ledger_digest": { "$ref": "#/$defs/digest" },
|
|
28
|
-
"input_digest": { "$ref": "#/$defs/digest" }
|
|
29
|
-
},
|
|
30
|
-
"$defs": { "digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } }
|
|
31
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.profile-revision-record-result/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"additionalProperties": false,
|
|
6
|
-
"required": ["protocol", "state", "lineage_id", "attempt", "attempt_digest", "ledger_digest", "audit_facts", "graph_outcome", "reason_code", "result_digest"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"protocol": { "const": "context.indexer.profile-revision-record-result/v1" },
|
|
9
|
-
"state": { "enum": ["revision-required", "human-report-required"] },
|
|
10
|
-
"lineage_id": { "$ref": "#/$defs/digest" },
|
|
11
|
-
"attempt": { "type": "integer", "minimum": 1, "maximum": 3 },
|
|
12
|
-
"attempt_digest": { "$ref": "#/$defs/digest" },
|
|
13
|
-
"ledger_digest": { "$ref": "#/$defs/digest" },
|
|
14
|
-
"audit_facts": { "$ref": "#/$defs/auditFacts" },
|
|
15
|
-
"graph_outcome": { "enum": ["partial", "completed"] },
|
|
16
|
-
"reason_code": { "enum": ["index-profile-revision-required", "index-profile-human-report-required"] },
|
|
17
|
-
"result_digest": { "$ref": "#/$defs/digest" }
|
|
18
|
-
},
|
|
19
|
-
"$defs": {
|
|
20
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
21
|
-
"auditFacts": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"additionalProperties": false,
|
|
24
|
-
"required": ["protocol", "audit", "facts_digest"],
|
|
25
|
-
"properties": {
|
|
26
|
-
"protocol": { "const": "context.indexer.audit-facts/v1" },
|
|
27
|
-
"audit": {
|
|
28
|
-
"type": "object",
|
|
29
|
-
"additionalProperties": false,
|
|
30
|
-
"required": ["baseline_clear", "profile_state", "problem_lineage_id", "profile_attempt_count", "profile_report_digest", "profile_override_eligible", "profile_override_receipt_digest"],
|
|
31
|
-
"properties": {
|
|
32
|
-
"baseline_clear": { "type": "boolean" },
|
|
33
|
-
"profile_state": { "enum": ["not-applicable", "passed", "revision-required", "human-guidance-required"] },
|
|
34
|
-
"problem_lineage_id": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] },
|
|
35
|
-
"profile_attempt_count": { "type": "integer", "minimum": 0, "maximum": 3 },
|
|
36
|
-
"profile_report_digest": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] },
|
|
37
|
-
"profile_override_eligible": { "type": "boolean" },
|
|
38
|
-
"profile_override_receipt_digest": { "oneOf": [{ "$ref": "#/$defs/digest" }, { "type": "null" }] }
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"facts_digest": { "$ref": "#/$defs/digest" }
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.result-reconciliation-input/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": [
|
|
6
|
-
"protocol",
|
|
7
|
-
"requirement_set_digest",
|
|
8
|
-
"question_target_inventory",
|
|
9
|
-
"resolved_questions",
|
|
10
|
-
"target_facts",
|
|
11
|
-
"allowed_selector_fact_paths",
|
|
12
|
-
"registered_material_sources"
|
|
13
|
-
],
|
|
14
|
-
"properties": {
|
|
15
|
-
"protocol": { "const": "context.indexer.result-reconciliation-input/v1" },
|
|
16
|
-
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
17
|
-
"question_target_inventory": { "type": "object" },
|
|
18
|
-
"resolved_questions": {
|
|
19
|
-
"type": "array",
|
|
20
|
-
"items": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"required": ["requirement_ref", "question"],
|
|
23
|
-
"properties": {
|
|
24
|
-
"requirement_ref": { "type": "string", "minLength": 1 },
|
|
25
|
-
"question": { "type": "object" }
|
|
26
|
-
},
|
|
27
|
-
"additionalProperties": false
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"target_facts": { "type": "object" },
|
|
31
|
-
"allowed_selector_fact_paths": {
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": { "type": "string", "minLength": 1 },
|
|
34
|
-
"uniqueItems": true
|
|
35
|
-
},
|
|
36
|
-
"registered_material_sources": {
|
|
37
|
-
"type": "array",
|
|
38
|
-
"items": {
|
|
39
|
-
"type": "object",
|
|
40
|
-
"required": ["source_ref", "source_input_digest", "evidence_kinds"],
|
|
41
|
-
"properties": {
|
|
42
|
-
"source_ref": { "type": "string", "minLength": 1 },
|
|
43
|
-
"source_input_digest": { "$ref": "#/$defs/digest" },
|
|
44
|
-
"evidence_kinds": {
|
|
45
|
-
"type": "array",
|
|
46
|
-
"items": { "type": "string", "minLength": 1 },
|
|
47
|
-
"minItems": 1,
|
|
48
|
-
"uniqueItems": true
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"additionalProperties": false
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"additionalProperties": false,
|
|
56
|
-
"$defs": {
|
|
57
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "context.indexer.coverage-completion-report/v1",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"required": [
|
|
6
|
-
"protocol",
|
|
7
|
-
"requirement_set_digest",
|
|
8
|
-
"registry_digest",
|
|
9
|
-
"question_target_inventory_digest",
|
|
10
|
-
"registered_material_source_set_digest",
|
|
11
|
-
"domains",
|
|
12
|
-
"capability_gaps",
|
|
13
|
-
"material_gaps",
|
|
14
|
-
"blocking_count",
|
|
15
|
-
"partial_domain_count",
|
|
16
|
-
"outcome",
|
|
17
|
-
"graph_outcome",
|
|
18
|
-
"can_report_complete",
|
|
19
|
-
"report_digest"
|
|
20
|
-
],
|
|
21
|
-
"properties": {
|
|
22
|
-
"protocol": { "const": "context.indexer.coverage-completion-report/v1" },
|
|
23
|
-
"requirement_set_digest": { "$ref": "#/$defs/digest" },
|
|
24
|
-
"registry_digest": { "$ref": "#/$defs/digest" },
|
|
25
|
-
"question_target_inventory_digest": { "$ref": "#/$defs/digest" },
|
|
26
|
-
"registered_material_source_set_digest": { "$ref": "#/$defs/digest" },
|
|
27
|
-
"domains": { "type": "array", "items": { "type": "object" } },
|
|
28
|
-
"capability_gaps": { "type": "array", "items": { "type": "object" } },
|
|
29
|
-
"material_gaps": { "type": "array", "items": { "type": "object" } },
|
|
30
|
-
"blocking_count": { "type": "integer", "minimum": 0 },
|
|
31
|
-
"partial_domain_count": { "type": "integer", "minimum": 0 },
|
|
32
|
-
"outcome": {
|
|
33
|
-
"enum": ["complete", "index-material-required", "indexer-capability-gap"]
|
|
34
|
-
},
|
|
35
|
-
"graph_outcome": { "enum": ["completed", "partial", "blocked"] },
|
|
36
|
-
"can_report_complete": { "type": "boolean" },
|
|
37
|
-
"report_digest": { "$ref": "#/$defs/digest" }
|
|
38
|
-
},
|
|
39
|
-
"additionalProperties": false,
|
|
40
|
-
"$defs": {
|
|
41
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: revise-index-output
|
|
3
|
-
description: Revise one exact Indexer candidate set in response to a recorded runtime profile failure.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Revise Index Output
|
|
7
|
-
|
|
8
|
-
Read the current profile audit and its failed metric samples. Change only the bound candidate revision; do not change source scope, requirements, baseline checks, metric thresholds, or provider authority.
|
|
9
|
-
|
|
10
|
-
Return `context.indexer.profile-revision-record-input/v1` with the new result fingerprint, a concrete list of actions taken, unresolved reasons, and the current ledger digest. A semantically unchanged fingerprint is not a new attempt.
|
|
11
|
-
|
|
12
|
-
After the third failed attempt, stop revising. The CLI must produce the complete failure report before any override is requested.
|