Step 2 of 8: metric core and status policy strict-v1 #3

Merged
mi merged 1 commits from step-2-metric-core into main 2026-10-01 14:14:33 +02:00
Owner

Step 2 of 8 from section 8.3 of the specification.

  • Tool-free core de.hoennig.werkcrappit.pit.core: MethodEvaluator, StrictV1 (table of 5.2), MutationCrap as an exact fraction with exceeds(limit).
  • Non-numeric states with machine-readable reasons; invalid input rejected with a concrete reason.
  • Features 01 and 02 copied from the specification into docs/features/, parsed by the Gherkin parser in a test; docs/acceptance-test-map.md maps MC-001 to MC-007.
  • The PIT run still writes the step-1 report without a score (report contract: step 5).

CI on werkator.javagil.de: green (49 s).

PR-doc: docs/prs/2026-10-01-PR#3-metric-core.md

🤖 Generated with Claude Code

Step 2 of 8 from section 8.3 of the specification. - Tool-free core `de.hoennig.werkcrappit.pit.core`: `MethodEvaluator`, `StrictV1` (table of 5.2), `MutationCrap` as an exact fraction with `exceeds(limit)`. - Non-numeric states with machine-readable reasons; invalid input rejected with a concrete reason. - Features 01 and 02 copied from the specification into `docs/features/`, parsed by the Gherkin parser in a test; `docs/acceptance-test-map.md` maps MC-001 to MC-007. - The PIT run still writes the step-1 report without a score (report contract: step 5). CI on werkator.javagil.de: green (49 s). PR-doc: `docs/prs/2026-10-01-PR#3-metric-core.md` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
mi added 1 commit 2026-10-01 14:05:13 +02:00
The tool-free core computes Mutation-CRAP as an exact fraction, so a
limit is compared without floating-point artefacts, and evaluates a
method into SCORED or a non-numeric state with machine-readable reasons.
StrictV1 is the status table of specification section 5.2.

The features 01 and 02 are copied from the specification, parsed by the
Gherkin parser in a test and mapped to their JUnit tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mi merged commit 0f21718e32 into main 2026-10-01 14:14:33 +02:00
mi deleted branch step-2-metric-core 2026-10-01 14:14:34 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mi/werkcrappit#3