@c4a/context-cli 0.7.103 → 0.7.105

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.
@@ -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.103",
4
+ "version": "0.7.105",
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.103",
3
+ "version": "0.7.105",
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.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",
27
+ "@c4a/context": "0.7.105",
28
+ "@c4a/extract": "0.7.105",
29
+ "@c4a/extract-contract": "0.7.105",
30
+ "@c4a/extract-go": "0.7.105",
31
+ "@c4a/extract-mdx": "0.7.105",
32
+ "@c4a/extract-proto": "0.7.105",
33
+ "@c4a/extract-rush": "0.7.105",
34
+ "@c4a/extract-sql": "0.7.105",
35
+ "@c4a/extract-style": "0.7.105",
36
+ "@c4a/extract-thrift": "0.7.105",
37
+ "@c4a/extract-ts": "0.7.105",
38
38
  "@mermaid-js/layout-elk": "0.2.0",
39
39
  "commander": "^11.0.0",
40
40
  "d3-force": "3.0.0",
@@ -20173,7 +20173,7 @@ var getSourceType = (sourceDefinition) => {
20173
20173
  }), captureLark = (definition) => {
20174
20174
  const sourceDefinition = bindSourceType(definition.source, "lark", "captureLark source");
20175
20175
  const sourceId = getSourceName(sourceDefinition);
20176
- for (const key of ["images", "gifs"]) {
20176
+ for (const key of ["images", "gifs", "files", "whiteboards"]) {
20177
20177
  const value = definition.resources?.[key];
20178
20178
  if (value !== undefined && value !== "bundle" && value !== "reference-only") {
20179
20179
  throw new TypeError(`captureLark resources.${key} must be bundle or reference-only`);
@@ -20199,6 +20199,8 @@ var getSourceType = (sourceDefinition) => {
20199
20199
  resources: {
20200
20200
  ...definition.resources?.images === undefined ? {} : { images: definition.resources.images },
20201
20201
  ...definition.resources?.gifs === undefined ? {} : { gifs: definition.resources.gifs },
20202
+ ...definition.resources?.files === undefined ? {} : { files: definition.resources.files },
20203
+ ...definition.resources?.whiteboards === undefined ? {} : { whiteboards: definition.resources.whiteboards },
20202
20204
  videos: definition.resources?.videos ?? "reference-only",
20203
20205
  maxBytesPerResource,
20204
20206
  maxTotalBytes
@@ -20826,6 +20828,7 @@ var init_indexerApprovedKnowledge = __esm(() => {
20826
20828
  });
20827
20829
 
20828
20830
  // ../context/src/index.ts
20831
+ var DEFAULT_PACKAGE_RULE_LIMITS;
20829
20832
  var init_src = __esm(() => {
20830
20833
  init_siteTheme();
20831
20834
  init_packageSite();
@@ -20879,6 +20882,7 @@ var init_src = __esm(() => {
20879
20882
  init_indexerApprovedKnowledge();
20880
20883
  init_articleStructure();
20881
20884
  init_articleSourceLocatorInput();
20885
+ DEFAULT_PACKAGE_RULE_LIMITS = { fileKb: 16, totalKb: 64 };
20882
20886
  });
20883
20887
 
20884
20888
  // src/project/codeAnalysisInput.ts
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.103
1
+ 0.7.105
@@ -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.103",
4
+ "version": "0.7.105",
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.103.
145
+ This Skill ships with Context 0.7.105.
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):
@@ -265,7 +265,7 @@ Within an active Context workflow, requests include, but are not limited to:
265
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. |
266
266
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
267
267
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
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. |
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"). |
269
269
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
270
270
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
271
271
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c4a",
3
- "version": "0.7.103",
3
+ "version": "0.7.105",
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.103",
13
+ "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.105",
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.103.
143
+ This Skill ships with Context 0.7.105.
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):
@@ -263,7 +263,7 @@ Within an active Context workflow, requests include, but are not limited to:
263
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. |
264
264
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
265
265
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
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. |
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"). |
267
267
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
268
268
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
269
269
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "displayName": "C4A Context",
4
- "version": "0.7.103",
4
+ "version": "0.7.105",
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.103.
140
+ This Skill ships with Context 0.7.105.
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):
@@ -260,7 +260,7 @@ Within an active Context workflow, requests include, but are not limited to:
260
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. |
261
261
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
262
262
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
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. |
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"). |
264
264
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
265
265
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
266
266
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -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.103.
143
+ This Skill ships with Context 0.7.105.
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):
@@ -263,7 +263,7 @@ Within an active Context workflow, requests include, but are not limited to:
263
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. |
264
264
  | Select or customize indexing | Choose compatible indexing Skills and adjust guidance or templates through the configuration flow. |
265
265
  | Deliver a batch early | Review and build complete newly authored pages before all writing finishes. |
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. |
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"). |
267
267
  | Prepare the workspace for a new task | Explicitly discard unfinished task state, retain approved work and restore registered source access. |
268
268
  | Commit workspace results | Save selected workspace files in local Git, without pushing or including unrelated changes. |
269
269
  | Restore a historical workspace version | Select a saved commit, restore only the agreed workspace scope and make its sources usable again. |
@@ -2,7 +2,7 @@
2
2
  "schema": "agent-graph.bundle.v1",
3
3
  "provider": {
4
4
  "id": "c4a/context",
5
- "version": "0.7.103"
5
+ "version": "0.7.105"
6
6
  },
7
7
  "providerManifest": "provider.yaml",
8
8
  "graphs": [
@@ -193,12 +193,12 @@
193
193
  {
194
194
  "id": "context.sdk.lark-resources",
195
195
  "path": "resources/manuals/guides/lark-resources.md",
196
- "digest": "sha256:495f7eebf73ffdf8fdfa8cd8619e3029f5c65b3ead1fff15be8e14d0fd4a2bd2"
196
+ "digest": "sha256:a030f3060e8605fc1bb386f607384c50b166cbfdb5e28f1240449282ebb2d546"
197
197
  },
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",
@@ -213,7 +213,7 @@
213
213
  {
214
214
  "id": "context.sdk.project-api",
215
215
  "path": "resources/manuals/reference/project-api.md",
216
- "digest": "sha256:e31e6bea442a31f753584a6a1461064b4416987e92ce00f041f3ae893817f40b"
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:5d18217e1447fbec427e4a70c03a950d233386782513f831e25d3407fef0a0bb"
306
+ "digest": "sha256:7a6665ea4fb15b43233b88dbc390c133e4dafdaee509a0946f950f7c2ea128a9"
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:bdc581235de99a467c87e3102e09af943ddb21d7d684813c010cf98263812f33"
601
+ "digest": "sha256:95d1794678fc51e0830b07d6a1cef3888766b6bc3e41bcfd9244a088d97108b2"
602
602
  },
603
603
  {
604
604
  "path": "resources/contracts/indexer-provider-guide.yaml",
@@ -662,7 +662,7 @@
662
662
  },
663
663
  {
664
664
  "path": "resources/manuals/guides/lark-resources.md",
665
- "digest": "sha256:495f7eebf73ffdf8fdfa8cd8619e3029f5c65b3ead1fff15be8e14d0fd4a2bd2"
665
+ "digest": "sha256:a030f3060e8605fc1bb386f607384c50b166cbfdb5e28f1240449282ebb2d546"
666
666
  },
667
667
  {
668
668
  "path": "resources/manuals/guides/markdown-indexer-skill-authoring.md",
@@ -674,7 +674,7 @@
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",
@@ -718,7 +718,7 @@
718
718
  },
719
719
  {
720
720
  "path": "resources/manuals/reference/project-api.md",
721
- "digest": "sha256:e31e6bea442a31f753584a6a1461064b4416987e92ce00f041f3ae893817f40b"
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:5d18217e1447fbec427e4a70c03a950d233386782513f831e25d3407fef0a0bb"
737
+ "digest": "sha256:7a6665ea4fb15b43233b88dbc390c133e4dafdaee509a0946f950f7c2ea128a9"
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:fcc9c8e6d419dbdcce667cb3e31d3f20b0ba218cdc4cf54ce8bafcba878c5863"
924
+ "digest": "sha256:0d0ca2b076dcb6791fca32c0df90bbe96e856380a7de42e32d84de16dddb6990"
925
925
  }
@@ -1,6 +1,6 @@
1
1
  schema: agent-graph.provider.v1
2
2
  id: c4a/context
3
- version: 0.7.103
3
+ version: 0.7.105
4
4
  name: Context workflow
5
5
  description: Internal work contract for Context knowledge workspaces.
6
6
  graphs:
@@ -247,13 +247,33 @@ To retain static images but exclude GIF files:
247
247
  captureLark({ source: handbook, resources: { gifs: "reference-only" } });
248
248
  ```
249
249
 
250
- Both fields also accept `bundle`; omitted fields retain normal capture behavior.
250
+ To keep file attachments or whiteboards (including diagrams that are not inline
251
+ Markdown) as references when the user explicitly asks not to download them:
252
+
253
+ ```ts
254
+ captureLark({ source: handbook, resources: { files: "reference-only", whiteboards: "reference-only" } });
255
+ ```
256
+
257
+ These fields also accept `bundle`; omitted fields retain normal capture behavior.
258
+ Sheets and Base tables are document content and have no such setting.
251
259
  Known GIF metadata avoids downloading; when a source only supplies an opaque
252
260
  media token, identification may require downloading the file. Such a GIF is then
253
261
  excluded from the snapshot assets and knowledge, rather than decoded or retained.
254
262
  Existing evidence is not deleted by changing a policy. Already approved image
255
263
  references must be revised through the normal Review flow to change their content.
256
264
 
265
+ Capture retries a resource by itself after a timeout, a gateway error (502, 503,
266
+ 504) or a dropped connection, up to three times, without stopping the other
267
+ resources. Throttling still pauses every request of the capture. When required
268
+ resources still fail, the snapshot is saved with the failure report; the retry
269
+ returned by the Route keeps the images and files already saved for the same
270
+ revision and identity, downloads only the missing ones and then completes the
271
+ snapshot. Whiteboards, Sheets, Base tables and synced blocks are read again.
272
+ Images the earlier capture skipped for exceeding the byte budget stay skipped
273
+ unless `maxBytesPerResource` or `maxTotalBytes` has been raised since.
274
+ Changing a policy to `reference-only` for a type that was captured before is
275
+ saved with placeholders and listed as a degraded resource; it is not refused.
276
+
257
277
  Inclusion does not mean lossless original-byte delivery. The package optimizer
258
278
  preserves animations without decoding every frame or silently flattening them.
259
279
  Codec failures and images that cannot fit delivery budgets become visible output
@@ -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
@@ -186,6 +186,14 @@ llmsPackage({
186
186
  Package selection reads approved `knowledge/` only. `dist/` is generated and
187
187
  may be rebuilt; it is not an authoring source.
188
188
 
189
+ `kbPackage.rules` decides which approved rule articles (`standards`, `test`) ship
190
+ under `rules/`: `exclude` ships matching articles under `guides/` instead,
191
+ `alwaysApply` marks matching rules `alwaysApply: true`, and `limits`
192
+ (`fileKb`, `totalKb`, default 16 and 64) set the size above which the build
193
+ reports a `rules` warning. Patterns are knowledge paths with `*`/`**` globs. The
194
+ build only warns, and older workspace SDKs ignore `rules`; see
195
+ [Package Outputs](../guides/package-outputs.md#package-rules).
196
+
189
197
  `kbPackage.site` optionally adds a VitePress website at `dist/<base>-site/` in
190
198
  the same build, beside the KB directory. `<base>` removes one trailing `-kb`
191
199
  from the package name, if present. Omit it for KB-only output. It accepts `title`, `description`,
@@ -168,6 +168,14 @@ Other resource types retain their existing policies. Do not edit snapshots or
168
168
  invent unsupported flags; when a capture adapter cannot exclude images, explain
169
169
  that limitation and resolve the acquisition method before downloading.
170
170
 
171
+ Capture retries timed-out or gateway-failed resources by itself. When a capture
172
+ still reports required resources that could not be materialized, run the retry
173
+ the Route returns: it keeps the images and files already saved for the same
174
+ revision and downloads only the missing ones. If resources still fail, tell the
175
+ user which kinds failed and ask whether to keep them as references; only after
176
+ an explicit choice set `resources.images`, `resources.files` or
177
+ `resources.whiteboards` to `reference-only` for that source and capture again.
178
+
171
179
  Preserve source links/placeholders and report skipped images as not acquired or
172
180
  interpreted. This is a workflow instruction using existing resource policies, not
173
181
  a new CLI hard gate or automatic document counter. For tasks that still include
@@ -25,6 +25,10 @@ an explicit gap. For a required repository, read the
25
25
  name, not every repository. Never claim missing material was checked.
26
26
 
27
27
  Plan article paths are relative to `knowledge/`, for example `business/example.md`.
28
+ The first folder is the collection. Use `standards/` and `test/` for short binding
29
+ rules and acceptance checks: packages ship them under `rules/`, which AI tools may
30
+ load into every session. Put reference material such as configuration
31
+ dictionaries, enum tables or a methodology in `product/` or `architecture/`.
28
32
  `indexer_usage.scopes` contains stage source refs, not collection names. Declare
29
33
  selected skills through the plan; no separate Indexer registration is required.
30
34