dld-kit 1.0.0-rc.4 → 1.0.0-rc.5

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 CHANGED
@@ -73,7 +73,7 @@ function retryWithBackoff(fn: () => Promise<Response>): Promise<Response> {
73
73
 
74
74
  The **always-on rule** is a short instruction installed for each agent: read the decision behind an annotation before changing that code. If a change would contradict it, the agent checks with you, and a new decision records the change.
75
75
 
76
- - **Accepted decisions aren't rewritten.** Once a decision is `accepted` and shared, you don't edit its reasoning. To change course, record a new decision that supersedes or amends it, so the history stays complete. Only metadata such as `status` and `references` gets updated. Statuses run `proposed` → `accepted` → `superseded` or `deprecated`.
76
+ - **Merged decisions aren't rewritten.** While a decision is only on your branch, edit it as much as you like. Once it's on the main branch, you don't edit its reasoning: to change course, record a new decision that supersedes or amends it, so the history stays complete. The frontmatter (`status`, `references`, links, title) can always be updated; `id` and `timestamp` can't. `decision_edits` in the config can relax this. Statuses run `proposed` → `accepted` → `superseded` or `deprecated`.
77
77
  - **The docs are generated.** `/dld-snapshot` builds `OVERVIEW.md` and `SNAPSHOT.md` from the decisions. You never edit a spec by hand.
78
78
  - **Drift gets caught.** `/dld-audit` finds annotations without a decision, references to files that no longer exist, and annotated code that changed.
79
79
  - **Conventions live in one file.** An optional `decisions/PRACTICES.md` holds your testing, style and architecture conventions, and `/dld-implement` follows it.
@@ -150,6 +150,7 @@ Tessl installs and skills copied to other folders need one more step first: see
150
150
  - **`implement_review: false`** skips the review subagent in `/dld-implement`.
151
151
  - **`snapshot_artifacts`** adds documents for `/dld-snapshot` to generate, each from a prompt you write.
152
152
  - **`annotation_exclude`** lists paths whose `@decision` comments are only examples, such as docs.
153
+ - **`decision_edits`** sets whether agents may edit the prose of decisions already on the main branch: `block` (default), `ask` or `allow`.
153
154
 
154
155
  All the options: [project configuration](docs/framework/project-configuration.md).
155
156
 
@@ -173,10 +174,11 @@ Run `npx dld-kit <command>`, or `npm install --global dld-kit` for a `dld` comma
173
174
  | `dld update` | Update the installed skills and rule; `--agent` adds agents |
174
175
  | `dld install-rule --agent <names>` | Install or refresh only the always-on rule |
175
176
  | `dld session-context --agent <name>` | Print the rule for a session hook, unless the agent loads it already (used by the Claude Code plugin) |
177
+ | `dld check-decision-edits` | List edits to the prose of decisions already on the base branch; exits 3 under `decision_edits: block`, for a CI gate ([details](docs/framework/project-configuration.md#decision-edits)) |
176
178
 
177
179
  `init` and `update` won't overwrite files from a newer dld-kit unless you pass `--force`.
178
180
 
179
- These four commands, with their flags, exit codes and documented output, follow semantic versioning, as do `--help` and `--version`. The other commands in `dld --help` (`next-id`, `create-decision`, `regenerate-index` and so on) are internal: the skills run them from their bundled copy, and they can change in a minor release. Don't script against them.
181
+ These five commands, with their flags, exit codes and documented output, follow semantic versioning, as do `--help` and `--version`. The other commands in `dld --help` (`next-id`, `create-decision`, `regenerate-index` and so on) are internal: the skills run them from their bundled copy, and they can change in a minor release. Don't script against them.
180
182
 
181
183
  ## Learn more
182
184