@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.
Files changed (161) hide show
  1. package/README.md +18 -39
  2. package/README.zh-CN.md +13 -27
  3. package/cli.js +64945 -81995
  4. package/indexers/bundles/context-code-indexer/SKILL.md +30 -3
  5. package/indexers/bundles/context-code-indexer/context-indexer.yaml +3 -8
  6. package/indexers/bundles/context-code-indexer/references/indexer.md +110 -7
  7. package/indexers/bundles/context-code-indexer/references/metrics.md +143 -37
  8. package/indexers/bundles/context-code-indexer/templates/adapter-integration.md +2 -2
  9. package/indexers/bundles/context-code-indexer/templates/component-library.md +8 -0
  10. package/indexers/bundles/context-code-indexer/templates/gateway-facade.md +16 -0
  11. package/indexers/bundles/context-markdown-indexer/SKILL.md +13 -3
  12. package/indexers/bundles/context-markdown-indexer/context-indexer.yaml +20 -7
  13. package/indexers/bundles/context-markdown-indexer/references/indexer.md +33 -4
  14. package/indexers/bundles/context-markdown-indexer/references/semantic-planning.md +30 -14
  15. package/indexers/bundles/context-markdown-indexer/references/structure-and-artifacts.md +6 -0
  16. package/indexers/bundles/context-markdown-indexer/tests/fixtures/anonymous.json +1 -1
  17. package/indexers/bundles/context-markdown-indexer/tests/fixtures/profiles.json +13 -13
  18. package/indexers/bundles/context-markdown-indexer/tests/fixtures/routing.json +122 -0
  19. package/indexers/contracts/operator-contract.json +2 -2
  20. package/indexers/contracts/profile-contract.json +3819 -454
  21. package/indexers/release-manifest.json +22 -22
  22. package/package.json +12 -2
  23. package/plugins/VERSION +1 -1
  24. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  25. package/plugins/claude/commands/context.md +56 -107
  26. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  27. package/plugins/codex/skills/context/SKILL.md +56 -107
  28. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  29. package/plugins/cursor/commands/c4a-context.md +56 -107
  30. package/plugins/skills/context/SKILL.md +56 -107
  31. package/plugins/skills/context-code-indexer/SKILL.md +30 -3
  32. package/plugins/skills/context-code-indexer/context-indexer.yaml +3 -8
  33. package/plugins/skills/context-code-indexer/references/indexer.md +110 -7
  34. package/plugins/skills/context-code-indexer/references/metrics.md +143 -37
  35. package/plugins/skills/context-code-indexer/templates/adapter-integration.md +2 -2
  36. package/plugins/skills/context-code-indexer/templates/component-library.md +8 -0
  37. package/plugins/skills/context-code-indexer/templates/gateway-facade.md +16 -0
  38. package/plugins/skills/context-markdown-indexer/SKILL.md +13 -3
  39. package/plugins/skills/context-markdown-indexer/context-indexer.yaml +20 -7
  40. package/plugins/skills/context-markdown-indexer/references/indexer.md +33 -4
  41. package/plugins/skills/context-markdown-indexer/references/semantic-planning.md +30 -14
  42. package/plugins/skills/context-markdown-indexer/references/structure-and-artifacts.md +6 -0
  43. package/plugins/skills/context-markdown-indexer/tests/fixtures/anonymous.json +1 -1
  44. package/plugins/skills/context-markdown-indexer/tests/fixtures/profiles.json +13 -13
  45. package/plugins/skills/context-markdown-indexer/tests/fixtures/routing.json +122 -0
  46. package/providers/context/actions/advance-current-indexer-lifecycle.yaml +6 -0
  47. package/providers/context/actions/authorize-current-indexer-provider-program.yaml +6 -0
  48. package/providers/context/actions/configure-indexer-providers.yaml +1 -1
  49. package/providers/context/actions/finalize-current-indexer-provider-selection.yaml +5 -0
  50. package/providers/context/actions/materialize-indexer-workset-view.yaml +7 -0
  51. package/providers/context/actions/resolve-current-indexer-gate.yaml +6 -0
  52. package/providers/context/actions/resolve-current-indexer-provider.yaml +6 -0
  53. package/providers/context/actions/run-indexer-lifecycle.yaml +0 -1
  54. package/providers/context/actions/run-indexer-post-author-composer.yaml +2 -2
  55. package/providers/context/codes.yaml +8 -22
  56. package/providers/context/graphs/indexer.yaml +95 -564
  57. package/providers/context/graphs/workspace.yaml +5 -43
  58. package/providers/context/manifest.json +119 -678
  59. package/providers/context/provider.yaml +1 -1
  60. package/providers/context/resources/dialogue/human-gates.md +3 -3
  61. package/providers/context/resources/dialogue/knowledge-review.md +6 -3
  62. package/providers/context/resources/manuals/reference/package-templates.md +2 -3
  63. package/providers/context/resources/manuals/reference/project-api.md +52 -986
  64. package/providers/context/resources/procedures/close-and-build.md +8 -23
  65. package/providers/context/resources/procedures/knowledge-review.md +17 -5
  66. package/providers/context/resources/procedures/source-capture-detailed.md +6 -8
  67. package/providers/context/resources/views/authorized-indexer-workset-view.yaml +15 -0
  68. package/providers/context/resources/views/resolved-indexer-instructions.yaml +2 -4
  69. package/providers/context/schemas/indexer-agent-step-input.schema.json +71 -21
  70. package/providers/context/schemas/indexer-agent-step-result.schema.json +385 -32
  71. package/providers/context/schemas/indexer-authorized-workset-view.schema.json +65 -0
  72. package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +13 -20
  73. package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +17 -2
  74. package/providers/context/schemas/indexer-materialize-request.schema.json +4 -8
  75. package/providers/context/schemas/indexer-materialized-resource.schema.json +8 -1
  76. package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +51 -2
  77. package/providers/context/schemas/indexer-workset-view-materialization-request.schema.json +35 -0
  78. package/providers/context/skills/authorize-current-indexer-provider-program/SKILL.md +20 -0
  79. package/providers/context/skills/configure-indexer-providers/SKILL.md +47 -33
  80. package/providers/context/skills/resolve-current-indexer-gate/SKILL.md +27 -0
  81. package/providers/context/skills/resolve-current-indexer-provider/SKILL.md +20 -0
  82. package/providers/context/skills/run-indexer-agent-step/SKILL.md +49 -10
  83. package/providers/context/skills/run-indexer-lifecycle/SKILL.md +19 -13
  84. package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +52 -11
  85. package/docs/document-optimization.md +0 -82
  86. package/docs/document-optimization.zh-CN.md +0 -70
  87. package/indexers/capability-manifest.json +0 -35
  88. package/indexers/contracts/hard-rule-conformance.json +0 -2644
  89. package/providers/context/actions/accept-main-index-run.yaml +0 -7
  90. package/providers/context/actions/accept-material-answer-run.yaml +0 -7
  91. package/providers/context/actions/accept-post-author-composer-run.yaml +0 -7
  92. package/providers/context/actions/actualize-material-answer-bindings.yaml +0 -8
  93. package/providers/context/actions/audit-material-gap-state.yaml +0 -8
  94. package/providers/context/actions/audit-projected-artifact-fan-out.yaml +0 -8
  95. package/providers/context/actions/build-main-index-author-worksets.yaml +0 -7
  96. package/providers/context/actions/build-main-index-catalog-fallback.yaml +0 -7
  97. package/providers/context/actions/build-main-index-partition-worksets.yaml +0 -7
  98. package/providers/context/actions/build-material-question-workset.yaml +0 -7
  99. package/providers/context/actions/build-post-author-composer-worksets.yaml +0 -7
  100. package/providers/context/actions/build-question-target-inventory.yaml +0 -7
  101. package/providers/context/actions/build-subject-catalog.yaml +0 -7
  102. package/providers/context/actions/build-target-resolution-views.yaml +0 -7
  103. package/providers/context/actions/checkpoint-material-answer-review.yaml +0 -8
  104. package/providers/context/actions/checkpoint-material-gaps.yaml +0 -8
  105. package/providers/context/actions/close-indexer-approved-knowledge.yaml +0 -8
  106. package/providers/context/actions/compose-indexer-post-author-fragments.yaml +0 -7
  107. package/providers/context/actions/converge-main-index-partition-run.yaml +0 -7
  108. package/providers/context/actions/evaluate-material-gaps.yaml +0 -8
  109. package/providers/context/actions/fail-main-index-run.yaml +0 -7
  110. package/providers/context/actions/fail-material-answer-run.yaml +0 -7
  111. package/providers/context/actions/fail-post-author-composer-run.yaml +0 -7
  112. package/providers/context/actions/inspect-index-candidate-review-readiness.yaml +0 -8
  113. package/providers/context/actions/inspect-index-profile-failure.yaml +0 -7
  114. package/providers/context/actions/inspect-material-answer-review.yaml +0 -8
  115. package/providers/context/actions/observe-main-index-run-ledger.yaml +0 -7
  116. package/providers/context/actions/observe-material-answer-runs.yaml +0 -7
  117. package/providers/context/actions/observe-post-author-composer-worksets.yaml +0 -7
  118. package/providers/context/actions/override-index-profile-audit.yaml +0 -7
  119. package/providers/context/actions/prepare-main-index-run-ledger.yaml +0 -7
  120. package/providers/context/actions/prepare-material-answer-runs.yaml +0 -7
  121. package/providers/context/actions/reconcile-indexer-results.yaml +0 -7
  122. package/providers/context/actions/reconcile-review-identities.yaml +0 -5
  123. package/providers/context/actions/record-index-profile-revision.yaml +0 -7
  124. package/providers/context/actions/report-index-profile-failure.yaml +0 -7
  125. package/providers/context/actions/resolve-effective-composers.yaml +0 -7
  126. package/providers/context/actions/review-material-answer-candidate.yaml +0 -8
  127. package/providers/context/actions/revise-document.yaml +0 -5
  128. package/providers/context/actions/revise-index-output.yaml +0 -7
  129. package/providers/context/actions/run-material-answer-indexers.yaml +0 -7
  130. package/providers/context/actions/start-main-index-run.yaml +0 -7
  131. package/providers/context/actions/start-material-answer-run.yaml +0 -7
  132. package/providers/context/actions/start-post-author-composer-run.yaml +0 -7
  133. package/providers/context/resources/procedures/document-revision.md +0 -36
  134. package/providers/context/resources/views/document-optimization-current.yaml +0 -6
  135. package/providers/context/schemas/indexer-candidate-review-readiness-input.schema.json +0 -46
  136. package/providers/context/schemas/indexer-candidate-review-readiness-output.schema.json +0 -104
  137. package/providers/context/schemas/indexer-lifecycle-continuation.schema.json +0 -15
  138. package/providers/context/schemas/indexer-material-answer-lifecycle-input.schema.json +0 -90
  139. package/providers/context/schemas/indexer-material-answer-lifecycle-output.schema.json +0 -80
  140. package/providers/context/schemas/indexer-material-answer-review-inspection-input.schema.json +0 -32
  141. package/providers/context/schemas/indexer-material-answer-review-inspection-output.schema.json +0 -32
  142. package/providers/context/schemas/indexer-material-answer-review-resolution-input.schema.json +0 -19
  143. package/providers/context/schemas/indexer-material-answer-review-resolution-output.schema.json +0 -87
  144. package/providers/context/schemas/indexer-material-gap-lifecycle-input.schema.json +0 -86
  145. package/providers/context/schemas/indexer-material-gap-lifecycle-output.schema.json +0 -19
  146. package/providers/context/schemas/indexer-post-author-fragment-request.schema.json +0 -26
  147. package/providers/context/schemas/indexer-post-author-fragment-result.schema.json +0 -18
  148. package/providers/context/schemas/indexer-post-author-lifecycle-input.schema.json +0 -94
  149. package/providers/context/schemas/indexer-post-author-lifecycle-output.schema.json +0 -72
  150. package/providers/context/schemas/indexer-profile-failure-inspection-input.schema.json +0 -13
  151. package/providers/context/schemas/indexer-profile-failure-inspection-result.schema.json +0 -19
  152. package/providers/context/schemas/indexer-profile-failure-report-input.schema.json +0 -22
  153. package/providers/context/schemas/indexer-profile-failure-report-result.schema.json +0 -49
  154. package/providers/context/schemas/indexer-profile-override-decision.schema.json +0 -20
  155. package/providers/context/schemas/indexer-profile-override-result.schema.json +0 -49
  156. package/providers/context/schemas/indexer-profile-revision-agent-input.schema.json +0 -18
  157. package/providers/context/schemas/indexer-profile-revision-record-input.schema.json +0 -31
  158. package/providers/context/schemas/indexer-profile-revision-record-result.schema.json +0 -45
  159. package/providers/context/schemas/indexer-result-reconciliation-input.schema.json +0 -59
  160. package/providers/context/schemas/indexer-result-reconciliation-output.schema.json +0 -43
  161. package/providers/context/skills/revise-index-output/SKILL.md +0 -12
