@c4a/context 0.7.4 → 0.7.5

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.
package/README.md CHANGED
@@ -54,8 +54,10 @@ export default defineProject({
54
54
  ```
55
55
 
56
56
  The Context lifecycle discovers or updates `src/indexers.yaml`, runs the
57
- selected Provider, presents readable Candidate pages for Review, writes only
58
- approved knowledge, and then builds declared packages.
57
+ selected Provider in bounded batches of independently recoverable semantic
58
+ tasks, presents readable Candidate pages for Review, writes only approved
59
+ knowledge, and then builds declared packages. Batch keys and runtime timing
60
+ never enter knowledge identity or package output.
59
61
 
60
62
  ## Public surface
61
63
 
@@ -83,8 +85,8 @@ Approved pages live under `knowledge/<collection>/`. Paths and filenames are
83
85
  reader-oriented, for example:
84
86
 
85
87
  ```text
86
- knowledge/codeindex/tux-web/avatar.md
87
- knowledge/architecture/tux-official-docs/react-lynx-input-fields.md
88
+ knowledge/codeindex/ui-kit/avatar.md
89
+ knowledge/architecture/product-guides/component-input-fields.md
88
90
  ```
89
91
 
90
92
  Workspace pages keep only metadata required to rebuild or update knowledge.
@@ -111,4 +113,3 @@ build. Source registries, `src/index.ts`, `src/indexers.yaml`, approved
111
113
  - [Indexer Provider Protocol](./docs/reference/indexer-provider-protocol.md)
112
114
  - [Package Outputs](./docs/guides/package-outputs.md)
113
115
  - [Package Templates](./docs/reference/package-templates.md)
114
-
package/README.zh-CN.md CHANGED
@@ -52,8 +52,9 @@ export default defineProject({
52
52
  });
53
53
  ```
54
54
 
55
- Context 生命周期负责发现或更新 `src/indexers.yaml`、运行选中的 Provider、展示可读
56
- Candidate 供审核、只写入批准后的知识,最后构建声明的知识包。
55
+ Context 生命周期负责发现或更新 `src/indexers.yaml`,以有界批次运行彼此独立、可恢复
56
+ 的语义任务,展示可读 Candidate 供审核,只写入批准后的知识,最后构建声明的知识包。
57
+ 批次标识和运行耗时不会进入知识身份或知识包产物。
57
58
 
58
59
  ## 主要 API
59
60
 
@@ -78,8 +79,8 @@ Indexer Provider 的实现依赖,工作区不再把它们包装成项目阶段
78
79
  批准后的知识位于 `knowledge/<collection>/`,目录和文件名面向人阅读,例如:
79
80
 
80
81
  ```text
81
- knowledge/codeindex/tux-web/avatar.md
82
- knowledge/architecture/tux-official-docs/react-lynx-input-fields.md
82
+ knowledge/codeindex/ui-kit/avatar.md
83
+ knowledge/architecture/product-guides/component-input-fields.md
83
84
  ```
84
85
 
85
86
  工作区页面只保留后续重建或更新所需的元数据。`dist/` 中的知识包页面使用更小的
@@ -104,4 +105,3 @@ knowledge/architecture/tux-official-docs/react-lynx-input-fields.md
104
105
  - [Indexer Provider 协议](./docs/reference/indexer-provider-protocol.md)
105
106
  - [知识包输出](./docs/guides/package-outputs.md)
106
107
  - [知识包模板](./docs/reference/package-templates.md)
107
-
@@ -40,11 +40,20 @@ Skill identities and semantic Indexer entries, and let the CLI perform routing,
40
40
  resolution, staging, validation, and atomic registry apply. External resolver
41
41
  results and non-allowlisted program decisions resume through subsequent
42
42
  `complete-current` Routes; do not invoke the low-level Provider commands.
43
- For Partition, Author, and Composer steps, read the Route-selected instructions
44
- and Authorized Workset View, return only the compact semantic value requested
45
- by the current schema, and submit it with the Route's single
46
- `context action complete-current` command. Do not create a helper script or
47
- construct internal Result, digest, receipt, Fact, or evidence-binding objects.
43
+ For Partition and Author steps, one Route may contain several independent
44
+ `tasks`. Read the shared instructions once, read each task's Authorized Workset
45
+ View, and return one `results[]` item for every task key in that batch. Submit
46
+ the whole batch with the Route's single `context action complete-current`
47
+ command; a successful completion already carries the next prepared batch or
48
+ the next lifecycle boundary. Do not materialize instructions or Views with
49
+ separate commands, create a helper script, or construct internal Result,
50
+ digest, receipt, Fact, or evidence-binding objects.
51
+
52
+ The batch is only a transport boundary. Keep every task's semantic answer,
53
+ failure and retry independent, and do not combine unrelated Subjects merely
54
+ because they arrived together. Partition Views intentionally emphasize public
55
+ anchors and compact file context; Author Views add the source-backed supporting
56
+ facts needed for reader content.
48
57
 
49
58
  Parser packages are Provider internals. Do not expose parser choice as an
50
59
  extra user workflow unless it changes coverage or requires executable code the
@@ -68,6 +77,7 @@ outline after all Partition shards converge; the second checks the final
68
77
  reader-facing Candidate set. Ordinary mode presents both to the user. Fully
69
78
  managed mode lets the Agent resolve both with current-conversation authority.
70
79
  A destructive or ambiguous layout change is separate and always human-only.
80
+ Intermediate execution batches never create additional user approvals.
71
81
 
72
82
  ## Quality bar
73
83
 
@@ -105,6 +105,20 @@ rules, metric operators and thresholds.
105
105
  instructions append → one template override → program extension →
106
106
  restricted replace. Document the proof and exit condition at every step;
107
107
  see [Provider selection and customization](./indexer-provider-and-customization.md).
108
+ 24. **Batch neutrality.** Write instructions for one semantic task and accept
109
+ that Context may transport several independent tasks in one Agent step.
110
+ Never derive identity, ordering, ownership or evidence scope from a task
111
+ key or batch position. Partition should decide consumer-facing ownership
112
+ from public anchors and unresolved material; detailed supporting Facts are
113
+ consumed in the bounded Author View rather than copied into every
114
+ Partition decision.
115
+
116
+ For behavioral explanations, the Author View also supplies `source-text`
117
+ items with the authorized source lines. Each merged range links to existing
118
+ source-span dependency nodes through `source_span_refs`; use those nodes for
119
+ evidence bindings. These process-local snippets are reading material, not new
120
+ Facts or reader-page metadata. Do not reopen the repository or infer behavior
121
+ from a locator alone when the supplied lines do not establish it.
108
122
 
109
123
  ## Result and composition rules
110
124
 
@@ -12,27 +12,38 @@ authority. A Provider-only project does not create `src/indexer/`.
12
12
 
13
13
  ## Selection flow
14
14
 
15
+ Follow `workflow.current` from `context status --format json` or `context run`.
16
+ When the registry is missing, the Route names `src/indexers.yaml` in
17
+ `configuration`: declare the confirmed requirements with `indexers: []`, then
18
+ re-evaluate. The next Route supplies the Provider selection input and completion
19
+ command. An unconfigured project does not begin Partition or require a fabricated
20
+ primary owner. `run --managed --until blocked-or-complete` stops at the same
21
+ configuration or semantic input boundary; it does not make those decisions.
22
+
15
23
  1. Inspect and confirm the complete `IndexRequirementSet`. A Provider,
16
24
  registry entry or Result may strengthen it but cannot remove targets,
17
25
  questions, evidence obligations or required owner cells.
18
- 2. Run `context indexer catalog --format json` and report those CLI-bundled
19
- entry Skills together with Indexer Skills already visible to the Host.
20
- When the Host exposes an exact Skill root, read only its `SKILL.md`
21
- frontmatter and sibling `context-indexer.yaml`; the manifest version is
22
- authoritative and `metadata.context-provider-version` must match it. Group
23
- the same Skill name and exact version into one conversational item with all
24
- observed source types. An installed projection of an identical CLI-bundled
25
- identity is not a second Provider; different versions remain distinct. Do
26
- not scan `.claude`, `.codex`, `.agents` or arbitrary user directories.
27
- 3. Route the path-free visible identities with
28
- `context indexer route-indexer-provider-selection`. Try the applicable
29
- community fallback once when the Route requests it.
30
- 4. Statically validate the returned selection proposal before a Host resolves
31
- any Bundle. Resolve only the emitted exact requests, then stage and validate
32
- the complete content ledger.
33
- 5. Apply the registry and any declared customization through the staged,
34
- CAS-bound project proposal. A successful static report is not write or
35
- execution authority.
26
+ 2. Select applicable Providers from the Host-visible Skills and the CLI-bundled
27
+ catalog already in the current Action input. No separate catalog command,
28
+ installed-Skill inventory, discovery report, or discovery-only confirmation
29
+ is required. Use the supplied exact identity and cli-bundled distribution
30
+ for shipped Providers, even when their Skills are also visible to the Host.
31
+ For a relevant external Skill, read only its exact Host-exposed frontmatter
32
+ and sibling `context-indexer.yaml` needed for selection. Do not guess versions
33
+ or scan `.claude`, `.codex`, `.agents` or arbitrary user directories. Different
34
+ versions remain distinct; discovery order is not selection precedence.
35
+ 3. Submit the semantic `indexers` and any relevant non-CLI `host_visible_skills`
36
+ through the current Route's `context action complete-current` command. The
37
+ latter may be empty; it is not an inventory or an additional discovery step.
38
+ 4. The CLI performs routing, validation, resolution and staging internally.
39
+ Shipped Providers load directly from this CLI release; only external
40
+ Providers may require the returned Host resolution Action. Follow the
41
+ current Route if a distribution is missing, a version conflicts, or program
42
+ execution needs authorization. Do not call the low-level commands below as
43
+ a second production workflow.
44
+ 5. The CLI atomically applies the validated registry and any declared
45
+ customization. A successful static report alone is not write or execution
46
+ authority. Resume from the returned current Route.
36
47
 
37
48
  Every required requirement/domain/source/module cell has exactly one primary
38
49
  owner. Read scope may overlap for supporting profiles, extensions and
@@ -97,8 +108,9 @@ These outcomes all point back to this guide:
97
108
 
98
109
  ## Debugging commands
99
110
 
100
- Use `--help` for the current payload schema and copy Route-returned commands
101
- when available:
111
+ These are diagnostic/manual primitives, not a checklist for normal selection.
112
+ Use them only for an explicit diagnostic or a returned recovery. Use `--help`
113
+ for the current payload schema and prefer Route-returned commands:
102
114
 
103
115
  ```bash
104
116
  context indexer catalog --format json
@@ -96,6 +96,15 @@ content Review. There is no answer-only operation or evidence-specific Review.
96
96
  A blocking gap closes only through current source or an explicit non-delegable
97
97
  requirement change.
98
98
 
99
+ ## Bounded execution
100
+
101
+ Each captured document remains an independently recoverable Partition input,
102
+ but Context may transport several documents in one bounded Agent step. Return
103
+ one result for every supplied task key and let global convergence merge
104
+ documents that establish the same Subject. Batch order, filename order and
105
+ heading order never create Subject identity. Author and Review use the same
106
+ bounded transport rule without adding intermediate user approvals.
107
+
99
108
  ## Markdown author fixture checklist
100
109
 
101
110
  Release fixtures should cover: