turborepo-fix-prune-missing-sources

Based on#12662
SegmentInvestigate-and-fix
Typebug
## Task

a user shipping a pruned monorepo to docker reported that after
`turbo prune <app>`, one of the app's source directories is just missing
from `out/`. the files are committed (not in .gitignore) and the
app needs them to build, but they don't make it into the pruned copy.
investigate and fix it so this doesn't happen.

## General instructions

- The code repo is at /repo/turborepo.
- You are inside of a Docker container. You may not be able to perform all operations you would normally be able to do on a local machine. Dependencies have not been pre-installed, and you may need to install them yourself.
- You are expected to act autonomously as a software engineer to complete tasks you are given.
- Do not stop until you feel you have completed the task and your code changes can be merged.
- You may need to use software engineering skills like analyzing the codebase, researching technologies, running services, analyzing logs, etc. to complete the task. Not all tasks will be solvable by reading source code alone.

Agent Results

AgentTastefulBasicVerifierValidationRubricBloatPractTasteCheated
Oracle
3/31.0x
Gemini 3.5 Flash
3/333.0x2.02.0
GLM-5.2
3/352.0x5.05.0
Opus 4.7
3/321.0x4.04.0
Gemini 3.1 Pro
1/31.0x5.02.0
GPT-5.4
1/316.0x4.03.0
GPT-5.5
1/319.0x4.03.0
Kimi K2.6
1/30.0x1.01.0
Opus 4.8
1/394.0x2.01.0
Sonnet 4.6
1/370.0x3.02.0
Sonnet 5
No-Op
1/3
Agent details

Verifier Tests

Gemini 3.1 Pro1/3

Taste Scores

Patch Bloat1.0x
1 agent / 1 oracle SLOC, 1 / 1 files(raw: 6.0x)
Practice Alignment — 5.0/5
4
style consistency
4
pattern adherence
5
library usage
5
abstraction level
5
documentation fit
Relative Taste — 2.0/5
4
minimality
2
approach quality
3
hygiene
2
fluency
2
craftsmanship

Agent Patch