@@ -4,6 +4,9 @@ description: Static Agent route for one digest-bound Indexer workset.
4
4
  entrypoints:
5
5
  agent-step: run-indexer-agent-step
6
6
  provider-selection: configure-indexer-providers
7
+ current-provider-resolution: resolve-current-indexer-provider
8
+ current-provider-program-authorization: authorize-current-indexer-provider-program
9
+ current-provider-finalization: finalize-current-indexer-provider-selection
7
10
  markdown-provider: inspect-markdown-provider-capture
8
11
  requirement-confirmation: route-index-requirement-confirmation
9
12
  contract-overlay-validation: validate-indexer-contract-overlays
@@ -13,24 +16,98 @@ entrypoints:
13
16
  overlay-question-proposal: propose-overlay-question-amendment
14
17
  overlay-question-rebind: rebind-indexer-selection-to-requirement
15
18
  project-confirmation: confirm-indexer-project
16
- main-index: build-question-target-inventory
19
+ main-index: advance-current-indexer-lifecycle
20
+ current-lifecycle: advance-current-indexer-lifecycle
17
21
  main-run-validation: validate-main-index-author-result
18
22
  post-author-composer-step: run-indexer-post-author-composer
19
- material-answer: build-material-question-workset
20
- material-answer-step: run-material-answer-indexers
21
- material-answer-review: review-material-answer-candidates
22
- material-gap-audit: audit-material-gap-state
23
- material-gap-evaluation: evaluate-material-gaps
24
- material-answer-actualization: actualize-material-answer-bindings
25
- approved-knowledge-close: close-indexer-approved-knowledge
26
- candidate-review: inspect-index-candidate-review-readiness
27
23
  candidate-compile: compile-indexer-candidates
