mnmx

Demonstrated goal

Turn named acceptance entries into a goal that requires passing evidence for each entry.

Usage

TypeScript
import { goal } from '@mnmx/engine';
import { demonstratedGoal } from '@mnmx/engine/stdlib';

const owned = goal.with({
  owner: 'team:checkout',
  nextReview: { on: 'change' },
});

export default owned(demonstratedGoal({
  id: 'routes.optional',
  acceptance: {
    'without-id': 'The route /users/:id? matches /users.',
  },
}));

A single acceptance entry supplies the statement by default. Provide statement when the goal has multiple entries. The returned spec requires zero missing demonstrations.

Evidence

Measure
Missing acceptance entries
Maximum allowed
0

Example acceptance entries

without-id
The route /users/:id? matches /users.