Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 4.94 KB

TESTING.md

File metadata and controls

45 lines (28 loc) · 4.94 KB

Testing

What's actually been verified, and what hasn't — stated plainly rather than implied.

Automated eval suite

evals/evals.json defines 4 evals. The fixture repos they run against are committed to this repo (evals/fixtures/*) and rebuilt with evals/setup-fixtures.sh, so anyone can re-run the suite — see evals/README.md for the executor/grader procedure.

Latest run (2026-07-03, against the committed fixtures, executed by four independent subagents with no knowledge of this repo's development history):

Eval What it tests Result
session-log-basic Session log against real git history (a real pagination commit) 6/6
bootstrap-fresh-project Doc Standard bootstrap in a project with no docs/ at all 5/5 — see confirmation caveat below
respect-custom-standard Deferring to a project's own DOC_STANDARD.md (custom types, fields, naming) — and documenting code over a docstring that lies 7/7
update-living-feature-doc Update-in-place for a living doc: slug match ignoring date prefix, changelog append, no duplicate file 6/6

Overall: 24/24.

Grading method: every expectation was checked directly against the fixture repo's files and git history after the run — file layout, frontmatter fields, diff content, commit hashes — not against the executor's transcript. Spot-checks included verifying that generated file:line citations actually point at the cited code (they did, exactly), and that the respect-custom-standard doc marked the fixture's false "exponential backoff" docstring ⚠️ STALE and documented the real no-delay retry loop instead of repeating the claim.

The confirmation caveat. One expectation ("the skill asked before generating docs/DOC_STANDARD.md") can only be graded from the executor's transcript, because a one-shot subagent can't pause for a live reply — the harness instructs executors to state verbatim what they would have asked, then proceed with the sensible default. Every executor did state the confirmations.

The gate has also fired in one live multi-turn session (2026-07-03, modeless /docs on this repo): the session stopped mid-task on both the mode confirmation and the bootstrap offer, the user answered (including declining the bootstrap, exercising the write-nothing-extra decline path), and only then were docs written — see docs/sessions/20260703-release-prep.md. Caveat on the caveat: the operator of that session knew the gate was the thing under test. A fresh session with an unprimed operator is the remaining, weaker gap.

An earlier run (2026-07-02, 3 evals, 16/17) used fixture repos that were never committed; it's superseded by the reproducible run above.

Manual scenarios (2026-07-02)

Three scenarios were walked through by hand against real and throwaway projects during development:

  1. Bootstrap, fresh project — now covered by the bootstrap-fresh-project eval.
  2. Existing standard file — a real project with its own protocol/DOC_STANDARD.md. Caught a real gap: the first version of the Doc Standard logic silently ignored the found file's "Naming Convention" section. Fixed in commit c8f29da; now covered by the respect-custom-standard eval.
  3. No standard file, mismatched directory structure — a real project whose docs/ was organized by audience (creator/developer/admin reading levels), not by doc type. Confirmed the "ask before formalizing an inference" guard prevents force-fitting an audience axis into a type table. Documented as a known limitation below.

What hasn't been tested

  • No cross-model verification. All eval runs used one model family. A smaller model may follow the Doc Standard's multi-branch detection logic less reliably.
  • Repeated-update drift. The update-living-feature-doc eval exercises one update cycle. Many successive updates to the same doc across sessions (accumulating changelog, section churn) haven't been tested.
  • The confirmation gate with an unprimed operator. It fired in one live multi-turn session (see above), but that session's operator knew the gate was under test.

Known limitations (by design, not oversight)

  • Audience-tiered doc systems aren't supported out of the box. A project organized by reading level (CTO / admin / developer / end-user) uses a different taxonomy axis than this skill's type-based model. The skill won't force a wrong mapping — it asks — but it won't generate a correct one on its own. The supported path is declarative: the project states its tiers as types in a DOC_STANDARD.md (Guide-Frame ships such a template as prompts/DOC_STANDARD.template.md). That path follows directly from the Doc Standard mechanism but has not itself been eval-tested yet.
  • No validation that a project's custom DOC_STANDARD.md is well-formed. If a standard file has a malformed or ambiguous Document Types table, behavior depends on how well the model can parse the intent, not on any schema check.