@c4a/context-cli 0.7.102 → 0.7.104

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/cli.js +885 -591
  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/parserEntryWorker.js +2 -0
  6. package/plugins/VERSION +1 -1
  7. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  8. package/plugins/claude/commands/context.md +9 -3
  9. package/plugins/claude/resources/context/routine-update.md +2 -1
  10. package/plugins/claude/resources/context/version-alignment.md +9 -4
  11. package/plugins/claude/skills/context-plan/references/knowledge-migration.md +1 -1
  12. package/plugins/codex/.codex-plugin/plugin.json +2 -2
  13. package/plugins/codex/skills/context/SKILL.md +9 -3
  14. package/plugins/codex/skills/context/references/routine-update.md +2 -1
  15. package/plugins/codex/skills/context/references/version-alignment.md +9 -4
  16. package/plugins/codex/skills/context-plan/references/knowledge-migration.md +1 -1
  17. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  18. package/plugins/cursor/commands/c4a-context.md +9 -3
  19. package/plugins/cursor/resources/context/routine-update.md +2 -1
  20. package/plugins/cursor/resources/context/version-alignment.md +9 -4
  21. package/plugins/cursor/skills/context-plan/references/knowledge-migration.md +1 -1
  22. package/plugins/skills/context/SKILL.md +9 -3
  23. package/plugins/skills/context/references/routine-update.md +2 -1
  24. package/plugins/skills/context/references/version-alignment.md +9 -4
  25. package/plugins/skills/context-plan/references/knowledge-migration.md +1 -1
  26. package/providers/context/manifest.json +13 -13
  27. package/providers/context/provider.yaml +1 -1
  28. package/providers/context/resources/manuals/guides/package-outputs.md +36 -0
  29. package/providers/context/resources/manuals/guides/page-customization.md +16 -3
  30. package/providers/context/resources/manuals/reference/project-api.md +11 -1
  31. package/providers/context/resources/procedures/document-capture.md +11 -5
  32. package/providers/context/resources/procedures/production-stage-files.md +4 -0
@@ -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.102",
4
+ "version": "0.7.104",
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.102",
3
+ "version": "0.7.104",
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.102",
28
- "@c4a/extract": "0.7.102",
29
- "@c4a/extract-contract": "0.7.102",
30
- "@c4a/extract-go": "0.7.102",
31
- "@c4a/extract-mdx": "0.7.102",
32
- "@c4a/extract-proto": "0.7.102",
33
- "@c4a/extract-rush": "0.7.102",
34
- "@c4a/extract-sql": "0.7.102",
35
- "@c4a/extract-style": "0.7.102",
36
- "@c4a/extract-thrift": "0.7.102",
37
- "@c4a/extract-ts": "0.7.102",
27
+ "@c4a/context": "0.7.104",
28
+ "@c4a/extract": "0.7.104",
29
+ "@c4a/extract-contract": "0.7.104",
30
+ "@c4a/extract-go": "0.7.104",
31
+ "@c4a/extract-mdx": "0.7.104",
32
+ "@c4a/extract-proto": "0.7.104",
33
+ "@c4a/extract-rush": "0.7.104",
34
+ "@c4a/extract-sql": "0.7.104",
35
+ "@c4a/extract-style": "0.7.104",
36
+ "@c4a/extract-thrift": "0.7.104",
37
+ "@c4a/extract-ts": "0.7.104",
38
38
  "@mermaid-js/layout-elk": "0.2.0",
39
39
  "commander": "^11.0.0",
40
40
  "d3-force": "3.0.0",
@@ -20826,6 +20826,7 @@ var init_indexerApprovedKnowledge = __esm(() => {
20826
20826
  });
20827
20827
 
20828
20828
  // ../context/src/index.ts
