plateprocess.dev · PLATE release v0.12.0

Test Classification Inventory


title: Research: Test Classification & Feature-Proof Inventory for Test Coverage Audit (Epic #350) issue: 361 epic: 350 status: in-progress

Research: Test Classification & Feature-Proof Inventory (Epic #350)

Issue: #361 (Research child of Epic #350 "Test Coverage Audit")

Conducted by: Grok (autonomous progress on Epic #350)

Date: 2026-06-06 (initial skeleton) + follow-on deep pass

Status: In progress (deep inventory complete for core + e2e; classification taxonomy defined; gaps prioritized; initial convention draft; examples started in parallel with Design child #362)

Summary / Answer to the Informational Goal

Tests are the single source of truth for implemented features and capabilities. This Research delivers:

The inventory confirms strong dogfooding (most Epic/Feature-named tests are feature-proof), but incomplete bidirectional links and several high-visibility gaps in the beta roadmap claims (planning engine, full contemplation contract, etc.).

See the sibling audit report for the summarized tables; this doc provides the detailed rationale, taxonomy, and research outputs.

Classification Taxonomy

Borderline cases (e.g., a test for a stub implementation) are called out with rationale; human Q&A may be used for final calls.

Inventory Highlights (Deep Pass Additions)

Core Python (additions beyond skeleton broad pass; see audit report for full table):

E2E / Harness: See audit report (plugin-structure is the strongest feature-proof for CLI-agnostic + catalog claims; others support host flows and harness maintenance).

tests/README.md: Core process claim (evidence model: Unit/Integration/E2E/Regression/Manual + "link to the tests... that prove it"). Feature-proof for the philosophy; should be referenced from AGENTS and design conventions.

Full cross-refs and per-test notes are maintained in the living docs/audits/test-coverage-audit-initial-inventory-2026-06-06.md (expanded during this Research).

Key Documented Claims (Sampled + Evidence Sections)

(Expanded from skeleton using design grep + source reads.)

Prioritized Gaps (Actionable for #364 + follow-ups)

  1. Interactive epic planning (high): _plan_epic_stub + test only prove the stub interface + schema (SPEC explicitly flags as to-be-replaced with full flow, child stubs, SESSION_STATE, Q&A integration). No test for the "guided interactive" behavior described in AGENTS and beta roadmap.
  2. Contemplation v2 full contract (high): Partial in test_contemplation.py + curiosity_answers. Missing full coverage per docs/design/contemplation-engine-contract.md + its research enumeration (transcript for all types, complete artifact creation, strict verified closure, integration with plan_epic state).
  3. Bidirectional links + Evidence convention (high, owned by #362 + this Research): Inconsistent application across ~20 design docs. Few tests explicitly declare the claim (via docstring or module comment).
  4. E2E compound flows (medium): Strong for structure/catalog; thin for full babysit (branch update strategies + resolve), release ceremony end-to-end, Q&A+contemplate loop producing artifacts.
  5. Template payload / adopter claims (medium): Mirrored harness + docs claim inheritance of capabilities; supporting cutover tests but no full matrix audit like the root one.
  6. Tooling / repeatability (medium-high, owned by #363): No plate_*_audit surface yet; manual today.
  7. Lower: Some observability (costs), deeper CLI, migration guards, github_client resilience (where not explicitly claimed as feature).

See the audit report for the living prioritized list + mappings back to specific claims/tests.

Draft Convention for Acceptance Evidence (for #362)

Recommended format (to be refined in Design #362 and applied):

## Acceptance Evidence

- Design/research artifact committed and referenced from the Epic/parent.
- Proving tests: 
  - `tests/test_foo.py:TestBar.test_baz` (core contract + citation logic)
  - `tests/e2e/plugin-structure.spec.ts` (CLI-agnostic surface)
  - (See `docs/audits/test-coverage-audit-*.md` and Research #361 classification matrix for full bidirectional cross-refs.)
- Evidence in implementing PR(s) + fragment(s) under `.agentic/releases/unreleased/` (for process changes).
- All tests (unit + relevant e2e) + doc updates pass; manual dry-run of the described flow succeeds.
- Updated AGENTS.md / tests/README.md / agent guidance / catalog as required.
- No unresolved `need:*` on the parent (or explicitly accepted).

Update the design template (docs/design/README.md) and audit-report-template.md.

Example applications started in this pass (more in #362): contemplation-engine-contract.md, release-ceremony-refinement.md (already good), etc.

Research Outputs & Traceability

This Research closes the "inventory + classification first" directive from the Epic planning session. No major blockers encountered yet (classifications are evidence-based with explicit rationale for partials/borderlines). Specific Q&A may be raised for edge cases or priority ordering in #364.

Next autonomous step: Apply initial convention examples to 2-3 docs (feeding #362), then move to implementing the tooling skeleton in #363 (grounded in the matrix) or specific small gap closures if low-risk. When human input needed on classification edge cases or gap priorities, interactive Q&A will be engaged per the qanda process (Question issue or direct here).

Closes #361 (upon PR with the artifacts + any convention examples).