GET /api/schedules/{id}/items now returns ProgramScheduleItemsWithDurationViewModel: the items plus per-item durationEstimate and totalDurationEstimate (intentional shape change per #111; nothing on main consumed the old array shape).
Estimate semantics: One → average positive playout duration of the referenced plain collection; Multiple Count → average × count (expression-based counts → null); Multiple CollectionSize → total collection duration; Duration → explicit playoutDuration; Flood / smart / multi / playlist / search references → null (unknown). Aggregation reuses GetDurationForPlayout() semantics incl. the remote-stream fallback.
Implemented by the Codex session; handler/controller tests included; v1.json regenerated (nullable durationEstimate correctly emitted as ["null","string"]).
Adversarial review verdict
Mergeable as-is — no blockers/majors. Minors noted and deferred: Count="0" reports null rather than a knowable 0; per-collection full materialization (fine for an interactive GET, SQL aggregate if this ever gets polled). The one suggested doc fix (expression counts → null) is applied in the follow-up commit.
## Endpoint change
`GET /api/schedules/{id}/items` now returns `ProgramScheduleItemsWithDurationViewModel`: the items plus per-item `durationEstimate` and `totalDurationEstimate` (intentional shape change per #111; nothing on main consumed the old array shape).
Estimate semantics: One → average positive playout duration of the referenced plain collection; Multiple Count → average × count (expression-based counts → null); Multiple CollectionSize → total collection duration; Duration → explicit `playoutDuration`; Flood / smart / multi / playlist / search references → null (unknown). Aggregation reuses `GetDurationForPlayout()` semantics incl. the remote-stream fallback.
Implemented by the Codex session; handler/controller tests included; `v1.json` regenerated (nullable `durationEstimate` correctly emitted as `["null","string"]`).
## Adversarial review verdict
**Mergeable as-is** — no blockers/majors. Minors noted and deferred: `Count="0"` reports null rather than a knowable 0; per-collection full materialization (fine for an interactive GET, SQL aggregate if this ever gets polled). The one suggested doc fix (expression counts → null) is applied in the follow-up commit.
fixes #111
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Adversarial review finding on #111: MultipleMode.Count supports
expressions the estimator cannot evaluate; document that they
produce a null (unknown) estimate.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Endpoint change
GET /api/schedules/{id}/itemsnow returnsProgramScheduleItemsWithDurationViewModel: the items plus per-itemdurationEstimateandtotalDurationEstimate(intentional shape change per #111; nothing on main consumed the old array shape).Estimate semantics: One → average positive playout duration of the referenced plain collection; Multiple Count → average × count (expression-based counts → null); Multiple CollectionSize → total collection duration; Duration → explicit
playoutDuration; Flood / smart / multi / playlist / search references → null (unknown). Aggregation reusesGetDurationForPlayout()semantics incl. the remote-stream fallback.Implemented by the Codex session; handler/controller tests included;
v1.jsonregenerated (nullabledurationEstimatecorrectly emitted as["null","string"]).Adversarial review verdict
Mergeable as-is — no blockers/majors. Minors noted and deferred:
Count="0"reports null rather than a knowable 0; per-collection full materialization (fine for an interactive GET, SQL aggregate if this ever gets polled). The one suggested doc fix (expression counts → null) is applied in the follow-up commit.fixes #111
🤖 Generated with Claude Code
63c48f1985to14d06a1e49