@c4a/context-cli 0.6.18 → 0.6.19

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 (46) hide show
  1. package/README.md +6 -2
  2. package/README.zh-CN.md +5 -2
  3. package/cli.js +8551 -5388
  4. package/docs/document-optimization.md +35 -11
  5. package/docs/document-optimization.zh-CN.md +29 -9
  6. package/package.json +2 -2
  7. package/plugins/VERSION +1 -1
  8. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  9. package/plugins/claude/commands/context.md +36 -6
  10. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  11. package/plugins/codex/skills/context/SKILL.md +36 -6
  12. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  13. package/plugins/cursor/commands/c4a-context.md +36 -6
  14. package/plugins/skills/c4a-context/SKILL.md +36 -6
  15. package/providers/context/actions/apply-code-index-guidance.yaml +5 -0
  16. package/providers/context/actions/maintain-evidence.yaml +1 -1
  17. package/providers/context/actions/migrate-codeindex.yaml +5 -0
  18. package/providers/context/actions/register-source-batch.yaml +1 -1
  19. package/providers/context/actions/restore-repository-sources.yaml +1 -1
  20. package/providers/context/codes.yaml +2 -0
  21. package/providers/context/graphs/workspace.yaml +32 -2
  22. package/providers/context/manifest.json +76 -58
  23. package/providers/context/provider.yaml +1 -1
  24. package/providers/context/resources/dialogue/code-extraction.md +12 -0
  25. package/providers/context/resources/dialogue/document-classification.md +1 -1
  26. package/providers/context/resources/dialogue/knowledge-review.md +7 -1
  27. package/providers/context/resources/dialogue/source-boundary.md +9 -1
  28. package/providers/context/resources/dialogue/workflow-mode-after-capture.md +11 -8
  29. package/providers/context/resources/dialogue/workflow-mode-after-creation.md +6 -4
  30. package/providers/context/resources/manuals/guides/lark-resources.md +7 -0
  31. package/providers/context/resources/manuals/guides/package-outputs.md +3 -3
  32. package/providers/context/resources/manuals/reference/code-extractors.md +5 -4
  33. package/providers/context/resources/manuals/reference/package-templates.md +18 -10
  34. package/providers/context/resources/manuals/reference/project-api.md +47 -22
  35. package/providers/context/resources/procedures/close-and-build.md +24 -9
  36. package/providers/context/resources/procedures/code-extraction.md +35 -11
  37. package/providers/context/resources/procedures/code-index-audit.md +53 -13
  38. package/providers/context/resources/procedures/document-capture.md +9 -0
  39. package/providers/context/resources/procedures/document-optimization.md +69 -21
  40. package/providers/context/resources/procedures/document-revision.md +11 -6
  41. package/providers/context/resources/procedures/knowledge-review.md +4 -1
  42. package/providers/context/resources/procedures/source-boundary.md +20 -8
  43. package/providers/context/resources/semantic/align/structure-planning.md +4 -4
  44. package/providers/context/resources/semantic/code-index/classification.md +8 -5
  45. package/providers/context/schemas/document-optimization-decisions.schema.json +29 -6
  46. package/providers/context/schemas/source-batch-input.schema.json +18 -3
@@ -2,14 +2,14 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.6.18"
5
+ "version": "0.6.19"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
9
9
  {
10
10
  "id": "workspace",
11
11
  "path": "graphs/workspace.yaml",
12
- "digest": "sha256:010fae5620a92e492de41d1213c34ad4013681ff2f72cc4f8e30d29ad4359881"
12
+ "digest": "sha256:25a7b3e87b8052cdb82bccc4b91753ff9974876498d7e44781d1238c49d80925"
13
13
  }
14
14
  ],
15
15
  "actions": [
@@ -23,6 +23,11 @@
23
23
  "path": "actions/align-next.yaml",
24
24
  "digest": "sha256:8f2a7203d5b631c0b1e6cc14d4d70acbf8ac0197b3cfd19fa3111212ffb47498"
25
25
  },
26
+ {
27
+ "id": "apply-code-index-guidance",
28
+ "path": "actions/apply-code-index-guidance.yaml",
29
+ "digest": "sha256:42dd7e82813d31421078cb977e125ffae1ec219f9512a0e3ac32f1d2aff8041a"
30
+ },
26
31
  {
27
32
  "id": "apply-forced-review",
28
33
  "path": "actions/apply-forced-review.yaml",
@@ -116,13 +121,18 @@
116
121
  {
117
122
  "id": "maintain-evidence",
118
123
  "path": "actions/maintain-evidence.yaml",
119
- "digest": "sha256:d8538b28f57e16e87d7ec7037257353364c9d1cc423fecbf9028a5b2e80e051f"
124
+ "digest": "sha256:aad5a46717dada265d01caa9f6c872ffe9428b18e7b04450a506966574448aa5"
120
125
  },
121
126
  {
122
127
  "id": "materialize-context-view",
123
128
  "path": "actions/materialize-context-view.yaml",
124
129
  "digest": "sha256:0ed6b73b6a31324575fd10fb8f2067c8381609ab272a031b326080506105d115"
125
130
  },
131
+ {
132
+ "id": "migrate-codeindex",
133
+ "path": "actions/migrate-codeindex.yaml",
134
+ "digest": "sha256:984316fa010f8ce570b4c9c3db8945e0e80f7a1dfb48c3db5ba3a1bcf6383a9a"
135
+ },
126
136
  {
127
137
  "id": "optimize-documents",
128
138
  "path": "actions/optimize-documents.yaml",
@@ -141,7 +151,7 @@
141
151
  {
142
152
  "id": "register-source-batch",
143
153
  "path": "actions/register-source-batch.yaml",
144
- "digest": "sha256:e2f406ce398f21bfb0a0cb43b88416422581519a8e74168f44a2a4f5f7e673f6"
154
+ "digest": "sha256:506cd677d79363035040b83c30f3444e9d41a886e9532023db6b8a17444ad951"
145
155
  },
146
156
  {
147
157
  "id": "repair-project-entry",
@@ -161,7 +171,7 @@
161
171
  {
162
172
  "id": "restore-repository-sources",
163
173
  "path": "actions/restore-repository-sources.yaml",
164
- "digest": "sha256:8e44f0dc15ac9b0eea8af62dcefd315d7c03a52dab1cda373537d275ae7383dc"
174
+ "digest": "sha256:58e40ee93d6bd1a9fe11d208fe771b576f8c5ceb05105d3e92a9aecc6b4a7fd8"
165
175
  },
166
176
  {
167
177
  "id": "revise-code-index-audit",
@@ -208,22 +218,22 @@
208
218
  {
209
219
  "id": "context.sdk.lark-resources",
210
220
  "path": "resources/manuals/guides/lark-resources.md",
211
- "digest": "sha256:a179bb8bf7d8185bb6f3033ef692dd15fa5b702c91525e7c272d3025d3bb7c52"
221
+ "digest": "sha256:953950412d35dc842be1d0bcdcf6c39bd3a7d78ad0a1b6e3f66f82ca1c5f476e"
212
222
  },
213
223
  {
214
224
  "id": "context.sdk.package-outputs",
215
225
  "path": "resources/manuals/guides/package-outputs.md",
216
- "digest": "sha256:c490d63f03b11c87e62a2e44b2338db04a08f62bdafccb044063a717895bbbf4"
226
+ "digest": "sha256:d9a279e2a683802f838d9ff1cf49a84de703e9aef7a610cb08ef04ad91bbb88a"
217
227
  },
218
228
  {
219
229
  "id": "context.sdk.package-templates",
220
230
  "path": "resources/manuals/reference/package-templates.md",
221
- "digest": "sha256:c119fae47e848d5a0103bcc7215a1372515139896d5ca8a852ebd8e58b8c854a"
231
+ "digest": "sha256:9da4ee1684ffc0e1345d95567bb30566104140eb979269d3982f32f8c865eb64"
222
232
  },
223
233
  {
224
234
  "id": "context.sdk.project-api",
225
235
  "path": "resources/manuals/reference/project-api.md",
226
- "digest": "sha256:5fe640181630d7a363aec785ff8c76963bd41f797a4546d903fd6d5c1e7fd82b"
236
+ "digest": "sha256:b46ba47f9f0e5212c7633f9711074ee8cddbd75de50ebfab6198a9fc1aea5ee8"
227
237
  },
228
238
  {
229
239
  "id": "context.sdk.template-variables",
@@ -248,7 +258,7 @@
248
258
  {
249
259
  "id": "context.semantic.align.structure-planning",
250
260
  "path": "resources/semantic/align/structure-planning.md",
251
- "digest": "sha256:73d7d1cb49ad27691e7baa29003fa1736fc8a7036c6094f40f733e62fd3c1aad"
261
+ "digest": "sha256:2930594fe849d3e70d2746c7619cff3ebbe70851c1f00ef3396f3cdf3860949a"
252
262
  },
253
263
  {
254
264
  "id": "context.semantic.compile.index",
@@ -298,7 +308,7 @@
298
308
  {
299
309
  "id": "dialogue.code-extraction",
300
310
  "path": "resources/dialogue/code-extraction.md",
301
- "digest": "sha256:51e32fb63913c21e09c94df2d600d289ca60e248a760aa35eea246e8794dbc49"
311
+ "digest": "sha256:be355208daf818ec81c0521f0ca0e2a05b5229531b1b9259e06afaadab17a879"
302
312
  },
303
313
  {
304
314
  "id": "dialogue.document-capture",
@@ -308,7 +318,7 @@
308
318
  {
309
319
  "id": "dialogue.document-classification",
310
320
  "path": "resources/dialogue/document-classification.md",
311
- "digest": "sha256:679db260d5c496fae2a1526ea27c76220e62e782259ef21a216a30cf868d791f"
321
+ "digest": "sha256:b26f23c9d99a1287f7fd8e59f5700cdeeafca015d731455fa518825c64477f86"
312
322
  },
313
323
  {
314
324
  "id": "dialogue.evidence-maintenance",
@@ -323,7 +333,7 @@
323
333
  {
324
334
  "id": "dialogue.knowledge-review",
325
335
  "path": "resources/dialogue/knowledge-review.md",
326
- "digest": "sha256:26699582f0d9c014e84e4b21b5cf591614edbe16b544d6145c8dd61112bc1339"
336
+ "digest": "sha256:d26107888fa81b1deb664377c0486de37dd72fd6bf23330deddc835f51bafcc8"
327
337
  },
328
338
  {
329
339
  "id": "dialogue.package-output",
@@ -338,7 +348,7 @@
338
348
  {
339
349
  "id": "dialogue.source-boundary",
340
350
  "path": "resources/dialogue/source-boundary.md",
341
- "digest": "sha256:ae8436045b0de5ace6843b47a552a72ffc0020fa82612e594465cf193255803f"
351
+ "digest": "sha256:15d37249d1cb2a8921247c689d81c135911b9933550120fadd8c17237c2c2c29"
342
352
  },
343
353
  {
344
354
  "id": "dialogue.structure-confirmation",
@@ -348,37 +358,37 @@
348
358
  {
349
359
  "id": "dialogue.workflow-mode-after-capture",
350
360
  "path": "resources/dialogue/workflow-mode-after-capture.md",
351
- "digest": "sha256:62541da2fe8d69fe2369bad2a402ef0e8c791960ac139dfe9bb86cc3ca29180b"
361
+ "digest": "sha256:4a7ba14b78519ee2486361641342c20ad54a2587571eb1ae1755a5a924ff9903"
352
362
  },
353
363
  {
354
364
  "id": "dialogue.workflow-mode-after-creation",
355
365
  "path": "resources/dialogue/workflow-mode-after-creation.md",
356
- "digest": "sha256:92de8c4f7deec35148ee3e47c7b6eea8b814d1cc7610113b5b81751ba50da2d2"
366
+ "digest": "sha256:37a4c4766c530baa5b7f52e543b702bed6de6506c6360a041de60571af2292ac"
357
367
  },
358
368
  {
359
369
  "id": "manual.reference.code-extractors",
360
370
  "path": "resources/manuals/reference/code-extractors.md",
361
- "digest": "sha256:1f5de051d819b29a6c8c2692f08cd8ce9556b6e36b83d1f0cad1295e03865f4f"
371
+ "digest": "sha256:9d8e26914576e6d56f505520590874aabbe29c6f8ee17812bce9a5235d4a24a7"
362
372
  },
363
373
  {
364
374
  "id": "procedure.close-and-build",
365
375
  "path": "resources/procedures/close-and-build.md",
366
- "digest": "sha256:4f68373f9406dee8607a7b814e97dcd25c8508c2113f0f50152af1ef24ea33ef"
376
+ "digest": "sha256:cf3c635f49f42e86348009b49dcc1a6b9ee31492106419adf2bd7211c42cf469"
367
377
  },
368
378
  {
369
379
  "id": "procedure.code-extraction",
370
380
  "path": "resources/procedures/code-extraction.md",
371
- "digest": "sha256:1e5bbf399bdf442c28e52f5f8faeb16e8f5f8fdd94f6ccdfae87ec63ded478b7"
381
+ "digest": "sha256:7901ad3cce9e59a7e8883ec0005883e665c1b287cca2dd1434ffaa8d833986aa"
372
382
  },
373
383
  {
374
384
  "id": "procedure.code-index-audit",
375
385
  "path": "resources/procedures/code-index-audit.md",
376
- "digest": "sha256:72f98ccb1370c58381187eba9d90808cf4c71168febf17a74147da05db13c169"
386
+ "digest": "sha256:57ceabbcd98edc1ba32e4ed45e7de7e65866d1ebee71b778f453738a8dfac7c0"
377
387
  },
378
388
  {
379
389
  "id": "procedure.document-capture",
380
390
  "path": "resources/procedures/document-capture.md",
381
- "digest": "sha256:482fa395dbc5ed167a4c1180463e0b9929d2a9a5a90f4ef0b5122cabf2cce80b"
391
+ "digest": "sha256:46a8231e92fcb19db7918938970ace8b4e4c22153fa8cbf0bb8100275bfbbfcf"
382
392
  },
383
393
  {
384
394
  "id": "procedure.document-classification",
@@ -388,12 +398,12 @@
388
398
  {
389
399
  "id": "procedure.document-optimization",
390
400
  "path": "resources/procedures/document-optimization.md",
391
- "digest": "sha256:b8ede87f762fb75e9432c69a8c3e6f37ff4558cf3c29748b8fa3a7cc9be45860"
401
+ "digest": "sha256:be1be830d2f7cc5409fcac47a43fd85c745056d705dac7c817f50bfe67ba15b3"
392
402
  },
393
403
  {
394
404
  "id": "procedure.document-revision",
395
405
  "path": "resources/procedures/document-revision.md",
396
- "digest": "sha256:91fff957375ef933a4ae9a613c505c5e93b30474e46c6c1bc283ac9b15c70aa7"
406
+ "digest": "sha256:a46498f66070485c019ed70c84640ed12f6374371ca9e6df0f42b93da69c051b"
397
407
  },
398
408
  {
399
409
  "id": "procedure.evidence-maintenance",
@@ -403,7 +413,7 @@
403
413
  {
404
414
  "id": "procedure.knowledge-review",
405
415
  "path": "resources/procedures/knowledge-review.md",
406
- "digest": "sha256:ee67b6182b7315d60aea3ed023e0688e3a0c80d90d8ebe31f38d04708d5228d1"
416
+ "digest": "sha256:ced7bb8dec7315e7f025df5492caab7f34b1134a6f476ca0e096a436ad956e36"
407
417
  },
408
418
  {
409
419
  "id": "procedure.package-output",
@@ -438,7 +448,7 @@
438
448
  {
439
449
  "id": "procedure.source-boundary",
440
450
  "path": "resources/procedures/source-boundary.md",
441
- "digest": "sha256:99097947961d7fa5b17f9e6b9c9471aac38cec1943bd7feb414b21d6a1e26a49"
451
+ "digest": "sha256:de7e9c274cb180295a65c494abadf0d78cce864c5770fe77f481567339d36d31"
442
452
  },
443
453
  {
444
454
  "id": "procedure.source-capture-detailed",
@@ -453,7 +463,7 @@
453
463
  {
454
464
  "id": "semantic.code-index.classification",
455
465
  "path": "resources/semantic/code-index/classification.md",
456
- "digest": "sha256:5a00d66a5703406531c4ff107eb416e3e825dc2413f394beef672fabb95e764d"
466
+ "digest": "sha256:6b76d21d95da84938a0cd044734befefe7a72cc05f2222ef95ff1f8ade982da1"
457
467
  },
458
468
  {
459
469
  "id": "semantic.code-index.template.adapter",
@@ -540,7 +550,7 @@
540
550
  {
541
551
  "id": "schemas/document-optimization-decisions.schema.json",
542
552
  "path": "schemas/document-optimization-decisions.schema.json",
543
- "digest": "sha256:a21e84dbdcc2bad85970ebc3171f58176b480f751076745424c7f9742b972f5c"
553
+ "digest": "sha256:6cf551aba82ff2a2ffcb575994c5c87974c3eb30a71dad74c0c5cbaaab445cfb"
544
554
  },
545
555
  {
546
556
  "id": "schemas/evidence-maintenance-input.schema.json",
@@ -560,7 +570,7 @@
560
570
  {
561
571
  "id": "schemas/source-batch-input.schema.json",
562
572
  "path": "schemas/source-batch-input.schema.json",
563
- "digest": "sha256:aa5f1a1bf6a6573982e89e50c9d991f6aa72a5cbbda0867d1f483e30315c4409"
573
+ "digest": "sha256:0788501d70073a93c9d6d652bc85d806ea2e71abb2e9cfb6ad70e566e2675abf"
564
574
  }
565
575
  ],
566
576
  "files": [
@@ -572,6 +582,10 @@
572
582
  "path": "actions/align-next.yaml",
573
583
  "digest": "sha256:8f2a7203d5b631c0b1e6cc14d4d70acbf8ac0197b3cfd19fa3111212ffb47498"
574
584
  },
585
+ {
586
+ "path": "actions/apply-code-index-guidance.yaml",
587
+ "digest": "sha256:42dd7e82813d31421078cb977e125ffae1ec219f9512a0e3ac32f1d2aff8041a"
588
+ },
575
589
  {
576
590
  "path": "actions/apply-forced-review.yaml",
577
591
  "digest": "sha256:ed530819831b68824bd373dec399c73a30d7eeebd2ef72ae0eab3e7a60cad80f"
@@ -646,12 +660,16 @@
646
660
  },
647
661
  {
648
662
  "path": "actions/maintain-evidence.yaml",
649
- "digest": "sha256:d8538b28f57e16e87d7ec7037257353364c9d1cc423fecbf9028a5b2e80e051f"
663
+ "digest": "sha256:aad5a46717dada265d01caa9f6c872ffe9428b18e7b04450a506966574448aa5"
650
664
  },
651
665
  {
652
666
  "path": "actions/materialize-context-view.yaml",
653
667
  "digest": "sha256:0ed6b73b6a31324575fd10fb8f2067c8381609ab272a031b326080506105d115"
654
668
  },
669
+ {
670
+ "path": "actions/migrate-codeindex.yaml",
671
+ "digest": "sha256:984316fa010f8ce570b4c9c3db8945e0e80f7a1dfb48c3db5ba3a1bcf6383a9a"
672
+ },
655
673
  {
656
674
  "path": "actions/optimize-documents.yaml",
657
675
  "digest": "sha256:5fdd18379742c20af19e8a92e2591dd85270fa4a6af5d0adea6430b43049bebb"
@@ -666,7 +684,7 @@
666
684
  },
667
685
  {
668
686
  "path": "actions/register-source-batch.yaml",
669
- "digest": "sha256:e2f406ce398f21bfb0a0cb43b88416422581519a8e74168f44a2a4f5f7e673f6"
687
+ "digest": "sha256:506cd677d79363035040b83c30f3444e9d41a886e9532023db6b8a17444ad951"
670
688
  },
671
689
  {
672
690
  "path": "actions/repair-project-entry.yaml",
@@ -682,7 +700,7 @@
682
700
  },
683
701
  {
684
702
  "path": "actions/restore-repository-sources.yaml",
685
- "digest": "sha256:8e44f0dc15ac9b0eea8af62dcefd315d7c03a52dab1cda373537d275ae7383dc"
703
+ "digest": "sha256:58e40ee93d6bd1a9fe11d208fe771b576f8c5ceb05105d3e92a9aecc6b4a7fd8"
686
704
  },
687
705
  {
688
706
  "path": "actions/revise-code-index-audit.yaml",
@@ -698,15 +716,15 @@
698
716
  },
699
717
  {
700
718
  "path": "codes.yaml",
701
- "digest": "sha256:387e46f7da76e3152dcd5ab61481bb3c4465624ecfbfd58994276b67b4565f5e"
719
+ "digest": "sha256:a140c4c9dedb927f52aa76a292d6bf4ac12f34434d3e2882d6aa7fbe8b629971"
702
720
  },
703
721
  {
704
722
  "path": "graphs/workspace.yaml",
705
- "digest": "sha256:010fae5620a92e492de41d1213c34ad4013681ff2f72cc4f8e30d29ad4359881"
723
+ "digest": "sha256:25a7b3e87b8052cdb82bccc4b91753ff9974876498d7e44781d1238c49d80925"
706
724
  },
707
725
  {
708
726
  "path": "provider.yaml",
709
- "digest": "sha256:d4fc8b8a219056c3f48bfa69d467e12e592a348f1c823a08ab553e8374d6af54"
727
+ "digest": "sha256:80803dc4dc1d18647fb988ae3b02693775a30af3be5e4fe824c96e68c1dc2d43"
710
728
  },
711
729
  {
712
730
  "path": "resources/diagnostics/projection-stale.md",
@@ -722,7 +740,7 @@
722
740
  },
723
741
  {
724
742
  "path": "resources/dialogue/code-extraction.md",
725
- "digest": "sha256:51e32fb63913c21e09c94df2d600d289ca60e248a760aa35eea246e8794dbc49"
743
+ "digest": "sha256:be355208daf818ec81c0521f0ca0e2a05b5229531b1b9259e06afaadab17a879"
726
744
  },
727
745
  {
728
746
  "path": "resources/dialogue/document-capture.md",
@@ -730,7 +748,7 @@
730
748
  },
731
749
  {
732
750
  "path": "resources/dialogue/document-classification.md",
733
- "digest": "sha256:679db260d5c496fae2a1526ea27c76220e62e782259ef21a216a30cf868d791f"
751
+ "digest": "sha256:b26f23c9d99a1287f7fd8e59f5700cdeeafca015d731455fa518825c64477f86"
734
752
  },
735
753
  {
736
754
  "path": "resources/dialogue/evidence-maintenance.md",
@@ -742,7 +760,7 @@
742
760
  },
743
761
  {
744
762
  "path": "resources/dialogue/knowledge-review.md",
745
- "digest": "sha256:26699582f0d9c014e84e4b21b5cf591614edbe16b544d6145c8dd61112bc1339"
763
+ "digest": "sha256:d26107888fa81b1deb664377c0486de37dd72fd6bf23330deddc835f51bafcc8"
746
764
  },
747
765
  {
748
766
  "path": "resources/dialogue/package-output.md",
@@ -754,7 +772,7 @@
754
772
  },
755
773
  {
756
774
  "path": "resources/dialogue/source-boundary.md",
757
- "digest": "sha256:ae8436045b0de5ace6843b47a552a72ffc0020fa82612e594465cf193255803f"
775
+ "digest": "sha256:15d37249d1cb2a8921247c689d81c135911b9933550120fadd8c17237c2c2c29"
758
776
  },
759
777
  {
760
778
  "path": "resources/dialogue/structure-confirmation.md",
@@ -762,31 +780,31 @@
762
780
  },
763
781
  {
764
782
  "path": "resources/dialogue/workflow-mode-after-capture.md",
765
- "digest": "sha256:62541da2fe8d69fe2369bad2a402ef0e8c791960ac139dfe9bb86cc3ca29180b"
783
+ "digest": "sha256:4a7ba14b78519ee2486361641342c20ad54a2587571eb1ae1755a5a924ff9903"
766
784
  },
767
785
  {
768
786
  "path": "resources/dialogue/workflow-mode-after-creation.md",
769
- "digest": "sha256:92de8c4f7deec35148ee3e47c7b6eea8b814d1cc7610113b5b81751ba50da2d2"
787
+ "digest": "sha256:37a4c4766c530baa5b7f52e543b702bed6de6506c6360a041de60571af2292ac"
770
788
  },
771
789
  {
772
790
  "path": "resources/manuals/guides/lark-resources.md",
773
- "digest": "sha256:a179bb8bf7d8185bb6f3033ef692dd15fa5b702c91525e7c272d3025d3bb7c52"
791
+ "digest": "sha256:953950412d35dc842be1d0bcdcf6c39bd3a7d78ad0a1b6e3f66f82ca1c5f476e"
774
792
  },
775
793
  {
776
794
  "path": "resources/manuals/guides/package-outputs.md",
777
- "digest": "sha256:c490d63f03b11c87e62a2e44b2338db04a08f62bdafccb044063a717895bbbf4"
795
+ "digest": "sha256:d9a279e2a683802f838d9ff1cf49a84de703e9aef7a610cb08ef04ad91bbb88a"
778
796
  },
779
797
  {
780
798
  "path": "resources/manuals/reference/code-extractors.md",
781
- "digest": "sha256:1f5de051d819b29a6c8c2692f08cd8ce9556b6e36b83d1f0cad1295e03865f4f"
799
+ "digest": "sha256:9d8e26914576e6d56f505520590874aabbe29c6f8ee17812bce9a5235d4a24a7"
782
800
  },
783
801
  {
784
802
  "path": "resources/manuals/reference/package-templates.md",
785
- "digest": "sha256:c119fae47e848d5a0103bcc7215a1372515139896d5ca8a852ebd8e58b8c854a"
803
+ "digest": "sha256:9da4ee1684ffc0e1345d95567bb30566104140eb979269d3982f32f8c865eb64"
786
804
  },
787
805
  {
788
806
  "path": "resources/manuals/reference/project-api.md",
789
- "digest": "sha256:5fe640181630d7a363aec785ff8c76963bd41f797a4546d903fd6d5c1e7fd82b"
807
+ "digest": "sha256:b46ba47f9f0e5212c7633f9711074ee8cddbd75de50ebfab6198a9fc1aea5ee8"
790
808
  },
791
809
  {
792
810
  "path": "resources/manuals/reference/template-variables.md",
@@ -794,19 +812,19 @@
794
812
  },
795
813
  {
796
814
  "path": "resources/procedures/close-and-build.md",
797
- "digest": "sha256:4f68373f9406dee8607a7b814e97dcd25c8508c2113f0f50152af1ef24ea33ef"
815
+ "digest": "sha256:cf3c635f49f42e86348009b49dcc1a6b9ee31492106419adf2bd7211c42cf469"
798
816
  },
799
817
  {
800
818
  "path": "resources/procedures/code-extraction.md",
801
- "digest": "sha256:1e5bbf399bdf442c28e52f5f8faeb16e8f5f8fdd94f6ccdfae87ec63ded478b7"
819
+ "digest": "sha256:7901ad3cce9e59a7e8883ec0005883e665c1b287cca2dd1434ffaa8d833986aa"
802
820
  },
803
821
  {
804
822
  "path": "resources/procedures/code-index-audit.md",
805
- "digest": "sha256:72f98ccb1370c58381187eba9d90808cf4c71168febf17a74147da05db13c169"
823
+ "digest": "sha256:57ceabbcd98edc1ba32e4ed45e7de7e65866d1ebee71b778f453738a8dfac7c0"
806
824
  },
807
825
  {
808
826
  "path": "resources/procedures/document-capture.md",
809
- "digest": "sha256:482fa395dbc5ed167a4c1180463e0b9929d2a9a5a90f4ef0b5122cabf2cce80b"
827
+ "digest": "sha256:46a8231e92fcb19db7918938970ace8b4e4c22153fa8cbf0bb8100275bfbbfcf"
810
828
  },
811
829
  {
812
830
  "path": "resources/procedures/document-classification.md",
@@ -814,11 +832,11 @@
814
832
  },
815
833
  {
816
834
  "path": "resources/procedures/document-optimization.md",
817
- "digest": "sha256:b8ede87f762fb75e9432c69a8c3e6f37ff4558cf3c29748b8fa3a7cc9be45860"
835
+ "digest": "sha256:be1be830d2f7cc5409fcac47a43fd85c745056d705dac7c817f50bfe67ba15b3"
818
836
  },
819
837
  {
820
838
  "path": "resources/procedures/document-revision.md",
821
- "digest": "sha256:91fff957375ef933a4ae9a613c505c5e93b30474e46c6c1bc283ac9b15c70aa7"
839
+ "digest": "sha256:a46498f66070485c019ed70c84640ed12f6374371ca9e6df0f42b93da69c051b"
822
840
  },
823
841
  {
824
842
  "path": "resources/procedures/evidence-maintenance.md",
@@ -826,7 +844,7 @@
826
844
  },
827
845
  {
828
846
  "path": "resources/procedures/knowledge-review.md",
829
- "digest": "sha256:ee67b6182b7315d60aea3ed023e0688e3a0c80d90d8ebe31f38d04708d5228d1"
847
+ "digest": "sha256:ced7bb8dec7315e7f025df5492caab7f34b1134a6f476ca0e096a436ad956e36"
830
848
  },
831
849
  {
832
850
  "path": "resources/procedures/package-output.md",
@@ -854,7 +872,7 @@
854
872
  },
855
873
  {
856
874
  "path": "resources/procedures/source-boundary.md",
857
- "digest": "sha256:99097947961d7fa5b17f9e6b9c9471aac38cec1943bd7feb414b21d6a1e26a49"
875
+ "digest": "sha256:de7e9c274cb180295a65c494abadf0d78cce864c5770fe77f481567339d36d31"
858
876
  },
859
877
  {
860
878
  "path": "resources/procedures/source-capture-detailed.md",
@@ -878,11 +896,11 @@
878
896
  },
879
897
  {
880
898
  "path": "resources/semantic/align/structure-planning.md",
881
- "digest": "sha256:73d7d1cb49ad27691e7baa29003fa1736fc8a7036c6094f40f733e62fd3c1aad"
899
+ "digest": "sha256:2930594fe849d3e70d2746c7619cff3ebbe70851c1f00ef3396f3cdf3860949a"
882
900
  },
883
901
  {
884
902
  "path": "resources/semantic/code-index/classification.md",
885
- "digest": "sha256:5a00d66a5703406531c4ff107eb416e3e825dc2413f394beef672fabb95e764d"
903
+ "digest": "sha256:6b76d21d95da84938a0cd044734befefe7a72cc05f2222ef95ff1f8ade982da1"
886
904
  },
887
905
  {
888
906
  "path": "resources/semantic/code-index/templates/adapter.md",
@@ -994,7 +1012,7 @@
994
1012
  },
995
1013
  {
996
1014
  "path": "schemas/document-optimization-decisions.schema.json",
997
- "digest": "sha256:a21e84dbdcc2bad85970ebc3171f58176b480f751076745424c7f9742b972f5c"
1015
+ "digest": "sha256:6cf551aba82ff2a2ffcb575994c5c87974c3eb30a71dad74c0c5cbaaab445cfb"
998
1016
  },
999
1017
  {
1000
1018
  "path": "schemas/evidence-maintenance-input.schema.json",
@@ -1010,7 +1028,7 @@
1010
1028
  },
1011
1029
  {
1012
1030
  "path": "schemas/source-batch-input.schema.json",
1013
- "digest": "sha256:aa5f1a1bf6a6573982e89e50c9d991f6aa72a5cbbda0867d1f483e30315c4409"
1031
+ "digest": "sha256:0788501d70073a93c9d6d652bc85d806ea2e71abb2e9cfb6ad70e566e2675abf"
1014
1032
  },
1015
1033
  {
1016
1034
  "path": "scripts/render-context-view.mjs",
@@ -1020,5 +1038,5 @@
1020
1038
  "graphDependencies": {
1021
1039
  "workspace": []
1022
1040
  },
1023
- "digest": "sha256:a3f1974e2359466c24d0853d3326ab7799d5e3b02cb611c667be726f09843ee3"
1041
+ "digest": "sha256:c41605cbd86d4be02940c5f45ed8b7aaa189e7a5b3d3d7f1afc224a007afcbc8"
1024
1042
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.6.18
3
+ version: 0.6.19
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -55,6 +55,12 @@ Treat those fields as structural scope evidence, not a semantic ranking. Stop
55
55
  when the preview crosses the confirmed module boundary or the module
56
56
  identity/path shape is wrong.
57
57
 
58
+ Also report the unit inventory: eligible/analyzed file and LOC counts,
59
+ discovered/read Markdown, target/exported symbols, stable entry and boundary
60
+ targets, exclusions and parser gaps. After extraction, read every independent
61
+ audit dimension and the exact uncovered identities. Use the CLI-selected
62
+ repair actions and matching templates; do not invent a total score.
63
+
58
64
  Apply the per-index-unit policy exactly: up to 100 pages proceeds; 101–300 pages
59
65
  warns and proceeds; more than 300 pages stops even in fully managed mode. Group
60
66
  all oversized or capability-gap units into one explanation and one plan-revision
@@ -69,6 +75,12 @@ or mirrored areas, enable `exportedOnly`, change to an aggregate
69
75
  `extractTs()` source into overlapping index units. Report a batch-total page
70
76
  advisory as a cost signal, not a new Gate.
71
77
 
78
+ In fully managed mode, revise absolute failures automatically and aim for each
79
+ recommended target. After three attempts with the same unit/problem fingerprint,
80
+ stop at the single aggregated guidance Gate and report all failed modules,
81
+ dimensions, attempted actions, and likely missing material together. Ordinary
82
+ mode also makes one batch decision; it does not create one user Gate per module.
83
+
72
84
  For a multi-module round, finish every pending extraction target before opening
73
85
  one Review. For an unchanged repeat run, explain that no added, changed, or
74
86
  removed symbols need a decision. Mention `extractTs`, `include`, `entries`,
@@ -23,7 +23,7 @@ recommendation, and describe its package root:
23
23
  | `incident` | incident timelines, impact, causes, response, and prevention | `guides/` |
24
24
  | `test` | test plans, validation scenarios, matrices, and acceptance cases | `rules/` |
25
25
 
26
- `codegraph` comes from code extraction and `feats` is not a document mainline
26
+ `codeindex` comes from code extraction and `feats` is not a document mainline
27
27
  collection. Filenames, URLs, titles, and example collection names are
28
28
  insufficient evidence.
29
29
 
@@ -18,6 +18,12 @@ The user does not need to create a payload file; the Agent may write the pasted
18
18
  payload to ignored scratch storage for the CLI command. Never derive a payload
19
19
  from HTML, candidate ids, snapshots, or a default decision.
20
20
 
21
+ When the user completes a decision from the report, retain the exact report URL
22
+ or local report path and reviewed scope in the current conversation for the
23
+ final completion summary. Do not persist a separate workspace ledger or count a
24
+ report as user-reviewed when it was inaccessible, fully managed, or bypassed by
25
+ force approval.
26
+
21
27
  Do not mention force approval when first presenting Review. If the user replies
22
28
  without a Payload that they approve or want to continue, explain that the
23
29
  report Payload remains the normal path. Only at that point, when the report is
@@ -28,7 +34,7 @@ that exact phrase appears in the current conversation. Phrases such as `我批
28
34
  `继续`, or `全部通过` do not invoke this escape path.
29
35
 
30
36
  Do not open Review for one page or module while another confirmed item in the
31
- same round is still being generated. If a repeat codegraph run has no delta,
37
+ same round is still being generated. If a repeat codeindex run has no delta,
32
38
  state that existing approvals were preserved and no Review gate remains.
33
39
 
34
40
  When the user explicitly requested fully managed operation, use only the
@@ -17,11 +17,19 @@ Explain the observable impact:
17
17
  - every confirmed source is a module inside that batch;
18
18
  - several code and document modules may share the date;
19
19
  - `date/module` appears in source refs and phase ids; and
20
- - stable codegraph knowledge paths use the module name without the date.
20
+ - stable codeindex knowledge paths use the module name without the date.
21
21
 
22
22
  Do not invent `-A`, `-B`, or sequence suffixes. If today's batch exists, append
23
23
  the newly confirmed module to it.
24
24
 
25
+ When the current request already lists exact local modules or documents, do not
26
+ repeat the source-boundary question in either ordinary or fully managed mode.
27
+ Resolve each named module to one unique existing local path inside the
28
+ user-scoped root, then pass that path in the batch payload. Repository paths are
29
+ relative to the Context project root; the CLI may mechanically read their Git
30
+ root, `origin`, and current commit. Ask only when a name is ambiguous, no
31
+ matching path exists, or selecting one match would broaden the requested scope.
32
+
25
33
  When inspection finds several package boundaries, show their paths and ask
26
34
  which concrete boundaries should become sources. Explain that `include`
27
35
  filters files inside a source and cannot select a monorepo package. Only after
@@ -6,17 +6,20 @@ mediaType: text/markdown
6
6
 
7
7
  # Workflow mode after source capture
8
8
 
9
- When source capture has completed and the conversation is still using ordinary
10
- review mode, remind the user in their current conversation language that the
11
- remaining workflow will pause at review decisions and provide HTML reports for
12
- inspection. The current product estimate is that ordinary review makes the
13
- overall workflow about 40% slower, with the exact difference depending on scope
14
- and user response time.
9
+ When source capture has completed, ask about execution mode only if the
10
+ conversation still has no explicit choice and no earlier mode question was
11
+ asked. If ordinary review or fully managed operation was already selected,
12
+ continue without a reminder or another confirmation. When a choice is still
13
+ needed, explain in the user's current conversation language that ordinary
14
+ review pauses at review decisions and provides HTML reports for inspection.
15
+ The current product estimate is that ordinary review makes the overall workflow
16
+ about 40% slower, with the exact difference depending on scope and response
17
+ time.
15
18
 
16
19
  Offer fully managed operation for the rest of the current conversation. Explain
17
20
  that it skips delegatable content-review surfaces and is faster, but reduces the
18
21
  user's ability to control or adjust intermediate content. It does not bypass
19
22
  source boundaries, external permissions, hard validation, evidence checks,
20
23
  verification failures, or other non-delegatable safety boundaries. Do not ask
21
- again when fully managed authority is already active, and never persist the
22
- choice in project files.
24
+ again after this one-time conversation choice, and never persist it in project
25
+ files.
@@ -6,9 +6,10 @@ mediaType: text/markdown
6
6
 
7
7
  # Workflow mode after workspace creation
8
8
 
9
- After the workspace is created, briefly explain the two execution modes in the
10
- user's current conversation language unless they already selected fully managed
11
- operation in this conversation.
9
+ After the workspace is created, explain the two execution modes only when the
10
+ conversation has not already selected a mode and no earlier mode question was
11
+ asked. If the entry plan or initialization confirmation already resolved this
12
+ choice, continue without asking again.
12
13
 
13
14
  - Ordinary review mode is the default. Context pauses at review decisions and
14
15
  provides HTML reports for the user to inspect. The current product estimate is
@@ -22,4 +23,5 @@ Make clear that fully managed mode does not bypass source boundaries, external
22
23
  permissions, hard validation, evidence checks, verification failures, or other
23
24
  non-delegatable safety boundaries. Ask whether the user wants to keep the
24
25
  default ordinary review mode or authorize fully managed operation for the
25
- current conversation. Do not persist the choice in project files.
26
+ current conversation. This is a one-time conversation choice: do not repeat it
27
+ after capture or resume, and do not persist it in project files.
@@ -39,6 +39,13 @@ resources remain explicit in the capture report. Unknown non-empty XML blocks
39
39
  stay auditable in the raw XML and receive a warning; the CLI does not infer
40
40
  their meaning.
41
41
 
42
+ Document and resource reads share one access identity. Context first uses the
43
+ user identity; it falls back to the bot identity only when user credentials
44
+ are unavailable, never when the source denies permission or reports missing
45
+ scopes. This prevents a capture from mixing document text read by one identity
46
+ with attachments read by another. A bot fallback is reported in the capture
47
+ result and remains subject to the bot's own access boundary.
48
+
42
49
  ## Storage lifecycle
43
50
 
44
51
  Resources have three distinct locations:
@@ -111,8 +111,8 @@ capture reports are never distributed as reader assets. See
111
111
  [Lark Resource Materialization](./lark-resources.md).
112
112
 
113
113
  The same inventory exposes `structure.relationship_coverage`. It records
114
- whether selected codegraph pages have current source-backed AST relationship
115
- metadata, how many codegraph views were selected, and how many package-visible
114
+ whether selected codeindex pages have current source-backed AST relationship
115
+ metadata, how many codeindex views were selected, and how many package-visible
116
116
  edges were emitted. An empty edge list is therefore explicit evidence of a
117
117
  coverage state, not permission to invent a dependency.
118
118
 
@@ -136,7 +136,7 @@ Current collection mapping:
136
136
 
137
137
  | Internal collection | Package path | Role |
138
138
  |---|---|---|
139
- | `codegraph` | `wikis/codegraph/` | Structured code entities and relationships. |
139
+ | `codeindex` | `wikis/codeindex/` | Source-backed code indexes with optional structured relationships. |
140
140
  | `business` | `wikis/business/` | Structured business entities and relationships. |
141
141
  | `product` | `wikis/product/` | Structured product entities, behavior, and relationships. |
142
142
  | `architecture` | `guides/architecture/` | Architecture explanations and design narratives. |