@c4a/context-cli 0.7.101 → 0.7.103

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 (30) hide show
  1. package/cli.js +774 -563
  2. package/indexers/contracts/profile-contract.json +245 -245
  3. package/indexers/release-manifest.json +1 -1
  4. package/package.json +12 -12
  5. package/plugins/VERSION +1 -1
  6. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  7. package/plugins/claude/commands/context.md +8 -2
  8. package/plugins/claude/resources/context/routine-update.md +2 -1
  9. package/plugins/claude/resources/context/version-alignment.md +9 -4
  10. package/plugins/claude/skills/context-plan/references/knowledge-migration.md +1 -1
  11. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  12. package/plugins/codex/skills/context/SKILL.md +8 -2
  13. package/plugins/codex/skills/context/references/routine-update.md +2 -1
  14. package/plugins/codex/skills/context/references/version-alignment.md +9 -4
  15. package/plugins/codex/skills/context-plan/references/knowledge-migration.md +1 -1
  16. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  17. package/plugins/cursor/commands/c4a-context.md +8 -2
  18. package/plugins/cursor/resources/context/routine-update.md +2 -1
  19. package/plugins/cursor/resources/context/version-alignment.md +9 -4
  20. package/plugins/cursor/skills/context-plan/references/knowledge-migration.md +1 -1
  21. package/plugins/skills/context/SKILL.md +8 -2
  22. package/plugins/skills/context/references/routine-update.md +2 -1
  23. package/plugins/skills/context/references/version-alignment.md +9 -4
  24. package/plugins/skills/context-plan/references/knowledge-migration.md +1 -1
  25. package/providers/context/manifest.json +11 -11
  26. package/providers/context/provider.yaml +1 -1
  27. package/providers/context/resources/manuals/guides/page-customization.md +16 -3
  28. package/providers/context/resources/manuals/reference/project-api.md +3 -1
  29. package/providers/context/resources/procedures/document-capture.md +11 -5
  30. package/providers/context/resources/procedures/production-stage-files.md +3 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "protocol": "context.indexer.cli-release-manifest/v1",
3
3
  "package": "@c4a/context-cli",
4
- "version": "0.7.101",
4
+ "version": "0.7.103",
5
5
  "issuer": "context4ai/context",
