0231. Discover default gate plugin checks
- Status: Accepted
- Date: 2026-11-14
- Plan: M16.6
- Review: Measurement
Context
The default gate named five plugins directly, while Rust tests check other plugins and invoke the discovering TUI runner. The tty clock fixture had no runner. Duplicating whole-plugin checks would waste compiler time; optional agent acceptance and conditional system-library tests must retain their tiers.
Decision
Discover immediate plugins/* directories whose harness.toml has
a [plugin] table in scripts/plugin-checks.py. Check all except an
explicit name-to-reason skip dictionary. Invalid TOML and check
failures fail the step, never become automatic skips. Ordinary
packages (currently agent_journal_file) are not plugins and cannot
be passed to plugin check.
Keep existing Rust and TUI runners unchanged. Their selections are not the gate's old five-name list: Rust has header probes and fixture assertions, and TUI already discovers pure libraries/generators and checks fixture formatting. Document those owners in the skip dictionary; exempt agent's optional tier and the M14-owned CLI platform explicitly. No wildcard exemptions.
Run packages sequentially, retaining plugin-local worker pools. Time newly covered plugins before enabling them; a failure or a check over 60 seconds requires an explicit documented skip instead. tty passed in 2.780 seconds with the release compiler on the audit box (0.793 seconds warm); the debug gate compiler took 5.765 seconds. Tests verify every real plugin is invoked or explicitly skipped, and that unseen synthetic plugins are invoked.
Alternatives considered
- Extend the five-name list — another plugin can silently lose coverage.
- Check every plugin again — duplicates Rust/TUI work and promotes optional agent acceptance into the default tier.
- Unify all runners now — would mix Rust header probes, TUI formatting and optional acceptance policy for no coverage gain in this scoped audit.
Consequences
New plugins get default coverage without editing the gate. The explicit skip dictionary records ownership but must be reviewed when an owning runner changes. Language semantics, diagnostics and FMT_VERSION are unchanged.