@c4a/context-cli 0.7.29 → 0.7.30

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.29",
4
+ "version": "0.7.30",
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.29",
3
+ "version": "0.7.30",
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.29",
28
- "@c4a/extract": "0.7.29",
29
- "@c4a/extract-contract": "0.7.29",
30
- "@c4a/extract-go": "0.7.29",
31
- "@c4a/extract-mdx": "0.7.29",
32
- "@c4a/extract-proto": "0.7.29",
33
- "@c4a/extract-rush": "0.7.29",
34
- "@c4a/extract-sql": "0.7.29",
35
- "@c4a/extract-style": "0.7.29",
36
- "@c4a/extract-thrift": "0.7.29",
37
- "@c4a/extract-ts": "0.7.29",
27
+ "@c4a/context": "0.7.30",
28
+ "@c4a/extract": "0.7.30",
29
+ "@c4a/extract-contract": "0.7.30",
30
+ "@c4a/extract-go": "0.7.30",
31
+ "@c4a/extract-mdx": "0.7.30",
32
+ "@c4a/extract-proto": "0.7.30",
33
+ "@c4a/extract-rush": "0.7.30",
34
+ "@c4a/extract-sql": "0.7.30",
35
+ "@c4a/extract-style": "0.7.30",
36
+ "@c4a/extract-thrift": "0.7.30",
37
+ "@c4a/extract-ts": "0.7.30",
38
38
  "@mermaid-js/layout-elk": "0.2.0",
39
39
  "commander": "^11.0.0",
40
40
  "fast-xml-parser": "^5.10.1",
package/plugins/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.29
1
+ 0.7.30
@@ -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.29",
4
+ "version": "0.7.30",
5
5
  "author": {
6
6
  "name": "c4a"
7
7
  },
@@ -29,9 +29,9 @@ registrations, snapshots, tasks, approvals or user checkouts.
29
29
  Resolve `CONTEXT_QUERY_SOURCE_MODE` from the host or Bot instance configuration
30
30
  before choosing the first retrieval path. Supported values are:
31
31
 
32
- - `repo-first` (default): inspect the configured knowledge workspace and
33
- authorized repository sources first. Use an available package only when the
34
- repository path is unavailable or leaves a material gap.
32
+ - `repo-first` (default): search approved `knowledge/` in the configured knowledge
33
+ workspace first; trace authorized original sources only for material gaps.
34
+ Use an available package when approved knowledge is unavailable.
35
35
  - `package-first`: inspect the selected package first, then use its recorded
36
36
  workspace or repository sources for missing, stale or disputed evidence.
37
37
  - `dual`: inspect the package and repository paths concurrently, then reconcile
@@ -45,8 +45,10 @@ sources and identify only gaps that affect the answer.
45
45
  ## Search available material according to the configured mode
46
46
 
47
47
  Apply `CONTEXT_QUERY_SOURCE_MODE` before starting retrieval. In `repo-first`,
48
- start with the configured workspace and reusable source checkouts; do not fetch
49
- or install a package merely to begin the query. In `package-first`, start with
48
+ start with approved knowledge, not original-code checkout preparation. With
49
+ readable `knowledge/`, do not probe `dist/`, build inventories or installed
50
+ packages: distribution output is not a query prerequisite. An explicit request
51
+ to investigate delivered content is an exception. In `package-first`, start with
50
52
  the selected readable package. In `dual`, start both paths concurrently. Search
51
53
  each selected path as soon as it is readable; tool checks and authorized
52
54
  upgrades must not block independent reading. If a configured primary path is
@@ -66,9 +68,11 @@ missing, use the host's configured, authorized package retrieval mechanism while
66
68
  other reading continues. Only check or prepare tools needed for the next actual
67
69
  operation; installation failure does not block independent local retrieval.
68
70
 
69
- For gaps or latest-content questions, also search approved knowledge when a workspace is available:
70
- use `knowledge/structure.yaml` and relevant `knowledge/` paths, trying business
71
- terms, symbols and synonyms, then read matching sections in context. Delivered
71
+ Search relevant `knowledge/` paths using business terms, symbols and synonyms,
72
+ then read matching sections in context; use `knowledge/structure.yaml` when
73
+ navigation or associations are needed, not as an exhaustive preflight. In
74
+ package-first or dual mode, approved knowledge can resolve gaps or freshness
75
+ questions in delivered material. Delivered
72
76
  content may lag approved knowledge; they are not independent corroboration.
