Skip to content

packages/core/REFACTORING_SUMMARY.md section 5 claims config validation that never ran, and now describes a retired mechanism #12688

Description

@claude

Found while executing #11982 / #12587 (the ADR-0049 PluginMetadata retirements). Filed unassigned as a finding, not fixed there — the file is outside both cards' ruled scope and declared file surface.

packages/core/REFACTORING_SUMMARY.md is a historical refactoring record. Its section 5 ("Configuration Validation") states:

  • "Integrated PluginConfigValidator (Zod-based) into PluginLoader."
  • "validatePluginConfig now performs actual schema validation against plugin.configSchema."

The second sentence was false when written — #11982 measured that the loader's only call site passed no config, so the early return always fired and no validation ever ran. And after the 2026-08-27 ruling (Option B on both cards, recorded in ADR-0025 section 3.7), both sentences name a mechanism that no longer exists: PluginConfigValidator, createPluginConfigValidator and PluginMetadata.configSchema are retired.

Why it is worth a card rather than a shrug: it is the same misleading-docs shape the #11982 ruling explicitly killed in ADVANCED_FEATURES.md ("Config is validated before init is called") — a doc sentence promising a validation capability the runtime does not deliver, exactly what an AI author reading packages/core docs would take as proof the capability exists.

Decision for triage, not prejudged:

  • delete section 5 (the rest of the file describes refactorings that still exist), or
  • annotate the file as a superseded historical record, or
  • retire the whole file if per-refactoring summaries are not meant to outlive their subject.

Related: #11982, #12587 (the retirement PR carries the code-side removals), ADR-0025 section 3.7 (the retirement record).


Generated by Claude Code

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions