The autopilot suite records a 6000×4000 frame while the JPEG stays 600 px, so the run does not time out and the planner still sees a file above the 2400 px delivery floor.
PHOTO_W and PHOTO_H were already read and had no definition. A full-size file keeps a sharper frame ahead of a soft one, and a learnt crop narrower than the one before it.
Test plan
cd apps/api && vitest run --config vitest.unit.config.ts src/composition/planFrame.test.ts
CI pnpm -r test on this pull request: the four autopilot cases (sharpest burst, only the best, two clients, learnt crop) pass.
## Summary
- The autopilot suite records a 6000×4000 frame while the JPEG stays 600 px, so the run does not time out and the planner still sees a file above the 2400 px delivery floor.
- `PHOTO_W` and `PHOTO_H` were already read and had no definition. A full-size file keeps a sharper frame ahead of a soft one, and a learnt crop narrower than the one before it.
## Test plan
- `cd apps/api && vitest run --config vitest.unit.config.ts src/composition/planFrame.test.ts`
- CI `pnpm -r test` on this pull request: the four autopilot cases (sharpest burst, only the best, two clients, learnt crop) pass.
The suite keeps a 600 px JPEG so it does not time out, and the planner reads 6000×4000. That clears the delivery floor, so focus still ranks a burst and a learnt crop stays tighter. Those names were used before they existed.
Paperclip-Issue: BIT-33293
The recorded cut is refused so the player stays whole, and the scale is what still narrows the frame. The gallery tests get a longer budget now that each frame is actually planned.
Paperclip-Issue: BIT-33293
spark
merged commit e731e48cb8 into main2026-11-25 01:30:43 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
PHOTO_WandPHOTO_Hwere already read and had no definition. A full-size file keeps a sharper frame ahead of a soft one, and a learnt crop narrower than the one before it.Test plan
cd apps/api && vitest run --config vitest.unit.config.ts src/composition/planFrame.test.tspnpm -r teston this pull request: the four autopilot cases (sharpest burst, only the best, two clients, learnt crop) pass.