@c4a/context-cli 0.7.86 → 0.7.88

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 (32) hide show
  1. package/README.md +3 -0
  2. package/cli.js +4753 -2996
  3. package/indexers/contracts/profile-contract.json +245 -245
  4. package/indexers/release-manifest.json +1 -1
  5. package/package.json +13 -12
  6. package/parserEntryWorker.js +10 -3
  7. package/plugins/VERSION +1 -1
  8. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  9. package/plugins/claude/commands/context.md +17 -0
  10. package/plugins/claude/resources/context/source-checklist.md +120 -0
  11. package/plugins/claude/skills/context-plan/SKILL.md +8 -3
  12. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  13. package/plugins/codex/skills/context/SKILL.md +17 -0
  14. package/plugins/codex/skills/context/references/source-checklist.md +120 -0
  15. package/plugins/codex/skills/context-plan/SKILL.md +8 -3
  16. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  17. package/plugins/cursor/commands/c4a-context.md +17 -0
  18. package/plugins/cursor/resources/context/source-checklist.md +120 -0
  19. package/plugins/cursor/skills/context-plan/SKILL.md +8 -3
  20. package/plugins/skills/context/SKILL.md +17 -0
  21. package/plugins/skills/context/references/source-checklist.md +120 -0
  22. package/plugins/skills/context-plan/SKILL.md +8 -3
  23. package/providers/context/actions/process-source-update.yaml +5 -0
  24. package/providers/context/codes.yaml +1 -0
  25. package/providers/context/graphs/workspace.yaml +13 -1
  26. package/providers/context/manifest.json +24 -15
  27. package/providers/context/provider.yaml +1 -1
  28. package/providers/context/resources/manuals/guides/knowledge-updates.md +7 -0
  29. package/providers/context/resources/manuals/guides/package-outputs.md +12 -1
  30. package/providers/context/resources/manuals/reference/project-api.md +2 -1
  31. package/providers/context/resources/procedures/knowledge-updates.md +7 -0
  32. package/providers/context/resources/procedures/source-update.md +5 -0
@@ -37,7 +37,12 @@ an audience enters production; do not count registration as completed research.
37
37
  1. Identify the selected project's existing `PLAN-*.md`, workspace and Git root.
38
38
  Reuse a matching plan. Inspect its current stage, permissions and pending work
39
39
  before expanding research; do not reset a live Context workflow.
40
- 2. Read [project-planning.md](references/project-planning.md). Review the existing
40
+ 2. Ask once whether a prepared source checklist exists for this project, and take
41
+ its link if so: a filled checklist names each source, its owner and whether the
42
+ knowledge depends on it, which shortens inventory. The `context` Skill carries
43
+ a template under `references/source-checklist.md`. It is never required —
44
+ without one, continue and register material from the conversation.
45
+ 3. Read [project-planning.md](references/project-planning.md). Review the existing
41
46
  knowledge workspace and relevant approved articles before grouping new material.
42
47
  Map overlaps, gaps and relationships between documents, repositories and pages;
43
48
  distinguish reuse, revision, consolidation and new coverage in the PLAN.
@@ -48,11 +53,11 @@ an audience enters production; do not count registration as completed research.
48
53
  evidence already available; do not wait for a complete PLAN. Follow the early
49
54
  scope rules in project-planning.md, including previously confirmed choices.
50
55
  Reuse accessible local checkouts and saved research before fetching again.
51
- 3. Create or update `PLAN-YYYYMMDD-slug.md` at that project's Git root using
56
+ 4. Create or update `PLAN-YYYYMMDD-slug.md` at that project's Git root using
52
57
  [the report template](templates/PLAN.md). Keep downloaded research under
53
58
  `.tmp/context-plans/YYYYMMDD-slug/`; the layout is a working convention,
54
59
  not a new CLI validation rule.
55
- 4. Present the first report and complete its review before production. By default,
60
+ 5. Present the first report and complete its review before production. By default,
56
61
  obtain the user's approval; only an authorized `plan_review: delegate` override
57
62
  permits Agent review as described below.
58
63
  Resolve the reporting preference: report after all stages, or after each
@@ -238,6 +238,23 @@ Within an active Context workflow, requests include, but are not limited to:
238
238
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
239
239
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
240
240
 