28
24
  incremental-impact: report-indexer-incremental-impact
29
25
  nodes:
26
+ - id: advance-current-indexer-lifecycle
27
+ kind: action
28
+ reasonCode: route.indexer.lifecycle-advance
29
+ action: actions/advance-current-indexer-lifecycle.yaml
30
+ satisfiedBy:
31
+ - path: indexer_current.advance_complete
32
+ equals: true
33
+ - id: run-current-indexer-agent
34
+ kind: action
35
+ reasonCode: route.indexer.agent-step
36
+ action: actions/run-indexer-agent-step.yaml
37
+ satisfiedBy:
38
+ - path: indexer_current.agent_complete
39
+ equals: true
40
+ resources:
41
+ required:
42
+ - resources/views/resolved-indexer-instructions.yaml
43
+ - resources/views/authorized-indexer-workset-view.yaml
44
+ - id: review-current-indexer-structure
45
+ kind: gate
46
+ reasonCode: route.indexer.semantic-structure-review
47
+ resolutionAction: actions/resolve-current-indexer-gate.yaml
48
+ gate:
49
+ id: indexer-semantic-structure-review
50
+ prompt: Review the complete semantic structure and its create-or-enrich targets before authoring.
51
+ authority: context.knowledge-review
52
+ delegatable: true
53
+ satisfiedBy:
54
+ - path: indexer_current.structure_review_complete
55
+ equals: true
56
+ - id: run-current-indexer-composer
57
+ kind: action
58
+ reasonCode: route.indexer.post-author-agent-step
59
+ action: actions/run-indexer-post-author-composer.yaml
60
+ satisfiedBy:
61
+ - path: indexer_current.composer_complete
62
+ equals: true
63
+ resources:
64
+ required:
65
+ - resources/views/resolved-indexer-instructions.yaml
66
+ - id: resolve-current-indexer-block
67
+ kind: gate
68
+ reasonCode: route.indexer.recovery-required
69
+ gate:
70
+ id: indexer-recovery
71
+ prompt: Resolve the reported source, material, or execution failure before retrying the current Indexer lifecycle.
72
+ delegatable: false
73
+ satisfiedBy:
74
+ - path: indexer_current.blockers_clear
75
+ equals: true
76
+ - id: confirm-current-indexer-layout
77
+ kind: gate
78
+ reasonCode: route.indexer.layout-confirmation-required
79
+ resolutionAction: actions/resolve-current-indexer-gate.yaml
80
+ gate:
81
+ id: confirm-layout-change
82
+ prompt: Confirm the proposed knowledge layout change or reject it with revision feedback.
83
+ delegatable: false
84
+ satisfiedBy:
85
+ - path: indexer_current.layout_confirmed
86
+ equals: true
87
+ - id: current-indexer-ready
88
+ kind: terminal
89
+ terminalOutcome: completed
30
90
  - id: configure-indexer-providers
