Skip to content

Full PHP test loop misses cleanup classifier autoload #952

Description

@chubes4

Problem

The repository-wide PHP test loop fails after the workspace tests because tests/worktree-active-no-signal-scope.php loads WorkspaceWorktreeInventoryCleanup.php without loading WorktreeCleanupCandidateClassifier.

Reproduction

for test in tests/*.php; do php "$test" || exit 1; done

Observed on current origin/main (358cbb4) and independently during the Homeboy promotion gates for #951:

Class "DataMachineCode\Workspace\WorktreeCleanupCandidateClassifier" not found
inc/Workspace/WorkspaceWorktreeInventoryCleanup.php:84

Expected

Every standalone PHP test loads its direct runtime dependencies or a shared test bootstrap so the repository-wide loop reaches all tests.

Relationship

This is unrelated to #951. Its targeted gate, php tests/workspace-command-startup-bounds.php, passes before and after rebasing onto current main.

AI assistance

  • Model: OpenAI GPT-5.6 Sol
  • Tool: OpenCode
  • Used for: reproduction, duplicate search, and issue drafting under Chris Huber's direction.

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