@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.
Files changed (88) hide show
  1. package/cli.js +32779 -32620
  2. package/indexers/capability-manifest.json +4 -9
  3. package/indexers/release-manifest.json +1 -1
  4. package/package.json +3 -3
  5. package/plugins/VERSION +1 -1
  6. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  7. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  8. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  9. package/providers/context/actions/run-indexer-lifecycle.yaml +7 -0
  10. package/providers/context/codes.yaml +3 -27
  11. package/providers/context/graphs/indexer.yaml +2 -28
  12. package/providers/context/graphs/workspace.yaml +37 -473
  13. package/providers/context/manifest.json +58 -558
  14. package/providers/context/provider.yaml +2 -2
  15. package/providers/context/resources/diagnostics/projection-stale.md +0 -1
  16. package/providers/context/resources/manuals/reference/project-api.md +39 -38
  17. package/providers/context/resources/views/document-optimization-current.yaml +1 -1
  18. package/providers/context/resources/views/package-current.yaml +1 -1
  19. package/providers/context/resources/views/resolved-indexer-instructions.yaml +1 -1
  20. package/providers/context/resources/views/review-current.yaml +1 -1
  21. package/providers/context/resources/views/source-boundary.yaml +1 -1
  22. package/providers/context/resources/views/source-current.yaml +1 -1
  23. package/providers/context/resources/views/verification-current.yaml +1 -1
  24. package/providers/context/resources/views/workspace-current.yaml +1 -1
  25. package/providers/context/schemas/indexer-contract-overlay-validation-input.schema.json +0 -42
  26. package/providers/context/schemas/indexer-contract-overlay-validation-result.schema.json +27 -122
  27. package/providers/context/schemas/indexer-lifecycle-continuation.schema.json +15 -0
  28. package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +4 -4
  29. package/providers/context/schemas/indexer-overlay-question-rebind-input.schema.json +4 -4
  30. package/providers/context/skills/run-indexer-lifecycle/SKILL.md +36 -0
  31. package/providers/context/actions/align-next.yaml +0 -6
  32. package/providers/context/actions/apply-code-index-guidance.yaml +0 -5
  33. package/providers/context/actions/apply-document-optimization-guidance.yaml +0 -5
  34. package/providers/context/actions/apply-structure-confirmation.yaml +0 -5
  35. package/providers/context/actions/authorize-indexer-contract-overlay.yaml +0 -7
  36. package/providers/context/actions/compile-next.yaml +0 -5
  37. package/providers/context/actions/configure-code-extraction.yaml +0 -5
  38. package/providers/context/actions/configure-prose-lifecycle.yaml +0 -5
  39. package/providers/context/actions/extract-next.yaml +0 -5
  40. package/providers/context/actions/inspect-code-extraction.yaml +0 -5
  41. package/providers/context/actions/inspect-document-classification.yaml +0 -5
  42. package/providers/context/actions/inspect-structure.yaml +0 -5
  43. package/providers/context/actions/migrate-codeindex.yaml +0 -5
  44. package/providers/context/actions/optimize-documents.yaml +0 -6
  45. package/providers/context/actions/preview-extraction-batch.yaml +0 -5
  46. package/providers/context/actions/revise-code-index-audit.yaml +0 -5
  47. package/providers/context/actions/submit-code-index-audit.yaml +0 -6
  48. package/providers/context/resources/dialogue/code-extraction.md +0 -87
  49. package/providers/context/resources/dialogue/document-classification.md +0 -33
  50. package/providers/context/resources/dialogue/structure-confirmation.md +0 -44
  51. package/providers/context/resources/dialogue/workflow-mode-after-capture.md +0 -25
  52. package/providers/context/resources/manuals/reference/code-extractors.md +0 -152
  53. package/providers/context/resources/procedures/code-extraction.md +0 -188
  54. package/providers/context/resources/procedures/code-index-audit.md +0 -113
  55. package/providers/context/resources/procedures/document-classification.md +0 -22
  56. package/providers/context/resources/procedures/document-optimization.md +0 -110
  57. package/providers/context/resources/procedures/prose-align.md +0 -68
  58. package/providers/context/resources/procedures/prose-compile.md +0 -23
  59. package/providers/context/resources/semantic/align/candidate-resolution.md +0 -106
  60. package/providers/context/resources/semantic/align/density-profile.md +0 -41
  61. package/providers/context/resources/semantic/align/gates.md +0 -276
  62. package/providers/context/resources/semantic/align/structure-planning.md +0 -337
  63. package/providers/context/resources/semantic/code-index/classification.md +0 -270
  64. package/providers/context/resources/semantic/code-index/templates/adapter.md +0 -118
  65. package/providers/context/resources/semantic/code-index/templates/api-service.md +0 -116
  66. package/providers/context/resources/semantic/code-index/templates/background-runtime.md +0 -109
  67. package/providers/context/resources/semantic/code-index/templates/cli-tool.md +0 -129
  68. package/providers/context/resources/semantic/code-index/templates/contract-source.md +0 -73
  69. package/providers/context/resources/semantic/code-index/templates/contracts-and-chains.md +0 -81
  70. package/providers/context/resources/semantic/code-index/templates/cross-module-chain.md +0 -78
  71. package/providers/context/resources/semantic/code-index/templates/derived-source.md +0 -116
  72. package/providers/context/resources/semantic/code-index/templates/domain-service.md +0 -109
  73. package/providers/context/resources/semantic/code-index/templates/event-flow.md +0 -62
  74. package/providers/context/resources/semantic/code-index/templates/monorepo-container.md +0 -124
  75. package/providers/context/resources/semantic/code-index/templates/persistence-boundary.md +0 -56
  76. package/providers/context/resources/semantic/code-index/templates/plugin-extension.md +0 -52
  77. package/providers/context/resources/semantic/code-index/templates/protocol-boundary.md +0 -88
  78. package/providers/context/resources/semantic/code-index/templates/sdk-library.md +0 -132
  79. package/providers/context/resources/semantic/code-index/templates/web-application.md +0 -145
  80. package/providers/context/resources/semantic/compile/index.md +0 -31
  81. package/providers/context/resources/views/code-index-audit.yaml +0 -6
  82. package/providers/context/resources/views/extraction-preview.yaml +0 -6
  83. package/providers/context/resources/views/structure-current.yaml +0 -6
  84. package/providers/context/schemas/code-index-audit-decision.schema.json +0 -94
  85. package/providers/context/schemas/document-optimization-decisions.schema.json +0 -57
  86. package/providers/context/schemas/indexer-contract-overlay-authorization-input.schema.json +0 -32
  87. package/providers/context/schemas/indexer-contract-overlay-authorization-result.schema.json +0 -121
  88. 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.0
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: ^0.2.7
12
+ agentGraph: 0.3.0
13
13
  node: ">=20"
