@c4a/context-cli 0.7.1 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +18 -39
  2. package/README.zh-CN.md +13 -27
  3. package/cli.js +59797 -81281
  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 +44 -85
  26. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  27. package/plugins/codex/skills/context/SKILL.md +44 -85
  28. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  29. package/plugins/cursor/commands/c4a-context.md +44 -85
  30. package/plugins/skills/context/SKILL.md +44 -85
  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/configure-indexer-providers.yaml +1 -1
  48. package/providers/context/actions/materialize-indexer-workset-view.yaml +7 -0
  49. package/providers/context/actions/run-indexer-post-author-composer.yaml +1 -1
  50. package/providers/context/codes.yaml +6 -22
  51. package/providers/context/graphs/indexer.yaml +73 -564
  52. package/providers/context/graphs/workspace.yaml +5 -44
  53. package/providers/context/manifest.json +77 -666
  54. package/providers/context/provider.yaml +1 -1
  55. package/providers/context/resources/dialogue/human-gates.md +3 -3
  56. package/providers/context/resources/manuals/reference/package-templates.md +2 -3
  57. package/providers/context/resources/manuals/reference/project-api.md +52 -986
  58. package/providers/context/resources/procedures/close-and-build.md +8 -23
  59. package/providers/context/resources/procedures/knowledge-review.md +13 -4
  60. package/providers/context/resources/procedures/source-capture-detailed.md +6 -8
  61. package/providers/context/resources/views/authorized-indexer-workset-view.yaml +15 -0
  62. package/providers/context/schemas/indexer-agent-step-input.schema.json +2 -2
  63. package/providers/context/schemas/indexer-agent-step-result.schema.json +298 -32
  64. package/providers/context/schemas/indexer-authorized-workset-view.schema.json +65 -0
  65. package/providers/context/schemas/indexer-main-lifecycle-input.schema.json +13 -20
  66. package/providers/context/schemas/indexer-main-lifecycle-output.schema.json +17 -2
  67. package/providers/context/schemas/indexer-materialized-resource.schema.json +8 -1
  68. package/providers/context/schemas/indexer-overlay-question-proposal-input.schema.json +51 -2
  69. package/providers/context/schemas/indexer-workset-view-materialization-request.schema.json +32 -0
  70. package/providers/context/skills/configure-indexer-providers/SKILL.md +40 -27
  71. package/providers/context/skills/run-indexer-agent-step/SKILL.md +34 -8
  72. package/providers/context/skills/run-indexer-lifecycle/SKILL.md +5 -4
  73. package/providers/context/skills/run-indexer-post-author-composer/SKILL.md +38 -9
  74. package/docs/document-optimization.md +0 -82
  75. package/docs/document-optimization.zh-CN.md +0 -70
  76. package/indexers/capability-manifest.json +0 -35
  77. package/indexers/contracts/hard-rule-conformance.json +0 -2644
  78. package/providers/context/actions/accept-main-index-run.yaml +0 -7
  79. package/providers/context/actions/accept-material-answer-run.yaml +0 -7
  80. package/providers/context/actions/accept-post-author-composer-run.yaml +0 -7
  81. package/providers/context/actions/actualize-material-answer-bindings.yaml +0 -8
  82. package/providers/context/actions/audit-material-gap-state.yaml +0 -8
  83. package/providers/context/actions/audit-projected-artifact-fan-out.yaml +0 -8
  84. package/providers/context/actions/build-main-index-author-worksets.yaml +0 -7
  85. package/providers/context/actions/build-main-index-catalog-fallback.yaml +0 -7
  86. package/providers/context/actions/build-main-index-partition-worksets.yaml +0 -7
  87. package/providers/context/actions/build-material-question-workset.yaml +0 -7
  88. package/providers/context/actions/build-post-author-composer-worksets.yaml +0 -7
  89. package/providers/context/actions/build-question-target-inventory.yaml +0 -7
  90. package/providers/context/actions/build-subject-catalog.yaml +0 -7
  91. package/providers/context/actions/build-target-resolution-views.yaml +0 -7
  92. package/providers/context/actions/checkpoint-material-answer-review.yaml +0 -8
  93. package/providers/context/actions/checkpoint-material-gaps.yaml +0 -8
  94. package/providers/context/actions/close-indexer-approved-knowledge.yaml +0 -8
  95. package/providers/context/actions/compose-indexer-post-author-fragments.yaml +0 -7
  96. package/providers/context/actions/converge-main-index-partition-run.yaml +0 -7
  97. package/providers/context/actions/evaluate-material-gaps.yaml +0 -8
  98. package/providers/context/actions/fail-main-index-run.yaml +0 -7
  99. package/providers/context/actions/fail-material-answer-run.yaml +0 -7
  100. package/providers/context/actions/fail-post-author-composer-run.yaml +0 -7
  101. package/providers/context/actions/inspect-index-candidate-review-readiness.yaml +0 -8
  102. package/providers/context/actions/inspect-index-profile-failure.yaml +0 -7
  103. package/providers/context/actions/inspect-material-answer-review.yaml +0 -8
  104. package/providers/context/actions/observe-main-index-run-ledger.yaml +0 -7
  105. package/providers/context/actions/observe-material-answer-runs.yaml +0 -7
  106. package/providers/context/actions/observe-post-author-composer-worksets.yaml +0 -7
  107. package/providers/context/actions/override-index-profile-audit.yaml +0 -7
  108. package/providers/context/actions/prepare-main-index-run-ledger.yaml +0 -7
  109. package/providers/context/actions/prepare-material-answer-runs.yaml +0 -7
  110. package/providers/context/actions/reconcile-indexer-results.yaml +0 -7
  111. package/providers/context/actions/reconcile-review-identities.yaml +0 -5
  112. package/providers/context/actions/record-index-profile-revision.yaml +0 -7
  113. package/providers/context/actions/report-index-profile-failure.yaml +0 -7
  114. package/providers/context/actions/resolve-effective-composers.yaml +0 -7
  115. package/providers/context/actions/review-material-answer-candidate.yaml +0 -8
  116. package/providers/context/actions/revise-document.yaml +0 -5
  117. package/providers/context/actions/revise-index-output.yaml +0 -7
  118. package/providers/context/actions/run-material-answer-indexers.yaml +0 -7
  119. package/providers/context/actions/start-main-index-run.yaml +0 -7
  120. package/providers/context/actions/start-material-answer-run.yaml +0 -7
  121. package/providers/context/actions/start-post-author-composer-run.yaml +0 -7
  122. package/providers/context/resources/procedures/document-revision.md +0 -36
  123. package/providers/context/resources/views/document-optimization-current.yaml +0 -6
  124. package/providers/context/schemas/indexer-candidate-review-readiness-input.schema.json +0 -46
  125. package/providers/context/schemas/indexer-candidate-review-readiness-output.schema.json +0 -104
  126. package/providers/context/schemas/indexer-material-answer-lifecycle-input.schema.json +0 -90
  127. package/providers/context/schemas/indexer-material-answer-lifecycle-output.schema.json +0 -80
  128. package/providers/context/schemas/indexer-material-answer-review-inspection-input.schema.json +0 -32
  129. package/providers/context/schemas/indexer-material-answer-review-inspection-output.schema.json +0 -32
  130. package/providers/context/schemas/indexer-material-answer-review-resolution-input.schema.json +0 -19
  131. package/providers/context/schemas/indexer-material-answer-review-resolution-output.schema.json +0 -87
  132. package/providers/context/schemas/indexer-material-gap-lifecycle-input.schema.json +0 -86
  133. package/providers/context/schemas/indexer-material-gap-lifecycle-output.schema.json +0 -19
  134. package/providers/context/schemas/indexer-post-author-fragment-result.schema.json +0 -18
  135. package/providers/context/schemas/indexer-post-author-lifecycle-input.schema.json +0 -94
  136. package/providers/context/schemas/indexer-post-author-lifecycle-output.schema.json +0 -72
  137. package/providers/context/schemas/indexer-profile-failure-inspection-input.schema.json +0 -13
  138. package/providers/context/schemas/indexer-profile-failure-inspection-result.schema.json +0 -19
  139. package/providers/context/schemas/indexer-profile-failure-report-input.schema.json +0 -22
  140. package/providers/context/schemas/indexer-profile-failure-report-result.schema.json +0 -49
  141. package/providers/context/schemas/indexer-profile-override-decision.schema.json +0 -20
  142. package/providers/context/schemas/indexer-profile-override-result.schema.json +0 -49
  143. package/providers/context/schemas/indexer-profile-revision-agent-input.schema.json +0 -18
  144. package/providers/context/schemas/indexer-profile-revision-record-input.schema.json +0 -31
  145. package/providers/context/schemas/indexer-profile-revision-record-result.schema.json +0 -45
  146. package/providers/context/schemas/indexer-result-reconciliation-input.schema.json +0 -59
  147. package/providers/context/schemas/indexer-result-reconciliation-output.schema.json +0 -43
  148. package/providers/context/skills/revise-index-output/SKILL.md +0 -12
@@ -13,20 +13,75 @@ entrypoints:
13
13
  overlay-question-proposal: propose-overlay-question-amendment
14
14
  overlay-question-rebind: rebind-indexer-selection-to-requirement
15
15
  project-confirmation: confirm-indexer-project
16
- main-index: build-question-target-inventory
16
+ main-index: advance-current-indexer-lifecycle
17
+ current-lifecycle: advance-current-indexer-lifecycle
17
18
  main-run-validation: validate-main-index-author-result
18
19
  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
20
  candidate-compile: compile-indexer-candidates
28
21
  incremental-impact: report-indexer-incremental-impact
29
22
  nodes:
23
+ - id: advance-current-indexer-lifecycle
24
+ kind: action
25
+ reasonCode: route.indexer.lifecycle-advance
26
+ action: actions/advance-current-indexer-lifecycle.yaml
27
+ satisfiedBy:
28
+ - path: indexer_current.advance_complete
29
+ equals: true
30
+ - id: run-current-indexer-agent
31
+ kind: action
32
+ reasonCode: route.indexer.agent-step
33
+ action: actions/run-indexer-agent-step.yaml
34
+ satisfiedBy:
35
+ - path: indexer_current.agent_complete
36
+ equals: true
37
+ resources:
38
+ required:
39
+ - resources/views/resolved-indexer-instructions.yaml
40
+ - resources/views/authorized-indexer-workset-view.yaml
41
+ - id: review-current-indexer-structure
42
+ kind: gate
43
+ reasonCode: route.indexer.semantic-structure-review
44
+ gate:
45
+ id: indexer-semantic-structure-review
46
+ prompt: Review the complete semantic structure and its create-or-enrich targets before authoring.
47
+ authority: context.knowledge-review
48
+ delegatable: true
49
+ satisfiedBy:
50
+ - path: indexer_current.structure_review_complete
51
+ equals: true
52
+ - id: run-current-indexer-composer
53
+ kind: action
54
+ reasonCode: route.indexer.post-author-agent-step
55
+ action: actions/run-indexer-post-author-composer.yaml
56
+ satisfiedBy:
57
+ - path: indexer_current.composer_complete
58
+ equals: true
59
+ resources:
60
+ required:
61
+ - resources/views/resolved-indexer-instructions.yaml
62
+ - id: resolve-current-indexer-block
63
+ kind: gate
64
+ reasonCode: route.indexer.recovery-required
65
+ gate:
66
+ id: indexer-recovery
67
+ prompt: Resolve the reported source, material, or execution failure before retrying the current Indexer lifecycle.
68
+ delegatable: false
69
+ satisfiedBy:
70
+ - path: indexer_current.blockers_clear
71
+ equals: true
72
+ - id: confirm-current-indexer-layout
73
+ kind: gate
74
+ reasonCode: route.indexer.layout-confirmation-required
75
+ gate:
76
+ id: confirm-layout-change
77
+ prompt: Confirm the proposed knowledge layout change or reject it with revision feedback.
78
+ delegatable: false
79
+ satisfiedBy:
80
+ - path: indexer_current.layout_confirmed
81
+ equals: true
82
+ - id: current-indexer-ready
83
+ kind: terminal
84
+ terminalOutcome: completed
30
85
  - id: configure-indexer-providers
31
86
  kind: action
32
87
  reasonCode: route.indexer.provider-configuration
@@ -161,6 +216,7 @@ nodes:
161
216
  resources:
162
217
  required:
163
218
  - resources/views/resolved-indexer-instructions.yaml
219
+ - resources/views/authorized-indexer-workset-view.yaml
164
220
  - id: propose-overlay-question-amendment
165
221
  kind: action
166
222
  reasonCode: route.indexer.overlay-question-proposal
@@ -258,65 +314,6 @@ nodes:
258
314
  kind: action
259
315
  reasonCode: route.indexer.project-observation
260
316
  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
317
  - id: validate-main-index-author-result
321
318
  kind: action
322
319
  reasonCode: route.indexer.main-run-validation
@@ -329,183 +326,17 @@ nodes:
329
326
  kind: terminal
330
327
  join: any
331
328
  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
329
  - id: run-indexer-post-author-composer
379
330
  kind: action
380
331
  reasonCode: route.indexer.post-author-agent-step
381
332
  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
333
  resources:
466
334
  required:
467
335
  - 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
336
  - id: post-author-blocked
502
337
  kind: terminal
503
338
  join: any
504
339
  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
340
  - id: compile-indexer-candidates
510
341
  kind: action
511
342
  reasonCode: route.indexer.candidate-compile
@@ -520,60 +351,13 @@ nodes:
520
351
  - id: indexer-incremental-impact-reported
521
352
  kind: terminal
522
353
  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
354
  edges:
355
+ - { from: advance-current-indexer-lifecycle, to: run-current-indexer-agent }
356
+ - { from: run-current-indexer-agent, to: review-current-indexer-structure }
357
+ - { from: review-current-indexer-structure, to: run-current-indexer-composer, kind: gatedBy }
358
+ - { from: run-current-indexer-composer, to: resolve-current-indexer-block }
359
+ - { from: resolve-current-indexer-block, to: confirm-current-indexer-layout, kind: gatedBy }
360
+ - { from: confirm-current-indexer-layout, to: current-indexer-ready, kind: gatedBy }
577
361
  - from: inspect-markdown-provider-capture
578
362
  to: discover-markdown-indexer-providers
579
363
  outcomes: [completed]
@@ -744,113 +528,8 @@ edges:
744
528
  - from: observe-indexer-project
745
529
  to: indexer-selection-invalid
746
530
  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
531
  - from: validate-main-index-author-result
853
- to: accept-main-index-author-run
532
+ to: done
854
533
  outcomes: [completed]
855
534
  - from: validate-main-index-author-result
856
535
  to: index-target-resolution-ambiguous
@@ -858,185 +537,15 @@ edges:
858
537
  - from: validate-main-index-author-result
859
538
  to: index-target-resolution-invalid
860
539
  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
540
  - from: run-indexer-post-author-composer
891
- to: accept-post-author-composer-run
541
+ to: done
892
542
  outcomes: [completed]
893
543
  - 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
- 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
544
  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
545
  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
- 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
546
  - from: compile-indexer-candidates
1013
547
  to: indexer-candidates-compiled
1014
548
  outcomes: [completed]
1015
549
  - from: report-indexer-incremental-impact
1016
550
  to: indexer-incremental-impact-reported
1017
551
  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]