31
91
  kind: action
32
92
  reasonCode: route.indexer.provider-configuration
33
93
  action: actions/configure-indexer-providers.yaml
94
+ - id: resolve-current-indexer-provider
95
+ kind: action
96
+ reasonCode: route.indexer.provider-host-resolution-required
97
+ action: actions/resolve-current-indexer-provider.yaml
98
+ - id: authorize-current-indexer-provider-program
99
+ kind: gate
100
+ reasonCode: route.indexer.program-execution-authorization
101
+ resolutionAction: actions/authorize-current-indexer-provider-program.yaml
102
+ gate:
103
+ id: authorize-indexer-program-execution
104
+ prompt: Authorize the exact current Provider program for trusted non-sandboxed execution.
105
+ authority: context.indexer-program-execution
106
+ delegatable: true
107
+ - id: finalize-current-indexer-provider-selection
108
+ kind: action
109
+ reasonCode: route.indexer.provider-finalization-required
110
+ action: actions/finalize-current-indexer-provider-selection.yaml
34
111
  - id: inspect-markdown-provider-capture
35
112
  kind: action
36
113
  reasonCode: route.indexer.markdown-capture-validation
@@ -161,6 +238,7 @@ nodes:
161
238
  resources:
162
239
  required:
163
240
  - resources/views/resolved-indexer-instructions.yaml
241
+ - resources/views/authorized-indexer-workset-view.yaml
164
242
  - id: propose-overlay-question-amendment
165
243
  kind: action
166
244
  reasonCode: route.indexer.overlay-question-proposal
@@ -258,65 +336,6 @@ nodes:
258
336
  kind: action
259
337
  reasonCode: route.indexer.project-observation
260
338
  action: actions/observe-indexer-project.yaml
261
- - id: build-question-target-inventory
262
- kind: action
263
- reasonCode: route.indexer.question-target-inventory
264
- action: actions/build-question-target-inventory.yaml
265
- - id: build-main-index-partition-worksets
266
- kind: action
267
- reasonCode: route.indexer.partition-worksets
268
- action: actions/build-main-index-partition-worksets.yaml
269
- - id: prepare-main-index-partition-runs
270
- kind: action
271
- reasonCode: route.indexer.main-run-ledger-preparation
272
- action: actions/prepare-main-index-run-ledger.yaml
273
- - id: observe-main-index-partition-worksets
274
- kind: action
275
- reasonCode: route.indexer.main-workset-observation
276
- action: actions/observe-main-index-run-ledger.yaml
277
- - id: start-main-index-partition-run
278
- kind: action
279
- reasonCode: route.indexer.main-run-start
280
- action: actions/start-main-index-run.yaml
281
- - id: run-main-index-partition-workset
282
- kind: action
283
- reasonCode: route.indexer.agent-step
284
- action: actions/run-indexer-agent-step.yaml
285
- resources:
286
- required:
287
- - resources/views/resolved-indexer-instructions.yaml
288
- - id: converge-main-index-partition-run
289
- kind: action
290
- reasonCode: route.indexer.partition-convergence
291
- action: actions/converge-main-index-partition-run.yaml
292
- - id: start-main-index-catalog-fallback
293
- kind: action
294
- reasonCode: route.indexer.main-run-start
295
- action: actions/start-main-index-run.yaml
296
- - id: build-main-index-catalog-fallback
297
- kind: action
298
- reasonCode: route.indexer.catalog-fallback
299
- action: actions/build-main-index-catalog-fallback.yaml
300
- - id: fail-main-index-partition-run
301
- kind: action
302
- reasonCode: route.indexer.main-run-failure
303
- action: actions/fail-main-index-run.yaml
304
- - id: build-subject-catalog
305
- kind: action
306
- reasonCode: route.indexer.subject-catalog
307
- action: actions/build-subject-catalog.yaml
308
- - id: build-target-resolution-views
309
- kind: action
310
- reasonCode: route.indexer.target-resolution
311
- action: actions/build-target-resolution-views.yaml
312
- - id: audit-projected-artifact-fan-out
313
- kind: action
314
- reasonCode: route.indexer.projected-artifact-fan-out
315
- action: actions/audit-projected-artifact-fan-out.yaml
316
- - id: build-main-index-author-worksets
317
- kind: action
318
- reasonCode: route.indexer.author-worksets
319
- action: actions/build-main-index-author-worksets.yaml
320
339
  - id: validate-main-index-author-result
321
340
  kind: action
322
341
  reasonCode: route.indexer.main-run-validation
@@ -329,183 +348,17 @@ nodes:
329
348
  kind: terminal
330
349
  join: any
331
350
  terminalOutcome: failed
332
- - id: main-index-plan-revision-required
333
- kind: terminal
334
- terminalOutcome: partial
335
- - id: prepare-main-index-author-runs
336
- kind: action
337
- reasonCode: route.indexer.main-run-ledger-preparation
338
- action: actions/prepare-main-index-run-ledger.yaml
339
- - id: observe-main-index-author-worksets
340
- kind: action
341
- reasonCode: route.indexer.main-workset-observation
342
- action: actions/observe-main-index-run-ledger.yaml
343
- - id: start-main-index-author-run
344
- kind: action
345
- reasonCode: route.indexer.main-run-start
346
- action: actions/start-main-index-run.yaml
347
- - id: run-main-index-author-workset
348
- kind: action
349
- reasonCode: route.indexer.agent-step
350
- action: actions/run-indexer-agent-step.yaml
351
- resources:
352
- required:
353
- - resources/views/resolved-indexer-instructions.yaml
354
- - id: accept-main-index-author-run
355
- kind: action
356
- reasonCode: route.indexer.main-run-acceptance
357
- action: actions/accept-main-index-run.yaml
358
- - id: fail-main-index-author-run
359
- kind: action
360
- reasonCode: route.indexer.main-run-failure
361
- action: actions/fail-main-index-run.yaml
362
- - id: main-index-blocked
363
- kind: terminal
364
- join: any
365
- terminalOutcome: blocked
366
- - id: resolve-effective-composers
367
- kind: action
368
- reasonCode: route.indexer.effective-composers
369
- action: actions/resolve-effective-composers.yaml
370
- - id: build-post-author-composer-worksets
371
- kind: action
372
- reasonCode: route.indexer.post-author-worksets
373
- action: actions/build-post-author-composer-worksets.yaml
374
- - id: start-post-author-composer-run
375
- kind: action
376
- reasonCode: route.indexer.post-author-run-start
377
- action: actions/start-post-author-composer-run.yaml
378
351
  - id: run-indexer-post-author-composer
379
352
  kind: action
380
353
  reasonCode: route.indexer.post-author-agent-step
381
354
  action: actions/run-indexer-post-author-composer.yaml
382
- - id: accept-post-author-composer-run
383
- kind: action
384
- reasonCode: route.indexer.post-author-run-acceptance
385
- action: actions/accept-post-author-composer-run.yaml
386
- - id: fail-post-author-composer-run
387
- kind: action
388
- reasonCode: route.indexer.post-author-run-failure
389
- action: actions/fail-post-author-composer-run.yaml
390
- - id: observe-post-author-composer-worksets
391
- kind: action
392
- reasonCode: route.indexer.post-author-observation
393
- action: actions/observe-post-author-composer-worksets.yaml
394
- - id: compose-indexer-post-author-fragments
395
- kind: action
396
- reasonCode: route.indexer.post-author-composition
397
- action: actions/compose-indexer-post-author-fragments.yaml
398
- - id: reconcile-indexer-results
399
- kind: action
400
- join: any
401
- reasonCode: route.indexer.result-reconciliation
402
- action: actions/reconcile-indexer-results.yaml
403
- - id: checkpoint-material-gaps
404
- kind: action
405
- join: any
406
- reasonCode: route.indexer.material-gap-checkpoint
407
- action: actions/checkpoint-material-gaps.yaml
408
- - id: audit-material-gap-state
409
- kind: action
410
- join: any
411
- reasonCode: route.indexer.material-gap-audit
412
- action: actions/audit-material-gap-state.yaml
413
- - id: material-gap-audit-current
414
- kind: terminal
415
- join: any
416
- terminalOutcome: completed
417
- - id: indexer-reconciliation-ready
418
- kind: terminal
419
- join: any
420
- terminalOutcome: completed
421
- - id: index-material-required
422
- kind: terminal
423
- join: any
424
- terminalOutcome: blocked
425
- - id: build-material-question-workset
426
- kind: action
427
- reasonCode: route.indexer.material-question-workset
428
- action: actions/build-material-question-workset.yaml
429
- - id: evaluate-material-gaps
430
- kind: action
431
- join: any
432
- reasonCode: route.indexer.material-gap-evaluation
433
- action: actions/evaluate-material-gaps.yaml
434
- - id: indexer-layout-ready
435
- kind: terminal
436
- join: any
437
- terminalOutcome: completed
438
- - id: actualize-material-answer-bindings
439
- kind: action
440
- reasonCode: route.indexer.material-answer-actualization
441
- action: actions/actualize-material-answer-bindings.yaml
442
- - id: close-indexer-approved-knowledge
443
- kind: action
444
- reasonCode: route.indexer.approved-knowledge-close
445
- action: actions/close-indexer-approved-knowledge.yaml
446
- - id: indexer-approved-knowledge-closed
447
- kind: terminal
448
- terminalOutcome: completed
449
- - id: prepare-material-answer-runs
450
- kind: action
451
- reasonCode: route.indexer.material-answer-run-preparation
452
- action: actions/prepare-material-answer-runs.yaml
453
- - id: observe-material-answer-runs
454
- kind: action
455
- reasonCode: route.indexer.material-answer-observation
456
- action: actions/observe-material-answer-runs.yaml
457
- - id: start-material-answer-run
458
- kind: action
459
- reasonCode: route.indexer.material-answer-run-start
460
- action: actions/start-material-answer-run.yaml
461
- - id: run-material-answer-indexers
462
- kind: action
463
- reasonCode: route.indexer.material-answer-agent-step
464
- action: actions/run-material-answer-indexers.yaml
465
355
  resources:
466
356
  required:
467
357
  - resources/views/resolved-indexer-instructions.yaml
468
- - id: accept-material-answer-run
469
- kind: action
470
- reasonCode: route.indexer.material-answer-run-acceptance
471
- action: actions/accept-material-answer-run.yaml
472
- - id: fail-material-answer-run
473
- kind: action
474
- reasonCode: route.indexer.material-answer-run-failure
475
- action: actions/fail-material-answer-run.yaml
476
- - id: material-answer-blocked
477
- kind: terminal
478
- join: any
479
- terminalOutcome: blocked
480
- - id: material-answer-failed
481
- kind: terminal
482
- join: any
483
- terminalOutcome: failed
484
- - id: review-material-answer-candidates
485
- kind: gate
486
- reasonCode: route.indexer.material-answer-review
487
- inspectionAction: actions/inspect-material-answer-review.yaml
488
- resolutionAction: actions/review-material-answer-candidate.yaml
489
- gate:
490
- id: review-material-answer-candidates
491
- prompt: Review only the exact question-target and source-span evidence binding for this material answer.
492
- authority: context.indexer-material-answer-review
493
- delegatable: true
494
- satisfiedBy:
495
- - path: indexer_material_answer_review.state
496
- equals: approved
497
- - id: checkpoint-material-answer-review
498
- kind: action
499
- reasonCode: route.indexer.material-answer-review-checkpoint
500
- action: actions/checkpoint-material-answer-review.yaml
501
358
  - id: post-author-blocked
502
359
  kind: terminal
503
360
  join: any
504
361
  terminalOutcome: blocked
505
- - id: inspect-index-candidate-review-readiness
506
- kind: action
507
- reasonCode: route.indexer.candidate-review-readiness
508
- action: actions/inspect-index-candidate-review-readiness.yaml
509
362
  - id: compile-indexer-candidates
510
363
  kind: action
511
364
  reasonCode: route.indexer.candidate-compile
@@ -520,60 +373,13 @@ nodes:
520
373
  - id: indexer-incremental-impact-reported
521
374
  kind: terminal
522
375
  terminalOutcome: completed
523
- - id: revise-index-output
524
- kind: action
525
- reasonCode: route.indexer.profile-revision
526
- action: actions/revise-index-output.yaml
527
- - id: record-index-profile-revision
528
- kind: action
529
- reasonCode: route.indexer.profile-revision-record
530
- action: actions/record-index-profile-revision.yaml
531
- - id: report-index-profile-failure
532
- kind: action
533
- reasonCode: route.indexer.profile-failure-report
534
- action: actions/report-index-profile-failure.yaml
535
- - id: override-index-profile-audit
536
- kind: gate
537
- reasonCode: route.indexer.profile-override
538
- inspectionAction: actions/inspect-index-profile-failure.yaml
539
- resolutionAction: actions/override-index-profile-audit.yaml
540
- gate:
541
- id: override-index-profile-audit
542
- prompt: Force approve only the exact current runtime profile risk after reading the complete three-attempt report.
543
- authority: context.indexer-profile-risk-override
544
- delegatable: false
545
- satisfiedBy:
546
- - path: indexer_profile_override.completed
547
- equals: true
548
- - id: review-index-candidates
549
- kind: gate
550
- reasonCode: route.indexer.candidate-review
551
- inspectionAction: actions/inspect-review.yaml
552
- resolutionAction: actions/apply-forced-review.yaml
553
- delegated:
554
- inspection: skip
555
- resolutionAction: actions/apply-managed-review.yaml
556
- resources:
557
- required: []
558
- recommended: []
559
- gate:
560
- id: review-index-candidates
561
- prompt: Review the exact current candidate set only after both mechanical audit stages are current.
562
- authority: context.knowledge-review
563
- delegatable: true
564
- satisfiedBy:
565
- - path: indexer_candidate_review.completed
566
- equals: true
567
- - id: index-baseline-audit-failed
568
- kind: terminal
569
- terminalOutcome: failed
570
- - id: index-profile-revision-pending
571
- kind: terminal
572
- terminalOutcome: blocked
573
- - id: index-candidate-review-complete
574
- kind: terminal
575
- terminalOutcome: completed
576
376
  edges:
377
+ - { from: advance-current-indexer-lifecycle, to: run-current-indexer-agent }
378
+ - { from: run-current-indexer-agent, to: review-current-indexer-structure }
379
+ - { from: review-current-indexer-structure, to: run-current-indexer-composer, kind: gatedBy }
380
+ - { from: run-current-indexer-composer, to: resolve-current-indexer-block }
381
+ - { from: resolve-current-indexer-block, to: confirm-current-indexer-layout, kind: gatedBy }
382
+ - { from: confirm-current-indexer-layout, to: current-indexer-ready, kind: gatedBy }
577
383
  - from: inspect-markdown-provider-capture
578
384
  to: discover-markdown-indexer-providers
579
385
  outcomes: [completed]
@@ -744,113 +550,8 @@ edges:
744
550
  - from: observe-indexer-project
745
551
  to: indexer-selection-invalid
746
552
  outcomes: [failed]
