@c4a/context-cli 0.5.29-beta.20 → 0.5.29-beta.21
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 +5 -3
- package/cli.js +1534 -961
- package/package.json +1 -1
- package/plugin/commands/align.md +3 -1
- package/plugin/commands/capture.md +1 -1
- package/plugin/commands/compile.md +16 -8
- package/plugin/commands/query.md +1 -1
- package/plugin/skills/skill-align-workflow/SKILL.md +4 -2
- package/plugin/skills/skill-compile-close/SKILL.md +3 -0
- package/plugin/skills/skill-compile-draft/SKILL.md +19 -17
- package/plugin/skills/skill-compile-draft/references/refresh-and-update.md +14 -14
- package/plugin/skills/skill-context-query/SKILL.md +24 -22
- package/plugin/skills/skill-semantic-reconcile/SKILL.md +5 -4
- package/plugin/skills/skill-semantic-reconcile/references/mode-semantics.md +1 -1
- package/plugin/skills/skill-semantic-reconcile/references/temporal-and-evidence.md +13 -13
- package/plugin/skills/skill-semantic-reconcile/references/user-confirmation.md +2 -0
|
@@ -4,8 +4,7 @@ Consult this reference when prepare items carry **any** of:
|
|
|
4
4
|
|
|
5
5
|
- `temporal_prior` / `proposed.source_captured_at` / candidate `source_captured_at` / `last_reconciled_at` / `temporal_disposition`
|
|
6
6
|
- `source_support.evidence_block_candidates[]` or `source_support.evidence_block_*` repair hints
|
|
7
|
-
- `proposed.
|
|
8
|
-
- `agent_hints[]` with `code: "example_detail_preservation"`
|
|
7
|
+
- prepared long `proposed.content` / `proposed.summary`, especially with command / config / code fence content
|
|
9
8
|
|
|
10
9
|
For prepare items that have none of the above, ignore this file.
|
|
11
10
|
|
|
@@ -42,25 +41,26 @@ These are **repair hints**, not automatic broadening permission. Rules:
|
|
|
42
41
|
|
|
43
42
|
The support gate exists to prevent orphan claims and false evidence links, not to optimize retrieval. Prefer preserving a precise raw-backed claim over rewriting content into a smoother summary.
|
|
44
43
|
|
|
45
|
-
## `proposed.
|
|
44
|
+
## Long `proposed.content` / `proposed.summary` preservation
|
|
46
45
|
|
|
47
|
-
When the prepare item carries `proposed.
|
|
46
|
+
When the prepare item carries long `proposed.content` or a `proposed.summary`, treat both as load-bearing:
|
|
48
47
|
|
|
49
|
-
- `
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
48
|
+
- `content` carries the active Section knowledge, including long-form prose, examples, URLs, tables, commands, config, and code blocks.
|
|
49
|
+
- `summary` is the short reader/query aid for long content.
|
|
50
|
+
- Dropping either field silently loses knowledge or query UX.
|
|
51
|
+
- Preserve prepared `content` and `summary` on executable write decisions (`merge_update`, `supersede.new`, `keep_separate`, `split_then_reanchor` sub-Sections) unless the decision intentionally rewrites the user-facing content.
|
|
52
|
+
- The only legitimate way to clear `summary` is an update-style decision that explicitly emits `summary: null` as the chosen outcome.
|
|
53
53
|
|
|
54
|
-
##
|
|
54
|
+
## Example content preservation repair
|
|
55
55
|
|
|
56
|
-
If review
|
|
56
|
+
If review reports that a cited example evidence contains a command / config / code fence missing from `proposed.content`, repair:
|
|
57
57
|
|
|
58
|
-
- **Preferred**: regenerate the decision with the relevant fenced block included in `proposed.
|
|
58
|
+
- **Preferred**: regenerate the decision with the relevant fenced block included in `proposed.content` (preserve language, fences, and exact code).
|
|
59
59
|
- **Fallback only after user confirmation**: keep a prose-only example summary, mark the final decision `decided_by: user` per `references/user-confirmation.md`. Auto mode is not user confirmation.
|
|
60
60
|
|
|
61
61
|
## How this slots into the main procedure
|
|
62
62
|
|
|
63
63
|
- **Step 1 — Consume**: scan prepare items for the signal fields above; flag affected items for the relevant repair path.
|
|
64
64
|
- **Step 3 — Decide**: temporal priors inform `rationale` but never the action choice; evidence-block hints may justify broadening the cited range.
|
|
65
|
-
- **Step 4 — Emit**: rerun `context reconcile review` after broadening ranges or restoring
|
|
66
|
-
- **Step 5 — Self-verify**: no executable write strips
|
|
65
|
+
- **Step 4 — Emit**: rerun `context reconcile review` after broadening ranges or restoring missing example content; only then proceed to apply.
|
|
66
|
+
- **Step 5 — Self-verify**: no executable write strips prepared `content` or `summary`; no temporal field leaks into `proposed`; every broadened `source_ref` has been re-reviewed.
|
|
@@ -14,6 +14,7 @@ For runs where review emits no questions, ignore this file.
|
|
|
14
14
|
Only **explicit user reply to a question your agent asked**. The following are **not** confirmation:
|
|
15
15
|
|
|
16
16
|
- Auto mode being active
|
|
17
|
+
- Delegated mode being active (`--delegated` lets the CLI make scoped low-risk review decisions; it is not user confirmation for a specific question)
|
|
17
18
|
- A blanket "continue" / "yes go ahead" earlier in the session
|
|
18
19
|
- Permission to run shell commands
|
|
19
20
|
- A previous decision applied with `decided_by: user` for a different item
|
|
@@ -61,6 +62,7 @@ After user confirmation:
|
|
|
61
62
|
- `decided_by` is a **top-level** decision field, not a `proposed` sub-field.
|
|
62
63
|
- Final executable decisions must not carry `user_confirmation.required: true`. That flag belongs only on `action: ask_user` items that still need input.
|
|
63
64
|
- User confirmation permits weak support and omit. It does **not** permit unsupported evidence, missing hard facts, or contradictory claims — those still need stricter evidence or stay `ask_user`.
|
|
65
|
+
- `decided_by: delegated_agent` is reserved for CLI-generated decisions inside a delegated compile workflow. Do not emit it from this skill.
|
|
64
66
|
|
|
65
67
|
## How this slots into the main procedure
|
|
66
68
|
|