Summary
Type: SPIKE — audit only; fixes spawn as follow-up items.
#2336 Area 8 ("Test-layer hardening") identified global mock shields that hid production bugs — e.g., runPreparedReply mock in src/auto-reply/reply/get-reply.test-mocks.ts silently replaced a real function with vi.fn(async () => undefined), preventing integration tests from exercising the real call chain. Analogous patterns may exist in UI tests: fixtures referencing gutted features that silently validate code paths no longer in production.
Approach
- Grep
ui/src/**/*.test.ts for gutted-feature references:
skills, Skills, agentSkills
plugin, Plugin, pluginId
thinkingLevel, chatThinkingLevel, thinkLevel
autoAllowSkills
- For each hit, classify:
Deliverable
Classified inventory. For MOCK SHIELD items, open a high-priority follow-up issue with specific integration tests to add (per #2336 Area 8 pattern). For DEAD FIXTURE items, open a cleanup issue or consolidate into one test-cleanup PR.
AC
Typed exception
SPIKE — AC is the audit inventory, not test modifications.
Context
Post-#2336 UI remnants audit. This spike extends the test-layer hardening theme from #2336 Area 8 into the UI test suite specifically.
Summary
Type: SPIKE — audit only; fixes spawn as follow-up items.
#2336 Area 8 ("Test-layer hardening") identified global mock shields that hid production bugs — e.g.,
runPreparedReplymock insrc/auto-reply/reply/get-reply.test-mocks.tssilently replaced a real function withvi.fn(async () => undefined), preventing integration tests from exercising the real call chain. Analogous patterns may exist in UI tests: fixtures referencing gutted features that silently validate code paths no longer in production.Approach
ui/src/**/*.test.tsfor gutted-feature references:skills,Skills,agentSkillsplugin,Plugin,pluginIdthinkingLevel,chatThinkingLevel,thinkLevelautoAllowSkills<think>tag stripping) — KEEP, not a remnantDeliverable
Classified inventory. For MOCK SHIELD items, open a high-priority follow-up issue with specific integration tests to add (per #2336 Area 8 pattern). For DEAD FIXTURE items, open a cleanup issue or consolidate into one test-cleanup PR.
AC
Typed exception
SPIKE — AC is the audit inventory, not test modifications.
Context
Post-#2336 UI remnants audit. This spike extends the test-layer hardening theme from #2336 Area 8 into the UI test suite specifically.