6
6
  "bundles": [
7
7
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/context-cli",
3
- "version": "0.7.101",
3
+ "version": "0.7.103",
4
4
  "type": "module",
5
5
  "description": "Local runtime and Agent integration for traceable knowledge production",
6
6
  "license": "MIT",
@@ -24,17 +24,17 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@c4a/agent-graph": "0.3.0",
27
- "@c4a/context": "0.7.101",
28
- "@c4a/extract": "0.7.101",
29
- "@c4a/extract-contract": "0.7.101",
30
- "@c4a/extract-go": "0.7.101",
31
- "@c4a/extract-mdx": "0.7.101",
32
- "@c4a/extract-proto": "0.7.101",
33
- "@c4a/extract-rush": "0.7.101",
34
- "@c4a/extract-sql": "0.7.101",
35
- "@c4a/extract-style": "0.7.101",
36
- "@c4a/extract-thrift": "0.7.101",
37
- "@c4a/extract-ts": "0.7.101",
27
+ "@c4a/context": "0.7.103",
28
+ "@c4a/extract": "0.7.103",
29
+ "@c4a/extract-contract": "0.7.103",
30
+ "@c4a/extract-go": "0.7.103",
31
+ "@c4a/extract-mdx": "0.7.103",
32
+ "@c4a/extract-proto": "0.7.103",
33
+ "@c4a/extract-rush": "0.7.103",
34
+ "@c4a/extract-sql": "0.7.103",
35
+ "@c4a/extract-style": "0.7.103",
36
+ "@c4a/extract-thrift": "0.7.103",
37
+ "@c4a/extract-ts": "0.7.103",
38
38
  "@mermaid-js/layout-elk": "0.2.0",
39
39
  "commander": "^11.0.0",
40
40
  "d3-force": "3.0.0",
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.101
1
+ 0.7.103
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
4
- "version": "0.7.101",
4
+ "version": "0.7.103",
5
5
  "author": {
6
6
  "name": "c4a"
7
7
  },
@@ -142,7 +142,7 @@ without the user's authorization.
142
142
 
143
143
  ### Check the CLI first
144
144
 
145
- This Skill ships with Context 0.7.101.
145
+ This Skill ships with Context 0.7.103.
146
146
 
147
147
  When entering production in a workspace, align the CLI, this Skill and the
148
148
  workspace SDK once per session with [version alignment](../resources/context/version-alignment.md):
@@ -258,10 +258,11 @@ Within an active Context workflow, requests include, but are not limited to:
258
258
  | Preserve conversation insights | Save or use a summary of supplied discussion, not an entire session history. Code-change links are optional. |
259
259
  | Plan a large knowledge project or source refresh | Use `context-plan` for investigation, an approved PLAN and one bounded production stage at a time. |
260
260
  | Update knowledge from source changes | Assess a selected commit, MR/PR or document change against a fixed source version; route multi-repository or broad scans through `context-plan`, then update the selected stage's affected pages. |
261
+ | Bring in another team's knowledge and follow it | A released knowledge package, Skill, documentation repository or wiki that another team maintains, shown here and kept current: register it as a `file` source with its origin and version (knowledge-updates guide, "Versioned external content"), then let the user choose between keeping its pages as written (`preserve_original`) and rewriting them as this knowledge base's articles. Do not copy it into custom website pages or write sync scripts; to only point readers to it, register an import. |
261
262
  | Run a routine update | Refresh all registered sources (or the named subset) on a schedule without repeating task instructions: read [routine update](../resources/context/routine-update.md). |
262
263
  | Revise existing content | Correct current drafts or approved pages, including several pages or supported API-table regeneration. |
263
264
  | Organize pages and sources | Move pages within a collection, rename supported sources or remove unused sources with reference checks. |
264
- | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements; the same map organizes LLMS. Preserve current production work. |
265
+ | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements through `context task adjust`; the same map organizes LLMS. Never edit `src/knowledge-map.yaml` or its revision by hand, and do not add a separate `site.nav` menu. Preserve current production work. |
265
266
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
266
267
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
267
268
  | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. |
@@ -722,6 +723,11 @@ availability separately from whether knowledge has already been approved.
722
723
 
723
724
  Distinguish saved sources, accepted drafts and delivered pages.
724
725
 
726
+ When the outcome, an MR description or a task result says something was
727
+ verified, state the check and its result (for example "website build passed;
728
+ link check: 195 anchors, 0 broken"), not only that it was verified. Compare what
729
+ a check printed with what it should show before calling it passed.
730
+
725
731
  Keep the exact HTML review report links the user actually used in this
726
732
  conversation. Include those links in a compact final `Review reports` section
727
733
  when applicable; do not reconstruct them from runtime files or describe managed,
@@ -94,7 +94,8 @@ workspace targets or the delivery configuration.
94
94
  is a gap, not a change: never retire or take down pages because of it.
95
95
  4. **No change.** If nothing in scope changed, or the only changes are uncited
96
96
  ones that hold no lasting knowledge (step 7), report "no knowledge changes
97
- this run" and stop without commits or publication.
97
+ this run" and stop without publication. The only commit allowed then is a
98
+ workspace SDK upgrade from version alignment, delivered on its own.
98
99
  5. **Size the work.** One repository with at most 30 affected articles: update it
99
100
  directly. Otherwise use `context-plan` with one repository per stage. One
100
101
  source update always covers all affected articles of that repository; to keep
@@ -43,10 +43,15 @@ and wait for the user instead of crossing the major.
43
43
  3. Workspace SDK below the target: set the `@c4a/context` dependency in
44
44
  `package.json` to the target, install with the workspace's package manager
45
45
  (`bun install` for a Bun lockfile) and check the installed version. Keep the
46
- change with the next delivery: commit it with that batch and add an
47
- "Upgrade Context SDK to <target>" line to its version entry. Do not commit or
48
- publish it on its own. In a fresh sandbox the next run repeats it until a
49
- delivery includes it.
46
+ change with the next delivery: commit `package.json` together with the lock
47
+ file in that batch (check both are staged; staging only knowledge paths drops
48
+ them) and add an "Upgrade Context SDK to <target>" line to its version entry.
49
+ When a routine update finds no knowledge change, deliver the upgrade on its
50
+ own instead: record a patch version with a `dist` trigger and submit it like
51
+ any delivery, so the workspace does not stay behind. Otherwise do not commit or
52
+ publish it on its own; in a fresh sandbox the next run repeats it until a
53
+ delivery includes it. `context status` and `context version inspect` report a
54
+ pinned SDK older than the running CLI as `version_alignment`.
50
55
 
51
56
  If the release list cannot be read or an installation fails, do not retry: keep
52
57
  the current versions, report the problem once and continue when they still work.
@@ -161,7 +161,7 @@ unchanged, unchanged). Include existing unchanged articles from the navigation
161
161
  subtrees the package covers and the articles its new or revised articles link to;
162
162
  a large unchanged module may be listed as one row with its page count.
163
163
  Content that should appear only in a package, not in website navigation, goes
164
- under a hidden knowledge map category.
164
+ under a hidden knowledge map category, set with `context task adjust`.
165
165
 
166
166
  State the basis of every overlap figure (pages or characters) and use the same
167
167
  basis across collections where possible.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c4a",
3
- "version": "0.7.101",
3
+ "version": "0.7.103",
4
4
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
5
5
  "author": { "name": "c4a" },
6
6
  "homepage": "https://github.com/context4ai/c4a",
@@ -10,7 +10,7 @@
10
10
  "skills": "./skills/",
11
11
  "interface": {
12
12
  "displayName": "C4A Context",
13
- "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.101",
13
+ "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.103",
14
14
  "longDescription": "Create a Context workspace and use agent-guided next steps to register sources, run extraction, review candidates, build package outputs, and verify health without silently mutating source repositories.",
15
15
  "developerName": "c4a",
16
16
  "category": "Productivity",
@@ -140,7 +140,7 @@ without the user's authorization.
140
140
 
141
141
  ### Check the CLI first
142
142
 
143
- This Skill ships with Context 0.7.101.
143
+ This Skill ships with Context 0.7.103.
144
144
 
145
145
  When entering production in a workspace, align the CLI, this Skill and the
146
146
  workspace SDK once per session with [version alignment](references/version-alignment.md):
@@ -256,10 +256,11 @@ Within an active Context workflow, requests include, but are not limited to:
256
256
  | Preserve conversation insights | Save or use a summary of supplied discussion, not an entire session history. Code-change links are optional. |
257
257
  | Plan a large knowledge project or source refresh | Use `context-plan` for investigation, an approved PLAN and one bounded production stage at a time. |
258
258
  | Update knowledge from source changes | Assess a selected commit, MR/PR or document change against a fixed source version; route multi-repository or broad scans through `context-plan`, then update the selected stage's affected pages. |
259
+ | Bring in another team's knowledge and follow it | A released knowledge package, Skill, documentation repository or wiki that another team maintains, shown here and kept current: register it as a `file` source with its origin and version (knowledge-updates guide, "Versioned external content"), then let the user choose between keeping its pages as written (`preserve_original`) and rewriting them as this knowledge base's articles. Do not copy it into custom website pages or write sync scripts; to only point readers to it, register an import. |
259
260
  | Run a routine update | Refresh all registered sources (or the named subset) on a schedule without repeating task instructions: read [routine update](references/routine-update.md). |
260
261
  | Revise existing content | Correct current drafts or approved pages, including several pages or supported API-table regeneration. |
261
262
  | Organize pages and sources | Move pages within a collection, rename supported sources or remove unused sources with reference checks. |
262
- | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements; the same map organizes LLMS. Preserve current production work. |
263
+ | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements through `context task adjust`; the same map organizes LLMS. Never edit `src/knowledge-map.yaml` or its revision by hand, and do not add a separate `site.nav` menu. Preserve current production work. |
263
264
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
264
265
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
265
266
  | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. |
@@ -720,6 +721,11 @@ availability separately from whether knowledge has already been approved.
720
721
 
721
722
  Distinguish saved sources, accepted drafts and delivered pages.
722
723
 
724
+ When the outcome, an MR description or a task result says something was
725
+ verified, state the check and its result (for example "website build passed;
726
+ link check: 195 anchors, 0 broken"), not only that it was verified. Compare what
727
+ a check printed with what it should show before calling it passed.
728
+
723
729
  Keep the exact HTML review report links the user actually used in this
724
730
  conversation. Include those links in a compact final `Review reports` section
725
731
  when applicable; do not reconstruct them from runtime files or describe managed,
@@ -94,7 +94,8 @@ workspace targets or the delivery configuration.
94
94
  is a gap, not a change: never retire or take down pages because of it.
95
95
  4. **No change.** If nothing in scope changed, or the only changes are uncited
96
96
  ones that hold no lasting knowledge (step 7), report "no knowledge changes
97
- this run" and stop without commits or publication.
97
+ this run" and stop without publication. The only commit allowed then is a
98
+ workspace SDK upgrade from version alignment, delivered on its own.
98
99
  5. **Size the work.** One repository with at most 30 affected articles: update it
99
100
  directly. Otherwise use `context-plan` with one repository per stage. One
100
101
  source update always covers all affected articles of that repository; to keep
@@ -43,10 +43,15 @@ and wait for the user instead of crossing the major.
43
43
  3. Workspace SDK below the target: set the `@c4a/context` dependency in
44
44
  `package.json` to the target, install with the workspace's package manager
45
45
  (`bun install` for a Bun lockfile) and check the installed version. Keep the
46
- change with the next delivery: commit it with that batch and add an
47
- "Upgrade Context SDK to <target>" line to its version entry. Do not commit or
48
- publish it on its own. In a fresh sandbox the next run repeats it until a
49
- delivery includes it.
46
+ change with the next delivery: commit `package.json` together with the lock
47
+ file in that batch (check both are staged; staging only knowledge paths drops
48
+ them) and add an "Upgrade Context SDK to <target>" line to its version entry.
49
+ When a routine update finds no knowledge change, deliver the upgrade on its
50
+ own instead: record a patch version with a `dist` trigger and submit it like
51
+ any delivery, so the workspace does not stay behind. Otherwise do not commit or
52
+ publish it on its own; in a fresh sandbox the next run repeats it until a
53
+ delivery includes it. `context status` and `context version inspect` report a
54
+ pinned SDK older than the running CLI as `version_alignment`.
50
55
 
51
56
  If the release list cannot be read or an installation fails, do not retry: keep
52
57
  the current versions, report the problem once and continue when they still work.
@@ -161,7 +161,7 @@ unchanged, unchanged). Include existing unchanged articles from the navigation
161
161
  subtrees the package covers and the articles its new or revised articles link to;
162
162
  a large unchanged module may be listed as one row with its page count.
163
163
  Content that should appear only in a package, not in website navigation, goes
164
- under a hidden knowledge map category.
164
+ under a hidden knowledge map category, set with `context task adjust`.
165
165
 
166
166
  State the basis of every overlap figure (pages or characters) and use the same
167
167
  basis across collections where possible.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "displayName": "C4A Context",
4
- "version": "0.7.101",
4
+ "version": "0.7.103",
5
5
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
6
6
  "author": {
7
7
  "name": "Context4AI",
@@ -137,7 +137,7 @@ without the user's authorization.
137
137
 
138
138
  ### Check the CLI first
139
139
 
140
- This Skill ships with Context 0.7.101.
140
+ This Skill ships with Context 0.7.103.
141
141
 
142
142
  When entering production in a workspace, align the CLI, this Skill and the
143
143
  workspace SDK once per session with [version alignment](../resources/context/version-alignment.md):
@@ -253,10 +253,11 @@ Within an active Context workflow, requests include, but are not limited to:
253
253
  | Preserve conversation insights | Save or use a summary of supplied discussion, not an entire session history. Code-change links are optional. |
254
254
  | Plan a large knowledge project or source refresh | Use `context-plan` for investigation, an approved PLAN and one bounded production stage at a time. |
255
255
  | Update knowledge from source changes | Assess a selected commit, MR/PR or document change against a fixed source version; route multi-repository or broad scans through `context-plan`, then update the selected stage's affected pages. |
256
+ | Bring in another team's knowledge and follow it | A released knowledge package, Skill, documentation repository or wiki that another team maintains, shown here and kept current: register it as a `file` source with its origin and version (knowledge-updates guide, "Versioned external content"), then let the user choose between keeping its pages as written (`preserve_original`) and rewriting them as this knowledge base's articles. Do not copy it into custom website pages or write sync scripts; to only point readers to it, register an import. |
256
257
  | Run a routine update | Refresh all registered sources (or the named subset) on a schedule without repeating task instructions: read [routine update](../resources/context/routine-update.md). |
257
258
  | Revise existing content | Correct current drafts or approved pages, including several pages or supported API-table regeneration. |
258
259
  | Organize pages and sources | Move pages within a collection, rename supported sources or remove unused sources with reference checks. |
259
- | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements; the same map organizes LLMS. Preserve current production work. |
260
+ | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements through `context task adjust`; the same map organizes LLMS. Never edit `src/knowledge-map.yaml` or its revision by hand, and do not add a separate `site.nav` menu. Preserve current production work. |
260
261
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
261
262
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
262
263
  | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. |
@@ -717,6 +718,11 @@ availability separately from whether knowledge has already been approved.
717
718
 
718
719
  Distinguish saved sources, accepted drafts and delivered pages.
719
720
 
721
+ When the outcome, an MR description or a task result says something was
722
+ verified, state the check and its result (for example "website build passed;
723
+ link check: 195 anchors, 0 broken"), not only that it was verified. Compare what
724
+ a check printed with what it should show before calling it passed.
725
+
720
726
  Keep the exact HTML review report links the user actually used in this
721
727
  conversation. Include those links in a compact final `Review reports` section
722
728
  when applicable; do not reconstruct them from runtime files or describe managed,
@@ -94,7 +94,8 @@ workspace targets or the delivery configuration.
94
94
  is a gap, not a change: never retire or take down pages because of it.
95
95
  4. **No change.** If nothing in scope changed, or the only changes are uncited
96
96
  ones that hold no lasting knowledge (step 7), report "no knowledge changes
97
- this run" and stop without commits or publication.
97
+ this run" and stop without publication. The only commit allowed then is a
98
+ workspace SDK upgrade from version alignment, delivered on its own.
98
99
  5. **Size the work.** One repository with at most 30 affected articles: update it
99
100
  directly. Otherwise use `context-plan` with one repository per stage. One
100
101
  source update always covers all affected articles of that repository; to keep
@@ -43,10 +43,15 @@ and wait for the user instead of crossing the major.
43
43
  3. Workspace SDK below the target: set the `@c4a/context` dependency in
44
44
  `package.json` to the target, install with the workspace's package manager
45
45
  (`bun install` for a Bun lockfile) and check the installed version. Keep the
46
- change with the next delivery: commit it with that batch and add an
47
- "Upgrade Context SDK to <target>" line to its version entry. Do not commit or
48
- publish it on its own. In a fresh sandbox the next run repeats it until a
49
- delivery includes it.
46
+ change with the next delivery: commit `package.json` together with the lock
47
+ file in that batch (check both are staged; staging only knowledge paths drops
48
+ them) and add an "Upgrade Context SDK to <target>" line to its version entry.
49
+ When a routine update finds no knowledge change, deliver the upgrade on its
50
+ own instead: record a patch version with a `dist` trigger and submit it like
51
+ any delivery, so the workspace does not stay behind. Otherwise do not commit or
52
+ publish it on its own; in a fresh sandbox the next run repeats it until a
53
+ delivery includes it. `context status` and `context version inspect` report a
54
+ pinned SDK older than the running CLI as `version_alignment`.
50
55
 
51
56
  If the release list cannot be read or an installation fails, do not retry: keep
52
57
  the current versions, report the problem once and continue when they still work.
@@ -161,7 +161,7 @@ unchanged, unchanged). Include existing unchanged articles from the navigation
161
161
  subtrees the package covers and the articles its new or revised articles link to;
162
162
  a large unchanged module may be listed as one row with its page count.
163
163
  Content that should appear only in a package, not in website navigation, goes
164
- under a hidden knowledge map category.
164
+ under a hidden knowledge map category, set with `context task adjust`.
165
165
 
166
166
  State the basis of every overlap figure (pages or characters) and use the same
167
167
  basis across collections where possible.
@@ -140,7 +140,7 @@ without the user's authorization.
140
140
 
141
141
  ### Check the CLI first
142
142
 
143
- This Skill ships with Context 0.7.101.
143
+ This Skill ships with Context 0.7.103.
144
144
 
145
145
  When entering production in a workspace, align the CLI, this Skill and the
146
146
  workspace SDK once per session with [version alignment](references/version-alignment.md):
@@ -256,10 +256,11 @@ Within an active Context workflow, requests include, but are not limited to:
256
256
  | Preserve conversation insights | Save or use a summary of supplied discussion, not an entire session history. Code-change links are optional. |
257
257
  | Plan a large knowledge project or source refresh | Use `context-plan` for investigation, an approved PLAN and one bounded production stage at a time. |
258
258
  | Update knowledge from source changes | Assess a selected commit, MR/PR or document change against a fixed source version; route multi-repository or broad scans through `context-plan`, then update the selected stage's affected pages. |
259
+ | Bring in another team's knowledge and follow it | A released knowledge package, Skill, documentation repository or wiki that another team maintains, shown here and kept current: register it as a `file` source with its origin and version (knowledge-updates guide, "Versioned external content"), then let the user choose between keeping its pages as written (`preserve_original`) and rewriting them as this knowledge base's articles. Do not copy it into custom website pages or write sync scripts; to only point readers to it, register an import. |
259
260
  | Run a routine update | Refresh all registered sources (or the named subset) on a schedule without repeating task instructions: read [routine update](references/routine-update.md). |
260
261
  | Revise existing content | Correct current drafts or approved pages, including several pages or supported API-table regeneration. |
261
262
  | Organize pages and sources | Move pages within a collection, rename supported sources or remove unused sources with reference checks. |
262
- | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements; the same map organizes LLMS. Preserve current production work. |
263
+ | Customize the knowledge map | At any time, reorganize the existing site's top navigation, left directory, labels, order or article placements through `context task adjust`; the same map organizes LLMS. Never edit `src/knowledge-map.yaml` or its revision by hand, and do not add a separate `site.nav` menu. Preserve current production work. |
263
264
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
264
265
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
265
266
  | Package knowledge or adjust output | Build approved content for Agents or LLMs, rebuild a package or change its output template. Rebuilding does not rewrite pages. |
@@ -720,6 +721,11 @@ availability separately from whether knowledge has already been approved.
720
721
 
721
722
  Distinguish saved sources, accepted drafts and delivered pages.
722
723
 
724
+ When the outcome, an MR description or a task result says something was
725
+ verified, state the check and its result (for example "website build passed;
726
+ link check: 195 anchors, 0 broken"), not only that it was verified. Compare what
727
+ a check printed with what it should show before calling it passed.
728
+
723
729
  Keep the exact HTML review report links the user actually used in this
724
730
  conversation. Include those links in a compact final `Review reports` section
725
731
  when applicable; do not reconstruct them from runtime files or describe managed,
@@ -94,7 +94,8 @@ workspace targets or the delivery configuration.
94
94
  is a gap, not a change: never retire or take down pages because of it.
95
95
  4. **No change.** If nothing in scope changed, or the only changes are uncited
96
96
  ones that hold no lasting knowledge (step 7), report "no knowledge changes
97
- this run" and stop without commits or publication.
97
+ this run" and stop without publication. The only commit allowed then is a
98
+ workspace SDK upgrade from version alignment, delivered on its own.
98
99
  5. **Size the work.** One repository with at most 30 affected articles: update it
99
100
  directly. Otherwise use `context-plan` with one repository per stage. One
100
101
  source update always covers all affected articles of that repository; to keep
@@ -43,10 +43,15 @@ and wait for the user instead of crossing the major.
43
43
  3. Workspace SDK below the target: set the `@c4a/context` dependency in
44
44
  `package.json` to the target, install with the workspace's package manager
45
45
  (`bun install` for a Bun lockfile) and check the installed version. Keep the
46
- change with the next delivery: commit it with that batch and add an
47
- "Upgrade Context SDK to <target>" line to its version entry. Do not commit or
48
- publish it on its own. In a fresh sandbox the next run repeats it until a
49
- delivery includes it.
46
+ change with the next delivery: commit `package.json` together with the lock
47
+ file in that batch (check both are staged; staging only knowledge paths drops
48
+ them) and add an "Upgrade Context SDK to <target>" line to its version entry.
49
+ When a routine update finds no knowledge change, deliver the upgrade on its
50
+ own instead: record a patch version with a `dist` trigger and submit it like
51
+ any delivery, so the workspace does not stay behind. Otherwise do not commit or
52
+ publish it on its own; in a fresh sandbox the next run repeats it until a
53
+ delivery includes it. `context status` and `context version inspect` report a
54
+ pinned SDK older than the running CLI as `version_alignment`.
50
55
 
51
56
  If the release list cannot be read or an installation fails, do not retry: keep
52
57
  the current versions, report the problem once and continue when they still work.
@@ -161,7 +161,7 @@ unchanged, unchanged). Include existing unchanged articles from the navigation
161
161
  subtrees the package covers and the articles its new or revised articles link to;
162
162
  a large unchanged module may be listed as one row with its page count.
163
163
  Content that should appear only in a package, not in website navigation, goes
164
- under a hidden knowledge map category.
164
+ under a hidden knowledge map category, set with `context task adjust`.
165
165
 
166
166
  State the basis of every overlap figure (pages or characters) and use the same
167
167
  basis across collections where possible.
@@ -2,7 +2,7 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.7.101"
5
+ "version": "0.7.103"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -208,12 +208,12 @@
208
208
  {
209
209
  "id": "context.sdk.page-customization",
210
210
  "path": "resources/manuals/guides/page-customization.md",
211
- "digest": "sha256:c8ba4cfe671f68a5bd27187e6f3c4d68a4c014f1f7018baaebf088decc404755"
211
+ "digest": "sha256:72bff9a9d8ea6d3a93553d2901faa6fc0f39a3d718ad9c81753c77562ff52e4f"
212
212
  },
213
213
  {
214
214
  "id": "context.sdk.project-api",
215
215
  "path": "resources/manuals/reference/project-api.md",
216
- "digest": "sha256:c14322199c507068e3d3796e7f9a3e1170d02e322033ca70b3da7bfc3843e03d"
216
+ "digest": "sha256:e31e6bea442a31f753584a6a1461064b4416987e92ce00f041f3ae893817f40b"
217
217
  },
218
218
  {
219
219
  "id": "context.sdk.site-translation",
@@ -303,7 +303,7 @@
303
303
  {
304
304
  "id": "procedure.document-capture",
305
305
  "path": "resources/procedures/document-capture.md",
306
- "digest": "sha256:fcb68eccaa5c7307cafbaa42348a618b9c741aecc96cd1b6f430a446fc9b8b70"
306
+ "digest": "sha256:5d18217e1447fbec427e4a70c03a950d233386782513f831e25d3407fef0a0bb"
307
307
  },
308
308
  {
309
309
  "id": "procedure.document-code-investigation",
@@ -353,7 +353,7 @@
353
353
  {
354
354
  "id": "procedure.production-stage-files",
355
355
  "path": "resources/procedures/production-stage-files.md",
356
- "digest": "sha256:1e614d47f5bcd59690587833fd1a923d90e40a30c12c7a6aa509c22831a18742"
356
+ "digest": "sha256:6e343725e1dd5bdb3e90420ca58a69b5b0548859bf7b260c214c44eaf3583d3c"
357
357
  },
358
358
  {
359
359
  "id": "procedure.project-configuration",
@@ -598,7 +598,7 @@
598
598
  },
599
599
  {
600
600
  "path": "provider.yaml",
601
- "digest": "sha256:c4fd26e945afda18adc88ca358d9514b80ccb6cc454d254893d5090dc60a99d4"
601
+ "digest": "sha256:bdc581235de99a467c87e3102e09af943ddb21d7d684813c010cf98263812f33"
602
602
  },
603
603
  {
604
604
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -678,7 +678,7 @@
678
678
  },
679
679
  {
680
680
  "path": "resources/manuals/guides/page-customization.md",
681
- "digest": "sha256:c8ba4cfe671f68a5bd27187e6f3c4d68a4c014f1f7018baaebf088decc404755"
681
+ "digest": "sha256:72bff9a9d8ea6d3a93553d2901faa6fc0f39a3d718ad9c81753c77562ff52e4f"
682
682
  },
683
683
  {
684
684
  "path": "resources/manuals/guides/repo-content.md",
@@ -718,7 +718,7 @@
718
718
  },
719
719
  {
720
720
  "path": "resources/manuals/reference/project-api.md",
721
- "digest": "sha256:c14322199c507068e3d3796e7f9a3e1170d02e322033ca70b3da7bfc3843e03d"
721
+ "digest": "sha256:e31e6bea442a31f753584a6a1461064b4416987e92ce00f041f3ae893817f40b"
722
722
  },
723
723
  {
724
724
  "path": "resources/manuals/reference/template-variables.md",
@@ -734,7 +734,7 @@
734
734
  },
735
735
  {
736
736
  "path": "resources/procedures/document-capture.md",
737
- "digest": "sha256:fcb68eccaa5c7307cafbaa42348a618b9c741aecc96cd1b6f430a446fc9b8b70"
737
+ "digest": "sha256:5d18217e1447fbec427e4a70c03a950d233386782513f831e25d3407fef0a0bb"
738
738
  },
739
739
  {
740
740
  "path": "resources/procedures/document-code-investigation.md",
@@ -774,7 +774,7 @@
774
774
  },
775
775
  {
776
776
  "path": "resources/procedures/production-stage-files.md",
777
- "digest": "sha256:1e614d47f5bcd59690587833fd1a923d90e40a30c12c7a6aa509c22831a18742"
777
+ "digest": "sha256:6e343725e1dd5bdb3e90420ca58a69b5b0548859bf7b260c214c44eaf3583d3c"
778
778
  },
779
779
  {
780
780
  "path": "resources/procedures/project-configuration.md",
@@ -921,5 +921,5 @@
921
921
  "indexer": [],
922
922
  "workspace": []
923
923
  },
924
- "digest": "sha256:a500575022231da19b751cb6636b8f5630388f8221d8258bc8e6c9eff9cec351"
924
+ "digest": "sha256:fcc9c8e6d419dbdcce667cb3e31d3f20b0ba218cdc4cf54ce8bafcba878c5863"
925
925
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.7.101
3
+ version: 0.7.103
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -85,15 +85,28 @@ import SupportPanel from '../components/SupportPanel.vue'
85
85
 
86
86
  Place it using the existing knowledge-map entry structure, with
87
87
  `target: { artifact_ref: "site:support" }`. Set `parent`, `title` and `order`
88
- as for other directory entries; do not create a second menu configuration.
88
+ as for other directory entries, and change the map with `context task adjust`
89
+ (never by editing `src/knowledge-map.yaml` or its revision); do not create a
90
+ second menu configuration such as `site.nav` entries for these pages.
89
91
  The `site:` namespace is reserved for website pages; do not use `section_key`
90
92
  on these targets. Undeclared targets fail website building with a diagnostic.
91
93
  Pages without directory entries remain directly accessible. Multiple entries
92
94
  can reference one page without duplicating content.
93
95
 
94
96
  These pages are website-only: they are not approved articles and do not enter
95
- the knowledge package or LLM Docs. Update formal articles through the existing
96
- knowledge revision workflow, not through a custom page that shadows their URLs.
97
+ the knowledge package or LLM Docs. Use them for presentation, such as a support
98
+ page, an introduction or an entry to a tool. Knowledge content belongs in
99
+ articles: material from another team, such as a released knowledge package or a
100
+ wiki, is registered as a versioned `file` source and produced (or kept as
101
+ written) through the workflow, not copied into custom pages by a script. Update
102
+ formal articles through the existing knowledge revision workflow, not through a
103
+ custom page that shadows their URLs.
104
+
105
+ The website build checks the internal links and anchors in custom pages and
106
+ fails, listing them, when one has no target. A link to a heading uses the
107
+ website's heading ID: lower case, spaces and punctuation such as `.` or `_`
108
+ become `-`, and an ID starting with a digit gets a leading `_` (`3V架构` becomes
109
+ `_3v架构`).
97
110
 
98
111
  ## Build and delivery
99
112
 
@@ -199,7 +199,9 @@ accepts `title`, `slogan`, `description`, hero `actions`, and `resources` shown
199
199
  below the generated site map. Each resource needs an `href`, a copyable
200
200
  `command`, or both. Omit unknown resources; the builder never invents service
201
201
  or repository links. Knowledge map is projected from
202
- `src/knowledge-map.yaml` independently of KB directories; see
202
+ `src/knowledge-map.yaml` independently of KB directories; change it with
203
+ `context task adjust` (the file carries a revision the CLI computes; never edit
204
+ it by hand); see
203
205
  [Package Outputs](../guides/package-outputs.md#optional-static-documentation-website).
204
206
 
205
207
  `site.extensions` optionally names a trusted `src/site` root, homepage, footer,
@@ -99,11 +99,17 @@ If `docs +fetch` lacks the required `--doc-format`
99
99
  capability, follow the returned `lark-cli update` recovery and rerun the same
100
100
  Route command; do not replace the capture with a hand-written export.
101
101
 
102
- An active production stage can continue planning and writing articles whose sources
103
- are available while another capture remains pending. Keep unresolved sources in
104
- `pending_scopes`; do not cite their unavailable snapshots. The Route returns to
105
- pending capture after the active production/review work, before delivery completes.
106
- This does not mark failed captures as complete or waive source-read authorization.
102
+ Production waits only for its own documents. When a stage exists, capture is
103
+ gated on the sources it requested; other registered documents still waiting for
104
+ capture are listed in status as `deferredCaptureSources` and do not block its
105
+ planning, writing, Review or delivery. Before a stage exists, the capture Gate
106
+ also returns the exact `context action prepare-current --revision … --source …`
107
+ command for requirements whose documents are all captured: run it to start that
108
+ request now, or capture first. Report the deferred documents to the user; they
109
+ stay registered and are captured when their read permission is given. A stage
110
+ whose own sources are still waiting keeps them in `pending_scopes`; do not cite
111
+ unavailable snapshots. This does not mark failed captures as complete or waive
112
+ source-read authorization.
107
113
 
108
114
  ## Image acquisition before capture
109
115
 
@@ -56,7 +56,9 @@ During an approved stage, use the existing plan-amendment path for in-scope
56
56
  additions and preserve completed work. Do not restart planning solely because
57
57
  another article is ready to write. Keep remaining investigation explicit; a small
58
58
  current task does not mean other authorized work is finished. New source or purpose
59
- authorization still follows the current Route.
59
+ authorization still follows the current Route. When an amendment replaces a task,
60
+ its result lists `previous_drafts`: copy each `from` directory's draft files into
61
+ its `to` directory, then revise them for the new task instead of starting over.
60
62
 
61
63
  Write results under the returned Agent directory. All submission paths are
62
64
  relative to `.tmp/agent-work/production-stages/<stage>/`, even when the manifest is in `submissions/`. They are never relative to `.tmp/context-runtime/` or to the manifest location. Each task lists the complete workspace-relative Markdown and reference output paths.