@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.
@@ -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
- - open the report returned by the route;
31
- - let the user approve, reject, or request revisions to candidates;
32
- - apply the exact copied review code through the returned review apply command; and
33
- - retain the exact report reference and reviewed scope in this conversation for
34
- the final completion summary.
35
-
36
- The ordinary Route also carries a revision-bound force-approval resolution
37
- Action as an escape path. Do not advertise it when first presenting Review.
38
- Use it only after the user cannot use the report and explicitly replies with
39
- the exact phrase `强制批准` in the current conversation. That reply is the
40
- decision; do not ask a second confirmation. It approves the complete
41
- current scope atomically; no candidate-specific decisions are inferred.
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
- Approve accepts a candidate. Reject durably omits it; it does not request a
84
- rewrite or retire an approved article. Entering revision instructions requests
85
- repair and locks the other choices for that page until cancelled. Bulk approval
86
- requires confirmation and affects only undecided pages. When the report contains
87
- new top-level categories, the dialog lists them and requires explicit
88
- acknowledgment plus an eight-second wait before confirmation is enabled.
89
- New descendant pages under an existing category do not trigger this extra step. The copied code binds
90
- the candidate scope, exact content, displayed baseline and revision instructions;
91
- the CLI validates these together before writing any decision. Follow returned
92
- repair commands, then obtain review of the repaired candidates.
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 HTML
328
- report shows the current site navigation, candidate changes and expected file
329
- paths. Unchanged approved pages retain their titles with omitted bodies. Enter
330
- revision instructions directly in the report; the copied code and following
331
- instruction lines must be returned together without edits. The CLI binds them to
332
- the reviewed content and baseline and returns repair commands while leaving
333
- those pages pending. Changed candidates require a fresh review. The HTML
334
- review code includes pending positions; managed Review provides the same current
335
- scope as a JSON template. Send decisions only for pages actually reviewed. Omit
336
- means a durable exclusion, not repair. Partial approval alone does not build.
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, use normal preparation and investigate the skeletons.
64
-
65
- ## Configured coverage and the current request
66
-
67
- `src/indexers.yaml` describes the workspace's standing coverage configuration.
68
- Source registration or presence in that configuration does not, by itself, mean
69
- that the source needs investigation again for this request. For a bounded document
70
- addition or revision, identify its reader task and actual evidence dependencies;
71
- reuse existing approved articles and applicable completed work. Do not broaden a
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
- A `pending_scopes` count is workflow state, not a count of missing topics,
80
- repositories to rewrite, or articles to produce. A Git spawn/baseline-read error
81
- means source availability could not be checked; it does not prove that existing
82
- knowledge is absent or obsolete. If unrelated configured sources remain blocked,
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. Check the draft's
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 that stage directory, even when the manifest is in `submissions/`.
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
- `src/indexers.yaml` describes the workspace's standing coverage configuration.
188
- Source registration or presence in that configuration does not, by itself, mean
189
- that the source needs investigation again for this request. For a bounded document
190
- addition or revision, identify its reader task and actual evidence dependencies;
191
- reuse existing approved articles and applicable completed work. Do not broaden a
192
- document task to unrelated code repositories merely because they are configured.
193
-
194
- In planning and completion reports distinguish:
195
- - work requested and completed in this task;
196
- - specific content gaps established by reading, with their affected reader tasks;
197
- - source/environment failures, and whether this task depends on those sources.
198
-
199
- A `pending_scopes` count is workflow state, not a count of missing topics,
200
- repositories to rewrite, or articles to produce. A Git spawn/baseline-read error
201
- means source availability could not be checked; it does not prove that existing
202
- knowledge is absent or obsolete. If unrelated configured sources remain blocked,
203
- say so as a workflow limitation rather than announcing new investigation work.
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.
@@ -1,5 +0,0 @@
1
- schema: agent-graph.action.v1
2
- id: apply-forced-review
3
- runner: host
4
- effect: write
5
- handler: context.review.force-approve-current