20829
+ var DEFAULT_PACKAGE_RULE_LIMITS;
20829
20830
  var init_src = __esm(() => {
20830
20831
  init_siteTheme();
20831
20832
  init_packageSite();
@@ -20879,6 +20880,7 @@ var init_src = __esm(() => {
20879
20880
  init_indexerApprovedKnowledge();
20880
20881
  init_articleStructure();
20881
20882
  init_articleSourceLocatorInput();
20883
+ DEFAULT_PACKAGE_RULE_LIMITS = { fileKb: 16, totalKb: 64 };
20882
20884
  });
20883
20885
 
20884
20886
  // src/project/codeAnalysisInput.ts
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.102
1
+ 0.7.104
@@ -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.102",
4
+ "version": "0.7.104",
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.102.
145
+ This Skill ships with Context 0.7.104.
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,13 +258,14 @@ 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
- | 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. |
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. When a package summary has a `rules` report, the build still succeeded: read the listed rule articles, propose to the user which are binding rules (`rules.alwaysApply`, kept short) and which are reference material (`rules.exclude`, shipped under `guides/`), change `src/index.ts` only after they agree (when the report has `version_alignment`, upgrade the workspace SDK first), then rebuild (Package outputs guide, "Package rules"). |
268
269
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
269
270
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
270
271
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -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.102",
3
+ "version": "0.7.104",
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.102",
13
+ "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.104",
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.102.
143
+ This Skill ships with Context 0.7.104.
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,13 +256,14 @@ 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
- | 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. |
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. When a package summary has a `rules` report, the build still succeeded: read the listed rule articles, propose to the user which are binding rules (`rules.alwaysApply`, kept short) and which are reference material (`rules.exclude`, shipped under `guides/`), change `src/index.ts` only after they agree (when the report has `version_alignment`, upgrade the workspace SDK first), then rebuild (Package outputs guide, "Package rules"). |
266
267
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
267
268
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
268
269
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -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.102",
4
+ "version": "0.7.104",
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.102.
140
+ This Skill ships with Context 0.7.104.
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,13 +253,14 @@ 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
- | 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. |
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. When a package summary has a `rules` report, the build still succeeded: read the listed rule articles, propose to the user which are binding rules (`rules.alwaysApply`, kept short) and which are reference material (`rules.exclude`, shipped under `guides/`), change `src/index.ts` only after they agree (when the report has `version_alignment`, upgrade the workspace SDK first), then rebuild (Package outputs guide, "Package rules"). |
263
264
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
264
265
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
265
266
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -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.102.
143
+ This Skill ships with Context 0.7.104.
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,13 +256,14 @@ 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
- | 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. |
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. When a package summary has a `rules` report, the build still succeeded: read the listed rule articles, propose to the user which are binding rules (`rules.alwaysApply`, kept short) and which are reference material (`rules.exclude`, shipped under `guides/`), change `src/index.ts` only after they agree (when the report has `version_alignment`, upgrade the workspace SDK first), then rebuild (Package outputs guide, "Package rules"). |
266
267
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
267
268
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
268
269
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -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.102"
5
+ "version": "0.7.104"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -198,7 +198,7 @@
198
198
  {
199
199
  "id": "context.sdk.package-outputs",
200
200
  "path": "resources/manuals/guides/package-outputs.md",
201
- "digest": "sha256:20e7be0fb7b40221df448f9b644b782fe417b3c41627d63d55f317cdeda47460"
201
+ "digest": "sha256:a5bfc6cf39669db4f6a8cf098d7b30762e7f2462ae4af119d7b9bb596d4a0e12"
202
202
  },
203
203
  {
204
204
  "id": "context.sdk.package-templates",
@@ -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:75a581301a7d620318b9093eae1bd520381e2239757e8470f80a930fcf6508d2"
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:6e343725e1dd5bdb3e90420ca58a69b5b0548859bf7b260c214c44eaf3583d3c"
356
+ "digest": "sha256:e5839558b00b8c193c6ae4469234056bf686b4da4bf73f450eb3e8e7fcb4c96d"
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:6c92dffa4f1269a6b31204d669df469522292fa3bf841c9cacc1ac40756a0837"
601
+ "digest": "sha256:9268f5aadf52206b37f47dc4be1c7cb1c241a9f7c8e0459de674dc45ebe384c4"
602
602
  },
603
603
  {
604
604
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -674,11 +674,11 @@
674
674
  },
675
675
  {
676
676
  "path": "resources/manuals/guides/package-outputs.md",
677
- "digest": "sha256:20e7be0fb7b40221df448f9b644b782fe417b3c41627d63d55f317cdeda47460"
677
+ "digest": "sha256:a5bfc6cf39669db4f6a8cf098d7b30762e7f2462ae4af119d7b9bb596d4a0e12"
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:75a581301a7d620318b9093eae1bd520381e2239757e8470f80a930fcf6508d2"
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:6e343725e1dd5bdb3e90420ca58a69b5b0548859bf7b260c214c44eaf3583d3c"
777
+ "digest": "sha256:e5839558b00b8c193c6ae4469234056bf686b4da4bf73f450eb3e8e7fcb4c96d"
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:9b5a6245148db2dfa6c592472c1b9a08acd1b42f52c93127c3db5116bb08f0ad"
924
+ "digest": "sha256:09b7b36bf5d35fa262bc77d4c050cad5a5d244ab77a53cc1e2703c7f652249ca"
925
925
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.7.102
3
+ version: 0.7.104
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -374,6 +374,42 @@ Current collection mapping:
374
374
  `rules/` may explain, operationalize, or constrain that knowledge; their
375
375
  placement does not create a relationship unless Context includes a typed edge.
376
376
 
377
+ ### Package rules
378
+
379
+ AI tools that install a package may copy `rules/` into their own rule folders,
380
+ and some load those files into every session. Keep `rules/` for short, binding
381
+ rules. Reference material, such as configuration dictionaries, enum tables or a
382
+ methodology, belongs in a reference collection (`product`, `architecture`), or
383
+ stays in `standards` and ships under `guides/` through the package declaration:
384
+
385
+ ```ts
386
+ kbPackage({
387
+ name: "team-kb",
388
+ template: "src/package-templates/kb",
389
+ rules: {
390
+ exclude: ["standards/config-keys.md", "standards/metrics/**"], // shipped under guides/standards/
391
+ alwaysApply: ["standards/red-lines.md"], // marked alwaysApply: true
392
+ limits: { fileKb: 16, totalKb: 64 }, // the defaults
393
+ },
394
+ })
395
+ ```
396
+
397
+ Paths are knowledge paths (`standards/…`, `test/…`); `*` and `**` are globs.
398
+ `alwaysApply` only adds that flag to the package copy; tools that honor it load
399
+ the rule in every session, and the others treat it like any rule. Directory
400
+ index pages in `rules/` are navigation, not rules.
401
+
402
+ `context build` never moves, drops or blocks rules because of their size or
403
+ content. When a rule file or the `rules/` total exceeds the limits, the package
404
+ summary carries a `rules` report: the files, their sizes and the instruction.
405
+ Then read the listed articles and decide with the user which are binding rules.
406
+ List the binding rules every session needs in `alwaysApply` and keep them short;
407
+ move reference material with `exclude`; raise `limits` when larger rules are
408
+ intended. Change `src/index.ts` only after the user agrees, then rebuild.
409
+
410
+ A workspace SDK older than the running CLI may not know `rules` and ignores it.
411
+ When the report includes `version_alignment`, upgrade the workspace SDK first.
412
+
377
413
  `index.md` is reserved for OKF bundle and directory indexes. Source documents
378
414
  may be named `index.md`, but generated concept pages must use a non-reserved
379
415
  name such as `index-page.md`; `context build` rejects copied knowledge that