Skip to content

docs: Diataxi audit, contribution guide, and boundary violation fixes - #3

Merged
trancee merged 5 commits into
mainfrom
feature/docs-diataxi-audit
Aug 27, 2026
Merged

docs: Diataxi audit, contribution guide, and boundary violation fixes#3
trancee merged 5 commits into
mainfrom
feature/docs-diataxi-audit

Conversation

@trancee

@trancee trancee commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Audited all documentation against the Diataxi four-type framework and fixed boundary violations:

Changes:

  • Replaced duplicated quality bands and confidence tables in interpret-results.md with links to the reference doc
  • Tightened inline explanations in first-mutation-test.md and bootstrap-existing-project.md to one sentence each, with links to explanation docs
  • Created docs/how-to/contribute-documentation.md: a how-to guide for contributors covering classification, placement, writing rules, cross-referencing, and quality checklist
  • Created docs/how-to/run-checks.md: resolves dead link in scripts/check-markdown.sh
  • Added new guides to docs/index.md

All docs pass markdownlint (0 issues) and lychee (0 broken links). Full audit findings in .scratch/documentation-audit-findings.md.

Kotlin module:
- ExecutionGap data class (5 gap types: NO_OUTPUT, PARTIAL_RUN,
  COMPILATION_FAILURE, IR_TRANSFORMATION_ERROR, BACKSTOP_TIMEOUT)
- RedundantGroup data class with tests, count, failureSignature
- MutationStats.score → Double? (null when no mutations evaluable)
- MutationStats: added gaps, mutationsEvaluated, confidenceIntervalLow/High
- MutationResults: added gaps, mutationsEvaluated, CI fields, executionGaps,
  redundantGroups, mutationScore as nullable Double?
- calculateMetrics: score = killed/(total-gaps), null when denominator == 0
- wilsonInterval(): 95% Wilson score CI, clamped to [0,1]
- detectGaps(): NO_OUTPUT, PARTIAL_RUN, preserves build-level gaps
- detectRedundantTestGroups(): signature grouping, threshold >5, zombie exclusion
- assembleResults: accepts gaps + redundantGroups params

Gradle task:
- Checks JUnit XML → COMPILATION_FAILURE gap when missing
- Calls detectGaps() with stdout + build-level gaps
- Handles nullable mutationScore (N/A) in logger, logs gap count

Agent docs:
- test-auditor.md: score formula, gap/redundant reporting, JSON schema
- test-executor.md: gap detection documentation
- test-refactor-specialist.md: redundantGroups, @ParameterizedTest,
  --auto-approve gate, diff + rollback output
- test-quality-reviewer.md: modes (quick/standard/deep → maxRuns),
  --focus, --auto-approve orchestration
- SKILL.md: modes, --focus, --auto-approve flags

Tests: 35 total (18 parser + 7 serializer + 10 stats), all passing
…place markdownlint config; fix CONTEXT.md headings
Audited all documentation against the Diataxi four-type framework:

- Replaced duplicated quality bands and confidence tables in
  interpret-results.md with links to the mutation-results-format reference
- Tightened inline explanations in first-mutation-test.md and
  bootstrap-existing-project.md tutorials to one sentence each,
  with links to explanation docs
- Created docs/how-to/contribute-documentation.md: a how-to guide
  for contributors covering classification, placement, writing rules,
  cross-referencing, and quality checklist
- Created docs/how-to/run-checks.md: resolves dead link in
  scripts/check-markdown.sh
- Added new guides to docs/index.md under a Contributing section
- Saved full audit findings to .scratch/documentation-audit-findings.md

All docs pass markdownlint (0 issues) and lychee (0 broken links).
@trancee
trancee merged commit dd840bf into main Aug 27, 2026
2 checks passed
@trancee
trancee deleted the feature/docs-diataxi-audit branch August 27, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant