cliewen-openspec 0.1.0-alpha.1 → 0.1.0

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.
@@ -5,6 +5,8 @@ type: reference
5
5
 
6
6
  Cliewen reads project settings from `.cliewen-openspec/config.yaml`.
7
7
 
8
+ This reference describes version `0.1.0`. The earlier published `0.1.0-alpha.1` does not accept the `quality`, `lifecycle`, `learnings`, or `writing` settings below. Use that package's bundled reference when working with the alpha; its installation manifest is unsupported by 0.1.0.
9
+
8
10
  ## Full defaults
9
11
 
10
12
  This is the complete configuration written by `init`. Omitted fields use these values; unknown settings and invalid values fail validation. Changes apply when the next operation reads the config. They do not rewrite existing proposals or task lists.
@@ -12,6 +14,11 @@ This is the complete configuration written by `init`. Omitted fields use these v
12
14
  <!-- defaults -->
13
15
  ```yaml
14
16
  docsRoot: docs
17
+ learnings:
18
+ enabled: false
19
+ directory: learnings
20
+ writing:
21
+ humanizer: auto
15
22
  features:
16
23
  documentation: true
17
24
  decisions: true
@@ -26,7 +33,17 @@ ac:
26
33
  padding: 3
27
34
  testing:
28
35
  placement: per-task
29
- approach: flexible
36
+ quality:
37
+ coverage:
38
+ mode: review
39
+ minimumCases:
40
+ positive: 1
41
+ negative: 1
42
+ boundary: 0
43
+ effectiveness:
44
+ mode: review
45
+ lifecycle:
46
+ mode: review
30
47
  types:
31
48
  Unit:
32
49
  description: Isolated behavior without external dependencies
@@ -36,6 +53,25 @@ testing:
36
53
  description: Complete user or system workflow
37
54
  ```
38
55
 
56
+ ## Test quality and lifecycle
57
+
58
+ Each of `testing.quality.coverage.mode`, `testing.quality.effectiveness.mode`, and `testing.lifecycle.mode` accepts `off`, `review`, or `enforce`. The default is `review`: incomplete assessments produce warnings. `enforce` makes missing or invalid records blocking and requires `features.evidence: true`. `off` disables that policy's checks and guidance. Evidence opt-out leaves review guidance available but reports that execution-backed assessment is unavailable.
59
+
60
+ Coverage counts distinct passed cases by scenario and category. Configure nonnegative safe-integer minima under `testing.quality.coverage.minimumCases`; omitted categories retain their defaults. One positive and one negative case are required by default, with relevant boundary cases assessed during review. A reviewed exception can waive a category minimum for a particular scenario.
61
+
62
+ For example, to enforce coverage while leaving other policies advisory:
63
+
64
+ ```yaml
65
+ testing:
66
+ quality:
67
+ coverage:
68
+ mode: enforce
69
+ minimumCases:
70
+ positive: 2
71
+ ```
72
+
73
+ This requires two positive and one negative case per scenario. It does not count retries or prove cases are meaningfully different. See [test quality and lifecycle](testing/test-quality.md) for tagging tests, writing review records, and handling exceptions.
74
+
39
75
  ## Documentation and features
40
76
 
41
77
  | Setting | Default | Effect |
@@ -51,6 +87,64 @@ testing:
51
87
 
52
88
  All paths must stay inside the project; absolute paths, parent traversal, and symlink components are rejected. A custom evidence report path must be Git-ignored and untracked before the reference adapter can write it. New installations ignore the default `evidence.json` report, `transaction.json`, and local `tdd/` history in `.cliewen-openspec/.gitignore`. Existing ignore files are preserved.
53
89
 
90
+ ## Project learnings
91
+
92
+ Set `learnings.enabled: true` to ask the coding agent to retrieve and maintain reusable project lessons. `learnings.directory` is relative to `docsRoot`. For example:
93
+
94
+ ```yaml
95
+ docsRoot: notes
96
+ learnings:
97
+ enabled: true
98
+ directory: lessons
99
+ ```
100
+
101
+ This selects `notes/lessons/`. The installer does not create that directory or an empty index. When a useful lesson exists, the agent follows the existing collection's conventions or uses `.cliewen-openspec/templates/learning.md` and a short `README.md` index. The index lists titles, scope, status, and links. The agent reads the index first, then opens selected relevant notes in a later tool call. Broad content searches exclude unselected notes. Missing or unclear index information is a limitation to report, rather than a reason to load the whole collection.
102
+
103
+ New notes distinguish `tentative`, `verified`, and `retired` guidance and record the situation, observation, evidence, correction, scope, and limits. Verified notes include a `lastVerified` date. Recheck applicability: a lesson never overrides current specs or accepted decisions. At closure, merge duplicates through links, retire stale notes in place, and promote recurring guidance into tests or durable rules where useful. Explicit maintenance may read affected historical notes selected from the index; ordinary work skips retired and unrelated contents. Routine work need not produce a lesson.
104
+
105
+ Disabling learnings stops retrieval and maintenance guidance while preserving authored content. `features.documentation: false` also suppresses this workflow, even if learnings are enabled. Update and uninstall preserve authored notes and indexes; the installed template remains an owned resource. Existing knowledge outside the selected directory can be referenced without copying or moving it. Absolute, escaping, and empty directory settings are rejected; symlinks in the collection path are rejected when learnings are active. Disabled learnings do not inspect an unused collection path.
106
+
107
+ ### Instructions before context collection
108
+
109
+ Some agents gather project context before requesting OpenSpec instructions. Schema guidance becomes available when those instructions are read; it cannot prevent earlier reads. To request the intended order from the start, add this rule to the project's existing agent instruction file, such as `AGENTS.md` or the host's equivalent:
110
+
111
+ ```text
112
+ For Cliewen operations, read .cliewen-openspec/config.yaml and obtain the selected OpenSpec artifact or apply instructions before broad project-content reads or searches. Resolve the learning policy first: when enabled and documentation guidance is active, read only the configured collection's index in one tool call, then select relevant notes before opening them in a later call. Exclude unselected, unrelated, and retired notes from ordinary context reads and content searches. Explicit maintenance may select affected historical notes. When disabled, skip the collection. Report limitations rather than loading everything.
113
+ ```
114
+
115
+ The installer does not add or replace this project-owned rule. It requests an order; agent behavior still needs review. A trace that shows an unwanted read takes precedence over an agent's claim that it skipped the file.
116
+
117
+ These are agent instructions, not a content validator. `check` cannot establish that a lesson is true, relevant, or actually retrieved. Changing settings requires no reinstall, but upgrading from an older package requires [updating its installed instructions](guide/updating.md).
118
+
119
+ ## Humanizer and writing
120
+
121
+ Baseline writing guidance applies in every mode. Agents should distinguish the accepted contract from runtime observations, describe the output representation actually checked, and name what each verification command establishes. These requests need review; neither Humanizer nor `check` validates every factual claim.
122
+
123
+ `writing.humanizer` controls the coding agent's use of an external skill:
124
+
125
+ | Value | Behavior |
126
+ |---|---|
127
+ | `auto` (default) | Inspect the host's exposed inventory and use a usable Humanizer skill when available |
128
+ | `"on"` | Explicitly request use, with the same nonblocking fallback when unavailable |
129
+ | `"off"` | Skip Cliewen's discovery, use, status messages, and installation suggestions |
130
+
131
+ For example, to disable this integration independently of learnings:
132
+
133
+ ```yaml
134
+ writing:
135
+ humanizer: "off"
136
+ ```
137
+
138
+ In auto/on mode, the agent gives one short status per session: used, detected but inaccessible, confirmed absent, or availability unknown. It claims use only after reading and applying the skill's instructions. It does not repeat the status in each artifact or PR description. If absence is confirmed, it may combine the status with one installation suggestion, respecting a refusal. An unavailable inventory is reported as unknown, not as a missing skill.
139
+
140
+ Cliewen does not scan global skill directories, install software, enable plugins, or cache availability across sessions. Installation is a deliberate user action using [Humanizer's current host-specific instructions](https://github.com/blader/humanizer#installation). Availability depends on the host's inventory and permissions; finding a file does not prove the agent can invoke it. No universal detection command or cross-host success guarantee is provided.
141
+
142
+ A failed attempt to load a skill by name does not establish that the host detected it. When inventory is unavailable, report availability as unknown and describe the failed invocation separately. Reserve "detected but inaccessible" for a skill the host actually identifies.
143
+
144
+ The skill applies to prose across proposals, specs, tasks, guides, comments, docstrings, commits, PR descriptions, messages, and replies. Preserve technical meaning, code behavior, commands, identifiers, and structured data; verify factual claims after rewriting. Baseline clear-writing rules apply in every mode and when the skill is absent. Disabling documentation guidance does not disable these writing rules or Humanizer. Independent repository or host requirements still apply.
145
+
146
+ Shared writing guidance also asks the agent to check local document links before handoff, using each containing file's directory as the base. For example, a proposal at `openspec/changes/example/proposal.md` reaches `docs/` through `../../../docs/`. Verify targets and fragments with the project's available link or rendering checks. Describe future files as planned paths until they exist. This is agent guidance; Cliewen's `check` command does not validate every Markdown link or authenticate the agent's validation claims.
147
+
54
148
  ## Test types
55
149
 
56
150
  `testing.types` defaults to `Unit`, `Integration`, and `E2E`, with the descriptions shown above. A project-defined mapping replaces the entire default set. Names are case-sensitive, may contain spaces, and must be nonempty, single-line names without surrounding whitespace or square brackets. Each entry requires a nonempty `description`; an empty mapping is invalid.
@@ -68,9 +162,9 @@ testing:
68
162
 
69
163
  Each scenario needs exactly one `Test-type: Component` line beneath its heading. With the Node adapter, give each mapped test a title such as `exports rows [EXPORT-001] [Test-type: Component]`. Tasks should name the concrete test, type, and verification boundary. The checker requires evidence `testType` to match the scenario's declared type exactly; it does not assume one type substitutes for another. Task descriptions and the actual quality of the test boundary still require review.
70
164
 
71
- For existing projects, add types to scenarios and test titles, commit the inputs, then regenerate evidence. Older reports without `testType` fail the check and are not automatically upgraded. Evidence opt-out skips these checks. Testing types do not change per-task placement or TDD ordering.
165
+ For existing projects, add types to scenarios and test titles, commit the inputs, then regenerate evidence. Older reports without `testType` fail the check and are not automatically upgraded. Evidence opt-out skips these checks. Testing types do not change per-task placement or verification quality.
72
166
 
73
- The alpha supplies guidance for documentation, decisions, Mermaid, planning, and review. It does not structurally validate those documents or independently enforce agent behavior. Disabling a facility preserves authored files. Evidence opt-out skips product evidence checks; installation, registry, and explicitly selected TDD completion checks still run.
167
+ The candidate supplies guidance for documentation, decisions, Mermaid, planning, and review. It does not structurally validate those documents or independently enforce agent behavior. Disabling a facility preserves authored files. Evidence opt-out skips product evidence checks; installation and registry checks still run.
74
168
 
75
169
  For example, to use a different documentation root and turn off Mermaid guidance:
76
170
 
@@ -90,7 +184,6 @@ ac:
90
184
  capabilities: {}
91
185
  testing:
92
186
  placement: per-task
93
- approach: flexible
94
187
  types:
95
188
  Unit:
96
189
  description: Isolated behavior without external dependencies
@@ -140,7 +233,7 @@ If the highest allocated number was `EXP-017`, the next ID is `EXPORT-018`. Exis
140
233
 
141
234
  Current and historical prefixes remain reserved to their original capability, even if its config mapping is removed. Allocation using a retired prefix is rejected with guidance to use the current capability. Previously used prefixes cannot be reassigned, including renaming back to a historical prefix. The command also rejects target prefixes already appearing in OpenSpec documents.
142
235
 
143
- The registry records each capability's current prefix, previous prefixes, and highest allocated number. Existing flat alpha registries are adopted on the next allocation or rename: first map each used prefix to its original capability. Unmapped legacy counters remain reserved; they are never silently discarded or assigned to new capabilities. `check` validates this state without writing it. Removing the registry loses allocation history, so retain it in version control.
236
+ The registry records each capability's current prefix, previous prefixes, and highest allocated number. `check` validates this state without writing it. Removing the registry loses allocation history, so retain it in version control. Do not use the native registry as a second authority for IDs allocated by another tool.
144
237
 
145
238
  The earlier experimental `ac.prefix` setting is no longer supported. Replace it with `ac.capabilities` before using this version. Existing bracketed IDs remain valid evidence references regardless of prefix history.
146
239
 
@@ -153,113 +246,33 @@ The earlier experimental `ac.prefix` setting is no longer supported. Replace it
153
246
 
154
247
  Both modes retain final regression testing and revision-bound evidence collection. Per-task test runs provide immediate feedback; the evidence adapter records results for the final committed inputs. Disabling evidence does not disable ordinary task-level testing.
155
248
 
156
- In flexible mode, placement is guidance supplied by the installed schema and task template. Selecting TDD also enables the completion checks below. Configuration changes do not rewrite existing task lists; revise the task plan when changing this setting.
157
-
158
- ## Test-driven development
159
-
160
- Test placement and test-driven development (TDD) are separate choices. Enable TDD with:
249
+ Placement is guidance supplied by the installed schema and task template. Configuration changes do not rewrite existing task lists; revise the task plan when changing this setting.
161
250
 
162
- ```yaml
163
- testing:
164
- placement: per-task
165
- approach: tdd
166
- ```
167
-
168
- `approach: flexible` is the default and permits tests before or after implementation within the selected placement. Existing config files that omit `approach` keep this behavior. `approach: tdd` requires `placement: per-task`; contradictory settings are rejected.
169
-
170
- With TDD, each implementation task contains one red-green-refactor cycle:
171
-
172
- 1. Write a focused test before implementing the behavior. Run it and observe failure for the intended missing behavior. Setup, import, and syntax errors do not establish this red phase.
173
- 2. Implement the minimum behavior needed for the test to pass and run it again.
174
- 3. Refactor with relevant tests remaining green, then continue to the next task.
175
-
176
- For example: "Add quotation-mark escaping: write and run the tagged test first and confirm the expected failure; implement escaping until the test passes; refactor and rerun the relevant tests." Record commands and observed red/green outcomes in task completion notes. If a new test already passes against existing code, report that honestly rather than claiming an observed red phase. Documentation-only work uses appropriate validation checks.
177
-
178
- With TDD selected, `check --change NAME` also requires task metadata and recorded execution history. This applies to delivery and the delivery outcome of `cliewen-all`, including when `features.evidence` is false. Discovery and combined no-delivery closure do not require delivery history. Flexible mode keeps its existing behavior.
179
-
180
- ### Describe each task
181
-
182
- Add one `yaml cliewen-tasks` fenced block to the change's `tasks.md`. Every checkbox needs a unique numeric ID and a matching entry. Keep the normal task text and completion check; the block supplies the machine-readable verification details.
183
-
184
- ````markdown
185
- - [ ] 1.1 Add CSV quoting and verify quotation marks at the Unit function boundary.
186
-
187
- ```yaml cliewen-tasks
188
- version: 1
189
- tasks:
190
- "1.1":
191
- method: tdd
192
- command: [node, --test, test/export.test.mjs]
193
- tests: [test/export.test.mjs]
194
- implementation: [export.mjs]
195
- ```
196
- ````
197
-
198
- `command` is an executable followed by its arguments, run from your project root without a shell. Use explicit project-relative file paths, including files that will be created. Globs and directories are not file lists. Test and implementation lists must be distinct and together cover the task's verification boundary. Review that coverage; Cliewen cannot discover omitted production files or infer which assertions a command runs.
199
-
200
- Choose a method for each task:
201
-
202
- | Method | Recorded sequence | When to use it |
203
- |---|---|---|
204
- | `tdd` | start → red → green | New or changed behavior; tests change before red while implementation stays unchanged |
205
- | `characterization` | start → baseline → green | Add coverage for existing behavior; baseline already passes against unchanged implementation |
206
- | `refactor` | start → baseline → green | Existing tests pass before and after refactoring; test files stay unchanged |
207
- | `verification` | start → verify | Work with another suitable completion check, such as documentation links or a build |
208
-
209
- Every method uses `command`, `tests`, and `implementation`. TDD requires both file lists to be nonempty; characterization and refactor require test files. Verification can use `tests: []` and list documents under `implementation`. Every method other than `tdd` requires a nonempty `reason` explaining the departure. For example, a documentation task can use `method: verification`, `reason: "Only the command reference changes; build the docs and check links."`, and its documentation build command. Review reasons with the task plan. A configuration or tooling change that changes behavior still needs a behavior test.
210
-
211
- ### Record actual runs
212
-
213
- Run these commands from the adopting project's root. Start before changing the task's declared files:
214
-
215
- ```sh
216
- npx --no-install cliewen-openspec tdd start --change add-csv-export --task 1.1
217
- ```
218
-
219
- Write the focused test, then record the red run using the exact command argument list from the task:
220
-
221
- ```sh
222
- npx --no-install cliewen-openspec tdd run --change add-csv-export --task 1.1 --phase red --reason "Quotation marks are not escaped yet" -- node --test test/export.test.mjs
223
- ```
224
-
225
- The recorder returns the test command's exit code. A red run should exit nonzero. Inspect the captured failure before implementing: syntax, import, setup, or wrong-expectation failures do not establish missing behavior. `--reason` records your explanation; it does not validate it.
226
-
227
- Implement the behavior and record green:
228
-
229
- ```sh
230
- npx --no-install cliewen-openspec tdd run --change add-csv-export --task 1.1 --phase green -- node --test test/export.test.mjs
231
- ```
232
-
233
- Keep test files unchanged between red and green. After refactoring production code, record green again. Failed green attempts are retained; the last run must pass. Changing tests requires another start and verification cycle. Do not manufacture a red phase for behavior already implemented; choose the honest method and explain it in the reviewed plan.
234
-
235
- For characterization or refactoring, use `--phase baseline` for the passing run before production changes, then `--phase green`. For a verification exception, use `--phase verify` after the work. Each task begins with `tdd start`. If its definition changes, start a new cycle; the recorder appends history and preserves earlier attempts.
236
-
237
- After the task's actual verification succeeds, mark its checkbox complete. Once all tasks are complete, run:
238
-
239
- ```sh
240
- npx --no-install cliewen-openspec check --change add-csv-export --json
241
- ```
251
+ <a id="test-driven-development"></a>
242
252
 
243
- Keep final evidence collection and this completion check outside numbered task checkboxes and recorded task commands. A final verification task should run the actual regression suite or documentation check. Recording `check` itself would make it assess its own unfinished history while a recorder lock exists.
253
+ ## Evidence-first verification
244
254
 
245
- ### Completion checks and limits
255
+ Use **spec-driven development with evidence-first verification**: define expected behavior and how to verify it before implementation. Develop code and tests in small steps, check that tests detect relevant faults, and maintain them as requirements change.
246
256
 
247
- The recorder appends JSON events to `.cliewen-openspec/tdd/add-csv-export.jsonl`. Events contain task-definition and file hashes, command arguments, output, exit code, and recording time. It compares snapshots before and after each command; commands that change declared inputs cannot establish the required sequence. It blocks simultaneous recording for the same change. Later tasks can edit shared files if their recorded starting states continue from the earlier task's recorded state.
257
+ 1. Describe acceptance criteria and positive, negative, and boundary cases before implementation. Consider [interactions between inputs and options](testing/test-quality.md#plan-interacting-cases), especially when existing content must be preserved. Executable tests can develop alongside the code.
258
+ 2. Verify each task before continuing, using concrete commands and actual results. With end-of-change placement, plan the final automated suite while retaining a suitable check for each task.
259
+ 3. Assess assertion effectiveness through relevant failures and review. A setup or syntax failure does not show that a test detects the intended defect.
260
+ 4. Keep tests aligned with accepted requirements, preserving active assertions and explicitly reviewing retirement.
248
261
 
249
- Missing metadata/history, unchecked tasks, stale definitions/files, malformed history, and incomplete or invalid ordering produce errors. A final passing product evidence report cannot replace this history. `check` reads it without running tests or writing files. Without `--change`, permanent-spec checks report that TDD ordering was not assessed; they do not establish task completion after archive.
262
+ This approach is close to [Specification by Example](https://martinfowler.com/bliki/SpecificationByExample.html), which uses concrete examples to clarify specifications, and [ATDD](https://agilealliance.org/glossary/atdd/), which agrees acceptance tests before implementation. Evidence-first verification is our descriptive wording; it does not require a particular order of test and production edits.
250
263
 
251
- History is local verification data, separate from the final revision-bound evidence report. Keep it available until completion review; CI needs the same history as an artifact if it performs this check. Existing installations must add `tdd/` to `.cliewen-openspec/.gitignore` before recording. Update preserves that file. Review captured project output before sharing it; do not hand-edit events or discard failures to obtain a pass.
264
+ ### Earlier formats
252
265
 
253
- The history is not tamper-proof and the recorder does not restrict writes through other tools. Review the actual failure cause, assertions, declared file coverage, and exception reasons. These checks establish consistency of the captured sequence, not a guarantee that every edit was observed. Stronger write control remains planned.
266
+ The first non-prerelease release supports fresh configuration and its own `0.1.0` installation manifests. It does not migrate earlier alpha installations. Retired `testing.approach` values and effectiveness records using `method: tdd` remain invalid; do not copy them into a new project.
254
267
 
255
- Final regression and clean committed-revision evidence collection remain required when evidence is enabled. Finish task notes before committing and collecting evidence. Install the updated package and refresh installed schemas with `update`; older authored task lists need explicit metadata and honest new verification, not reconstructed historical claims.
268
+ Existing authored history remains project-owned. Recorder commands and task-method metadata from earlier development builds do not establish completion under evidence-first verification. General format migration is outside this release's scope.
256
269
 
257
270
  ## Decision filenames
258
271
 
259
272
  New projects use `NNN-short-title.md`, such as `001-use-a-shared-base.md`, for new Decision Records. The sequence starts at 1, padded to a minimum of three digits for filename sorting. Numbers above 999 grow naturally. This is a naming convention in the schema guidance, not a configurable setting or an implemented decision allocator.
260
273
 
261
- Existing filenames and paths are stable public addresses: never rename, move, or renumber documents to normalize naming, titles, categories, or padding. External systems such as GitHub may link to them. Edit content and metadata in place, even when a title or category changes. Existing projects retain conventions such as `ADR-059-title.md` and `PDR-074-title.md`; read their allocation rules and use their existing ID authority rather than starting a competing counter. These conventions are not yet configurable in the alpha. The project owner explicitly authorized normalizing this repository's first two decision filenames to three digits; that local exception does not authorize renaming documents in other projects.
274
+ Existing filenames and paths are stable public addresses: never rename, move, or renumber documents to normalize naming, titles, categories, or padding. External systems such as GitHub may link to them. Edit content and metadata in place, even when a title or category changes. Existing projects retain conventions such as `ADR-059-title.md` and `PDR-074-title.md`; read their allocation rules and use their existing ID authority rather than starting a competing counter. These conventions are not configurable in `0.1.0`. This repository's earlier owner-approved filename normalization does not authorize renaming documents in other projects.
262
275
 
263
- ## Existing alpha installations
276
+ ## Installed resource versions
264
277
 
265
- Install the new package, then use [update](guide/updating.md) to preview and refresh owned schema files and templates. Current support covers existing 0.1.0-alpha.1 manifests, including earlier builds. Configuration, registry, authored artifacts, and document paths are preserved. Adding config settings alone does not replace installed instructions. Other manifest versions and config/registry migrations are not supported automatically.
278
+ The `0.1.0` candidate's `init`, `update`, and `uninstall` accept only `0.1.0` installation manifests. `check` reports other manifest versions as unsupported; changing the recorded version by hand does not migrate an installation. Use a fresh project for candidate evaluation. [Update](guide/updating.md) refreshes or repairs owned resources within the supported version while preserving configuration, registry, authored artifacts, and document paths. Adding config settings alone does not replace installed instructions. General version/config/registry migrations are outside this release's scope.
@@ -1,11 +1,13 @@
1
1
  ---
2
2
  type: testing
3
3
  ---
4
- # Evidence alpha contract
4
+ # Execution evidence and review
5
5
 
6
- The alpha supports `init`, `update`, `uninstall`, `ac next`, `ac rename-prefix`, `check`, and `recover`, and installs `cliewen-delivery`, `cliewen-discovery`, and `cliewen-all`. Package CI exercises OpenSpec 1.15.0 on Windows and Linux. Existing-registry adapters, structural checks for your project's documentation and Mermaid, and independent review tooling remain planned.
6
+ Version `0.1.0` provides the execution checks below and [test quality and lifecycle checks](test-quality.md), using optional case metadata in the same version-1 report. Policies default to advisory review. Case counts and reviewed statuses do not establish semantic correctness.
7
7
 
8
- Initialize OpenSpec first. Install this package from a locally built tarball. Run `cliewen-openspec init --default` to explicitly select delivery; omit `--default` to preserve the existing schema. `--root PATH` supports an explicit target, and `init --dry-run` makes no changes.
8
+ The candidate supports `init`, `update`, `uninstall`, `ac next`, `ac rename-prefix`, `check`, and `recover`, and installs `cliewen-delivery`, `cliewen-discovery`, and `cliewen-all`. Package CI exercises OpenSpec 1.15.0 on Windows and Linux. Existing-registry adapters, structural checks for your project's documentation and Mermaid, and independent review tooling remain planned.
9
+
10
+ Initialize OpenSpec first, then install the local `cliewen-openspec-0.1.0.tgz` built in [Your first change](../guide/getting-started.md). Run `cliewen-openspec init --default` to explicitly select delivery; omit `--default` to preserve the existing schema. `--root PATH` supports an explicit target, and `init --dry-run` makes no changes. The earlier npm alpha is not the package exercised by this contract.
9
11
 
10
12
  Register a capability-to-prefix mapping, then allocate IDs using `cliewen-openspec ac next --capability export`. Keep the committed `.cliewen-openspec/ac-registry.json`; numbers are never reclaimed. This initial allocator supports sequential work; parallel branches must resolve collisions. Do not use it alongside another allocator until an adapter exists.
11
13
 
@@ -36,7 +38,7 @@ Tests use titles such as `exports rows [EXPORT-001] [Test-type: Unit]`. The refe
36
38
  }
37
39
  ```
38
40
 
39
- Allowed outcomes: passed, failed, skipped, pending and manual. Pending requires a reason; `--fail-on-pending` makes it blocking. Manual results are reported as warnings and are never described as automated proof. Report schema failures exit 2; failed checks exit 1; checks without errors exit 0. Reviewed sufficiency remains explicitly unassessed in this slice.
41
+ Allowed outcomes: passed, failed, skipped, pending and manual. Pending requires a reason; `--fail-on-pending` makes it blocking. Manual results are reported as warnings and are never described as automated proof. Report schema failures exit 2; failed checks exit 1; checks without errors exit 0. Reviewed sufficiency remains explicitly unassessed.
40
42
 
41
43
  `check --change NAME` checks active delta scenarios (REMOVED scenarios are excluded). Without it, check all permanent specs. OpenSpec retains responsibility for semantic merging. After archive changes the tree, commit and regenerate evidence without the adapter's `--change` before checking permanent specs.
42
44
 
@@ -52,7 +54,7 @@ Without the adapter flag, collection retains all mapped results and omits `scope
52
54
 
53
55
  The adapter exits 0 when the runner passes, 1 when it fails with reportable results, and 2 for collection errors. Missing change specs, invalid names or options, no selected scenarios, no matching results, and incomplete runner execution are collection errors. Once collection starts from valid clean inputs and an ignored output path, an earlier report is removed before scope validation and execution, so failed recollection cannot reuse a previous pass. Scenario completeness and exact test-type matching remain the checker's responsibility.
54
56
 
55
- The current alpha validates installation hashes and evidence only. Enabling other features supplies schema guidance, not implemented structural validators. The schema does not add a post-implementation artifact as an apply prerequisite. Archive is deliberately performed with OpenSpec, after reviewing evidence.
57
+ The candidate validates installation version/hashes, registry state, execution evidence, and configured test-policy records. It does not authenticate the semantic quality or approval of a review. Enabling documentation features supplies schema guidance, not document-structure validators. The schema does not add a post-implementation artifact as an apply prerequisite. Archive is deliberately performed with OpenSpec, after reviewing evidence.
56
58
 
57
59
  For `cliewen-discovery` changes, `check --change NAME` reads the schema selection from OpenSpec metadata and checks installation and registry health only. With evidence enabled, it reports `discovery-review-required` instead of requesting a product test report. Review research sources, actual observations, uncertainty, and the recommendation yourself. An `ok: true` result does not validate discovery documents or prove product behavior. See [the discovery guide](../guide/discovery.md).
58
60
 
@@ -83,4 +85,4 @@ Each selected scenario requires exactly one nonempty `Test-type` line. Each resu
83
85
 
84
86
  The adapter records explicit metadata; it cannot establish whether a test actually exercises the claimed boundary. Review that boundary and task descriptions alongside assertions. See [test-type configuration](../configuration.md#test-types).
85
87
 
86
- TDD execution history is separate from this final-result report. When `testing.approach: tdd` is selected, `check --change NAME` also requires completed task metadata and recorded command/file snapshots, even if product evidence is disabled. A passing report cannot establish a missing red phase. See [TDD recording and completion checks](../configuration.md#test-driven-development); assertion quality and failure causes still require review.
88
+ Execution reports establish observed outcomes and revision freshness. Follow [evidence-first verification](../configuration.md#evidence-first-verification) to plan acceptance cases, assess assertion quality, and maintain tests. Historical recorder logs are preserved but no longer gate completion.
@@ -17,4 +17,4 @@ The prompt describes the task and the review boundary. The schema supplies the w
17
17
 
18
18
  During review, assess whether the agent follows the schema without additional workflow instructions, whether the scenarios cover the requested behavior, and whether uncertainties become visible before implementation. With the default testing configuration, each implementation task should include its own tests and completion check.
19
19
 
20
- The user reported that the first pilot worked. This is informal feedback; detailed pilot results have not been recorded here.
20
+ A successful copied example does not establish that an agent can implement or verify a new change. Review an agent-authored result against the requested behavior and actual evidence.
@@ -0,0 +1,84 @@
1
+ ---
2
+ type: reference
3
+ ---
4
+ # Test quality and lifecycle
5
+
6
+ These checks are included in `0.1.0`. The earlier published `0.1.0-alpha.1` does not include them. They assess case declarations and review records. You still review whether assertions prove the intended behavior.
7
+
8
+ ## Choose the checks your project needs
9
+
10
+ Coverage, effectiveness, and lifecycle each have an independent mode: `off`, `review` (the default), or `enforce`. Review produces warnings; enforce makes incomplete or invalid records blocking and requires evidence enabled. See [configuration](../configuration.md#test-quality-and-lifecycle) for defaults and overrides.
11
+
12
+ Add case tags to Node tests, alongside their existing scenario and test type:
13
+
14
+ ```js
15
+ test('parses one [COUNT-001] [Test-type: Unit] [Case: ordinary] [Coverage: positive]', () => {
16
+ assert.equal(count('1'), 1);
17
+ });
18
+ ```
19
+
20
+ Each case needs a unique kebab-case ID within its scenario and one category: `positive`, `negative`, or `boundary`. Passing distinct cases count toward configured minima. Retries, skipped tests, manual results, wrong test types, and stale evidence do not count. Missing or ambiguous tags remain visible in the report; review mode does not stop collection because of optional metadata.
21
+
22
+ ## Plan interacting cases
23
+
24
+ Some requirements depend on both the input and the selected option. Before implementation, identify those interactions and choose combinations that could expose a behavior failure. A preservation claim needs exact assertions for relevant default, disabled, and enabled paths, using content that could be changed accidentally.
25
+
26
+ For example, an optional text prefix must preserve caller content whether prefix insertion is enabled or disabled. Testing ordinary text with insertion disabled and unusual characters only with insertion enabled leaves an interaction untested. Include that content on the other relevant paths and compare the complete expected output.
27
+
28
+ Use a small table in the acceptance plan when it helps. Explain why combinations matter and disclose those left untested. Exhaustive combinations are not required, and unsupported inputs need no invented behavior. Case counts alone do not show that these interactions are covered. This is agent planning and review guidance; `check` does not infer missing combinations from test code.
29
+
30
+ ## Record what you reviewed
31
+
32
+ For a change named `add-count`, author `.cliewen-openspec/reviews/change-add-count.yaml`. For permanent specs, use `.cliewen-openspec/reviews/specs.yaml`. These are project documents, preserved by update and uninstall.
33
+
34
+ The record contains `version: 1`, matching `scope` (`{change: add-count}` or `{specs: true}`), a full Git `baseline` commit, an `inputs` mapping, and `effectiveness`, `lifecycle`, and `exceptions` lists. Unknown fields are rejected. The baseline must be available locally and an ancestor of HEAD.
35
+
36
+ Inputs map inspected paths to SHA-256 digests of Git blob bytes. Include configuration, assessed specs, change tasks when present, tests, implementation, and relevant helpers or dependency files. Use `null` for an inspected file removed by the change. Exclude the review record itself.
37
+
38
+ Lifecycle comparison reads the permanent spec set as well as the change's deltas, so include all current permanent spec files when that policy is active.
39
+
40
+ To calculate a digest, stage the intended files, then run this in your project, replacing `src/count.mjs` with an inspected path:
41
+
42
+ ```sh
43
+ git add .
44
+ node --input-type=module -e 'import {execFileSync} from "node:child_process"; import {createHash} from "node:crypto"; console.log(createHash("sha256").update(execFileSync("git", ["show", ":src/count.mjs"])).digest("hex"));'
45
+ ```
46
+
47
+ After authoring the record, commit project inputs, recollect execution evidence, and run `check` as usual. Changed declared inputs invalidate the review. Undeclared dependencies can escape this check, so review dependency completeness. Every commit still requires fresh execution evidence, including edits to review prose.
48
+
49
+ ### Assertion effectiveness
50
+
51
+ Each assessment identifies `scenario`, `cases`, `testFiles`, `sourceFiles`, `method` (`controlled-fault` or `behavior-failure`), `assertion`, `defect`, `command` (an argument list), `observation`, `failureKind`, and `status`.
52
+
53
+ Only `failureKind: behavior` with `status: reviewed` satisfies the obligation. Setup and unrelated failures do not demonstrate assertion effectiveness. Referenced test/source files must have inspected input digests; case IDs must exist in the report. One relevant experiment can cover several cases. Commands are recorded evidence and are never executed by `check`.
54
+
55
+ Choose a fault that exercises the input and path being assessed. Credit only assertions that actually fail: an enabled-path failure does not prove detection on a disabled path, and a loop that stops at its first failure does not demonstrate later assertions. Restore the intended behavior and rerun the relevant tests before collecting final evidence.
56
+
57
+ ### Test maintenance and retirement
58
+
59
+ Lifecycle entries identify `scenario`, `change` (`unchanged`, `modified`, or `retired`), `reason`, `status`, and affected `tests`. Each test declares `file`, its exact `test` name, `action` (`retain`, `update`, `remap`, or `remove`), and `remainingScenarios`. Remapping also needs `replacementScenarios` with passing evidence.
60
+
61
+ Retirement needs `retirement: {status: accepted, source: PATH}` pointing to an inspected document recording agreement. A missing criterion alone never authorizes test removal. Removing a shared test while it declares active obligations is rejected. Retain or remap those assertions instead. Out-of-scope retained obligations require review and verification with the full suite and permanent evidence; a change-scoped report does not prove their execution individually.
62
+
63
+ The checker projects added, modified, and removed requirement blocks against permanent specs, including removal blocks without scenario text. Requirement renames currently produce an unresolved-lifecycle finding; use review mode until rename projection is supported. Refactoring still needs a reviewed disposition or scoped exception for affected unchanged criteria. Review whether the impact analysis found all affected tests.
64
+
65
+ For delivery refactoring with no behavior delta, native `skip_specs: true` selects permanent scenarios for scoped execution evidence and lifecycle checks. Keep the change free of product delta files. This preserves test obligations without inventing new requirements.
66
+
67
+ ### Scoped exceptions
68
+
69
+ Exceptions declare `policy`, `scenario`, `reason`, and `status: reviewed`. Coverage exceptions also name `category`. They waive only that category minimum or the named scenario's effectiveness/lifecycle review obligation. Duplicate or unknown references are invalid. Exceptions cannot waive explicit retirement, removal of active assertions, failed execution, stale results, installation checks.
70
+
71
+ ## Resolve findings
72
+
73
+ | Finding | Action |
74
+ |---|---|
75
+ | `coverage-metadata-missing` / `coverage-case-invalid` | Correct tags and recollect results |
76
+ | `coverage-minimum-unmet` | Add meaningful cases or review a scoped exception |
77
+ | `test-review-missing` / `test-review-invalid` | Author or correct the record and commit it |
78
+ | `test-review-scope-mismatch` | Use the record matching the command |
79
+ | `test-review-stale` | Reinspect changed inputs and update their digests |
80
+ | `effectiveness-unreviewed` | Review a relevant failure or a justified exception |
81
+ | `lifecycle-unresolved` / `retirement-unaccepted` | Explain affected tests and establish retirement agreement |
82
+ | `active-test-removal` | Preserve or remap active assertions |
83
+
84
+ After archive, refresh the permanent-spec review and its input paths before claiming enforced permanent checks. Recollect evidence after committing it. Discovery-only and genuine no-delivery combined changes do not require product-quality records. A reviewed status records a claim; it cannot authenticate who approved it.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "cliewen-openspec",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0",
4
4
  "description": "OpenSpec workflows with durable decisions and behavioral evidence",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/flemming-n-larsen/cliewen-openspec.git"
9
+ "url": "git+https://github.com/cliewen-openspec/cliewen-openspec.git"
10
10
  },
11
- "homepage": "https://flemming-n-larsen.github.io/cliewen-openspec/",
11
+ "homepage": "https://cliewen-openspec.github.io/cliewen-openspec/",
12
12
  "engines": {
13
13
  "node": ">=20.19.0"
14
14
  },
@@ -24,16 +24,20 @@
24
24
  "LICENSE",
25
25
  "docs/configuration.md",
26
26
  "docs/testing/evidence.md",
27
+ "docs/testing/test-quality.md",
27
28
  "docs/testing/pilot-prompt.md"
28
29
  ],
29
30
  "scripts": {
30
- "build": "tsc",
31
+ "build": "node scripts/clean-retired-build.mjs && tsc",
31
32
  "test": "npm run build && node --test test/*.test.mjs",
32
33
  "prepack": "npm run build",
33
34
  "docs:build": "npm run build && node scripts/build-docs.mjs",
34
35
  "docs:serve": "node scripts/serve-docs.mjs",
35
36
  "docs:check": "node scripts/check-docs-browser.mjs",
36
37
  "trial:prepare": "node scripts/prepare-csv-bom-trial.mjs",
38
+ "trial:knowledge:prepare": "node scripts/prepare-knowledge-writing-trial.mjs",
39
+ "trial:quality:prepare": "node scripts/prepare-quality-lifecycle-trial.mjs",
40
+ "trial:quality:combined": "node scripts/prepare-combined-quality-trial.mjs",
37
41
  "trial:discovery": "node scripts/prepare-csv-discovery-trial.mjs",
38
42
  "eval:check": "npm run build && node scripts/check-agent-evaluation.mjs",
39
43
  "trial:all": "node scripts/prepare-csv-all-trial.mjs",
@@ -1,13 +1,9 @@
1
1
  # Tasks
2
2
 
3
- <!-- Read decision.md first. For delivery, use small implementation tasks with each task's concrete test/type/boundary and configured placement/TDD. For no-change or further-investigation, list only actual review, documentation retention, or experiment cleanup; no fake implementation or product tests. -->
4
-
5
- <!-- For delivery with testing.approach: tdd, include one fenced yaml cliewen-tasks block (version: 1, tasks keyed by every numbered checkbox ID). Each task declares method, command argument list, explicit tests/implementation file lists, and a reason for an exception. Record start and actual runs through the tdd CLI. No-delivery closure does not need this metadata or product execution history. -->
3
+ <!-- Read decision.md first. Delivery uses planned acceptance cases and verified small tasks. Investigation-only outcomes use genuine review and closure work, without invented product tests. -->
6
4
 
7
5
  ## Work and completion checks
8
6
 
9
7
  ## Final review
10
8
 
11
9
  ## Workflow follow-up
12
-
13
- <!-- Delivery: finish and verify numbered tasks, then commit, collect evidence, and run the completion check on clean final HEAD; repeat after any later commit. Keep collection and check outside numbered checkboxes and recorded task commands. Archive needs its own authorization. No delivery: preserve skip_specs: true and review the recommendation before authorized archive --skip-specs. -->
@@ -0,0 +1,7 @@
1
+ Read writing.humanizer (default auto; values auto, on, off). With off, Cliewen requests no skill discovery, use, installation suggestion, or Humanizer status; baseline writing rules and independent host mandates still apply.
2
+ With auto or on, inspect the host's exposed skills/capabilities for a usable Humanizer skill, including namespaced forms. Read and apply its instructions before claiming use. A listing or file alone does not prove invocation is permitted. Do not scan global directories or infer absence when inventory is unavailable.
3
+ A failed load of a guessed skill name without an inventory entry establishes neither detection nor absence. Report availability unknown and describe the failed invocation separately; reserve detected but inaccessible for a skill the host actually identifies. Do not combine these states into an ambiguous status.
4
+ When first handling prose under this policy, give the user one brief status per session: actually used; detected but inaccessible; confirmed absent; or availability unknown. Wait until availability and any actual application are known; do not announce an intention to use the skill and then announce its use again. Detection without application must never be reported as use. Keep the status out of project artifacts and do not repeat it in later replies.
5
+ For confirmed absence, combine a once-per-session installation suggestion with the status, linking https://github.com/blader/humanizer#installation and current host instructions. Respect an existing refusal. For unknown inventory or unavailable invocation, describe that limitation without claiming absence or successful use. On explicitly requests use but remains nonblocking when unavailable. Continue with baseline guidance in every fallback.
6
+ Never install/update skills, enable plugins, or modify global configuration automatically. Re-evaluate in a new session; no persistent machine-wide detection cache is required.
7
+ Apply the skill to all authored prose, including proposals, specs, tasks, guides, comments, docstrings, commit and PR descriptions, messages, and replies. Preserve code behavior, requirements, commands, identifiers, examples, links, and structured syntax. Check factual claims after rewriting; stylistic editing does not establish correctness. See the installed docs/configuration.md for defaults and limits.
@@ -0,0 +1,6 @@
1
+ Read learnings.enabled (default false), learnings.directory (default learnings, relative to docsRoot), and features.documentation. If learnings are disabled or documentation guidance is disabled, skip lesson retrieval and maintenance; preserve authored files.
2
+ When active, read only the collection's index first, in a separate tool call from note contents. Use its scope and status to select relevant active note paths, then open those selected files. Do not batch the index with notes, glob-read the collection, or include unselected notes in broad content searches. Filename listings are allowed. If the index lacks enough detail, ask for clarification or report that limitation; do not resolve it by reading everything. A missing index is an empty collection; do not create an empty directory or require a lesson for every task.
3
+ Skip unrelated and retired note contents during ordinary work. For an explicit lesson-maintenance task, select the affected current and historical notes from the index first; reading a retired note to review its history does not make its advice authoritative. Preserve unrelated notes.
4
+ Check applicable notes against current specs, accepted decisions, and source evidence. Tentative notes need verification; retired notes do not guide work. Even verified lessons never override current project authorities. Reference an established knowledge authority elsewhere instead of copying it.
5
+ At closure, retain only useful reusable observations. Use the installed .cliewen-openspec/templates/learning.md for new notes, while preserving existing formats and paths. Record situation, observed mistake, evidence/source, correction, scope, limits, and last verification when verified. Link the note from the existing index, or create a short README.md index with title, scope, status, and link when a first useful note exists.
6
+ Merge duplicates by linking a canonical note and retiring old ones in place with reasons. Retire stale guidance without deleting its history; promote recurring lessons into suitable tests, rules, or durable documents. Never invent evidence or turn lessons into new requirements or approval authority. This is agent guidance, not a structural or factual content validator.
@@ -1,4 +1,5 @@
1
1
  Read .cliewen-openspec/config.yaml before applying feature-specific guidance.
2
+ Before broad document reads or content searches, resolve the learning policy and select any relevant notes from their index as described below. Do not preload the learning collection as general project context.
2
3
  Disabled facilities impose no additional work.
3
4
  Read relevant existing specs, documents and accepted Decision Records.
4
5
  Never invent intent.
@@ -1,13 +1,13 @@
1
- Read testing.approach from config (default flexible).
2
- Flexible permits tests before or after code within the selected placement.
3
- For tdd, each implementation task must describe one red-green-refactor cycle: write a focused test first, run it and observe failure for the intended missing behavior, implement the minimum behavior to make it pass, then refactor while keeping relevant tests green.
4
- Fix setup, import, or syntax errors rather than treating them as the intended red result.
5
- Record the red and green commands and observed outcomes in the task completion notes; if the test already passes, report that instead of claiming a red phase.
6
- Documentation-only tasks use suitable validation rather than a forced TDD cycle.
7
- Final passing evidence alone does not prove TDD was followed.
8
- With tdd selected for delivery, tasks.md must contain one fenced `yaml cliewen-tasks` block: version: 1 and tasks keyed by every checkbox's unique numeric ID (for example "1.1"). Each entry declares method (tdd, characterization, refactor, or verification), command as an executable/argument list, tests as explicit file paths, and implementation as explicit file paths. Non-tdd methods require a reason reviewed with the task plan; configuration and tooling changes that alter behavior still need tdd. Use the installed package's docs/configuration.md Test-driven development section for the complete format and executable examples.
9
- Before changing a task's declared files, run cliewen-openspec tdd start --change <name> --task <id>. Run the declared command through cliewen-openspec tdd run --change <name> --task <id> --phase red --reason "<intended missing behavior>" -- <command and args>, then implement and record --phase green. A red run keeps its nonzero exit code; inspect its output before proceeding. Keep the tests unchanged between red and green. Record another green run after refactoring; a new test change needs another start/red/green cycle.
10
- For characterization, start before adding the test, record a passing --phase baseline against unchanged production, then --phase green after any production work. For refactor, start with existing tests, record a passing baseline, then green with unchanged tests. For verification exceptions, start before work and record --phase verify using the agreed check. List every relevant file and review the declared verification boundary.
11
- The recorder appends command output and file hashes under .cliewen-openspec/tdd/<change>.jsonl. Preserve this local history and failed attempts; do not invent or hand-edit events. Ensure tdd/ is ignored by .cliewen-openspec/.gitignore before recording; existing ignores are preserved by update. Missing history is unverified. A changed task definition needs a new start and honest verification, never a retroactive red claim.
12
- After actual task verification, mark tasks complete and run cliewen-openspec check --change <name>. In tdd mode, completion checks remain active even when product evidence is disabled. Finish task notes and commit inputs before collecting final revision-bound evidence. History does not prove failure cause or human review and does not prevent production writes. Discovery and combined no-delivery closure do not require this delivery history.
13
- Keep final revision-bound evidence collection and the completion check as untracked workflow follow-up, outside numbered checkboxes. A final verification task can record a real regression or documentation check. Do not use cliewen-openspec check as a recorded task command: it would assess its own unfinished history while the recorder is locked.
1
+ Use spec-driven development with evidence-first verification.
2
+ Before implementation, describe acceptance criteria, relevant positive/negative/boundary cases, and the observations needed for acceptance. Refine this plan when new information changes the requirements.
3
+ Plan relevant interactions between supported input content, option states, boundaries, and execution paths. For preservation claims, assert exact content across relevant default, disabled, and enabled paths using inputs that could expose unintended transformation. Select combinations by behavioral risk and record relevant untested combinations; exhaustive combinations are not required. Separate tests of each dimension do not establish their interactions.
4
+ Develop and verify small tasks. Test code may be written before, alongside, or after production code. Give each task concrete tests, commands, and a completion check; inspect actual results before proceeding. Documentation-only tasks use suitable validation.
5
+ Review assertions against specifications independently of implementation assumptions. Check effectiveness with relevant controlled faults or observed behavior failures where useful; syntax, setup, and unrelated failures are not effectiveness evidence.
6
+ Maintain tests as accepted behavior changes. Preserve shared active obligations and retire assertions only after explicit criterion retirement. Keep actual observations and limitations; never invent results.
7
+ Read testing.quality.coverage.mode, testing.quality.effectiveness.mode, and testing.lifecycle.mode independently (each defaults to review). Off skips that policy; review requests assessments and warns; enforce requires complete records and execution evidence. Follow the installed package's docs/testing/test-quality.md for formats and limits.
8
+ In review mode, disclose unresolved case/record warnings and their impact in the handoff; zero warnings is not a completion requirement. Do not disable policies or invent behavior/cases to silence findings. Enforce mode requires resolving its blocking findings. Execution failures remain blocking in either mode.
9
+ When coverage is active, tag Node cases with [Case: kebab-case-id] and [Coverage: positive|negative|boundary], retaining AC and Test-type tags. Use meaningful distinct cases and scoped reviewed exceptions where appropriate; counts do not prove assertion quality.
10
+ When effectiveness is active, inspect assertions and record relevant controlled-fault or observed behavior failures. Fix setup or unrelated failures before making effectiveness claims. Do not claim recorded status authenticates approval.
11
+ Choose faults that exercise the claimed input and execution path. Credit only the cases and assertions that actually detect the fault; passing another option state or stopping at an earlier assertion does not establish detection elsewhere.
12
+ When lifecycle is active, review affected criteria and tests against a baseline. Retain valid behavior assertions through refactoring, update accepted behavior changes, and remove obsolete assertions only after explicit accepted retirement. Preserve shared active obligations and reserved IDs. Author fresh scoped review records, commit reviewed inputs, collect final evidence, and refresh the permanent-spec review after archive. Discovery-only and genuine no-delivery changes need no product-quality records.
13
+ Finish documentation and task notes, commit reviewed inputs, then collect revision-bound evidence and run check. Later commits require fresh evidence.