Skip to content

hallucinationGuard.enabledChecks is dead config on the executor path #386

Description

@ceilf6

Problem

AgentConfig.hallucinationGuard.checks is only consulted by HallucinationGuard.validate(). The executor never calls that method — it calls validateFilePath() and validateCode() (packages/core/src/executor/executor.ts), and both bypass enabledChecks entirely (packages/hallucination-guard/src/guard.ts).

Impact

  • The guard cannot be disabled through the documented configuration surface.
  • Any ablation/benchmark that toggles enabledChecks silently measures nothing. This invalidated the guard arm of the SDD ablation benchmark (benchmarks/results/2026-07-12-sdd-ablation.md).

Fix

Have validateFilePath() / validateCode() honor enabledChecks (skip the corresponding check when disabled), so the guard is genuinely configurable and ablatable. Add a test that a fully-disabled guard performs no checks on the executor path.

Found by the frozen 30-task ablation benchmark.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions