Skip to content

e2e-phase4 red since Tier 3 review gates: harness-relative tool paths fail in fixture worktrees #200

Done

Description

@w4ffl35

Problem

bash scripts/e2e-phase4/run.sh fails in sections 4/9/10/11 with [orchestrate] AUTOMATIC FAIL: w1's worktree failed the review quality gates. Root cause is in src/orchestrator/review-gates.ts (Tier 3, added for #137, newer than the e2e script which was never updated for it):

  • runTypeAndTests runs node_modules/typescript/bin/tsc --noEmit and runCheckerGates runs node_modules/tsx/dist/cli.mjs scripts/check-architecture.mjs, both as paths relative to the worker worktree cwd.
  • The e2e fixture is a bare scratch repo with no node_modules, so every gate dies with MODULE_NOT_FOUND .../.worktrees/w1/node_modules/tsx/dist/cli.mjs before any review/QA/deploy logic runs.

Verified live: the exact MODULE_NOT_FOUND trace in the e2e log; the fixture setup installs no dependencies; review-gates.ts has one commit (#137) while run.sh predates it. Unrelated to the deploy-gate removal — the deploy sections (standalone run, path safety, missing script) pass.

Fix direction (proposal, not prescribed)

Resolve harness-owned tools (tsc, tsx, checker scripts) against the harness root instead of the target worktree cwd, and decide what tsc --noEmit with no target tsconfig should mean (currently it would still fail the fixture with no inputs). Alternatively teach the e2e fixture to vendor a minimal toolchain. Either way the Tier 3 design (built for headlesscode-on-headlesscode) needs an explicit story for dependency-free target repos.

Acceptance

  • bash scripts/e2e-phase4/run.sh passes end to end again (currently 13/24 with sections 8 green).
  • No behavior change for real repos whose worktrees carry their own toolchain.

Activity

  1. added
    bug
    help wanted
    on Nov 29, 2026
  2. w4ffl35 commented on Dec 6, 2026

    @w4ffl35
    MemberAuthor

    Partially done in PR #205 (commit 733646e): harness-owned gate tools now resolve against HARNESS_ROOT and bare-JS fixtures skip type/tests. e2e-phase4 is still red, but the remaining failure is NOT the #200 MODULE_NOT_FOUND bug — gates now run and report 'tsc/tests skipped: no testable files', then fail on 60 NEW check-standards + 13 NEW check-architecture findings that exist on clean origin/master (verified with branch changes stashed; drift comes from #193 mcp-prompts files, baseline not regenerated). Needs a follow-up: regenerate the two baselines for the #193 drift (out of scope for w11). Leaving open for that follow-up.

  3. added a commit that references this issue on Dec 6, 2026
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

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions