Skip to content

check:strict is red on development: 3 psalm + 8 phpmd findings, none from recent work #8

Description

@rubenvdlinde

What

composer check:strict fails on development at HEAD. Found while running the gate on feat/session-consolidation; every finding is in a file that branch never touched, so this is the repo baseline rather than new drift.

psalm (3):

  • lib/Service/Credential/CredentialScopeResolver.php:140UnusedClosureParam: param data is never referenced
  • lib/Service/Engine/RunTraceCollector.php:153InvalidPropertyAssignmentValue on $this->steps
  • lib/Service/ScheduleService.php:1592UnusedReturnValue: private method's return value never used

phpmd (8): BooleanArgumentFlag on $dryRun / $failQuietly in Engine::processMessage, FacadeToolInvoker::__construct, ResponseGenerationHandler::generateResponse, ToolLoop::buildFunctionInfos, ScheduleService::writeRunAudit, ScheduleService::runAgentViaEngine, GitHubTemplatePushService::brokerCall, WebResearchEgressGuard::assertSafe.

Why it matters

A red gate is a gate nobody can read. Once check:strict fails by default, a genuinely new finding is indistinguishable from the baseline noise, and the reflex becomes "it's always red" — which is how the next real defect ships.

The phpmd findings are a design opinion (boolean flag arguments) that the code has consciously adopted, so they are arguably a suppression decision rather than a fix. The psalm three look like real dead code.

Suggested resolution

Decide per class: fix the psalm three, and either refactor or explicitly suppress the BooleanArgumentFlag set with a reason. Either way the gate should end green so that red means something.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions