Principle:8beeeaaat Touchdesigner mcp Release Test Audit
| Knowledge Sources | |
|---|---|
| Domains | Testing, Release_Management |
| Last Updated | 2026-10-28 22:13 GMT |
Overview
A release-wide test coverage audit that enumerates every API/MCP surface change in the unreleased diff, maps each to the integration suite that must cover it, and reports covered/gap/weak/waived per change — broader than the per-push guard, catching gaps that accumulate across individual commits.
Description
A per-push integration-test guard catches missing tests one commit at a time, but across a full release those individual skips can add up to a real gap. This principle addresses the release-wide completeness check:
- Enumerate surface changes: list every changed file under the API/MCP surface (`src/api/**`, `src/features/tools/**`, `src/server/**`, `src/tdClient/**`, `src/transport/**`, `td/modules/mcp/**`). Files outside this set are marked N/A.
- Map to expected suite: each surface area maps to a specific integration suite (tool response shape → `mcpToolsResponse.test.ts`; client ↔ WebServer behavior → `touchDesignerClientAndWebServer.test.ts`; HTTP transport → `httpTransport.test.ts`). A change spanning two areas needs coverage in each.
- Verify real coverage: coverage is real only if the changed suite exercises the changed behavior in the same release range. A suite file touched for something else does not count. Assertion-only additions (passing without behavior working) are flagged as weak; reconciliation-style tests (compute, read back, compare) are preferred.
- Verdict table: each surface change gets a status: covered, gap, weak, or waived (with a reason matching the guard's SKIP rationale).
- Close gaps: every gap/weak row is delegated to the integration-test-guard skill to write the missing test. Re-run until all are covered or waived.
Usage
Use this principle when:
- Preparing a release and verifying all surface changes are tested.
- Checking whether the release diff "has enough tests."
- Auditing test coverage across a release range (not just one push).
Theoretical Basis
# Abstract algorithm description (NOT real implementation)
diff = git_diff(last_tag, HEAD, name_only=True)
surface_files = filter_to_api_mcp_surface(diff)
verdicts = []
for f in surface_files:
expected_suite = map_to_suite(f)
suite_changes = git_diff(last_tag, HEAD, expected_suite)
if exercises_behavior(suite_changes, f):
verdicts.append((f, expected_suite, "covered"))
elif suite_changes:
verdicts.append((f, expected_suite, "weak"))
else:
verdicts.append((f, expected_suite, "gap"))
# Close gaps via integration-test-guard skill
for f, suite, status in verdicts:
if status in ("gap", "weak"):
delegate_to_integration_test_guard(f, suite)
Practical Guide
- Start with `git diff "$LAST_TAG"..HEAD --name-only` and keep only API/MCP surface files.
- Map each to the expected suite and verify the suite changed and exercises the behavior.
- Prefer reconciliation-style tests over assertion-only tests.
- Close gaps before proceeding to the release cut — the release is not ready until every surface change is covered or explicitly waived.