241
+ ### A prepared source checklist
242
+
243
+ A reader may arrive with a filled checklist — a page listing the material, its
244
+ owners and whether the knowledge depends on it — instead of describing sources
245
+ in conversation. Read it and register from it. Never require one: material
246
+ described in conversation is equally valid. A team that wants a starting point
247
+ can copy [the source checklist](references/source-checklist.md).
248
+
249
+ - One row is one source, and the row's note becomes the source note.
250
+ - The dependency column decides the treatment: a row marked as a dependency is
251
+ registered and pinned to a commit or version, so later changes reach the pages
252
+ that rest on it; a first-time reference is read for this round and cited in the
253
+ text, not registered.
254
+ - The owner named on a row is who to ask when a link fails or ownership is
255
+ unclear, instead of guessing.
256
+ - Report rows you cannot open or are not allowed to read; never drop one silently.
257
+
241
258
  ### Where each request goes
242
259
 
243
260
  - **Sources, notes, sessions or changed upstream material:** read
@@ -0,0 +1,120 @@
1
+ # Source checklist
2
+
3
+ A page a team fills in before a knowledge base is built, so the Agent starts from
4
+ a list instead of a conversation. It is optional: material described in
5
+ conversation is registered the same way.
6
+
7
+ Copy the template below, delete the groups you do not need, replace the example
8
+ rows, and give the Agent the page's link.
9
+
10
+ ## How to fill it in
11
+
12
+ 1. Keep one row per source, and write the link's text as the material's name.
13
+ 2. Every row needs a link that opens and a single owner.
14
+ 3. Choose one update dependency per row; the note at the end explains the two.
15
+ 4. Leave a row in with "to confirm" after the owner when you are unsure it belongs.
16
+
17
+ ## Sources
18
+
19
+ ### Code repositories
20
+
21
+ The repositories the knowledge is about and the ones it directly depends on.
22
+ Registered repositories are pinned to a commit and compared by diff later.
23
+
24
+ | Link | What it is | Owner | Update dependency |
25
+ | --- | --- | --- | --- |
26
+ | [example-org/billing-service](https://example.com/example-org/billing-service) | The service the knowledge describes | A. Rivera | Registered as a dependency |
27
+ | [example-org/billing-sdk](https://example.com/example-org/billing-sdk) | Client the service's callers use | B. Osei | Registered as a dependency |
28
+
29
+ ### Skills and plugins
30
+
31
+ The Skills a workflow actually calls. Record the identifier and version; when the
32
+ version moves, the knowledge is rechecked.
33
+
34
+ | Link | What it is | Owner | Update dependency |
35
+ | --- | --- | --- | --- |
36
+ | [invoice-report-gen v1.4.0](https://example.com/skills/invoice-report-gen) | Generates the reports the guides describe | B. Osei | Registered as a dependency |
37
+ | [billing-metrics v0.9.2](https://example.com/skills/billing-metrics) | Collects the numbers quoted in the reference | C. Hart | Registered as a dependency |
38
+
39
+ ### Documents
40
+
41
+ Design documents, specifications and one-pagers that have settled. Drafts and
42
+ open proposals are left out.
43
+
44
+ | Link | What it is | Owner | Update dependency |
45
+ | --- | --- | --- | --- |
46
+ | [Billing settlement design](https://example.com/docs/billing-settlement) | Goals and division of work; the basis for the guides | A. Rivera | Registered as a dependency |
47
+ | [Billing FAQ](https://example.com/docs/billing-faq) | Past questions, used to fill the reference pages | C. Hart | First-time reference |
48
+
49
+ ### Conversations
50
+
51
+ Troubleshooting or design discussions that reached a conclusion. Write them up as
52
+ one note first, then list the note.
53
+
54
+ | Link | What it is | Owner | Update dependency |
55
+ | --- | --- | --- | --- |
56
+ | [Settlement incident, 2026-03-18](https://example.com/notes/settlement-incident) | How one production problem was found and fixed | C. Hart | First-time reference |
57
+ | [Scope discussion](https://example.com/notes/billing-scope) | Which repositories belong to this topic | A. Rivera | First-time reference |
58
+
59
+ ### Platforms and live sites
60
+
61
+ Consoles, dashboards or published sites the pages need to cite.
62
+
63
+ | Link | What it is | Owner | Update dependency |
64
+ | --- | --- | --- | --- |
65
+ | [Billing console](https://example.com/console/billing) | Where operators do the work the guides describe | D. Lindqvist | Registered as a dependency |
66
+ | [Existing handbook](https://example.com/handbook/billing) | Already published, so it is not written twice | D. Lindqvist | First-time reference |
67
+
68
+ ### Notes and attachments
69
+
70
+ Weekly reports, retrospectives and screenshots. They fold into the guides and
71
+ reference rather than becoming topics of their own.
72
+
73
+ | Link | What it is | Owner | Update dependency |
74
+ | --- | --- | --- | --- |
75
+ | [2026-03 billing weekly](https://example.com/notes/billing-weekly) | Progress, useful as background | B. Osei | First-time reference |
76
+ | [Release retrospective](https://example.com/notes/billing-retro) | Pitfalls, written into the FAQ | A. Rivera | First-time reference |
77
+
78
+ > **Update dependency**: *Registered as a dependency* = when the source changes,
79
+ > the pages resting on it are rechecked and revised; it stays anchored to a commit
80
+ > or version. *First-time reference* = read while writing this round and cited in
81
+ > the text; later updates do not come back to it.
82
+
83
+ ## Structure
84
+
85
+ Keep the directory closest to the knowledge base you are building, delete the
86
+ rest, then add or drop levels.
87
+
88
+ - **Product or service knowledge base** — Overview; Getting started; Solutions by
89
+ scenario; Guides for the workflow, integration and release; Reference for
90
+ commands, fields and FAQ.
91
+ - **External manual for a platform** — Overview; Getting started with access;
92
+ Solutions by use case; Guides for daily operation and troubleshooting;
93
+ Reference for APIs, configuration and limits.
94
+ - **External manual for a tool** — Overview; Getting started with install and
95
+ first output; Guides for each workflow; How it works; Reference; Release notes.
96
+ - **On-call knowledge base** — Duty basics; Common problems by component;
97
+ Troubleshooting from symptom to action; Contacts and escalation; Past cases.
98
+ - **Business knowledge base** — Business overview; Terms and rules; End-to-end
99
+ flow; Common questions; Change log.
100
+
101
+ ## Start-up prompt
102
+
103
+ Adjust it, then send it with the checklist's link.
104
+
105
+ ```text
106
+ I own <team / knowledge base>. Research and initialise the knowledge workspace
107
+ from this checklist and produce the first round of knowledge. Keep to the
108
+ material listed here; ask me before bringing in anything else.
109
+ 1. Check every link opens; register the rows marked as a dependency as sources,
110
+ pinning repositories to the current commit and recording Skill versions. List
111
+ anything you cannot open or are not allowed to read
112
+ 2. Ask me about missing links, missing owners or unclear ownership; where someone
113
+ else has to confirm, reach the owner named on the row
114
+ 3. Once you have read the sources, plan the directory against the structure kept
115
+ above; raise a better split with me first if you see one
116
+ 4. Write in batches only after I confirm the directory, and keep every claim
117
+ traceable to its source
118
+ 5. When writing is done, produce a diff report for my review; publish only after
119
+ it passes
120
+ ```
@@ -36,7 +36,12 @@ an audience enters production; do not count registration as completed research.
36
36
  1. Identify the selected project's existing `PLAN-*.md`, workspace and Git root.
37
37
  Reuse a matching plan. Inspect its current stage, permissions and pending work
38
38
  before expanding research; do not reset a live Context workflow.
39
- 2. Read [project-planning.md](references/project-planning.md). Review the existing
39
+ 2. Ask once whether a prepared source checklist exists for this project, and take
40
+ its link if so: a filled checklist names each source, its owner and whether the
41
+ knowledge depends on it, which shortens inventory. The `context` Skill carries
42
+ a template under `references/source-checklist.md`. It is never required —
43
+ without one, continue and register material from the conversation.
44
+ 3. Read [project-planning.md](references/project-planning.md). Review the existing
40
45
  knowledge workspace and relevant approved articles before grouping new material.
41
46
  Map overlaps, gaps and relationships between documents, repositories and pages;
42
47
  distinguish reuse, revision, consolidation and new coverage in the PLAN.
@@ -47,11 +52,11 @@ an audience enters production; do not count registration as completed research.
47
52
  evidence already available; do not wait for a complete PLAN. Follow the early
48
53
  scope rules in project-planning.md, including previously confirmed choices.
49
54
  Reuse accessible local checkouts and saved research before fetching again.
50
- 3. Create or update `PLAN-YYYYMMDD-slug.md` at that project's Git root using
55
+ 4. Create or update `PLAN-YYYYMMDD-slug.md` at that project's Git root using
51
56
  [the report template](templates/PLAN.md). Keep downloaded research under
52
57
  `.tmp/context-plans/YYYYMMDD-slug/`; the layout is a working convention,
53
58
  not a new CLI validation rule.
54
- 4. Present the first report and complete its review before production. By default,
59
+ 5. Present the first report and complete its review before production. By default,
55
60
  obtain the user's approval; only an authorized `plan_review: delegate` override
56
61
  permits Agent review as described below.
57
62
  Resolve the reporting preference: report after all stages, or after each
@@ -0,0 +1,5 @@
1
+ schema: agent-graph.action.v1
2
+ id: process-source-update
3
+ runner: command
4
+ effect: write
5
+ command: context update --pending --format json
@@ -97,4 +97,5 @@ codes:
97
97
  - { code: route.indexer.candidate-review, kind: route-reason, summary: Review the exact current candidate set only after current mechanical validation passes. }
98
98
  - { code: route.indexer.approved-knowledge-close, kind: route-reason, summary: Atomically close approved Indexer structure after required material gaps are resolved. }
99
99
  - { code: route.indexer.source-update, kind: route-reason, summary: Inspect fixed source changes against current approved pages. }
100
+ - { code: route.source.update-pending, kind: route-reason, summary: A registered repository moved past the commit its approved knowledge was processed at; process the new commit before other work., document: resources/procedures/knowledge-updates.md }
100
101
  - { code: route.workspace.task-cleared, kind: route-reason, summary: No active production task; existing knowledge is retained and new production awaits explicit user intent., document: resources/procedures/workspace-prepare.md }
@@ -147,6 +147,17 @@ nodes:
147
147
  - resources/procedures/source-capture-detailed.md
148
148
  - resources/manuals/guides/lark-resources.md
149
149
 
150
+ - id: process-source-update
151
+ kind: action
152
+ reasonCode: route.source.update-pending
153
+ action: actions/process-source-update.yaml
154
+ satisfiedBy:
155
+ - path: sources.update_pending
156
+ equals: false
157
+ resources:
158
+ recommended:
159
+ - resources/procedures/knowledge-updates.md
160
+
150
161
  - id: reopen-cleared-task
151
162
  kind: gate
152
163
  reasonCode: route.workspace.task-cleared
@@ -355,7 +366,8 @@ edges:
355
366
  - { from: choose-source-boundary, to: configure-document-capture, kind: gatedBy }
356
367
  - { from: configure-document-capture, to: authorize-document-capture }
357
368
  - { from: authorize-document-capture, to: capture-next, kind: gatedBy }
358
- - { from: capture-next, to: reopen-cleared-task }
369
+ - { from: capture-next, to: process-source-update }
370
+ - { from: process-source-update, to: reopen-cleared-task }
359
371
  - { from: reopen-cleared-task, to: run-indexer-lifecycle, kind: gatedBy }
360
372
  - { from: run-indexer-lifecycle, to: review-current-batch }
361
373
  - { from: review-current-batch, to: close-approved-knowledge, kind: gatedBy }
@@ -2,7 +2,7 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.7.86"
5
+ "version": "0.7.88"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -14,7 +14,7 @@
14
14
  {
15
15
  "id": "workspace",
16
16
  "path": "graphs/workspace.yaml",
17
- "digest": "sha256:f72cdb49e298f081c148bf2b58929a415f93890450522da8fd0ab09ec30b2f92"
17
+ "digest": "sha256:617e5b1a12b01a82c78e4b88c142431e6b1eda122d0e5dc4941e0961132558a9"
18
18
  }
19
19
  ],
20
20
  "actions": [
@@ -113,6 +113,11 @@
113
113
  "path": "actions/prepare-production-stage.yaml",
114
114
  "digest": "sha256:f4c92d0658a6279f8c2a4859bf479c25450e68b562650d05dcf4a09efc6a75a9"
115
115
  },
116
+ {
117
+ "id": "process-source-update",
118
+ "path": "actions/process-source-update.yaml",
119
+ "digest": "sha256:db82d981d62501ed4604d523eeb23eee31db2de878996a749279604d9a50a9e6"
120
+ },
116
121
  {
117
122
  "id": "record-workspace-version",
118
123
  "path": "actions/record-workspace-version.yaml",
@@ -193,7 +198,7 @@
193
198
  {
194
199
  "id": "context.sdk.package-outputs",
195
200
  "path": "resources/manuals/guides/package-outputs.md",
196
- "digest": "sha256:54c6b93ebb0b5bde03e191064a36e0bb6f5ed1cf3981e4a855b90f7f909a5e1a"
201
+ "digest": "sha256:26131be68903dea2a79d098f4d206ddc637a485488d7aac910eb253e00e06c75"
197
202
  },
198
203
  {
199
204
  "id": "context.sdk.package-templates",
@@ -208,7 +213,7 @@
208
213
  {
209
214
  "id": "context.sdk.project-api",
210
215
  "path": "resources/manuals/reference/project-api.md",
211
- "digest": "sha256:923f3e7f564019a77e0fdecf5226d6fe40bb8ab35daf45b9ddef89491eae0d7a"
216
+ "digest": "sha256:c14322199c507068e3d3796e7f9a3e1170d02e322033ca70b3da7bfc3843e03d"
212
217
  },
213
218
  {
214
219
  "id": "context.sdk.site-translation",
@@ -323,7 +328,7 @@
323
328
  {
324
329
  "id": "procedure.knowledge-updates",
325
330
  "path": "resources/procedures/knowledge-updates.md",
326
- "digest": "sha256:8a3e8d6539bc18d4bc82cb69376b5126d53c6d1535c9145ba5770b72cf008656"
331
+ "digest": "sha256:4de79a8394858362f26e37908dae7a163c1513c366d60c7acf50371b10c08108"
327
332
  },
328
333
  {
329
334
  "id": "procedure.note",
@@ -383,7 +388,7 @@
383
388
  {
384
389
  "id": "procedure.source-update",
385
390
  "path": "resources/procedures/source-update.md",
386
- "digest": "sha256:cbc558e0b2f7b2d1274dd898fc9a6a8eaaea89607452e54de0c9694088bbb3e6"
391
+ "digest": "sha256:25eb0d496f69ee6cf9743a9cee7c25ac0776babb13af4c6a09ddf052017d6065"
387
392
  },
388
393
  {
389
394
  "id": "procedure.task-recovery",
@@ -535,6 +540,10 @@
535
540
  "path": "actions/prepare-production-stage.yaml",
536
541
  "digest": "sha256:f4c92d0658a6279f8c2a4859bf479c25450e68b562650d05dcf4a09efc6a75a9"
537
542
  },
543
+ {
544
+ "path": "actions/process-source-update.yaml",
545
+ "digest": "sha256:db82d981d62501ed4604d523eeb23eee31db2de878996a749279604d9a50a9e6"
546
+ },
538
547
  {
539
548
  "path": "actions/record-workspace-version.yaml",
540
549
  "digest": "sha256:1de26e7c04d0230d8300e4f6d286fb3c05b890ec34eb70fe982579e0cd08d8b9"
@@ -577,7 +586,7 @@
577
586
  },
578
587
  {
579
588
  "path": "codes.yaml",
580
- "digest": "sha256:a4d4b0dccf5d2146e91f7baa1fe16e34d8c410fd1096e9ad9a75214a9006ee22"
589
+ "digest": "sha256:83c0c12e73d98289bc07cba62e893b860a15cdaf87e45d67714983b5ff54c198"
581
590
  },
582
591
  {
583
592
  "path": "graphs/indexer.yaml",
@@ -585,11 +594,11 @@
585
594
  },
586
595
  {
587
596
  "path": "graphs/workspace.yaml",
588
- "digest": "sha256:f72cdb49e298f081c148bf2b58929a415f93890450522da8fd0ab09ec30b2f92"
597
+ "digest": "sha256:617e5b1a12b01a82c78e4b88c142431e6b1eda122d0e5dc4941e0961132558a9"
589
598
  },
590
599
  {
591
600
  "path": "provider.yaml",
592
- "digest": "sha256:720e9920a9fd4c9f5b8dff8f55a9820e805facf64b838d714efc0b1216ed0476"
601
+ "digest": "sha256:f59ba88041a60288b4901d50589176becefef835450ac413a1e777d9b3494c38"
593
602
  },
594
603
  {
595
604
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -649,7 +658,7 @@
649
658
  },
650
659
  {
651
660
  "path": "resources/manuals/guides/knowledge-updates.md",
652
- "digest": "sha256:bdb5bfac802dfea75f38af8800216288cf740b53395ccbe4bfe5e30a1c555f48"
661
+ "digest": "sha256:d7782f7c7a6cb1ce1472956e4db4941f041fafebbc1a55784cd0c7925dc45e69"
653
662
  },
654
663
  {
655
664
  "path": "resources/manuals/guides/lark-resources.md",
@@ -665,7 +674,7 @@
665
674
  },
666
675
  {
667
676
  "path": "resources/manuals/guides/package-outputs.md",
668
- "digest": "sha256:54c6b93ebb0b5bde03e191064a36e0bb6f5ed1cf3981e4a855b90f7f909a5e1a"
677
+ "digest": "sha256:26131be68903dea2a79d098f4d206ddc637a485488d7aac910eb253e00e06c75"
669
678
  },
670
679
  {
671
680
  "path": "resources/manuals/guides/page-customization.md",
@@ -709,7 +718,7 @@
709
718
  },
710
719
  {
711
720
  "path": "resources/manuals/reference/project-api.md",
712
- "digest": "sha256:923f3e7f564019a77e0fdecf5226d6fe40bb8ab35daf45b9ddef89491eae0d7a"
721
+ "digest": "sha256:c14322199c507068e3d3796e7f9a3e1170d02e322033ca70b3da7bfc3843e03d"
713
722
  },
714
723
  {
715
724
  "path": "resources/manuals/reference/template-variables.md",
@@ -745,7 +754,7 @@
745
754
  },
746
755
  {
747
756
  "path": "resources/procedures/knowledge-updates.md",
748
- "digest": "sha256:8a3e8d6539bc18d4bc82cb69376b5126d53c6d1535c9145ba5770b72cf008656"
757
+ "digest": "sha256:4de79a8394858362f26e37908dae7a163c1513c366d60c7acf50371b10c08108"
749
758
  },
750
759
  {
751
760
  "path": "resources/procedures/note.md",
@@ -793,7 +802,7 @@
793
802
  },
794
803
  {
795
804
  "path": "resources/procedures/source-update.md",
796
- "digest": "sha256:cbc558e0b2f7b2d1274dd898fc9a6a8eaaea89607452e54de0c9694088bbb3e6"
805
+ "digest": "sha256:25eb0d496f69ee6cf9743a9cee7c25ac0776babb13af4c6a09ddf052017d6065"
797
806
  },
798
807
  {
799
808
  "path": "resources/procedures/task-recovery.md",
@@ -912,5 +921,5 @@
912
921
  "indexer": [],
913
922
  "workspace": []
914
923
  },
915
- "digest": "sha256:855df38a7198fc026e9bfc60edb93662e8791d86ab7263c770cbea4f5461952d"
924
+ "digest": "sha256:db4e8241150bcebbcef4e5476a6eafd5ffc79d5b216fa1e24eef2b39f982de0c"
916
925
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.7.86
3
+ version: 0.7.88
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -425,6 +425,13 @@ also checking additions that have no old page reference. The scope is complete
425
425
  only after every required change is reviewed, closed and built, or after an
426
426
  explicit conclusion that it needs no knowledge changes.
427
427
 
428
+ Moving a repository with `context source add repo --ref <sha>` only changes its
429
+ registration. When approved knowledge was processed at the previous commit, run
430
+ `context update --pending --format json`. Only pages whose cited text changed
431
+ become candidates, listed in `changed_references`; still inspect the change for
432
+ additions and shared dependencies before deciding. Moved citations update their
433
+ locations when the update settles.
434
+
428
435
  Before importing a `note`, read [note source preparation](note.md).
429
436
  Before importing `sessions`, read [development summary preparation](sessions.md).
430
437
  Choose the reference for the actual input; do not read both by default.
@@ -121,7 +121,18 @@ zoom, full-screen and source controls. Controls appear on hover or keyboard focu
121
121
  (and remain visible on touch devices). Layout and source/copy actions are on the
122
122
  left, sizing actions on the right. Source view replaces the diagram. Flowcharts default to ELK and can switch to Dagre without changing the article. Offline Review reports use the same
123
123
  viewer and include its resources only when a candidate contains Mermaid.
124
- Article provenance initially shows ten sources; Show more reveals the full list.
124
+ Each article ends with its sources as a map: the article's sections in the
125
+ middle and the documents they cite around them, grouped by where each document
126
+ comes from (a repository directory, Lark documents or notes). Sections are purple;
127
+ sources are coloured by type: repository files green, Skills magenta, Lark
128
+ documents blue and notes orange. Hovering a section
129
+ or document highlights what it is linked to; clicking a document opens the cited
130
+ lines, and clicking a section scrolls to it. A List view shows the same documents
131
+ by group with their cited line ranges, and narrow screens show only the list.
132
+ Below the map, other articles citing the same documents are linked. The map is
133
+ computed while building from the recorded references, so it needs no agent
134
+ step; set `site.sourceMap: false` to show the plain source list instead, which
135
+ initially shows ten sources; Show more reveals the full list.
125
136
  Invalid diagrams and diagrams with embedded image/HTML resources retain their
126
137
  source with a rendering notice instead of blocking publication. Code samples and raw HTML are
127
138
  displayed as content, not executed as Vue components or scripts.
@@ -191,7 +191,8 @@ the same build, beside the KB directory. `<base>` removes one trailing `-kb`
191
191
  from the package name, if present. Omit it for KB-only output. It accepts `title`, `description`,
192
192
  `lang`, a deployment `base` path, an optional top-bar `titleLink`, and an
193
193
  optional `home` presentation. Navigation and language fields are `nav`, `more`,
194
- `socialLinks`, `locales` and `localePreferenceKey`; see
194
+ `socialLinks`, `locales` and `localePreferenceKey`; `sourceMap: false` replaces
195
+ the per-article source map with a plain source list; see
195
196
  [Package Outputs](../guides/package-outputs.md) and
196
197
  [Site translation](../guides/site-translation.md). `home`
197
198
  accepts `title`, `slogan`, `description`, hero `actions`, and `resources` shown
@@ -425,6 +425,13 @@ also checking additions that have no old page reference. The scope is complete
425
425
  only after every required change is reviewed, closed and built, or after an
426
426
  explicit conclusion that it needs no knowledge changes.
427
427
 
428
+ Moving a repository with `context source add repo --ref <sha>` only changes its
429
+ registration. When approved knowledge was processed at the previous commit, run
430
+ `context update --pending --format json`. Only pages whose cited text changed
431
+ become candidates, listed in `changed_references`; still inspect the change for
432
+ additions and shared dependencies before deciding. Moved citations update their
433
+ locations when the update settles.
434
+
428
435
  Before importing a `note`, read [note source preparation](note.md).
429
436
  Before importing `sessions`, read [development summary preparation](sessions.md).
430
437
  Choose the reference for the actual input; do not read both by default.
@@ -17,6 +17,11 @@ of them. Read their current approved Markdown. Submit one decision per path:
17
17
  omit `instruction` if no correction is needed, or describe the concrete change
18
18
  to make. Preserve unrelated content and the reader's existing improvements.
19
19
  Include a short `scope_summary` explaining the scope-level conclusion.
20
+ When the action lists `changed_references`, start from those sections: the
21
+ cited text changed (`changed`) or could not be read (`unavailable`, such as a
22
+ renamed or deleted file). For `context update --pending`, pages whose citations
23
+ are unchanged or only moved are not candidates, so an empty list is possible;
24
+ still check the change for additions before submitting the scope decision.
20
25
 
21
26
  Also inspect additions and shared dependencies in the source change. Existing
22
27
  page references cannot discover every new topic. List necessary new pages in `new_topics`, each with a readable `path` in an existing