73
77
  Candidates and temporary reports are not approved pages. A search miss does not
74
78
  prove a capability is absent. Do not build merely to answer a query; a separately
@@ -78,8 +82,11 @@ When package or approved knowledge leaves a gap, directly trace relevant sources
78
82
  without asking whether to deepen the query. Use available document, code-search
79
83
  or extraction tools within the authorized scope, recording source identity and
80
84
  version. Prepare sources while continuing other reading.
81
- One failed source blocks only dependent claims. Answer when evidence is
82
- sufficient, without completing unnecessary preparation.
85
+ One failed source blocks only dependent claims. If the read knowledge supports
86
+ the requested conclusion, its conditions and scope, answer without restoring
87
+ code or checking every associated source. Missing mechanisms, conflicting facts
88
+ or unsupported current-behavior claims still require targeted investigation;
89
+ an article title, search snippet or unread citation is not sufficient evidence.
83
90
 
84
91
  ## Trace and retrieve only relevant sources
85
92
 
@@ -90,18 +97,23 @@ registry is not a mandatory intermediate step. If the source identity or version
90
97
  cannot be established, retain package-grounded findings and qualify attribution;
91
98
  do not invent a repository or equate current source with the package's baseline.
92
99
 
93
- When a workspace and `context-build-inventory.json` are available, map a delivered page's
100
+ Only when tracing a delivered page and a build inventory is already available, map its
94
101
  `dist_path` through `approved_knowledge.files` to its `approved_path`, relative
95
- to the workspace's `knowledge/` root. Follow the approved page's associations in
96
- `knowledge/structure.yaml` and `sources/*/index.yaml`. Without a reliable mapping,
102
+ to the workspace's `knowledge/` root. For directly read approved pages, skip this
103
+ mapping entirely. Follow relevant associations in `knowledge/structure.yaml`
104
+ and `sources/*/index.yaml` only when source tracing is needed. Without a reliable mapping,
97
105
  continue package retrieval and follow explicit source references where available.
98
106
  Do not guess originals from similar filenames or claim attribution without
99
107
  checking the referenced material.
100
108
 
101
109
  Use the repository and recorded commit identified by the package or workspace
102
110
  as the source baseline.
103
- Reuse existing checkouts only after checking remote, commit, module coverage
104
- and local changes; do not reset them or change their sparse configuration.
111
+ Before reusing a checkout for source reads, group checks of remote, commit,
112
+ module coverage and local changes. Reuse those findings within this response
113
+ instead of checking again before each search or file read. Recheck affected
114
+ facts if the checkout/ref changes, sparse scope expands or there is evidence of
115
+ concurrent edits; do not treat a previous response's checks as current. Do not
116
+ reset user checkouts or change their sparse configuration.
105
117
  Missing code goes into a reusable query-owned path such as
106
118
  `.tmp/context-inspect/<host>/<repository-path>/<commit>/`, separate from user
107
119
  checkouts and production-managed sources. Use safe, credential-free path
@@ -130,10 +142,24 @@ capture/recovery actions. Production recovery gates do not block this independen
130
142
  inspection. Preserve unavailable-evidence gaps rather than changing production
131
143
  state to get past them.
132
144
 
133
- Compare relevant baseline files with current code when accessible, including
134
- relevant local changes. Use actual diffs to assess impact; current code is not a
135
- substitute for the baseline. Mention a missing comparison only when it limits
136
- the answer. For documents, notes and sessions, read saved bodies and necessary
145
+ Batch independent searches and related file reads once paths are known, such as
146
+ the entrypoint, state update and controlling render logic for one mechanism.
147
+ Read enough surrounding context and follow unresolved imports or calls; batching
148
+ must not truncate decisive evidence or turn a partial read into a complete audit.
149
+ Reuse already read evidence rather than rereading it to prepare each tool call.
150
+
151
+ Let evidence sufficiency determine whether a version comparison is needed.
152
+ When the available knowledge or identified baseline code resolves the question,
153
+ answer without fetching the default branch, recovering a second checkout or
154
+ reading history merely to confirm freshness. Compare narrowly when uncertainty,
155
+ conflicting evidence, suspected changes or an explicit version-comparison request
156
+ makes it useful. A question about current behavior requires judging whether the
157
+ available evidence supports that claim, not automatically comparing every branch.
158
+ Retain necessary source reads; do not equate a recorded baseline or branch HEAD
159
+ with a verified live deployment. When comparing, use actual relevant diffs,
160
+ including relevant local changes; current code is not a substitute for the baseline.
161
+ Mention a missing comparison only when it limits the answer.
162
+ For documents, notes and sessions, read saved bodies and necessary
137
163
  attachments; fetch missing accessible material within scope. A summary is not a
138
164
  full transcript, an unread link is not evidence, and current remote content does
139
165
  not prove a historical snapshot.
@@ -166,13 +192,25 @@ limitation. Do not dump internal reasoning, runtime identifiers or routine
166
192
  version comparisons. Explain only differences affecting the answer; hashes may
167
193
  appear in source URLs without requiring a separate version audit in the prose.
168
194
 
169
- For website links, use `context-site-map.json` from the selected package or
170
- sibling website output. Match `pages[].package_path` or `approved_path`, and
195
+ Collect citation targets after the relevant evidence is established and resolve
196
+ them in one batch using the host's existing link resolver when available. Reuse
197
+ known workspace, repository and site parameters; do not rediscover them per link.
198
+ If later evidence adds targets, resolve only those missing from the results.
199
+ Without a host resolver, use an already available `context-site-map.json` from
200
+ the selected package or website output. Do not search for `dist/` merely to
201
+ obtain links for readable approved knowledge. Match `pages[].package_path` or `approved_path`, and
171
202
  resolve `site_path` against `site_url` without prepending `base` again. Cite only
172
203
  matched pages, deduplicate links and do not invent anchors. If mapping is absent
173
204
  or invalid, retain local citations. Do not build, publish or probe remote sites
174
205
  just to format citations; a local map is not proof of the current online content.
175
206
 
207
+ Once the requested questions are supported or genuinely unavailable evidence is
208
+ clearly bounded, synthesize the final answer directly. Do not add another planning,
209
+ freshness-audit or summary round just to prepare it. Preserve necessary mechanisms,
210
+ exceptions, citations and verification limits; fewer preparation steps must not
211
+ mean weaker evidence or omitted questions. Host delivery and receipt requirements
212
+ still apply, without repeating the completed investigation.
213
+
176
214
  Suggest a knowledge update only with supporting evidence: identify the affected
177
215
  page or gap, proposed change and bounded source scope. Check neighboring content
178
216
  before proposing a new page. Only after user acceptance, hand the evidence and
@@ -28,9 +28,9 @@ registrations, snapshots, tasks, approvals or user checkouts.
28
28
  Resolve `CONTEXT_QUERY_SOURCE_MODE` from the host or Bot instance configuration
29
29
  before choosing the first retrieval path. Supported values are:
30
30
 
31
- - `repo-first` (default): inspect the configured knowledge workspace and
32
- authorized repository sources first. Use an available package only when the
33
- repository path is unavailable or leaves a material gap.
31
+ - `repo-first` (default): search approved `knowledge/` in the configured knowledge
32
+ workspace first; trace authorized original sources only for material gaps.
33
+ Use an available package when approved knowledge is unavailable.
34
34
  - `package-first`: inspect the selected package first, then use its recorded
35
35
  workspace or repository sources for missing, stale or disputed evidence.
36
36
  - `dual`: inspect the package and repository paths concurrently, then reconcile
@@ -44,8 +44,10 @@ sources and identify only gaps that affect the answer.
44
44
  ## Search available material according to the configured mode
45
45
 
46
46
  Apply `CONTEXT_QUERY_SOURCE_MODE` before starting retrieval. In `repo-first`,
47
- start with the configured workspace and reusable source checkouts; do not fetch
48
- or install a package merely to begin the query. In `package-first`, start with
47
+ start with approved knowledge, not original-code checkout preparation. With
48
+ readable `knowledge/`, do not probe `dist/`, build inventories or installed
49
+ packages: distribution output is not a query prerequisite. An explicit request
50
+ to investigate delivered content is an exception. In `package-first`, start with
49
51
  the selected readable package. In `dual`, start both paths concurrently. Search
50
52
  each selected path as soon as it is readable; tool checks and authorized
51
53
  upgrades must not block independent reading. If a configured primary path is
@@ -65,9 +67,11 @@ missing, use the host's configured, authorized package retrieval mechanism while
65
67
  other reading continues. Only check or prepare tools needed for the next actual
66
68
  operation; installation failure does not block independent local retrieval.
67
69
 
68
- For gaps or latest-content questions, also search approved knowledge when a workspace is available:
69
- use `knowledge/structure.yaml` and relevant `knowledge/` paths, trying business
70
- terms, symbols and synonyms, then read matching sections in context. Delivered
70
+ Search relevant `knowledge/` paths using business terms, symbols and synonyms,
71
+ then read matching sections in context; use `knowledge/structure.yaml` when
72
+ navigation or associations are needed, not as an exhaustive preflight. In
73
+ package-first or dual mode, approved knowledge can resolve gaps or freshness
74
+ questions in delivered material. Delivered
71
75
  content may lag approved knowledge; they are not independent corroboration.
72
76
  Candidates and temporary reports are not approved pages. A search miss does not
73
77
  prove a capability is absent. Do not build merely to answer a query; a separately
@@ -77,8 +81,11 @@ When package or approved knowledge leaves a gap, directly trace relevant sources
77
81
  without asking whether to deepen the query. Use available document, code-search
78
82
  or extraction tools within the authorized scope, recording source identity and
79
83
  version. Prepare sources while continuing other reading.
80
- One failed source blocks only dependent claims. Answer when evidence is
81
- sufficient, without completing unnecessary preparation.
84
+ One failed source blocks only dependent claims. If the read knowledge supports
85
+ the requested conclusion, its conditions and scope, answer without restoring
86
+ code or checking every associated source. Missing mechanisms, conflicting facts
87
+ or unsupported current-behavior claims still require targeted investigation;
88
+ an article title, search snippet or unread citation is not sufficient evidence.
82
89
 
83
90
  ## Trace and retrieve only relevant sources
84
91
 
@@ -89,18 +96,23 @@ registry is not a mandatory intermediate step. If the source identity or version
89
96
  cannot be established, retain package-grounded findings and qualify attribution;
90
97
  do not invent a repository or equate current source with the package's baseline.
91
98
 
92
- When a workspace and `context-build-inventory.json` are available, map a delivered page's
99
+ Only when tracing a delivered page and a build inventory is already available, map its
93
100
  `dist_path` through `approved_knowledge.files` to its `approved_path`, relative
94
- to the workspace's `knowledge/` root. Follow the approved page's associations in
95
- `knowledge/structure.yaml` and `sources/*/index.yaml`. Without a reliable mapping,
101
+ to the workspace's `knowledge/` root. For directly read approved pages, skip this
102
+ mapping entirely. Follow relevant associations in `knowledge/structure.yaml`
103
+ and `sources/*/index.yaml` only when source tracing is needed. Without a reliable mapping,
96
104
  continue package retrieval and follow explicit source references where available.
97
105
  Do not guess originals from similar filenames or claim attribution without
98
106
  checking the referenced material.
99
107
 
100
108
  Use the repository and recorded commit identified by the package or workspace
101
109
  as the source baseline.
102
- Reuse existing checkouts only after checking remote, commit, module coverage
103
- and local changes; do not reset them or change their sparse configuration.
110
+ Before reusing a checkout for source reads, group checks of remote, commit,
111
+ module coverage and local changes. Reuse those findings within this response
112
+ instead of checking again before each search or file read. Recheck affected
113
+ facts if the checkout/ref changes, sparse scope expands or there is evidence of
114
+ concurrent edits; do not treat a previous response's checks as current. Do not
115
+ reset user checkouts or change their sparse configuration.
104
116
  Missing code goes into a reusable query-owned path such as
105
117
  `.tmp/context-inspect/<host>/<repository-path>/<commit>/`, separate from user
106
118
  checkouts and production-managed sources. Use safe, credential-free path
@@ -129,10 +141,24 @@ capture/recovery actions. Production recovery gates do not block this independen
129
141
  inspection. Preserve unavailable-evidence gaps rather than changing production
130
142
  state to get past them.
131
143
 
