@c4a/context 0.6.0-beta.6 → 0.6.0-beta.7

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.
@@ -152,6 +152,14 @@ current step:
152
152
  - `command_plan[].availability` says whether each command runs immediately or
153
153
  only after user confirmation.
154
154
 
155
+ Status also returns `declarationGraph` and `configurationGaps`. These expose
156
+ capture, align, compile, and Review coverage for each canonical document source
157
+ and declared align collection. Missing declarations are early warnings while
158
+ structure is still being planned; after confirmation, every collection planned
159
+ by the structure must have an exact compile route for the same source. Do not
160
+ run a compile command from another collection as a fallback. A
161
+ `reviewValidity({ scope: "all" })` declaration covers every collection.
162
+
155
163
  Do not infer permission from the presence of a command. Do not infer a command
156
164
  from prose when `commands_available=false`; complete the returned configuration
157
165
  action and rerun status instead.
@@ -200,6 +200,20 @@ extraction phases, review gates, close/build, and packages explicitly. The CLI
200
200
  then routes work through `context status`, `context run <phase-id>`, `context
201
201
  review html/apply`, `context close`, `context verify`, and `context build`.
202
202
 
203
+ ### Status declaration coverage
204
+
205
+ `context status --format json` includes a `declarationGraph` and
206
+ `configurationGaps` for document workflows. Each row reports capture, align,
207
+ compile, and Review coverage for a canonical source plus collection. Gaps are
208
+ non-blocking before structure confirmation. Once a structure is confirmed,
209
+ compile routing is exact: phase selection uses canonical source plus collection,
210
+ and candidate progress remains bound to the current `structure_digest`. A
211
+ compile phase from another collection is never used as fallback.
212
+
213
+ Use `context status --format json --view summary` when only the current state,
214
+ target, counts, diagnostics, and recommended command are needed. The full view
215
+ retains source, phase, package, and lifecycle inventories.
216
+
203
217
  ### `captureFile`
204
218
 
205
219
  Capture a registered file source into a committed normalized document snapshot.
@@ -304,6 +318,30 @@ context run align:file:<source-name>:architecture --view structure-summary --inp
304
318
  context run align:file:<source-name>:architecture --stage --input <structure.yaml> --format json
305
319
  ```
306
320
 
321
+ `--validate`, `--stage`, `--confirm`, and `--repair` are mutually exclusive
322
+ operations. An `--input` without an operation is rejected unless the selected
323
+ view explicitly consumes that input. Successful validation returns a stage
324
+ command with the same file path. JSON run output keeps `next_action` first and
325
+ omits repeated contracts outside `read-plan`/`schema`; add `--verbose` for the
326
+ full phase reads/writes, source metadata, and contracts.
327
+
328
+ Align and compile evidence results include `semantic_rules`. Its `required`
329
+ array is the rule subset selected for the current judgment, with a selection
330
+ reason and content digest for each rule. `handle`, `digest`, and
331
+ `rules_version` are stable cache checks: reuse a loaded ruleset only while its
332
+ content remains in the active context and both handle and digest still match.
333
+ After context compaction, reload the returned required subset; a handle alone
334
+ does not imply that the rule text is still available.
335
+
336
+ Document evidence boundaries are deterministic rather than semantic.
337
+ `source-index` and `chunks` mark Markdown AST blocks with
338
+ `boundary_role: "markdown-ast-block"` and `section_candidate: true`.
339
+ `span-text`/`span-detail` mark each returned page as
340
+ `range_role: "transport-page"` and `section_candidate: false`; pagination line
341
+ ranges are never structure boundaries. Structure validation blocks repeated
342
+ fixed-width line grids that cut through AST blocks and reports sections that
343
+ cross multiple heading paths, without classifying document topics.
344
+
307
345
  Evidence views include `read-plan`, `source-index`, `span-detail`,
308
346
  `span-text`, `schema`, and `structure-summary`. Additional diagnostic views may
309
347
  be present, but the default path is compact index first, then exact source spans.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/context",
3
- "version": "0.6.0-beta.6",
3
+ "version": "0.6.0-beta.7",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "yaml": "^2.5.1",