Nw ad critique dimensions

From nWave-ai/nWave · View interactive version

Nw ad critique dimensions is an AI agent skill from the GitHub repository nWave-ai/nWave. Review dimensions for acceptance test quality - happy path bias, GWT compliance, business language purity, coverage completeness, walking skeleton user-centricity, priority validation, observable behavior assertions, traceability coverage, and walking skeleton boundary proof

How to use this skill

Skill file

Acceptance Test Critique Dimensions

Load when performing peer review of acceptance tests (during *handoff-develop).

Dimension 1: Happy Path Bias

Pattern: Only successful scenarios, error paths missing.

Detection: compare promised distinguishable failure/recovery outcomes with actual falsifiers. No universal error-scenario percentage; missing a promised decline/timeout/refusal/preservation outcome is the defect.

Severity: blocker (production error handling untested).

Dimension 2: Business observation structure

Verify admitted context, business stimulus and observable outcome/falsifier.

Given-When-Then is useful vocabulary, not mandatory Gherkin syntax or a required

framework. Stateful journeys may involve multiple operations when the transition

contract needs them. Severity follows a concrete ambiguous or absent observation.

Dimension 3: Business Language Purity

Pattern: Incidental implementation choices replace business observations.

Flag private classes, representations or plumbing asserted without a deliberate

contract. Native business helpers hide technical drivers where helpful.

HTTP/JSON/storage terms are valid when they are the user's actual public

protocol or promised domain, not merely forbidden words. Severity: high for

real coupling that prevents an equivalent implementation.

Dimension 4: Coverage Completeness

Pattern: User stories lack acceptance test coverage.

Validation: Map each story to scenarios | Verify all AC have corresponding tests | Confirm edge cases and boundaries tested.

Severity: blocker (unverified requirements).

Dimension 5: Walking Skeleton User-Centricity

Pattern: Walking skeletons describe technical layer connectivity instead of user value.

Detection litmus test for @walking_skeleton scenarios:

Violations: "End-to-end order flow through all layers" (technical framing) | Then "order row inserted in database" (internal side effects) | Given "database contains user record" instead of "customer has an account"

Severity: high (skeletons that only prove wiring miss the point -- first skeleton should be demo-able to stakeholder).

Dimension 6: Priority Validation

Pattern: Tests address secondary concerns while larger gaps exist.

Questions: 1. Is this the largest bottleneck? (timing data or gap analysis) | 2. Simpler alternatives considered? | 3. Constraint prioritization correct? | 4. Test design decisions data-justified?

Severity: blocker if wrong problem addressed, high if no measurement data.

Dimension 7: Observable Behavior Assertions

Pattern: Tests assert internal state or method calls instead of observable behavior.

For EVERY Then step in EVERY scenario, apply this mechanical checklist:

  1. Does the assertion check a return value from a driving port call? YES = pass, NO = flag.
  2. Does the assertion check an observable outcome (user sees X, system produces Y)? YES = pass, NO = flag.
  3. Does the assertion check internal state, private fields, or method call counts? YES = REJECT the scenario.

Concrete violations to flag:

Concrete passing assertions:

Relationship to Dim 5 (Walking Skeleton User-Centricity):

Severity: high (tests coupled to implementation break on refactoring).

Dimension 8: Traceability Coverage

Pattern: Scenarios exist without traceability to upstream wave artifacts.

Map the original agreed value and authorized scope amendments to selected

criteria, native tests/properties and falsifiers per nw-at-completeness-check.

Use actual configured authority destinations and bound headings, not hardcoded

story/environment filenames, tags or guessed defaults. Environments matter

only when selected authority promises a distinguishable observation there.

Do not infer missing coverage from absent tags; inspect the actual behavior.

What this dimension does NOT cover:

Severity: blocker for Check A (untraceable requirements), high for Check B (untested environments).

Review findings

For each finding supply:

| Fact | Content |

|---|---|

| Location | Supplied test identity, file:line or missing-obligation locator |

| Obligation | Promised outcome, criterion, boundary or test-budget obligation |

| Observation | Concrete evidence, critique dimension and severity; distinguish measured facts from uncertainty |

| Remediation | Actionable correction preserving the agreed value |

| Owner | Oracle, design, implementation or product, within the selected review scope |

For a timing finding, cite the supplied receipt and its n, median, maximum and

load, plus the applicable cap/ADR. Missing measurements stay explicit; the review

does not run native tests. Include each independently actionable coverage,

boundary, scenario or infrastructure defect instead of hiding it behind another.

Summarize the judgment, supporting observations and capability or evidence limits.

Acceptance requires sufficient evidence; uncertainty is not a passing observation.

Leave the assessed artifact unchanged and return plain findings.

Reviewer Scope Boundaries

The acceptance-designer-reviewer (Sentinel) owns Dimensions 1-10 during DISTILL.

Responsibilities that belong to OTHER reviewers (do NOT evaluate these):

If a finding touches KPI measurement or infrastructure readiness, tag it @escalate:{reviewer} in the review output and move on. Do NOT attempt to evaluate it.

Dimension 9: Walking Skeleton Boundary Proof

For walking skeleton scenarios, validate that the WS actually proves adapter wiring with real I/O.

9a: Port-Class Treatment Match

Does the WS implementation match the port-class defaults from the Architecture of Reference (nw-distill-port-treatment-policy)?

9b: Adapter Integration Coverage

Require real I/O integration for the promised adapter boundary/law when a fake

cannot distinguish it. Do not demand a separate test for every adapter merely

by inventory count; reuse adequate real observations.

9c: Walking Skeleton Fixture Tier

Walking skeleton fixtures — what adapter tier do they use?

9d: Fake-Cannot-Observe-Failure Detection

Grep for @in-memory on walking skeleton scenarios that exercise a driven-internal/local-resource port.

Dimension 10: Test Time

Measure every test in the reviewed oracle with native per-test timing over at least nine sequential runs and judge it on the median, two or more runs over the budget on the same test also being a finding (test:feedback-loop-budget in nw-cross-cutting-invariants). Reject any test above the default budgets in a feature without a granted derogation or above its feature's derogation, any infrastructure test in a feature without one, any pure sad path placed in the infrastructure suite, and any formal law without a fast executable projection in the default suite. Reviewers never grant a derogation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.