@c4a/context-cli 0.7.36 → 0.7.38
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/cli.js +1673 -979
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/commands/context.md +3 -5
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/codex/skills/context/SKILL.md +3 -5
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/commands/c4a-context.md +3 -5
- package/plugins/skills/context/SKILL.md +3 -5
- package/providers/context/actions/apply-confirmed-review.yaml +5 -0
- package/providers/context/graphs/workspace.yaml +1 -1
- package/providers/context/manifest.json +23 -23
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/dialogue/knowledge-review.md +55 -52
- package/providers/context/resources/manuals/guides/knowledge-updates.md +14 -10
- package/providers/context/resources/procedures/knowledge-review.md +29 -25
- package/providers/context/resources/procedures/knowledge-updates.md +14 -10
- package/providers/context/resources/procedures/production-requirements.md +16 -23
- package/providers/context/resources/procedures/production-stage-files.md +4 -2
- package/providers/context/resources/procedures/work-start-report.md +17 -29
- package/providers/context/actions/apply-forced-review.yaml +0 -5
|
@@ -8,7 +8,6 @@ mediaType: text/markdown
|
|
|
8
8
|
|
|
9
9
|
Agent policy: `context.gate.knowledge_review`. An instance-specific Bot may
|
|
10
10
|
override the managed default and require the ordinary HTML review decision.
|
|
11
|
-
The report-inaccessible exception is `context.gate.force_review_approval`.
|
|
12
11
|
|
|
13
12
|
Review is the authority boundary between candidates and approved knowledge.
|
|
14
13
|
Open one report for the complete current candidate set and apply only a payload
|
|
@@ -25,20 +24,22 @@ an approved path is a migration within the user's requested scope; do not ask
|
|
|
25
24
|
again when that scope is already clear. The resulting Candidate still enters
|
|
26
25
|
Review.
|
|
27
26
|
|
|
28
|
-
Without explicit session-managed authority
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
Without explicit session-managed authority, open the report returned by the
|
|
28
|
+
Route and request confirmation or revision notes through the host user-question
|
|
29
|
+
tool. Follow the selected knowledge-review dialogue to distinguish feedback,
|
|
30
|
+
approval and approval-after-repair. Keep the exact report reference, presented
|
|
31
|
+
scope and user intent in this conversation. The HTML contains reading progress
|
|
32
|
+
and plain revision notes, not approval authority. Normal explicit confirmation
|
|
33
|
+
uses the Route's revision-bound resolution Action and the report's scope snapshot.
|
|
34
|
+
No review code or special approval phrase is required.
|
|
35
|
+
|
|
36
|
+
For old automation, `review approve-all --force` remains a deprecated explicit
|
|
37
|
+
approval alias and applies the current candidate scope without requiring a new
|
|
38
|
+
report. Prefer `--confirmed` for new calls. The CLI also accepts existing legacy
|
|
39
|
+
review files and translates their decisions and repair notes, retaining scope,
|
|
40
|
+
content and baseline checks. Compatibility notices go to stderr, preserving JSON
|
|
41
|
+
stdout. Never request or generate a review code; the page exposes only reading
|
|
42
|
+
progress and revision notes. Existing pending repairs must still be resolved.
|
|
42
43
|
|
|
43
44
|
With explicit session-managed authority, materialize the required
|
|
44
45
|
`context.review-current` Markdown Resource once. Read its index and every
|
|
@@ -80,16 +81,19 @@ all candidate pages as New. Existing unchanged pages show titles only; changed
|
|
|
80
81
|
blocks and previous text remain available for comparison. Navigation without a
|
|
81
82
|
Git baseline is labelled as current context, not an invented historical diff.
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
Opening a candidate marks it READ once for that browser and content version.
|
|
85
|
+
Read counts and revision notes are local convenience state, never approval or
|
|
86
|
+
required CLI receipts. The total includes only current candidates. Typing notes
|
|
87
|
+
immediately marks a page for revision; clearing notes preserves its READ state.
|
|
88
|
+
The revision counter opens a card list of titles and notes, with links back to
|
|
89
|
+
the articles. Copy exports plain notes with article IDs and titles. After copying,
|
|
90
|
+
a five-second dialog previews the text; only that preview is truncated at 400px.
|
|
91
|
+
|
|
92
|
+
The Agent converts conversation intent into current scoped CLI decisions or
|
|
93
|
+
revision instructions. A rejection durably omits a candidate; it does not request
|
|
94
|
+
a rewrite or retire an approved article. Repair first, inspect the actual result,
|
|
95
|
+
and obtain a new decision unless the user already explicitly authorized approval
|
|
96
|
+
after the correction. The latter applies only to the same agreed article scope.
|
|
93
97
|
|
|
94
98
|
Use the affected page's `Repair` command in the review material, replacing only
|
|
95
99
|
the correction instruction. Current candidates are repaired within this batch;
|
|
@@ -324,16 +324,20 @@ assembled page and previous text without accepting the edit. Submit the same
|
|
|
324
324
|
input without that flag to continue. A preview is not approval and does not make
|
|
325
325
|
a stale revision valid.
|
|
326
326
|
|
|
327
|
-
Review can approve checked pages while leaving repair pages pending. The
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
the
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
327
|
+
Review can approve checked pages while leaving repair pages pending. The report
|
|
328
|
+
shows current navigation, candidate changes and expected file paths. Its READ
|
|
329
|
+
progress is local to the browser. Enter revision notes in the article input,
|
|
330
|
+
then copy the plain notes back to the conversation or simply confirm there.
|
|
331
|
+
No review code is needed. Feedback alone leads to repair and an updated report;
|
|
332
|
+
explicit approval continues the workflow. If the user asks to fix the notes and
|
|
333
|
+
then proceed, verify the fix and approve only that authorized scope without
|
|
334
|
+
another question. A request to edit and show the result still waits for review.
|
|
335
|
+
|
|
336
|
+
The Agent uses the current resource's scoped JSON template, with explicit
|
|
337
|
+
candidate decisions or repairs containing candidate_id and instruction. The CLI
|
|
338
|
+
checks scope, content and displayed baseline before applying changes. Pending
|
|
339
|
+
instructions survive a session restart. Omit means durable exclusion, not repair.
|
|
340
|
+
Partial approval alone does not build.
|
|
337
341
|
|
|
338
342
|
When the user requests an earlier delivery, use the Route's `context run
|
|
339
343
|
--deliver` request. Independently approved pages can pass close/build while
|
|
@@ -52,6 +52,9 @@ writing batches are declared in the temporary investigation plan.
|
|
|
52
52
|
|
|
53
53
|
After editing, run `context status --format json` and consume its current Route.
|
|
54
54
|
|
|
55
|
+
Read `context action prepare-current --schema --format json` for the complete
|
|
56
|
+
known-task input contract before creating a stage; no workspace or revision is required.
|
|
57
|
+
|
|
55
58
|
When article targets and source grouping are already clear, put the existing
|
|
56
59
|
plan fields (`capabilities`, `articles`, optional `indexer_usage`) in a file under
|
|
57
60
|
`.tmp/agent-work/`, omitting only `stage`, which does not exist yet. Each article
|
|
@@ -60,27 +63,17 @@ contains `path`, `question`, `sources` and `batch`, with optional `brief` and
|
|
|
60
63
|
command to prepare those tasks without a separate investigation-plan submission.
|
|
61
64
|
This does not approve the report or permit writing before its applicable scope
|
|
62
65
|
decision.
|
|
63
|
-
When targets are unclear,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
document task to unrelated code repositories merely because they are configured.
|
|
73
|
-
|
|
74
|
-
In planning and completion reports distinguish:
|
|
75
|
-
- work requested and completed in this task;
|
|
76
|
-
- specific content gaps established by reading, with their affected reader tasks;
|
|
77
|
-
- source/environment failures, and whether this task depends on those sources.
|
|
66
|
+
When targets are unclear, repeat `--source <source-ref>` on the preparation command
|
|
67
|
+
for the sources selected by this request. Without a selection, only a sole
|
|
68
|
+
configured target is inferred; multiple targets require the Agent to select
|
|
69
|
+
from the user's request, not to ask the user to understand CLI source IDs.
|
|
70
|
+
The CLI prepares only this scope. A source in `evidence_source_scope` remains
|
|
71
|
+
available without becoming an investigation assignment. A later article plan
|
|
72
|
+
can select it in `articles[].sources`; the CLI validates and prepares that
|
|
73
|
+
actual dependency before allowing writing. Missing required evidence still
|
|
74
|
+
blocks the dependent article.
|
|
78
75
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
say so as a workflow limitation rather than announcing new investigation work.
|
|
84
|
-
Do not delete configured sources, invent exclusions, clear stage files, or mark
|
|
85
|
-
unread material investigated to make the current task appear complete. Follow the
|
|
86
|
-
returned resolution action when the workflow still needs a decision.
|
|
76
|
+
Long-term configuration additions do not restart an unchanged stage. Plans and
|
|
77
|
+
refreshes track this request's selected investigation and actual article inputs.
|
|
78
|
+
Preserve genuinely unfinished work when extending a multi-stage request; do not
|
|
79
|
+
turn an incremental addition into a whole-workspace refresh.
|
|
@@ -11,7 +11,9 @@ directories. Read relevant source text before writing; a skeleton is navigation,
|
|
|
11
11
|
not semantic evidence. Skill names guide work, not article ownership or versions.
|
|
12
12
|
|
|
13
13
|
Use the [reader organization guidance](knowledge-updates.md#reader-tasks-names-and-reading-order)
|
|
14
|
-
for article names, placement and manually arranged navigation.
|
|
14
|
+
for article names, placement and manually arranged navigation.
|
|
15
|
+
Use `context task adjust --inspect --format json` to obtain current categories,
|
|
16
|
+
reading order and the exact revision before preparing a navigation adjustment. Check the draft's
|
|
15
17
|
main reader task against its planned title and group; adjust through the existing
|
|
16
18
|
plan, revision or knowledge-map flow when needed. A navigation change alone does
|
|
17
19
|
not call for rewriting valid prose.
|
|
@@ -57,7 +59,7 @@ current task does not mean other authorized work is finished. New source or purp
|
|
|
57
59
|
authorization still follows the current Route.
|
|
58
60
|
|
|
59
61
|
Write results under the returned Agent directory. All submission paths are
|
|
60
|
-
relative to
|
|
62
|
+
relative to `.tmp/agent-work/production-stages/<stage>/`, even when the manifest is in `submissions/`. They are never relative to `.tmp/context-runtime/` or to the manifest location. Each task lists the complete workspace-relative Markdown and reference output paths.
|
|
61
63
|
Copy the CLI's submission template, keep completed tasks only, and keep each
|
|
62
64
|
task's prefilled `input`. Submit the manifest using the returned command.
|
|
63
65
|
Do not edit submitted files until the command returns.
|
|
@@ -184,32 +184,20 @@ a top-level navigation change already required by this procedure.
|
|
|
184
184
|
|
|
185
185
|
## Configured coverage and the current request
|
|
186
186
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
Do not delete configured sources, invent exclusions, clear stage files, or mark
|
|
205
|
-
unread material investigated to make the current task appear complete. Follow the
|
|
206
|
-
returned resolution action when the workflow still needs a decision.
|
|
207
|
-
|
|
208
|
-
For a bounded addition inside an existing production stage, completed articles can
|
|
209
|
-
enter Review with `context run --deliver --format json`. This retains pending
|
|
210
|
-
configured scopes and unfinished tasks; it does not authorize approval or publish.
|
|
211
|
-
Use this existing delivery path when remaining source failures are unrelated to
|
|
212
|
-
the requested articles. If the selected articles need the missing repository, use
|
|
213
|
-
`context source recovery-plan` and `context source restore` with an explicit local
|
|
214
|
-
checkout or clone decision. Do not ask users to investigate unrelated repositories
|
|
215
|
-
just to deliver saved notes, and do not clear gaps to imitate task completion.
|
|
187
|
+
Long-term source configuration is the authorized reading boundary, not the work
|
|
188
|
+
requested in every conversation. Prepare this request's selected investigation
|
|
189
|
+
sources or known article tasks. Keep unused supporting material available for
|
|
190
|
+
later article plans without treating it as unfinished work. For an addition to
|
|
191
|
+
an existing article, prefer the existing article-revision workflow with the
|
|
192
|
+
selected supporting sources rather than starting unrelated production.
|
|
193
|
+
|
|
194
|
+
Report this request's planned and completed work. Restore missing sources that
|
|
195
|
+
its investigation or articles actually require. Reference material not selected
|
|
196
|
+
for this work does not need restoration just to complete an independent note.
|
|
197
|
+
Never infer missing knowledge merely from unavailable source-code checkouts.
|
|
198
|
+
|
|
199
|
+
For an explicitly requested partial delivery, `context run --deliver --format json`
|
|
200
|
+
reviews completed articles while retaining genuine remaining tasks and selected
|
|
201
|
+
investigation. It does not approve or publish articles, and is unnecessary for
|
|
202
|
+
an otherwise completed bounded request. Do not clear unfinished work to force
|
|
203
|
+
completion; ordinary source authorization and citation checks still apply.
|