132
- Compare relevant baseline files with current code when accessible, including
133
- relevant local changes. Use actual diffs to assess impact; current code is not a
134
- substitute for the baseline. Mention a missing comparison only when it limits
135
- the answer. For documents, notes and sessions, read saved bodies and necessary
144
+ Batch independent searches and related file reads once paths are known, such as
145
+ the entrypoint, state update and controlling render logic for one mechanism.
146
+ Read enough surrounding context and follow unresolved imports or calls; batching
147
+ must not truncate decisive evidence or turn a partial read into a complete audit.
148
+ Reuse already read evidence rather than rereading it to prepare each tool call.
149
+
150
+ Let evidence sufficiency determine whether a version comparison is needed.
151
+ When the available knowledge or identified baseline code resolves the question,
152
+ answer without fetching the default branch, recovering a second checkout or
153
+ reading history merely to confirm freshness. Compare narrowly when uncertainty,
154
+ conflicting evidence, suspected changes or an explicit version-comparison request
155
+ makes it useful. A question about current behavior requires judging whether the
156
+ available evidence supports that claim, not automatically comparing every branch.
157
+ Retain necessary source reads; do not equate a recorded baseline or branch HEAD
158
+ with a verified live deployment. When comparing, use actual relevant diffs,
159
+ including relevant local changes; current code is not a substitute for the baseline.
160
+ Mention a missing comparison only when it limits the answer.
161
+ For documents, notes and sessions, read saved bodies and necessary
136
162
  attachments; fetch missing accessible material within scope. A summary is not a
137
163
  full transcript, an unread link is not evidence, and current remote content does
138
164
  not prove a historical snapshot.
@@ -165,13 +191,25 @@ limitation. Do not dump internal reasoning, runtime identifiers or routine
165
191
  version comparisons. Explain only differences affecting the answer; hashes may
166
192
  appear in source URLs without requiring a separate version audit in the prose.
167
193
 
168
- For website links, use `context-site-map.json` from the selected package or
169
- sibling website output. Match `pages[].package_path` or `approved_path`, and
194
+ Collect citation targets after the relevant evidence is established and resolve
195
+ them in one batch using the host's existing link resolver when available. Reuse
196
+ known workspace, repository and site parameters; do not rediscover them per link.
197
+ If later evidence adds targets, resolve only those missing from the results.
198
+ Without a host resolver, use an already available `context-site-map.json` from
199
+ the selected package or website output. Do not search for `dist/` merely to
200
+ obtain links for readable approved knowledge. Match `pages[].package_path` or `approved_path`, and
170
201
  resolve `site_path` against `site_url` without prepending `base` again. Cite only
171
202
  matched pages, deduplicate links and do not invent anchors. If mapping is absent
172
203
  or invalid, retain local citations. Do not build, publish or probe remote sites
173
204
  just to format citations; a local map is not proof of the current online content.
174
205
 
206
+ Once the requested questions are supported or genuinely unavailable evidence is
207
+ clearly bounded, synthesize the final answer directly. Do not add another planning,
208
+ freshness-audit or summary round just to prepare it. Preserve necessary mechanisms,
209
+ exceptions, citations and verification limits; fewer preparation steps must not
210
+ mean weaker evidence or omitted questions. Host delivery and receipt requirements
211
+ still apply, without repeating the completed investigation.
212
+
175
213
  Suggest a knowledge update only with supporting evidence: identify the affected
176
214
  page or gap, proposed change and bounded source scope. Check neighboring content
177
215
  before proposing a new page. Only after user acceptance, hand the evidence and
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c4a",
3
- "version": "0.7.29",
3
+ "version": "0.7.30",
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.29",
13
+ "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.30",
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",
@@ -28,9 +28,9 @@ registrations, snapshots, tasks, approvals or user checkouts.
28
28
  Resolve `CONTEXT_QUERY_SOURCE_MODE` from the host or Bot instance configuration
29
29
  before choosing the first retrieval path. Supported values are:
30
30
 
31
- - `repo-first` (default): inspect the configured knowledge workspace and
32
- authorized repository sources first. Use an available package only when the
33
- repository path is unavailable or leaves a material gap.
31
+ - `repo-first` (default): search approved `knowledge/` in the configured knowledge
32
+ workspace first; trace authorized original sources only for material gaps.
33
+ Use an available package when approved knowledge is unavailable.
34
34
  - `package-first`: inspect the selected package first, then use its recorded
35
35
  workspace or repository sources for missing, stale or disputed evidence.
36
36
  - `dual`: inspect the package and repository paths concurrently, then reconcile
@@ -44,8 +44,10 @@ sources and identify only gaps that affect the answer.
44
44
  ## Search available material according to the configured mode
45
45
 
46
46
  Apply `CONTEXT_QUERY_SOURCE_MODE` before starting retrieval. In `repo-first`,
47
- start with the configured workspace and reusable source checkouts; do not fetch
48
- or install a package merely to begin the query. In `package-first`, start with
47
+ start with approved knowledge, not original-code checkout preparation. With
48
+ readable `knowledge/`, do not probe `dist/`, build inventories or installed
49
+ packages: distribution output is not a query prerequisite. An explicit request
50
+ to investigate delivered content is an exception. In `package-first`, start with
49
51
  the selected readable package. In `dual`, start both paths concurrently. Search
50
52
  each selected path as soon as it is readable; tool checks and authorized
51
53
  upgrades must not block independent reading. If a configured primary path is
@@ -65,9 +67,11 @@ missing, use the host's configured, authorized package retrieval mechanism while
65
67
  other reading continues. Only check or prepare tools needed for the next actual
66
68
  operation; installation failure does not block independent local retrieval.
67
69
 
68
- For gaps or latest-content questions, also search approved knowledge when a workspace is available:
69
- use `knowledge/structure.yaml` and relevant `knowledge/` paths, trying business
70
- terms, symbols and synonyms, then read matching sections in context. Delivered
70
+ Search relevant `knowledge/` paths using business terms, symbols and synonyms,
71
+ then read matching sections in context; use `knowledge/structure.yaml` when
72
+ navigation or associations are needed, not as an exhaustive preflight. In
73
+ package-first or dual mode, approved knowledge can resolve gaps or freshness
74
+ questions in delivered material. Delivered
71
75
  content may lag approved knowledge; they are not independent corroboration.
72
76
  Candidates and temporary reports are not approved pages. A search miss does not
73
77
  prove a capability is absent. Do not build merely to answer a query; a separately
@@ -77,8 +81,11 @@ When package or approved knowledge leaves a gap, directly trace relevant sources
77
81
  without asking whether to deepen the query. Use available document, code-search
78
82
  or extraction tools within the authorized scope, recording source identity and
79
83
  version. Prepare sources while continuing other reading.
80
- One failed source blocks only dependent claims. Answer when evidence is
81
- sufficient, without completing unnecessary preparation.
84
+ One failed source blocks only dependent claims. If the read knowledge supports
85
+ the requested conclusion, its conditions and scope, answer without restoring
86
+ code or checking every associated source. Missing mechanisms, conflicting facts
87
+ or unsupported current-behavior claims still require targeted investigation;
88
+ an article title, search snippet or unread citation is not sufficient evidence.
82
89
 
83
90
  ## Trace and retrieve only relevant sources
84
91
 
@@ -89,18 +96,23 @@ registry is not a mandatory intermediate step. If the source identity or version
89
96
  cannot be established, retain package-grounded findings and qualify attribution;
90
97
  do not invent a repository or equate current source with the package's baseline.
91
98
 
92
- When a workspace and `context-build-inventory.json` are available, map a delivered page's
99
+ Only when tracing a delivered page and a build inventory is already available, map its
93
100
  `dist_path` through `approved_knowledge.files` to its `approved_path`, relative
94
- to the workspace's `knowledge/` root. Follow the approved page's associations in
95
- `knowledge/structure.yaml` and `sources/*/index.yaml`. Without a reliable mapping,
101
+ to the workspace's `knowledge/` root. For directly read approved pages, skip this
102
+ mapping entirely. Follow relevant associations in `knowledge/structure.yaml`
103
+ and `sources/*/index.yaml` only when source tracing is needed. Without a reliable mapping,
96
104
  continue package retrieval and follow explicit source references where available.
97
105
  Do not guess originals from similar filenames or claim attribution without
98
106
  checking the referenced material.
99
107
 
100
108
  Use the repository and recorded commit identified by the package or workspace
101
109
  as the source baseline.
102
- Reuse existing checkouts only after checking remote, commit, module coverage
103
- and local changes; do not reset them or change their sparse configuration.
110
+ Before reusing a checkout for source reads, group checks of remote, commit,
111
+ module coverage and local changes. Reuse those findings within this response
112
+ instead of checking again before each search or file read. Recheck affected
113
+ facts if the checkout/ref changes, sparse scope expands or there is evidence of
114
+ concurrent edits; do not treat a previous response's checks as current. Do not
115
+ reset user checkouts or change their sparse configuration.
104
116
  Missing code goes into a reusable query-owned path such as
