refactor: move screen recording onto platform runtime - #1724
Conversation
|
Size Report
Startup median (7 runs, lower is better):
Top changed chunks:
|
|
Not ready at exact
All exact-head CI checks are green and the architectural cutover otherwise traces coherently. PR is stacked on draft #1720. Do not label ready. |
b64bf33 to
e5dc29c
Compare
|
Reviewed exact head e5dc29c. The two prior code findings are resolved: Linux/Vega now receive record-specific unsupported guidance through the fact-only admission path with handler/router coverage, and the 549-line test was split into focused 67/125-line suites plus a 231-line fixture. No new source finding. Readiness remains blocked on evidence: ADR 0019 explicitly requires an exact-head acceptance comment for the new recording budget; quote red-before output for the new production-route unsupported regression; and attach exact-head command/output/artifact evidence for available macOS/Web/provider recording routes plus an explicit HarmonyOS hardware residual-risk note. All completed checks are green; iOS Smoke is still authoritative/in progress. |
|
Addressed the readiness review at exact head
The full local |
|
Follow-up for the requested seen-red production-route evidence: I restored only the pre-fix direct required-operation bind in an isolated detached The unchanged exact-head tree is green on the same command: The failing assertions run through The iOS red is separately classified as pre-existing lane flakiness, not recording behavior: attempt 1 passed targeted XCTest/preflight/Settings smoke before |
e5dc29c to
4e057e4
Compare
|
Heads-up on a conflict with #1719 ( Merge dry-run of #1724 1. We each remove a different
Verified by counting the auto-merged 2. #1719's only change in that file is a one-line doc comment that stopped naming the removed Also worth knowing: this branch's #1719 is green and standalone; I'm deliberately not stacking it on this branch, so no action needed from you unless this lands first. Generated by Claude Code |
|
Readiness follow-up after #1720 merged: #1724 is now rebased onto main at c7242f8, with exact head 4e057e4. The recording layer is patch-equivalent to the reviewed e5dc29c head (the only range-diff context shift is the newer main host-process helper), so the acceptance, seen-red, size-budget, and practical-route evidence above remain applicable. The fresh rebased-head CI rollup is fully green, including iOS Smoke (targeted runner regressions, public CLI preflight, Settings replay, and fixture-backed simulator E2E), Android/macOS/Linux/Web smokes, coverage, FreeRange, layering, typecheck, package, size, and CodeQL. The full comment/thread audit has no submitted reviews or unresolved inline threads. Marked ready for review and labeled ready-for-human. |
…anch Two conflicts, both resolved as posted on the PR before the merge landed. `scripts/layering/daemon-modularity.ts` — the R7 ratchet. #1724 and this branch each remove a different `SessionState` field, so neither side's baseline survives. Note git only flagged `ownerFileClaims` (26 vs 28); `writerOwnedFields: 22` merged silently because both sides wrote 22, yet the merged manifest holds 21. Counted the auto-merged `SESSION_STATE_FIELD_OWNERS` rather than doing the subtraction: 21 entries, 25 owner claims. The layering guard confirms — R10 now pins R7 at 21/25. `src/daemon/handlers/record-trace-recording.ts` — modify/delete. #1724 deletes the module; this branch's only change in it was a doc comment that stopped naming the removed `recordSession` field, so the deletion wins. Nothing references the path any more. `session-state.ts` auto-merged correctly: #1724 predates #1712/#1719 and still carried the `recordSession` manifest entry, and the merge drops it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PFW9gJqz1wEHoowkdd1nFW
Summary
recordthrough the request-bound platform runtime and durable-capture lifecycle while preserving the public CLI and response shape.Stacked on #1720. This layer touches 259 files, confined to the screen-recording command family and its shared durable-capture lifecycle.
Validation
pnpm check:affected --run: 533 files / 4,522 tests passed; changed-line coverage 1,721/1,941 (88.67%); provider progress 53/53 commands and 67/67 device-observable flags./procprobes.No CLI docs or skills changed because public command behavior is preserved; ADR 0019 and structural gates own the internal cutover.