747
- - from: build-question-target-inventory
748
- to: build-main-index-partition-worksets
749
- outcomes: [completed]
750
- - from: build-main-index-partition-worksets
751
- to: prepare-main-index-partition-runs
752
- outcomes: [completed]
753
- - from: prepare-main-index-partition-runs
754
- to: observe-main-index-partition-worksets
755
- outcomes: [completed]
756
- - from: observe-main-index-partition-worksets
757
- to: start-main-index-partition-run
758
- outcomes: [partial]
759
- - from: observe-main-index-partition-worksets
760
- to: build-subject-catalog
761
- outcomes: [completed]
762
- - from: observe-main-index-partition-worksets
763
- to: main-index-blocked
764
- outcomes: [failed, blocked]
765
- - from: start-main-index-partition-run
766
- to: run-main-index-partition-workset
767
- outcomes: [completed]
768
- - from: run-main-index-partition-workset
769
- to: converge-main-index-partition-run
770
- outcomes: [completed]
771
- - from: run-main-index-partition-workset
772
- to: fail-main-index-partition-run
773
- outcomes: [failed]
774
- - from: converge-main-index-partition-run
775
- to: observe-main-index-partition-worksets
776
- kind: repeat
777
- outcomes: [completed, partial]
778
- - from: converge-main-index-partition-run
779
- to: start-main-index-catalog-fallback
780
- outcomes: [blocked]
781
- - from: converge-main-index-partition-run
782
- to: main-index-blocked
783
- outcomes: [failed]
784
- - from: start-main-index-catalog-fallback
785
- to: build-main-index-catalog-fallback
786
- outcomes: [completed]
787
- - from: build-main-index-catalog-fallback
788
- to: observe-main-index-partition-worksets
789
- kind: repeat
790
- outcomes: [completed]
791
- - from: build-main-index-catalog-fallback
792
- to: main-index-blocked
793
- outcomes: [failed, blocked]
794
- - from: fail-main-index-partition-run
795
- to: observe-main-index-partition-worksets
796
- kind: repeat
797
- outcomes: [completed]
798
- - from: fail-main-index-partition-run
799
- to: main-index-blocked
800
- outcomes: [failed, blocked]
801
- - from: build-subject-catalog
802
- to: build-target-resolution-views
803
- outcomes: [completed]
804
- - from: build-target-resolution-views
805
- to: audit-projected-artifact-fan-out
806
- outcomes: [completed]
807
- - from: build-target-resolution-views
808
- to: index-target-resolution-ambiguous
809
- outcomes: [blocked]
810
- - from: build-target-resolution-views
811
- to: main-index-blocked
812
- outcomes: [failed]
813
- - from: audit-projected-artifact-fan-out
814
- to: build-main-index-author-worksets
815
- outcomes: [completed]
816
- - from: audit-projected-artifact-fan-out
817
- to: main-index-plan-revision-required
818
- outcomes: [partial]
819
- - from: audit-projected-artifact-fan-out
820
- to: main-index-blocked
821
- outcomes: [failed]
822
- - from: build-main-index-author-worksets
823
- to: prepare-main-index-author-runs
824
- outcomes: [completed]
825
- - from: build-main-index-author-worksets
826
- to: index-target-resolution-ambiguous
827
- outcomes: [blocked]
828
- - from: build-main-index-author-worksets
829
- to: main-index-blocked
830
- outcomes: [failed]
831
- - from: prepare-main-index-author-runs
832
- to: observe-main-index-author-worksets
833
- outcomes: [completed]
834
- - from: observe-main-index-author-worksets
835
- to: start-main-index-author-run
836
- outcomes: [partial]
837
- - from: observe-main-index-author-worksets
838
- to: resolve-effective-composers
839
- outcomes: [completed]
840
- - from: observe-main-index-author-worksets
841
- to: main-index-blocked
842
- outcomes: [failed, blocked]
843
- - from: start-main-index-author-run
844
- to: run-main-index-author-workset
845
- outcomes: [completed]
846
- - from: run-main-index-author-workset
847
- to: validate-main-index-author-result
848
- outcomes: [completed]
849
- - from: run-main-index-author-workset
850
- to: fail-main-index-author-run
851
- outcomes: [failed]
852
553
  - from: validate-main-index-author-result
853
- to: accept-main-index-author-run
554
+ to: done
854
555
  outcomes: [completed]
855
556
  - from: validate-main-index-author-result
856
557
  to: index-target-resolution-ambiguous
@@ -858,185 +559,15 @@ edges:
858
559
  - from: validate-main-index-author-result
859
560
  to: index-target-resolution-invalid
860
561
  outcomes: [failed]
861
- - from: accept-main-index-author-run
862
- to: observe-main-index-author-worksets
863
- kind: repeat
864
- outcomes: [completed]
865
- - from: accept-main-index-author-run
866
- to: main-index-blocked
867
- outcomes: [failed, blocked]
868
- - from: fail-main-index-author-run
869
- to: observe-main-index-author-worksets
870
- kind: repeat
871
- outcomes: [completed]
872
- - from: fail-main-index-author-run
873
- to: main-index-blocked
874
- outcomes: [failed, blocked]
875
- - from: resolve-effective-composers
876
- to: build-post-author-composer-worksets
877
- outcomes: [completed]
878
- - from: build-post-author-composer-worksets
879
- to: reconcile-indexer-results
880
- outcomes: [completed]
881
- - from: build-post-author-composer-worksets
882
- to: observe-post-author-composer-worksets
883
- outcomes: [partial]
884
- - from: build-post-author-composer-worksets
885
- to: post-author-blocked
886
- outcomes: [failed, blocked]
887
- - from: start-post-author-composer-run
888
- to: run-indexer-post-author-composer
889
- outcomes: [completed]
890
562
  - from: run-indexer-post-author-composer
891
- to: accept-post-author-composer-run
563
+ to: done
892
564
  outcomes: [completed]
893
565
  - from: run-indexer-post-author-composer
