NW-DISTILL: Acceptance Test Creation and Business Validation Wave: DISTILL (wave 5 of 6)…
- User
NW-DISTILL: Acceptance Test Creation and Business Validation
Wave: DISTILL (wave 5 of 6) | Agent: Quinn (nw-acceptance-designer)
Overview
Create E2E acceptance tests from requirements|architecture|infrastructure design using Given-When-Then format. Produces executable specifications bridging business requirements and technical implementation. Infrastructure design from DEVOP informs test environment setup.
Interactive Decision Points
Decision 1: Feature Scope
Question: What is the scope of this feature? Options:
- Core feature -- primary application functionality
- Extension -- modular add-on or integration
- Bug fix -- regression tests for a known defect
Decision 2: Test Framework
Question: Which test framework to use? Options:
- pytest-bdd -- Python BDD framework
- Cucumber -- Ruby/JS BDD framework
- SpecFlow -- .NET BDD framework
- Custom -- user provides details
Decision 3: Integration Approach
Question: How should integration tests connect to services? Options:
- Real services -- test against actual running services
- Test containers -- ephemeral containers for dependencies
- Mocks for external only -- real internal, mocked external services
Decision 4: Infrastructure Testing
Question: Should acceptance tests cover infrastructure concerns? Options:
- Yes -- include CI/CD validation, deployment smoke tests
- No -- functional acceptance tests only
Context Files Required
- docs/feature/{feature-name}/discuss/requirements.md | user-stories.md
- docs/feature/{feature-name}/design/architecture-design.md | component-boundaries.md | technology-stack.md
- docs/feature/{feature-name}/deliver/* (infrastructure design from DEVOP)
Rigor Profile Integration
Before dispatching the acceptance designer, read rigor config from
.nwave/des-config.json(key:rigor). If absent, use standard defaults.agent_model: Pass asmodelparameter to Task tool. If"inherit", omitmodel(inherits from session).
Agent Invocation
Assistant
Let me gather the context needed — feature docs, existing observer-agent tests, and project test patterns.
Assistant
Now let me read the key design documents and existing test files.
Assistant
Now let me read the existing observer-agent test files and discuss requirements to understand the patterns.
Assistant
Now let me also check the discuss/requirements docs for observer-llm-reasoning and read an existing milestone test for patterns.
Assistant
Now let me read the requirements and user stories for observer-llm-reasoning.
Assistant
Now I have everything I need. Let me create the DISTILL wave artifacts — acceptance tests and documentation for observer-llm-reasoning. The key decisions based on context:
- Framework: bun:test (matches existing project)
- Integration: Real services, no mocking LLM calls (per user instruction)
- Infrastructure testing: No (functional acceptance tests only)
- Extends: Existing observer-test-kit patterns
Let me create all the files.
Assistant
Good. Now let me create the test files and documentation. I'll write them all in parallel.
Assistant
Now let me write the documentation files.
Assistant
Now let me verify the file structure is correct:
Assistant
DISTILL wave complete. Here's what was created:
Test Files (6 files, 25 scenarios)
codetests/acceptance/observer-llm-reasoning/ ├── llm-reasoning-test-kit.ts # Extends observer-test-kit with LLM helpers ├── walking-skeleton.test.ts # 2 scenarios (active `it()`) ├── milestone-1-schema-and-config.test.ts # 5 scenarios (`it.skip()`) ├── milestone-2-semantic-verification.test.ts # 7 scenarios (`it.skip()`) ├── milestone-3-decision-and-synthesis.test.ts # 6 scenarios (`it.skip()`) └── milestone-4-peer-review.test.ts # 5 scenarios (`it.skip()`)Documentation
- User
/context context
- User
commit
- User
Continue from where you left off.
- Assistant· <synthetic>
No response requested.
- User
we'll need evals as well
Assistant
Let me first understand the existing eval patterns in this project.
Assistant
Now let me read key eval files for the exact patterns.
Assistant
Let me check the observer agent's function signatures to understand what to import for the eval.
Assistant
Now let me read the verification pipeline and observer route to understand the function signatures I'll need for evals.
Assistant
Let me check the observer agent function signature.
Assistant
Now I have the full picture. The eval should test the LLM reasoning quality by calling the observer functions directly with seeded graph data. Let me also quickly check the eval-test-kit's
setupEvalRuntimereturn type.Assistant
Now I have everything I need. Let me create the eval files.
Assistant
Now let me create the scorers and the main eval file.
Assistant
Now update the types file with the observer LLM eval types.
Assistant
Now create the main eval file.
Assistant
Now let me stage everything and create the commit.
Assistant
Committed as
af834a93. Here's a summary of everything created:Acceptance Tests (25 scenarios, 6 files):
walking-skeleton.test.ts— 2 active E2E scenarios (contradiction + no-decisions)milestone-1— 5 schema/config scenarios (it.skip)milestone-2— 7 semantic verification scenarios (it.skip)milestone-3— 6 decision verification + pattern synthesis (it.skip)milestone-4— 5 peer review + cascade prevention (it.skip)
Evals (8 cases, 5 scorers, 4 files):
- 4 clear contradiction cases (deps, API, SQL injection, XML format)
- 1 clear match case (TypeScript alignment)
- 1 ambiguous case (convention vs config)
- 2 peer review cases (grounded vs ungrounded observations)
- Scorers:
verdict-accuracy,confidence-calibration,reasoning-quality,no-hallucination,factuality
Seed data:
observer-llm-reasoning-seed-data.tswith 6 decision-task pairs + 2 peer review observationsAll tests call real LLM — no mocking, per your instruction.