Repository navigation
Commit 708eefa
feat(aidd-context): assess existing rules before writing (#1006)
* feat(aidd-context): assess existing rules before writing
Compare complete candidate policies and applicable project guidance before publication. Require an explicit resolution and preserve the approved body through the existing writer.
Refs #791
* fix(aidd-context): include applicable claude project guidance
Include local Claude policies and conditionally loaded AGENTS sources in the discovery contract. Record a Claude-only conflict assessment that leaves every project byte unchanged.
Refs #791
* docs(aidd-context): record rule assessment review and evidence
Record independent review and outcome challenge, mark the plan reviewed, and preserve reproducible native receipts and fixture teardown evidence.
Refs #791
* docs(aidd-context): remove rule contract timestamp
* docs(aidd-context): record concise skill verification
* refactor(aidd-context): keep rule generation minimal
Keep delivery evidence local; retain plugin-source writing separately from host publication.
* refactor(aidd-context): remove duplicate publication guidance
* refactor(aidd-context): simplify rule assessment actions
* refactor(aidd-context): fold rule assessment into capture
* fix(aidd-context): preserve rule capture contracts
Keep category and workflow semantics lost during compression. Make assessed
approval, explicit artifact language and host applicability unambiguous.
Refs #791
* refactor(aidd-context): clarify rule generation handoffs
Keep routing in the skill and detailed contracts in existing references.
Give each action an explicit input and output without repeating the frame
or assessment fields in its process.
Refs #791
* fix(aidd-context): restore host selection discovery
Preserve installed-tool discovery when destinations are unspecified.
Shared AGENTS guidance alone cannot identify an installed host.
Refs #791
* fix(aidd-context): clarify capture decision order
Await missing destination confirmation before assessing candidates.
Give unresolved applicability priority over conflict resolution so
unknown Copilot interfaces cannot justify changing imported policies.
Scope that uncertainty to existing-policy comparisons rather than
requiring activation proof for future publications.
Refs #791
* docs(aidd-context): name rule generation action files
Resolve installed action filenames without guessing numeric prefixes.
Refs #791
* docs(aidd-context): trim rule generation references
Keep agent decisions and usable publication contracts concise while leaving
mechanical diagnostics with the existing writer.
Refs #791
* docs(aidd-context): restore concrete rule generation actions
Keep the workflow in actions and reusable contracts in references so the
agent can follow the process without chasing procedural redirects.
Refs #791
* docs(aidd-context): clarify review before resolution
Put clarification and reassessment before policy-change choices when
comparison evidence is missing; keep label definitions in the reference.
Refs #791
* docs(aidd-context): shorten rule actions and split responsibilities
Keep the action flow readable while loading assessment, discovery and publication contracts only when needed. Preserve approval and host-format safeguards.
Refs #791
* docs(aidd-context): align rule generation with the lean skill style
Give each action a one-line purpose and bold-led imperative steps, keep the approval gate in the router, and phrase rules positively. References stay self-contained.
Refs #791
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(aidd-context): plan and verify rule publication in the writer
Add --plan (dry run listing exact paths, same refusals) and --check --publish (drift report, non-zero on drift) to the standalone writer. Rule generation drops its validate action: capture plans before approval, write verifies after publishing.
Refs #791
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(aidd-context): a resolution is not an approval in rule generation
Present ends the turn, replans after any change and waits for a later explicit approval. The writer path is resolved absolute once, in capture.
Refs #791
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(aidd-context): define approval where rule generation writes
Write requires a user message that approves the displayed candidate unchanged; a choice, edit or rename is a resolution.
Refs #791
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* docs(aidd-context): drop the redundant relative-path warning from write-rule
Refs #791
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* refactor(aidd-context): lean rule-generate wording and single approval rule
Drop redundant bold step labels and filler across the skill, state the
approval rule once in the transversal rules, show description, scope and
hosts in the presented candidate, and reuse the existing rule's hosts.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>1 parent 45a48d6 commit 708eefa
15 files changed
Lines changed: 235 additions & 175 deletions
File tree
- aidd_docs/tasks/2026_10/2026_10_11_rule-contracts
- docs
- plugins/aidd-context
- skills/05-rule-generate
- actions
- assets
- references
- scripts
- scripts/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
| 122 | + | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 24 | + | |
18 | 25 | | |
19 | | - | |
20 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | | - | |
| 31 | + | |
23 | 32 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | | - | |
26 | | - | |
| 26 | + | |
| 27 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
16 | 10 | | |
17 | | - | |
| 11 | + | |
18 | 12 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 13 | + | |
31 | 14 | | |
32 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
33 | 27 | | |
34 | | - | |
| 28 | + | |
35 | 29 | | |
36 | | - | |
37 | | - | |
| 30 | + | |
0 commit comments