@c4a/context-cli 0.7.0 → 0.7.1
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/cli.js +32779 -32620
- package/indexers/capability-manifest.json +4 -9
- package/indexers/release-manifest.json +1 -1
- package/package.json +3 -3
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/providers/context/actions/run-indexer-lifecycle.yaml +7 -0
- package/providers/context/codes.yaml +3 -27
- package/providers/context/graphs/indexer.yaml +2 -28
- package/providers/context/graphs/workspace.yaml +37 -473
- package/providers/context/manifest.json +58 -558
- package/providers/context/provider.yaml +2 -2
- package/providers/context/resources/diagnostics/projection-stale.md +0 -1
- package/providers/context/resources/manuals/reference/project-api.md +39 -38
- package/providers/context/resources/views/document-optimization-current.yaml +1 -1
- 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-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-overlay-question-proposal-input.schema.json +4 -4
- package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +4 -4
- package/providers/context/skills/run-indexer-lifecycle/SKILL.md +36 -0
- 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/authorize-indexer-contract-overlay.yaml +0 -7
- package/providers/context/actions/compile-next.yaml +0 -5
- package/providers/context/actions/configure-code-extraction.yaml +0 -5
- package/providers/context/actions/configure-prose-lifecycle.yaml +0 -5
- package/providers/context/actions/extract-next.yaml +0 -5
- 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-structure.yaml +0 -5
- package/providers/context/actions/migrate-codeindex.yaml +0 -5
- package/providers/context/actions/optimize-documents.yaml +0 -6
- package/providers/context/actions/preview-extraction-batch.yaml +0 -5
- package/providers/context/actions/revise-code-index-audit.yaml +0 -5
- 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/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/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-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/prose-structure-batch.schema.json +0 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
schema: agent-graph.provider.v1
|
|
2
2
|
id: c4a/context
|
|
3
|
-
version: 0.7.
|
|
3
|
+
version: 0.7.1
|
|
4
4
|
name: Context workflow
|
|
5
5
|
description: Internal work contract for Context knowledge workspaces.
|
|
6
6
|
graphs:
|
|
@@ -9,5 +9,5 @@ graphs:
|
|
|
9
9
|
catalogs:
|
|
10
10
|
codes: codes.yaml
|
|
11
11
|
compatibility:
|
|
12
|
-
agentGraph:
|
|
12
|
+
agentGraph: 0.3.0
|
|
13
13
|
node: ">=20"
|
|
@@ -224,21 +224,18 @@ inventing overlapping file ranges.
|
|
|
224
224
|
|
|
225
225
|
### Status declaration coverage
|
|
226
226
|
|
|
227
|
-
`context status --format json --view full` includes
|
|
228
|
-
`configurationGaps` for
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
declarations are complete, status returns the exact align investigation command
|
|
240
|
-
for the next target. A built package does not freeze the workspace or require a
|
|
241
|
-
new workspace for later sources.
|
|
227
|
+
`context status --format json --view full` includes `declarationGraph` and
|
|
228
|
+
`configurationGaps` for source/capture/review/package declarations. New
|
|
229
|
+
workspaces do not add align or compile rows: confirmed requirements, owner
|
|
230
|
+
cells, exact Provider selection, workset progress, audit, and Candidate compile
|
|
231
|
+
belong to the Indexer lifecycle selected by
|
|
232
|
+
`route.indexer.lifecycle-required`.
|
|
233
|
+
|
|
234
|
+
`pendingStructureTargets` and align/compile coverage may still appear while
|
|
235
|
+
diagnosing an existing workspace that explicitly declares legacy prose phases.
|
|
236
|
+
They are compatibility diagnostics, not a second default workflow and not a
|
|
237
|
+
fallback when an Indexer Result is unavailable. A built package does not freeze
|
|
238
|
+
the workspace or require a new workspace for later sources.
|
|
242
239
|
|
|
243
240
|
`context status --format json` defaults to the compact workflow route, target,
|
|
244
241
|
progress, counts, and aggregated diagnostics. Use `--view full` only when
|
|
@@ -398,7 +395,12 @@ const localDocs = source("20260712", "local-manual", { type: "file" });
|
|
|
398
395
|
|
|
399
396
|
### `alignProse`
|
|
400
397
|
|
|
401
|
-
|
|
398
|
+
Legacy compatibility factory for an existing workspace that explicitly owns a
|
|
399
|
+
prose structure phase. New projects must use `src/indexers.yaml` and the
|
|
400
|
+
Markdown Indexer lifecycle; the default Graph never selects `alignProse` as an
|
|
401
|
+
alternate authoring route.
|
|
402
|
+
|
|
403
|
+
For migration or repair of an existing declaration:
|
|
402
404
|
|
|
403
405
|
```ts
|
|
404
406
|
alignProse({
|
|
@@ -511,19 +513,14 @@ ranges are never structure boundaries. Structure validation blocks repeated
|
|
|
511
513
|
fixed-width line grids that cut through AST blocks and reports sections that
|
|
512
514
|
cross multiple heading paths, without classifying document topics.
|
|
513
515
|
|
|
514
|
-
|
|
515
|
-
`
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
reported. Read all required direct paths, then execute the Route's single
|
|
523
|
-
`resources.after_read.command`; the CLI writes and carries the merged receipt
|
|
524
|
-
set without requiring Agent-authored JSON. That acknowledgement response
|
|
525
|
-
already contains the re-evaluated `workflow.current`, so no additional status
|
|
526
|
-
command is needed.
|
|
516
|
+
For a new workspace, capture is followed by
|
|
517
|
+
`route.indexer.lifecycle-required`; the Markdown Provider receives exact
|
|
518
|
+
captured evidence and returns a schema-validated Result from which Context
|
|
519
|
+
derives layout. The align evidence views below apply only when the current CLI
|
|
520
|
+
explicitly selects a legacy phase for migration or repair. Agents must not scan
|
|
521
|
+
`sources/` or `.tmp` to invent evidence. Read only the exact source-body files
|
|
522
|
+
selected as required resources by that Route and execute its
|
|
523
|
+
`resources.after_read.command` after the complete read.
|
|
527
524
|
|
|
528
525
|
Generated Context Views use the same content-addressed rule. Materialization
|
|
529
526
|
returns a receipt-set path and an exact post-read command. Read the complete
|
|
@@ -545,7 +542,11 @@ separate Agent-authored payload or approval step.
|
|
|
545
542
|
|
|
546
543
|
### `compileProse`
|
|
547
544
|
|
|
548
|
-
|
|
545
|
+
Legacy compatibility factory that compiles an already confirmed legacy prose
|
|
546
|
+
structure. New workspaces compile the accepted Indexer Result store through the
|
|
547
|
+
Indexer Candidate compile Route and do not declare this phase.
|
|
548
|
+
|
|
549
|
+
For migration or repair of an existing declaration:
|
|
549
550
|
|
|
550
551
|
```ts
|
|
551
552
|
compileProse({
|
|
@@ -988,16 +989,16 @@ prompt. After the user reports that limitation, the exact conversation phrase
|
|
|
988
989
|
`context review approve-all ... --force` command. Other generic approval or
|
|
989
990
|
continue wording does not invoke it.
|
|
990
991
|
|
|
991
|
-
The gate is batch-scoped:
|
|
992
|
-
|
|
993
|
-
codeindex waits for every pending extract phase in the confirmed module round.
|
|
992
|
+
The gate is batch-scoped: the current Indexer Candidate batch waits for every
|
|
993
|
+
required owner cell to have an accepted current Result and a ready audit.
|
|
994
994
|
Candidate count/hash therefore describes the complete current batch rather than
|
|
995
|
-
one page, source slot, or module. Deterministic close
|
|
996
|
-
|
|
997
|
-
|
|
995
|
+
one page, source slot, or module. Deterministic close projects approved Indexer
|
|
996
|
+
Nodes, Views, Sections, edges, and exact source/Result bindings into
|
|
997
|
+
`knowledge/structure.yaml`.
|
|
998
998
|
|
|
999
|
-
`status.structureBatch`
|
|
1000
|
-
|
|
999
|
+
`status.structureBatch` is retained only as a diagnostic for an existing
|
|
1000
|
+
workspace with explicit legacy prose phases; it does not participate in the
|
|
1001
|
+
default Indexer Route.
|
|
1001
1002
|
|
|
1002
1003
|
If the user explicitly asks for an automated or quick approval/rejection path,
|
|
1003
1004
|
use the scoped quick commands instead of hand-writing a payload:
|
|
@@ -10,9 +10,6 @@
|
|
|
10
10
|
"base_contract",
|
|
11
11
|
"operator_contract",
|
|
12
12
|
"provider_integrity",
|
|
13
|
-
"attestation",
|
|
14
|
-
"trust_bundle_envelope",
|
|
15
|
-
"project_authorization",
|
|
16
13
|
"input_digest"
|
|
17
14
|
],
|
|
18
15
|
"properties": {
|
|
@@ -43,45 +40,6 @@
|
|
|
43
40
|
}
|
|
44
41
|
},
|
|
45
42
|
"provider_integrity": { "$ref": "#/$defs/digest" },
|
|
46
|
-
"attestation": {
|
|
47
|
-
"oneOf": [
|
|
48
|
-
{ "type": "null" },
|
|
49
|
-
{
|
|
50
|
-
"type": "object",
|
|
51
|
-
"required": ["protocol", "attestation_digest"],
|
|
52
|
-
"properties": {
|
|
53
|
-
"protocol": { "const": "context.indexer.overlay-attestation/v1" },
|
|
54
|
-
"attestation_digest": { "$ref": "#/$defs/digest" }
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"trust_bundle_envelope": {
|
|
60
|
-
"oneOf": [
|
|
61
|
-
{ "type": "null" },
|
|
62
|
-
{
|
|
63
|
-
"type": "object",
|
|
64
|
-
"required": ["protocol", "bundle"],
|
|
65
|
-
"properties": {
|
|
66
|
-
"protocol": { "const": "context.indexer.overlay-trust-bundle-envelope/v1" },
|
|
67
|
-
"bundle": { "type": "object" }
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
"project_authorization": {
|
|
73
|
-
"oneOf": [
|
|
74
|
-
{ "type": "null" },
|
|
75
|
-
{
|
|
76
|
-
"type": "object",
|
|
77
|
-
"required": ["protocol", "authorization_receipt_digest"],
|
|
78
|
-
"properties": {
|
|
79
|
-
"protocol": { "const": "context.indexer.overlay-project-authorization/v1" },
|
|
80
|
-
"authorization_receipt_digest": { "$ref": "#/$defs/digest" }
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
43
|
"input_digest": { "$ref": "#/$defs/digest" }
|
|
86
44
|
},
|
|
87
45
|
"$defs": {
|
|
@@ -12,14 +12,13 @@
|
|
|
12
12
|
"overlay",
|
|
13
13
|
"effective_profile",
|
|
14
14
|
"conformance_report",
|
|
15
|
-
"
|
|
16
|
-
"authorization_request",
|
|
15
|
+
"validation_receipt",
|
|
17
16
|
"result_digest"
|
|
18
17
|
],
|
|
19
18
|
"properties": {
|
|
20
19
|
"protocol": { "const": "context.indexer.contract-overlay-validation-result/v1" },
|
|
21
|
-
"outcome": { "
|
|
22
|
-
"graph_outcome": { "
|
|
20
|
+
"outcome": { "const": "valid" },
|
|
21
|
+
"graph_outcome": { "const": "completed" },
|
|
23
22
|
"validation_input_digest": { "$ref": "#/$defs/digest" },
|
|
24
23
|
"project_ref": { "type": "string", "minLength": 1 },
|
|
25
24
|
"overlay": { "type": "object" },
|
|
@@ -32,127 +31,33 @@
|
|
|
32
31
|
"report_digest": { "$ref": "#/$defs/digest" }
|
|
33
32
|
}
|
|
34
33
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"properties": {
|
|
59
|
-
"protocol": { "const": "context.indexer.overlay-trust-receipt/v1" },
|
|
60
|
-
"trust_class": {
|
|
61
|
-
"enum": ["enterprise-signed", "project-authorized-exact-digest"]
|
|
62
|
-
},
|
|
63
|
-
"project_ref": { "type": ["string", "null"] },
|
|
64
|
-
"overlay_digest": { "$ref": "#/$defs/digest" },
|
|
65
|
-
"attestation_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
66
|
-
"base_contract_digest": { "$ref": "#/$defs/digest" },
|
|
67
|
-
"provider_integrity": { "$ref": "#/$defs/digest" },
|
|
68
|
-
"operator_contract_digest": { "$ref": "#/$defs/digest" },
|
|
69
|
-
"conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
70
|
-
"trust_adapter": { "type": ["string", "null"], "minLength": 1 },
|
|
71
|
-
"trust_adapter_version": {
|
|
72
|
-
"oneOf": [
|
|
73
|
-
{ "type": "null" },
|
|
74
|
-
{ "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$" }
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
"trust_management_authority_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
78
|
-
"trust_policy_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
79
|
-
"authorization_receipt_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
80
|
-
"receipt_digest": { "$ref": "#/$defs/digest" }
|
|
81
|
-
},
|
|
82
|
-
"allOf": [
|
|
83
|
-
{
|
|
84
|
-
"if": { "properties": { "trust_class": { "const": "enterprise-signed" } } },
|
|
85
|
-
"then": {
|
|
86
|
-
"properties": {
|
|
87
|
-
"project_ref": { "type": "null" },
|
|
88
|
-
"attestation_digest": { "$ref": "#/$defs/digest" },
|
|
89
|
-
"trust_adapter": { "type": "string", "minLength": 1 },
|
|
90
|
-
"trust_adapter_version": { "type": "string" },
|
|
91
|
-
"trust_management_authority_digest": { "$ref": "#/$defs/digest" },
|
|
92
|
-
"trust_policy_digest": { "$ref": "#/$defs/digest" },
|
|
93
|
-
"authorization_receipt_digest": { "type": "null" }
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"if": { "properties": { "trust_class": { "const": "project-authorized-exact-digest" } } },
|
|
99
|
-
"then": {
|
|
100
|
-
"properties": {
|
|
101
|
-
"project_ref": { "type": "string", "minLength": 1 },
|
|
102
|
-
"trust_adapter": { "type": "null" },
|
|
103
|
-
"trust_adapter_version": { "type": "null" },
|
|
104
|
-
"trust_management_authority_digest": { "type": "null" },
|
|
105
|
-
"trust_policy_digest": { "type": "null" },
|
|
106
|
-
"authorization_receipt_digest": { "$ref": "#/$defs/digest" }
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
"authorization_request": {
|
|
115
|
-
"oneOf": [
|
|
116
|
-
{ "type": "null" },
|
|
117
|
-
{
|
|
118
|
-
"type": "object",
|
|
119
|
-
"additionalProperties": false,
|
|
120
|
-
"required": [
|
|
121
|
-
"protocol",
|
|
122
|
-
"project_ref",
|
|
123
|
-
"overlay_digest",
|
|
124
|
-
"attestation_digest",
|
|
125
|
-
"base_contract_digest",
|
|
126
|
-
"provider_integrity",
|
|
127
|
-
"operator_contract_digest",
|
|
128
|
-
"conformance_report_digest",
|
|
129
|
-
"request_digest"
|
|
130
|
-
],
|
|
131
|
-
"properties": {
|
|
132
|
-
"protocol": {
|
|
133
|
-
"const": "context.indexer.contract-overlay-authorization-request/v1"
|
|
134
|
-
},
|
|
135
|
-
"project_ref": { "type": "string", "minLength": 1 },
|
|
136
|
-
"overlay_digest": { "$ref": "#/$defs/digest" },
|
|
137
|
-
"attestation_digest": { "$ref": "#/$defs/nullableDigest" },
|
|
138
|
-
"base_contract_digest": { "$ref": "#/$defs/digest" },
|
|
139
|
-
"provider_integrity": { "$ref": "#/$defs/digest" },
|
|
140
|
-
"operator_contract_digest": { "$ref": "#/$defs/digest" },
|
|
141
|
-
"conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
142
|
-
"request_digest": { "$ref": "#/$defs/digest" }
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
]
|
|
34
|
+
"validation_receipt": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": [
|
|
38
|
+
"protocol",
|
|
39
|
+
"project_ref",
|
|
40
|
+
"overlay_digest",
|
|
41
|
+
"base_contract_digest",
|
|
42
|
+
"provider_integrity",
|
|
43
|
+
"operator_contract_digest",
|
|
44
|
+
"conformance_report_digest",
|
|
45
|
+
"receipt_digest"
|
|
46
|
+
],
|
|
47
|
+
"properties": {
|
|
48
|
+
"protocol": { "const": "context.indexer.overlay-validation-receipt/v1" },
|
|
49
|
+
"project_ref": { "type": "string", "minLength": 1 },
|
|
50
|
+
"overlay_digest": { "$ref": "#/$defs/digest" },
|
|
51
|
+
"base_contract_digest": { "$ref": "#/$defs/digest" },
|
|
52
|
+
"provider_integrity": { "$ref": "#/$defs/digest" },
|
|
53
|
+
"operator_contract_digest": { "$ref": "#/$defs/digest" },
|
|
54
|
+
"conformance_report_digest": { "$ref": "#/$defs/digest" },
|
|
55
|
+
"receipt_digest": { "$ref": "#/$defs/digest" }
|
|
56
|
+
}
|
|
146
57
|
},
|
|
147
58
|
"result_digest": { "$ref": "#/$defs/digest" }
|
|
148
59
|
},
|
|
149
60
|
"$defs": {
|
|
150
|
-
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
151
|
-
"nullableDigest": {
|
|
152
|
-
"oneOf": [
|
|
153
|
-
{ "type": "null" },
|
|
154
|
-
{ "$ref": "#/$defs/digest" }
|
|
155
|
-
]
|
|
156
|
-
}
|
|
61
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
157
62
|
}
|
|
158
63
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "context.indexer.lifecycle-continuation/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["protocol", "outcome"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"protocol": {
|
|
9
|
+
"const": "context.indexer.lifecycle-continuation/v1"
|
|
10
|
+
},
|
|
11
|
+
"outcome": {
|
|
12
|
+
"const": "follow-indexer-route"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
"additionalProperties": false,
|
|
6
6
|
"required": [
|
|
7
7
|
"protocol",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"validation_input",
|
|
9
|
+
"validation_result",
|
|
10
10
|
"registry",
|
|
11
11
|
"requirement_id",
|
|
12
12
|
"input_digest"
|
|
13
13
|
],
|
|
14
14
|
"properties": {
|
|
15
15
|
"protocol": { "const": "context.indexer.overlay-question-proposal-input/v1" },
|
|
16
|
-
"
|
|
16
|
+
"validation_input": {
|
|
17
17
|
"type": "object",
|
|
18
18
|
"required": ["protocol", "input_digest"],
|
|
19
19
|
"properties": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"input_digest": { "$ref": "#/$defs/digest" }
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"
|
|
24
|
+
"validation_result": {
|
|
25
25
|
"type": "object",
|
|
26
26
|
"required": ["protocol", "outcome", "result_digest"],
|
|
27
27
|
"properties": {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"additionalProperties": false,
|
|
6
6
|
"required": [
|
|
7
7
|
"protocol",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"validation_input",
|
|
9
|
+
"validation_result",
|
|
10
10
|
"base_registry",
|
|
11
11
|
"amendment",
|
|
12
12
|
"confirmation",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
],
|
|
19
19
|
"properties": {
|
|
20
20
|
"protocol": { "const": "context.indexer.overlay-question-rebind-input/v1" },
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"validation_input": { "type": "object" },
|
|
22
|
+
"validation_result": { "type": "object" },
|
|
23
23
|
"base_registry": { "type": "object" },
|
|
24
24
|
"amendment": { "type": "object" },
|
|
25
25
|
"confirmation": { "type": "object" },
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-run-indexer-lifecycle
|
|
3
|
+
description: Continue the sole Context registry-and-Provider indexing route; use only when the workspace Graph selects route.indexer.lifecycle-required.
|
|
4
|
+
metadata:
|
|
5
|
+
agent-graph: path:../../provider.yaml
|
|
6
|
+
agent-graph.graph: workspace
|
|
7
|
+
agent-graph.entry: context
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Run The Indexer Lifecycle
|
|
11
|
+
|
|
12
|
+
This Action replaces the retired extraction, document-classification, align,
|
|
13
|
+
structure-confirmation, and prose default-plan routes. Do not invoke those
|
|
14
|
+
paths and do not turn existing approved knowledge into an indexing fallback.
|
|
15
|
+
|
|
16
|
+
Read
|
|
17
|
+
`node_modules/@c4a/context/docs/guides/indexer-provider-and-customization.md`,
|
|
18
|
+
then follow the root `context` Skill's Indexer instructions and the exact
|
|
19
|
+
structured outcomes returned by `context indexer ...`. Start by forming and
|
|
20
|
+
confirming requirements when `src/indexers.yaml` is absent or stale; otherwise
|
|
21
|
+
continue the current registry selection, Provider resolution, execution,
|
|
22
|
+
reconciliation, layout, audit, and Candidate compile subroute. The Indexer
|
|
23
|
+
Graph is the authority for each substep. Never skip directly to compile and
|
|
24
|
+
never synthesize a Provider Result or a default plan.
|
|
25
|
+
|
|
26
|
+
Stop on the first Host permission, non-delegatable Gate, validation failure, or
|
|
27
|
+
human decision. Once current Candidates have been compiled, return control to
|
|
28
|
+
`context status --format json`; the workspace Graph will select Knowledge
|
|
29
|
+
Review. The Action output is only:
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"protocol": "context.indexer.lifecycle-continuation/v1",
|
|
34
|
+
"outcome": "follow-indexer-route"
|
|
35
|
+
}
|
|
36
|
+
```
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
schema: agent-graph.action.v1
|
|
2
|
-
id: authorize-indexer-contract-overlay
|
|
3
|
-
runner: host
|
|
4
|
-
effect: external
|
|
5
|
-
handler: context.authorize-indexer-contract-overlay/v1
|
|
6
|
-
inputSchema: schemas/indexer-contract-overlay-authorization-input.schema.json
|
|
7
|
-
outputSchema: schemas/indexer-contract-overlay-authorization-result.schema.json
|