105
117
  `.tmp/context-inspect/<host>/<repository-path>/<commit>/`, separate from user
106
118
  checkouts and production-managed sources. Use safe, credential-free path
@@ -129,10 +141,24 @@ capture/recovery actions. Production recovery gates do not block this independen
129
141
  inspection. Preserve unavailable-evidence gaps rather than changing production
130
142
  state to get past them.
131
143
 
132
- Compare relevant baseline files with current code when accessible, including
133
- relevant local changes. Use actual diffs to assess impact; current code is not a
134
- substitute for the baseline. Mention a missing comparison only when it limits
135
- the answer. For documents, notes and sessions, read saved bodies and necessary
144
+ Batch independent searches and related file reads once paths are known, such as
145
+ the entrypoint, state update and controlling render logic for one mechanism.
146
+ Read enough surrounding context and follow unresolved imports or calls; batching
147
+ must not truncate decisive evidence or turn a partial read into a complete audit.
148
+ Reuse already read evidence rather than rereading it to prepare each tool call.
149
+
150
+ Let evidence sufficiency determine whether a version comparison is needed.
151
+ When the available knowledge or identified baseline code resolves the question,
152
+ answer without fetching the default branch, recovering a second checkout or
153
+ reading history merely to confirm freshness. Compare narrowly when uncertainty,
154
+ conflicting evidence, suspected changes or an explicit version-comparison request
155
+ makes it useful. A question about current behavior requires judging whether the
156
+ available evidence supports that claim, not automatically comparing every branch.
157
+ Retain necessary source reads; do not equate a recorded baseline or branch HEAD
158
+ with a verified live deployment. When comparing, use actual relevant diffs,
159
+ including relevant local changes; current code is not a substitute for the baseline.
160
+ Mention a missing comparison only when it limits the answer.
161
+ For documents, notes and sessions, read saved bodies and necessary
136
162
  attachments; fetch missing accessible material within scope. A summary is not a
137
163
  full transcript, an unread link is not evidence, and current remote content does
138
164
  not prove a historical snapshot.
@@ -165,13 +191,25 @@ limitation. Do not dump internal reasoning, runtime identifiers or routine
165
191
  version comparisons. Explain only differences affecting the answer; hashes may
166
192
  appear in source URLs without requiring a separate version audit in the prose.
167
193
 
168
- For website links, use `context-site-map.json` from the selected package or
169
- sibling website output. Match `pages[].package_path` or `approved_path`, and
194
+ Collect citation targets after the relevant evidence is established and resolve
195
+ them in one batch using the host's existing link resolver when available. Reuse
196
+ known workspace, repository and site parameters; do not rediscover them per link.
197
+ If later evidence adds targets, resolve only those missing from the results.
198
+ Without a host resolver, use an already available `context-site-map.json` from
199
+ the selected package or website output. Do not search for `dist/` merely to
200
+ obtain links for readable approved knowledge. Match `pages[].package_path` or `approved_path`, and
170
201
  resolve `site_path` against `site_url` without prepending `base` again. Cite only
171
202
  matched pages, deduplicate links and do not invent anchors. If mapping is absent
172
203
  or invalid, retain local citations. Do not build, publish or probe remote sites
173
204
  just to format citations; a local map is not proof of the current online content.
174
205
 
206
+ Once the requested questions are supported or genuinely unavailable evidence is
207
+ clearly bounded, synthesize the final answer directly. Do not add another planning,
208
+ freshness-audit or summary round just to prepare it. Preserve necessary mechanisms,
209
+ exceptions, citations and verification limits; fewer preparation steps must not
210
+ mean weaker evidence or omitted questions. Host delivery and receipt requirements
211
+ still apply, without repeating the completed investigation.
212
+
175
213
  Suggest a knowledge update only with supporting evidence: identify the affected
176
214
  page or gap, proposed change and bounded source scope. Check neighboring content
177
215
  before proposing a new page. Only after user acceptance, hand the evidence and
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "c4a",
3
3
  "displayName": "C4A Context",
4
- "version": "0.7.29",
4
+ "version": "0.7.30",
5
5
  "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.",
6
6
  "author": {
7
7
  "name": "Context4AI",