You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#7 closed when feature PR #33 merged, but PR #38 landed only the characterization tests (file-serializer, config-file, threading, task, pipe, profiler, platform). No Phase 4 code was ported.
Remaining:
Port each of: file-serializer, buffered-file-serializer, config-file, platform (per OS), threading (posix/windows), pipe, task, profiler. Tier 2 must pass on Linux, macOS and Windows.
The 100-runs-without-a-flake requirement for threading/task can't be met from the grind integrator: role caps block direct container runs, and validate.sh has no repeat option. Add a --repeat until-fail:N option to the Tier 2 harness, or a CI job, and run it.
What libobs does, for reference: os_fopen (libobs/util/platform.c:55-71)
calls os_utf8_to_wcs_ptr (platform.c:445-456) and discards its return
value. The conversion ends at utf8_to_wchar (libobs/util/utf8.c:47), which
calls MultiByteToWideChar(CP_UTF8, 0, …) — flags 0, no MB_ERR_INVALID_CHARS. On Vista and later that substitutes U+FFFD and returns
0, so the conversion never fails and libobs always attempts the mangled path.
The two sides differ only when the U+FFFD-substituted path names an existing
file, which is precisely the case where libobs reads or writes a file the caller
never named. libobs has no way to detect the mangling at all — it is an
unchecked side effect, not a behavior.
Recommendation: mirror C (lossy U+FFFD substitution) in both ports, unless
the maintainers want to treat the refusal as a deliberate safety fix, in which
case the same choice should be made once, stated here, and applied to both —
along with the exclusions each port's parity test must then list. What should be
avoided is merging one of each, which makes the port set inconsistent in a way a
user could observe (a non-UTF-8 path working in one libobs subsystem and failing
in another).
Recorded as an intentional difference in rust/obs-util/tests/file_serializer_parity.rs
per the testing policy, pending this decision. See also #84 for the oracle stub
that made the differential test unable to tell us any of this in the first place.
Second checkbox still open: the 100-runs-without-a-flake Tier 2 requirement for threading/task — --repeat 100 --tests 'test_threading|test_task' exists in rust/tools/linux-validate/run.sh; still needs a clean 100-run attestation on each OS.
Activity
CI: Add a flake-repeat option to the Tier 2 harness (#44)
feat(libobs): port file-serializer to Rust
feat(libobs): port file-serializer to Rust
rust: Port util/config-file.c to obs-util
rust: config-file review fixes (BOM helpers, NULL-config asserts)
rust: config-file parity comment wording fix
feat(libobs): port pipe.c and pipe-posix.c to Rust
chriscoveries commentedon Oct 10, 2026
Decisions: two opposite conventions for the same non-UTF-8 path conversion
Two in-flight ports now handle a Windows path that is not valid UTF-8 in opposite
ways, so this needs a maintainer decision before either merges:
path_from_bytessubstitutes U+FFFD for invalidsequences, i.e. mirrors libobs.
path_from_bytesdeclines any non-UTF-8 path andreturns
falsefrom init.What libobs does, for reference:
os_fopen(libobs/util/platform.c:55-71)calls
os_utf8_to_wcs_ptr(platform.c:445-456) and discards its returnvalue. The conversion ends at
utf8_to_wchar(libobs/util/utf8.c:47), whichcalls
MultiByteToWideChar(CP_UTF8, 0, …)— flags 0, noMB_ERR_INVALID_CHARS. On Vista and later that substitutes U+FFFD and returnsThe two sides differ only when the U+FFFD-substituted path names an existing
file, which is precisely the case where libobs reads or writes a file the caller
never named. libobs has no way to detect the mangling at all — it is an
unchecked side effect, not a behavior.
Recommendation: mirror C (lossy U+FFFD substitution) in both ports, unless
the maintainers want to treat the refusal as a deliberate safety fix, in which
case the same choice should be made once, stated here, and applied to both —
along with the exclusions each port's parity test must then list. What should be
avoided is merging one of each, which makes the port set inconsistent in a way a
user could observe (a non-UTF-8 path working in one libobs subsystem and failing
in another).
Recorded as an intentional difference in
rust/obs-util/tests/file_serializer_parity.rsper the testing policy, pending this decision. See also #84 for the oracle stub
that made the differential test unable to tell us any of this in the first place.
rust: Port util/config-file.c to obs-util
rust: config-file review fixes (BOM helpers, NULL-config asserts)
rust: config-file parity comment wording fix
test(obs-util): RED Tier 1 port of test_pipe.c on stub core
40 remaining items
test(obs-util): RED Tier 1 port of test_pipe.c on stub core
feat(libobs): port pipe.c and pipe-posix.c to Rust
test(obs-util): RED buffered-file-serializer with todo!() core
feat(libobs): port buffered-file-serializer to Rust
rust: Port util/config-file.c to obs-util
rust: config-file review fixes (BOM helpers, NULL-config asserts)
rust: config-file parity comment wording fix
chriscoveries commentedon Oct 10, 2026
Phase 4 unit status (fleet tracker):
Second checkbox still open: the 100-runs-without-a-flake Tier 2 requirement for threading/task —
--repeat 100 --tests 'test_threading|test_task'exists inrust/tools/linux-validate/run.sh; still needs a clean 100-run attestation on each OS.obs-util/threading: GREEN + Tier 2/3 (shim, oracle parity, stress)
obs-util/threading: GREEN + Tier 2/3 (shim, oracle parity, stress)
feat(libobs): port profiler.c to Rust
obs-util/threading: Tier 1 tests against stubs (RED)