cliewen-openspec 0.0.0-stage → 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.
- package/CHANGELOG.md +69 -0
- package/LICENSE +21 -0
- package/README.md +101 -2
- package/adapters/node-test.mjs +65 -0
- package/dist/ac.d.ts +16 -0
- package/dist/ac.js +124 -0
- package/dist/all.d.ts +1 -0
- package/dist/all.js +28 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +81 -0
- package/dist/core.d.ts +55 -0
- package/dist/core.js +651 -0
- package/dist/delivery.d.ts +1 -0
- package/dist/delivery.js +21 -0
- package/dist/discovery.d.ts +1 -0
- package/dist/discovery.js +15 -0
- package/dist/quality.d.ts +27 -0
- package/dist/quality.js +412 -0
- package/dist/schema-source.d.ts +3 -0
- package/dist/schema-source.js +9 -0
- package/docs/configuration.md +278 -0
- package/docs/testing/evidence.md +88 -0
- package/docs/testing/pilot-prompt.md +20 -0
- package/docs/testing/test-quality.md +84 -0
- package/package.json +63 -4
- package/schemas/README.md +25 -0
- package/schemas/all/instructions/apply.md +4 -0
- package/schemas/all/instructions/approval.md +4 -0
- package/schemas/all/instructions/decision.md +7 -0
- package/schemas/all/instructions/investigation.md +1 -0
- package/schemas/all/instructions/proposal.md +3 -0
- package/schemas/all/instructions/specs.md +2 -0
- package/schemas/all/instructions/tasks.md +2 -0
- package/schemas/all/templates/decision.md +20 -0
- package/schemas/all/templates/proposal.md +19 -0
- package/schemas/all/templates/tasks.md +9 -0
- package/schemas/base/instructions/diagrams.md +7 -0
- package/schemas/base/instructions/humanizer.md +7 -0
- package/schemas/base/instructions/learnings.md +6 -0
- package/schemas/base/instructions/routing.md +5 -0
- package/schemas/base/instructions/testing-approach.md +13 -0
- package/schemas/base/instructions/writing.md +24 -0
- package/schemas/base/templates/decision.md +18 -0
- package/schemas/base/templates/learning.md +19 -0
- package/schemas/delivery/instructions/apply.md +10 -0
- package/schemas/delivery/instructions/design.md +9 -0
- package/schemas/delivery/instructions/proposal.md +3 -0
- package/schemas/delivery/instructions/specs.md +11 -0
- package/schemas/delivery/instructions/tasks.md +13 -0
- package/schemas/delivery/templates/design.md +9 -0
- package/schemas/delivery/templates/proposal.md +13 -0
- package/schemas/delivery/templates/spec.md +13 -0
- package/schemas/delivery/templates/tasks.md +17 -0
- package/schemas/discovery/instructions/apply.md +5 -0
- package/schemas/discovery/instructions/decision.md +7 -0
- package/schemas/discovery/instructions/investigation.md +8 -0
- package/schemas/discovery/instructions/proposal.md +4 -0
- package/schemas/discovery/templates/decision.md +17 -0
- package/schemas/discovery/templates/investigation.md +11 -0
- package/schemas/discovery/templates/proposal.md +9 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: decision
|
|
3
|
+
status: proposed
|
|
4
|
+
outcome: further-investigation
|
|
5
|
+
---
|
|
6
|
+
# Outcome and chosen approach
|
|
7
|
+
|
|
8
|
+
## Recommendation and reasoning
|
|
9
|
+
|
|
10
|
+
## Approach and alternatives
|
|
11
|
+
|
|
12
|
+
<!-- Link investigation findings rather than copy them. This is the design source. -->
|
|
13
|
+
|
|
14
|
+
## Risks and verification
|
|
15
|
+
|
|
16
|
+
## Approval and remaining uncertainty
|
|
17
|
+
|
|
18
|
+
<!-- Record actual human agreement and its scope before accepted status. Until then preserve the AC registry/mappings and leave draft IDs unassigned. Implementation approval does not authorize archive, push, or an external PR. -->
|
|
19
|
+
|
|
20
|
+
## Durable record and follow-up
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Proposal
|
|
2
|
+
|
|
3
|
+
## Why
|
|
4
|
+
|
|
5
|
+
## Question, scope, and investigation limits
|
|
6
|
+
|
|
7
|
+
## Decision criteria
|
|
8
|
+
|
|
9
|
+
## What Changes
|
|
10
|
+
|
|
11
|
+
<!-- Update after investigation; no delivery is a valid outcome. -->
|
|
12
|
+
|
|
13
|
+
## Capabilities
|
|
14
|
+
|
|
15
|
+
### New Capabilities
|
|
16
|
+
|
|
17
|
+
### Modified Capabilities
|
|
18
|
+
|
|
19
|
+
## Impact
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Tasks
|
|
2
|
+
|
|
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. -->
|
|
4
|
+
|
|
5
|
+
## Work and completion checks
|
|
6
|
+
|
|
7
|
+
## Final review
|
|
8
|
+
|
|
9
|
+
## Workflow follow-up
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
When features.mermaid is enabled (default true), prefer embedded Mermaid for sequences, states, dependencies, and workflows when a diagram explains them more clearly than prose.
|
|
2
|
+
Use ASCII or plain text in fenced text blocks when clearer, especially for file and directory trees and small sketches, or when Mermaid cannot render.
|
|
3
|
+
Plain text remains available when Mermaid guidance is disabled.
|
|
4
|
+
Keep a short explanation beside diagrams and maintain one authoritative representation with the surrounding text.
|
|
5
|
+
Prefer informative illustrations or diagrams when they replace a longer explanation; include a concise caption or accessible description of the main point without repeating every detail in prose.
|
|
6
|
+
Preserve useful existing project conventions.
|
|
7
|
+
Do not require a diagram when prose or a table is clearer.
|
|
@@ -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.
|
|
@@ -0,0 +1,5 @@
|
|
|
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.
|
|
3
|
+
Disabled facilities impose no additional work.
|
|
4
|
+
Read relevant existing specs, documents and accepted Decision Records.
|
|
5
|
+
Never invent intent.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
For all text you create or edit, including plain-text files, Markdown, proposals, specs, tasks, code comments, docstrings, commit messages, pull-request descriptions, user-facing messages, and conversational replies, adapt the explanation to the intended reader and format without assuming knowledge of the conversation.
|
|
2
|
+
Lead change descriptions with the problem, resulting behavior, and practical impact.
|
|
3
|
+
Use plain language, concrete examples, and only details needed to understand behavior, constraints, risks, or tradeoffs.
|
|
4
|
+
Write natural prose using the fewest words that preserve meaning and required detail, whether or not a writing skill is available.
|
|
5
|
+
Explain unfamiliar terms.
|
|
6
|
+
Link references with their ID and descriptive title, and explain their relevance when needed; avoid unexplained IDs.
|
|
7
|
+
For example, write "Decision 002: Distinguish the shared base from selectable workflows", not just "Decision 002"; preserve exact IDs in machine-readable fields.
|
|
8
|
+
State each fact once and link to supporting detail.
|
|
9
|
+
Remove filler and repetition without losing requirements, acceptance criteria, important exceptions, or required artifact sections.
|
|
10
|
+
Code comments explain intent, constraints, or surprising behavior instead of restating code.
|
|
11
|
+
Commit messages summarize the concrete change, adding rationale or consequences in the body when useful.
|
|
12
|
+
Use diagrams only where the format supports them and they improve understanding.
|
|
13
|
+
Preserve code behavior, structured data, required syntax, and exact identifiers.
|
|
14
|
+
Apply the same diagram guidance across these texts.
|
|
15
|
+
For PR descriptions, include relevant validation and limitations.
|
|
16
|
+
Before handing off authored or edited documents, resolve local Markdown links relative to each containing file, verify existing targets and any fragments with available link/render checks, and correct broken links. A proposal under openspec/changes/CHANGE/ reaches project-root docs/ with ../../../docs/, not ../../../../docs/. Describe planned files as planned paths until they exist instead of making broken links. Report the checks actually run and any unchecked link limits; passing tests alone does not validate document links.
|
|
17
|
+
Check documented defaults, allowed inputs, and examples against the implementation and accepted requirements. Exercise the examples and boundary values covered by a claim; correct contradictions before finishing.
|
|
18
|
+
Distinguish the accepted contract from observed behavior on a particular runtime. Before claiming that an input cannot work based on an implementation detail, probe a relevant counterexample or state that the restriction is unverified.
|
|
19
|
+
Describe values at the boundary actually checked: producing text does not establish its encoded bytes or downstream behavior.
|
|
20
|
+
Name the verification command actually run and what it establishes. Artifact validation, installation health, test execution, and assertion review check different things; do not substitute one result for another.
|
|
21
|
+
For unspecified inputs or unverified behavior, state the limit instead of promising an outcome.
|
|
22
|
+
Ground motivation and problem claims in the request, inspected project sources, or observed results. Mark an unverified hypothesis explicitly; do not turn plausible background knowledge into an observed project problem.
|
|
23
|
+
When a request only asks for an option or capability, that request is sufficient motivation. Do not attribute consumer failures, business needs, or other inferred reasons to the requester. Label relevant technical background as unverified context rather than as a reported project defect or the requester's stated reason.
|
|
24
|
+
Review clarity and brevity before finishing; do not impose a fixed word limit.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: decision
|
|
3
|
+
category: architecture
|
|
4
|
+
status: proposed
|
|
5
|
+
---
|
|
6
|
+
# <Decision title>
|
|
7
|
+
|
|
8
|
+
## Context
|
|
9
|
+
|
|
10
|
+
## Considered options
|
|
11
|
+
|
|
12
|
+
## Decision
|
|
13
|
+
|
|
14
|
+
## Consequences
|
|
15
|
+
|
|
16
|
+
## Related records
|
|
17
|
+
|
|
18
|
+
<!-- Link superseding/superseded records here. Human agreement is required for accepted status. -->
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: learning
|
|
3
|
+
status: tentative
|
|
4
|
+
scope: []
|
|
5
|
+
lastVerified: null
|
|
6
|
+
---
|
|
7
|
+
# <Lesson title>
|
|
8
|
+
|
|
9
|
+
## Situation and observation
|
|
10
|
+
|
|
11
|
+
<!-- State the reusable mistake or finding and its scope, not a session transcript. -->
|
|
12
|
+
|
|
13
|
+
## Evidence and correction
|
|
14
|
+
|
|
15
|
+
<!-- Link inspected sources or observations, explain the correction, and state limits. -->
|
|
16
|
+
|
|
17
|
+
## Maintenance
|
|
18
|
+
|
|
19
|
+
<!-- Verify before marking verified and recording lastVerified as YYYY-MM-DD. Retire obsolete or duplicate guidance in place with a reason and replacement link. Current specs and accepted decisions remain authoritative. -->
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Implement tasks and maintain relevant documents. ${testingApproach} Follow testing.placement (default per-task): run each implementation task's relevant tests and fix failures before moving on.
|
|
2
|
+
End-of-change defers the automated suite to final verification; still perform a suitable check for each task before proceeding.
|
|
3
|
+
Final regression and revision-bound evidence collection still follow implementation in either mode.
|
|
4
|
+
With evidence enabled, run project tests and cliewen-openspec check --change <name> before archive.
|
|
5
|
+
With the Node reference adapter, collect using node node_modules/cliewen-openspec/adapters/node-test.mjs --change <name> <test files> to scope results while preserving the full runner exit code. Pass the same change to check. After archive, commit and recollect without the adapter's --change before checking permanent specs.
|
|
6
|
+
With evidence enabled, finish documentation, task notes, results, and any PR draft before the final commit, then collect and check on that clean HEAD. Keep collection logs outside tracked/untracked project inputs, for example in a project-local ignored directory.
|
|
7
|
+
After collection, any later commit, including documentation-only or metadata changes, makes earlier evidence stale. Recollect and rerun check after the last commit; report the tested revision and actual final check result in the handoff.
|
|
8
|
+
Archive requires its own authorization; do not infer it from implementation approval or a passing check.
|
|
9
|
+
A successful traceability check does not establish assertion quality.
|
|
10
|
+
Never mark missing or stale evidence as passed.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Describe approach and alternatives.
|
|
2
|
+
When decisions are enabled, use .cliewen-openspec/templates/decision.md for future-shaping choices in docs/decisions with type: decision, category and proposed status.
|
|
3
|
+
For new projects, name new decision files NNN-short-title.md with a sequential number padded to at least three digits (001, 002, ...).
|
|
4
|
+
In existing projects, follow the established naming convention and ID authority.
|
|
5
|
+
Never rename, move, or renumber existing document files to normalize naming, titles, categories, or padding: external links may depend on their exact paths.
|
|
6
|
+
Only human agreement permits accepted status.
|
|
7
|
+
Use configured docsRoot instead of docs when set.
|
|
8
|
+
Link existing decisions instead of restating them.
|
|
9
|
+
For simple changes state that no new design or DR is needed.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Use OpenSpec ADDED/MODIFIED/REMOVED/RENAMED Requirements sections, ### Requirement and #### Scenario headings with WHEN/THEN steps.
|
|
2
|
+
New capabilities need a meaningful ## Purpose.
|
|
3
|
+
MODIFIED must copy the entire existing requirement and all scenarios.
|
|
4
|
+
With evidence enabled, preserve stable bracketed AC IDs and Test-type.
|
|
5
|
+
Each scenario requires exactly one Test-type line using a name from testing.types (defaults Unit, Integration, E2E); configured types replace the defaults. Read their descriptions and choose the required verification boundary. Do not assume one type substitutes for another.
|
|
6
|
+
Use ac.capabilities in config to map the OpenSpec capability name (its specs directory name) to a stable prefix, such as EXPORT or EXP.
|
|
7
|
+
Register new capability mappings before allocating with cliewen-openspec ac next --capability NAME.
|
|
8
|
+
Choose a recognizable abbreviation with the user if it is not established; never silently assign an existing or historical prefix to another capability.
|
|
9
|
+
Use ac.padding (default 3).
|
|
10
|
+
Rename established prefixes only with cliewen-openspec ac rename-prefix CAPABILITY PREFIX; the sequence continues and old IDs remain unchanged.
|
|
11
|
+
Changed meaning needs review and a new ID; do not renumber wording edits.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Use - [ ] numbered tasks, each with a completion check. ${testingApproach} Read testing.placement from config; the default is per-task.
|
|
2
|
+
In per-task mode, every implementation task must include its own relevant tests, test command and completion check: complete a small slice with planned acceptance cases and actual verification, run its tests, fix failures, then proceed to the next task.
|
|
3
|
+
Do not defer these tests to a final testing phase.
|
|
4
|
+
Documentation-only tasks may use an appropriate validation check instead.
|
|
5
|
+
In end-of-change mode, group the automated suite in a final verification section with explicit task-to-test links; each task still needs a suitable completion check before continuing.
|
|
6
|
+
Include relevant documentation with each task.
|
|
7
|
+
Identify the concrete test, its configured type, and the verification boundary for each implementation task. With the Node adapter, tag mapped test titles with one AC ID and one [Test-type: NAME] tag matching the scenario. Other adapters must export the declared type as testType.
|
|
8
|
+
With evidence enabled, name the AC IDs served and record execution outcomes for the tested revision.
|
|
9
|
+
Review whether assertions prove the scenario at the declared boundary, including relevant negative and boundary cases.
|
|
10
|
+
Separate review is optional.
|
|
11
|
+
Do not require post-implementation evidence before implementation.
|
|
12
|
+
Archive is an untracked follow-up.
|
|
13
|
+
After writing tasks and before executing them, retrieve the active change's OpenSpec apply instructions with --json and read their contextFiles. Artifact-generation instructions do not replace apply instructions. If apply is blocked, resolve its prerequisites and retrieve it again before work; retain the response when the project requires instruction records.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Tasks
|
|
2
|
+
|
|
3
|
+
<!-- Use evidence-first verification: plan acceptance cases before implementation, verify each task, assess assertion effectiveness, and maintain tests against accepted requirements. -->
|
|
4
|
+
|
|
5
|
+
## 1. Implementation
|
|
6
|
+
|
|
7
|
+
- [ ] 1.1 Complete one small behavior slice and its relevant tests with evidence-first verification; name the AC IDs, run <test command>, fix failures, and update relevant documentation before continuing.
|
|
8
|
+
- [ ] 1.2 Complete the next behavior slice and its relevant tests with evidence-first verification; name the AC IDs, run <test command>, and fix failures before continuing.
|
|
9
|
+
|
|
10
|
+
## 2. Final verification
|
|
11
|
+
|
|
12
|
+
- [ ] 2.1 Finish documentation and result notes, run the final regression command, and review assertion quality. This supplements each task's tests.
|
|
13
|
+
|
|
14
|
+
## Workflow follow-up
|
|
15
|
+
|
|
16
|
+
- After verified tasks are complete, commit project inputs, collect evidence when enabled, and run check on clean final HEAD. Recollect and check again after any later commit. Keep evidence collection and the completion check outside numbered checkboxes and recorded task commands.
|
|
17
|
+
- Review evidence; archive only when authorized after project requirements are satisfied.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Review and close the investigation or prepare its handoff. This workflow does not authorize production implementation.
|
|
2
|
+
Review sources, actual experiment observations, unresolved uncertainty, recommendation, and human decision status. Preserve proposed status until a human agrees.
|
|
3
|
+
It is valid to end with no code change. If delivery is agreed, create a separate cliewen-delivery change and link the investigation and decision.
|
|
4
|
+
Before archive, preserve useful durable knowledge and resolve any temporary experiment cleanup. Use OpenSpec archive with --skip-specs after human review when no product spec deltas are intended.
|
|
5
|
+
Cliewen check --change on a discovery change checks installation and registry health only and reports discovery-review-required; it does not validate investigation completeness or product test evidence.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Summarize the recommendation and reasoning, linking to the investigation evidence instead of copying it.
|
|
2
|
+
Record status proposed until a human agrees; do not infer acceptance from completing artifacts.
|
|
3
|
+
Choose an explicit outcome: delivery handoff, no change, or further investigation. Explain remaining uncertainty and consequences.
|
|
4
|
+
For delivery, describe the intended behavior, constraints, open questions, and links to carry into a separate cliewen-delivery change; do not silently change this change's schema or invent an implementation plan.
|
|
5
|
+
For no change, explain why the current system is sufficient and any condition that would reopen the question.
|
|
6
|
+
When decisions are enabled and the choice matters beyond this investigation, create or update a durable record under configured docsRoot/decisions using the shared Decision Record template. Preserve existing filenames and ID authorities; for new projects use sequential filenames padded to at least three digits. Link to the authoritative record and preserve human acceptance requirements.
|
|
7
|
+
Disabling decisions removes the extra durable-record work, not this artifact from the schema graph.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Compare plausible alternatives, including keeping the existing system when relevant.
|
|
2
|
+
Consider extending an existing API alongside replacing it; do not assume an additive option requires rewriting existing callers or tests.
|
|
3
|
+
Distinguish facts, hypotheses, observed results, and remaining uncertainty.
|
|
4
|
+
With evidence enabled, record sources and actual experiments: command or method, input or revision, observed outcome, and limitations. Label experiments not run and explain why; never invent observations.
|
|
5
|
+
Check that the measuring method actually observes the claimed quantity before using its numbers. For example, an interval cannot sample heap during synchronous work that blocks the event loop; verify that samples were taken during the operation.
|
|
6
|
+
Distinguish peak memory from retained memory after garbage collection. If a measurement is invalid, report that quantity as unmeasured and revise conclusions that depended on it; an approximate label does not make it valid.
|
|
7
|
+
Keep experiments isolated and respect the proposal's limits. Obtain agreement before production changes, purchases, or external actions outside the authorized investigation.
|
|
8
|
+
Discovery evidence supports a recommendation, not claims about unimplemented product behavior. Preserve existing AC identities and product specs.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
State the question to investigate, why it matters, constraints, and what is outside scope.
|
|
2
|
+
Define what information would support a decision and time or cost limits for the investigation; ask the user for material limits that are missing instead of inventing them.
|
|
3
|
+
Identify existing specs, relevant documents, and decisions by descriptive links.
|
|
4
|
+
Do not promise a production change or allocate behavioral AC IDs for unanswered questions.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: decision
|
|
3
|
+
status: proposed
|
|
4
|
+
---
|
|
5
|
+
# Investigation recommendation
|
|
6
|
+
|
|
7
|
+
## Outcome and reasoning
|
|
8
|
+
|
|
9
|
+
<!-- Choose delivery handoff, no change, or further investigation. -->
|
|
10
|
+
|
|
11
|
+
## Evidence and remaining uncertainty
|
|
12
|
+
|
|
13
|
+
## Consequences and follow-up
|
|
14
|
+
|
|
15
|
+
## Durable record
|
|
16
|
+
|
|
17
|
+
<!-- Link a useful durable record when decisions are enabled; otherwise explain why none is needed. Human agreement is required for acceptance. -->
|