@@ -1,5 +1,4 @@
1
1
  ---
2
- schema: agent-graph.resource.v1
3
2
  id: diagnostic.projection-stale
4
3
  kind: diagnostic
5
4
  mediaType: text/markdown
@@ -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 a `declarationGraph` and
228
- `configurationGaps` for document workflows. Each row reports capture, align,
229
- compile, and Review coverage for a canonical source plus collection. Gaps are
230
- non-blocking before structure confirmation. Once a structure is confirmed,
231
- compile routing is exact: phase selection uses canonical source plus collection,
232
- and candidate progress remains bound to the current `structure_digest`. A
233
- compile phase from another collection is never used as fallback.
234
-
235
- Captured align targets that do not yet have an active confirmed structure are
236
- reported in `pendingStructureTargets`. They remain unfinished even when the
237
- currently active structures have been closed, verified, and built. Missing
238
- compile or Review declarations route to `needs-prose-configuration`; once the
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
- Open the prose structure gate for document evidence:
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
- After capture, the capture phase itself exposes collection-neutral `read-plan`,
515
- `source-index`, `span-detail`, `span-text`, and other read-only evidence views.
516
- Status selects `route.document.classification-required` until every captured
517
- target has an evidence-backed, user-confirmed align declaration. Align then
518
- adds `schema` and `structure-summary` for structure work. Agents should not
519
- scan `sources/` or `.tmp` to invent evidence. They may read only the exact
520
- source-body files selected as required resources by the current Route; those
521
- files carry stable content digests and must be read in full before a receipt is
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
- Compile confirmed prose structure into reviewable source-bound draft pages:
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: prose waits for every planned View across all active
992
- structure slots and every declared `pendingStructureTargets` item in the round;
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 later merges all active
996
- slots into `knowledge/structure.yaml`, retains only their source, collection,
997
- and consumed snapshot hash as `source_inputs`, then removes the lifecycle slots.
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` lists unclassified, configuration-required, pending,
1000
- and active structure slots together with the execution policy for the round.
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:
@@ -1,4 +1,4 @@
1
- schema: agent-graph.resource.v1
1
+ schema: agent-graph.resource.graph-action.v1
2
2
  id: context.document-optimization-current
3
3
  kind: context-view
4
4
  mediaType: text/markdown
@@ -1,4 +1,4 @@
1
- schema: agent-graph.resource.v1
1
+ schema: agent-graph.resource.graph-action.v1
2
2
  id: context.package-current
3
3
  kind: context-view
4
4
  mediaType: text/markdown
@@ -1,4 +1,4 @@
1
- schema: agent-graph.resource.v2
1
+ schema: agent-graph.resource.host-action.v1
2
2
  id: resolved-indexer-instructions
3
3
  kind: procedure
4
4
  mediaType: text/markdown
@@ -1,4 +1,4 @@
1
- schema: agent-graph.resource.v1
1
+ schema: agent-graph.resource.graph-action.v1
2
2
  id: context.review-current
3
3
  kind: context-view
4
4
  mediaType: text/markdown
@@ -1,4 +1,4 @@
1
- schema: agent-graph.resource.v1
1
+ schema: agent-graph.resource.graph-action.v1
2
2
  id: context.source-boundary
3
3
  kind: context-view
4
4
  mediaType: text/markdown
@@ -1,4 +1,4 @@
1
- schema: agent-graph.resource.v1
1
+ schema: agent-graph.resource.graph-action.v1
2
2
  id: context.source-current
3
3
  kind: context-view
4
4
  mediaType: text/markdown
@@ -1,4 +1,4 @@
1
- schema: agent-graph.resource.v1
1
+ schema: agent-graph.resource.graph-action.v1
2
2
  id: context.verification-current
3
3
  kind: context-view
4
4
  mediaType: text/markdown
@@ -1,4 +1,4 @@
1
- schema: agent-graph.resource.v1
1
+ schema: agent-graph.resource.graph-action.v1
2
2
  id: context.workspace-current
3
3
  kind: context-view
4
4
  mediaType: text/markdown
@@ -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
- "trust_receipt",
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": { "enum": ["trusted", "authorization-required"] },
22
- "graph_outcome": { "enum": ["completed", "waiting-user"] },
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
- "trust_receipt": {
36
- "oneOf": [
37
- { "type": "null" },
38
- {
39
- "type": "object",
40
- "additionalProperties": false,
41
- "required": [
42
- "protocol",
43
- "trust_class",
44
- "project_ref",
45
- "overlay_digest",
46
- "attestation_digest",
47
- "base_contract_digest",
48
- "provider_integrity",
49
- "operator_contract_digest",
50
- "conformance_report_digest",
51
- "trust_adapter",
52
- "trust_adapter_version",
53
- "trust_management_authority_digest",
54
- "trust_policy_digest",
55
- "authorization_receipt_digest",
56
- "receipt_digest"
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
- "trusted_validation_input",
9
- "trusted_validation_result",
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
- "trusted_validation_input": {
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
- "trusted_validation_result": {
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
- "trusted_validation_input",
9
- "trusted_validation_result",
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
- "trusted_validation_input": { "type": "object" },
22
- "trusted_validation_result": { "type": "object" },
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,6 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: align-next
3
- runner: host
4
- effect: write
5
- handler: context.align.next
6
- inputSchema: schemas/prose-structure-batch.schema.json
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: apply-code-index-guidance
3
- runner: host
4
- effect: write
5
- handler: context.project.apply-code-index-guidance
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: apply-document-optimization-guidance
3
- runner: host
4
- effect: write
5
- handler: context.document-optimization.guidance
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: apply-structure-confirmation
3
- runner: host
4
- effect: write
5
- handler: context.structure.confirm
@@ -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
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: compile-next
3
- runner: host
4
- effect: write
5
- handler: context.compile.next
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: configure-code-extraction
3
- runner: host
4
- effect: write
5
- handler: context.project.configure-extraction
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: configure-prose-lifecycle
3
- runner: host
4
- effect: write
5
- handler: context.project.configure-prose
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: extract-next
3
- runner: host
4
- effect: write
5
- handler: context.extract.next
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: inspect-code-extraction
3
- runner: host
4
- effect: read
5
- handler: context.extract.inspect-capabilities
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: inspect-document-classification
3
- runner: host
4
- effect: read
5
- handler: context.document.inspect-classification
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: inspect-structure
3
- runner: host
4
- effect: read
5
- handler: context.structure.inspect
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: migrate-codeindex
3
- runner: host
4
- effect: write
5
- handler: context.code-index.migrate
@@ -1,6 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: optimize-documents
3
- runner: host
4
- effect: write
5
- handler: context.document-optimization.next
6
- inputSchema: schemas/document-optimization-decisions.schema.json
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: preview-extraction-batch
3
- runner: host
4
- effect: write
5
- handler: context.extract.preview-batch