894
- to: fail-post-author-composer-run
895
- outcomes: [failed]
896
- - from: accept-post-author-composer-run
897
- to: observe-post-author-composer-worksets
898
- kind: repeat
899
- outcomes: [completed]
900
- - from: fail-post-author-composer-run
901
- to: observe-post-author-composer-worksets
902
- kind: repeat
903
- outcomes: [completed]
904
- - from: observe-post-author-composer-worksets
905
- to: start-post-author-composer-run
906
- kind: repeat
907
- outcomes: [partial]
908
- - from: observe-post-author-composer-worksets
909
- to: compose-indexer-post-author-fragments
910
- outcomes: [unverified]
911
- - from: observe-post-author-composer-worksets
912
- to: reconcile-indexer-results
913
- outcomes: [completed]
914
- - from: observe-post-author-composer-worksets
915
566
  to: post-author-blocked
916
- outcomes: [failed, blocked]
917
- - from: compose-indexer-post-author-fragments
918
- to: reconcile-indexer-results
919
- outcomes: [completed]
920
- - from: compose-indexer-post-author-fragments
921
- to: post-author-blocked
922
- outcomes: [failed, blocked]
923
- - from: reconcile-indexer-results
924
- to: checkpoint-material-gaps
925
- outcomes: [completed, partial, blocked]
926
- - from: audit-material-gap-state
927
- to: checkpoint-material-gaps
928
- outcomes: [partial]
929
- - from: audit-material-gap-state
930
- to: close-indexer-approved-knowledge
931
- outcomes: [unverified]
932
- - from: audit-material-gap-state
933
- to: material-answer-blocked
934
- outcomes: [blocked]
935
- - from: audit-material-gap-state
936
- to: material-gap-audit-current
937
- outcomes: [completed]
938
- - from: checkpoint-material-gaps
939
- to: indexer-reconciliation-ready
940
- outcomes: [completed]
941
- - from: checkpoint-material-gaps
942
- to: build-material-question-workset
943
- outcomes: [partial]
944
- - from: checkpoint-material-gaps
945
- to: indexer-capability-gap
946
- outcomes: [blocked]
947
- - from: build-material-question-workset
948
- to: prepare-material-answer-runs
949
- outcomes: [completed]
950
- - from: prepare-material-answer-runs
951
- to: observe-material-answer-runs
952
- outcomes: [completed]
953
- - from: observe-material-answer-runs
954
- to: start-material-answer-run
955
- outcomes: [partial]
956
- - from: observe-material-answer-runs
957
- to: review-material-answer-candidates
958
- outcomes: [unverified]
959
- - from: observe-material-answer-runs
960
- to: evaluate-material-gaps
961
- outcomes: [completed]
962
- - from: observe-material-answer-runs
963
- to: material-answer-blocked
964
- outcomes: [blocked]
965
- - from: observe-material-answer-runs
966
- to: material-answer-failed
967
- outcomes: [failed]
968
- - from: start-material-answer-run
969
- to: run-material-answer-indexers
970
- outcomes: [completed]
971
- - from: run-material-answer-indexers
972
- to: accept-material-answer-run
973
- outcomes: [completed]
974
- - from: run-material-answer-indexers
975
- to: fail-material-answer-run
976
567
  outcomes: [failed]
977
- - from: accept-material-answer-run
978
- to: observe-material-answer-runs
979
- kind: repeat
980
- outcomes: [completed]
981
- - from: fail-material-answer-run
982
- to: observe-material-answer-runs
983
- kind: repeat
984
- outcomes: [completed]
985
- - from: review-material-answer-candidates
986
- to: checkpoint-material-answer-review
987
- outcomes: [completed]
988
- - from: checkpoint-material-answer-review
989
- to: evaluate-material-gaps
990
- outcomes: [completed]
991
- - from: evaluate-material-gaps
992
- to: indexer-reconciliation-ready
993
- outcomes: [completed]
994
- - from: evaluate-material-gaps
995
- to: indexer-layout-ready
996
- outcomes: [partial]
997
- - from: evaluate-material-gaps
998
- to: material-answer-blocked
999
- outcomes: [blocked]
1000
- - from: actualize-material-answer-bindings
1001
- to: indexer-reconciliation-ready
1002
- outcomes: [completed]
1003
- - from: actualize-material-answer-bindings
1004
- to: material-answer-blocked
1005
- outcomes: [blocked]
1006
- - from: close-indexer-approved-knowledge
1007
- to: indexer-approved-knowledge-closed
1008
- outcomes: [completed]
1009
- - from: inspect-index-candidate-review-readiness
1010
- to: review-index-candidates
1011
- outcomes: [completed]
1012
568
  - from: compile-indexer-candidates
1013
569
  to: indexer-candidates-compiled
1014
570
  outcomes: [completed]
1015
571
  - from: report-indexer-incremental-impact
1016
572
  to: indexer-incremental-impact-reported
1017
573
  outcomes: [completed]
1018
- - from: inspect-index-candidate-review-readiness
1019
- to: index-baseline-audit-failed
1020
- outcomes: [failed]
1021
- - from: inspect-index-candidate-review-readiness
1022
- to: revise-index-output
1023
- outcomes: [blocked]
1024
- - from: revise-index-output
1025
- to: record-index-profile-revision
1026
- outcomes: [completed]
1027
- - from: record-index-profile-revision
1028
- to: index-profile-revision-pending
1029
- outcomes: [partial]
1030
- - from: record-index-profile-revision
1031
- to: report-index-profile-failure
1032
- outcomes: [completed]
1033
- - from: report-index-profile-failure
1034
- to: override-index-profile-audit
1035
- outcomes: [completed]
1036
- - from: override-index-profile-audit
1037
- to: inspect-index-candidate-review-readiness
1038
- kind: repeat
1039
- outcomes: [completed]
1040
- - from: review-index-candidates
1041
- to: index-candidate-review-complete
1042
- outcomes: [completed]