Skip to content

docs(dgw): scope recording compaction to clips with XMF - #2211

Open
Benoît Cortier (CBenoit) wants to merge 1 commit into
masterfrom
claude/quirky-faraday-q2ofqx
Open

Benoît Cortier (CBenoit) wants to merge 1 commit into
masterfrom
claude/quirky-faraday-q2ofqx

Conversation

@CBenoit

Copy link
Copy Markdown
Member

The Compaction intent said Gateway always remuxes a finished WebM recording. Gateway remuxes and compacts each clip when its push ends, including a push that may reconnect, and does neither when the XMF native library is not loaded (devolutions-gateway/src/recording.rs:942-958). The intent now says so, matching the glossary where a recording holds one or more clips.

Issue: DGW-506


Generated by Claude Code

The Compaction intent said Gateway always remuxes a finished WebM
recording. Gateway remuxes and compacts each clip when its push ends,
including a push that may reconnect, and does neither when the XMF
native library is not loaded. The intent now says so, matching the
glossary where a recording holds one or more clips.

Issue: DGW-506

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MzSAeHB4qpnSg5m2E16gRe
Copilot AI adaptive review requested due to automatic review settings November 23, 2026 01:10

Copy link
Copy Markdown
Member Author

Lines changed: production code 0, tests 0, other files 3+/3- (intent files only).

This came out of an intent drift audit of code changed in the last 15 days. recording.intent.md#compaction-1 read as an unconditional "always remux". The code skips both remux and compaction without XMF (recording.rs:943, else { debug!("Video remuxing was skipped …") }), and runs them per clip file at every push disconnect, not once per recording (recording.rs:909-959, a new file is pushed per connection at :791).

DGW-506 shows this is intended: its test plan expects "each clip is compacted on its own" and, without XMF, "no remux and no compaction". So I propose rewording the intent rather than changing the code. Intent files are human-owned, so please reword or reject as you see fit.

The other audited areas had no violations: device management (UniGetUI), the AI crate and its task API, the WindowsManaged data folder, and private-fs. Minor notes not acted on:


Generated by Claude Code

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain, and the documentation changes clearly describe the clip-level, XMF-gated remuxing and compaction behavior.

No open issues 🎉

What changed in this PR

Clarifies that recording remuxing and compaction apply to individual WebM clips and occur only when the XMF native library is loaded.

Changes:

  • Scopes Gateway remuxing and compaction to each clip after its push ends.
  • Documents that clips remain unchanged when XMF is unavailable.
  • Updates video-streamer compaction terminology and duration behavior to refer to clips.
File Description
devolutions-gateway/​src/​recording.intent.md Documents XMF-gated remuxing and compaction behavior for individual WebM clips.
crates/​video-streamer/​src/​compact.intent.md Updates compaction, duration, and frame-retention terminology from recordings to individual clips.

Review effort: Lite (adaptive)

Copy link
Copy Markdown
Member Author

tests [macos arm64] failed in timing::jmux_flow_control::jmux_flow_control_credits_are_not_delayed::case_1_tcp: jetsocat's tcp-listen got "Address already in use (os error 48)" and the test timed out waiting for port 52607.

This PR changes only two Markdown intent files, so the failure isn't from this diff. The test picks its ports with find_unused_ports(2) (testsuite/tests/timing/jmux_flow_control.rs:18), which binds port 0, reads the port and releases it before jetsocat binds it. Any other bind on the runner in between can take that port, including the case_2_websocket case running in parallel, whose own TcpListener::bind("127.0.0.1:0") calls draw from the same pool. Every other job passed. I'll re-run the failed job once when the workflow finishes.


Generated by Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants