Skip to content
This repository was archived by the owner on Oct 26, 2026. It is now read-only.

Lifecase 0.1.1: bound diagnostic output by watchdog

Choose a tag to compare

@rad1092 rad1092 released this 08 Oct 01:54

Lifecase 0.1.1 fixes a fixture watchdog escape in 0.1.0. Upgrade the native fixture when using bounded process leases.

In 0.1.0, an exception could destroy the scenario watchdog before writing an error diagnostic. If inherited stderr was full and unread, that diagnostic could block beyond the configured lease. The controlled reproduction remained alive at 2005 ms with a 1000 ms lease and was reaped by the test harness's independent timeout.

The watchdog now remains active across argument conversion, parsing, diagnostics, help/version output, explicit flushing, and immediate process exit. A validated lease of 1000–10000 ms is measured from the original entry time; argument conversion, invalid arguments, help, and version use a 5000 ms bootstrap lease. This is a best-effort process watchdog under normal OS scheduling, not a hard real-time guarantee. Protocol 1 is unchanged.

Verified source: 69101b0f88e10208d1b72610ffe34239500a0c92. Exact-commit multi-OS CI passed all six jobs, including the release gate. Archives and their embedded commit metadata and checksums were verified against this run.

Target Native tests, each of 2 runs Go lifecycle policies Official CliWrap 3.10.5 tests Installed/extracted archive
Linux x64 19 pass, 2 platform skips 11 pass 9 pass pass
macOS ARM64 19 pass, 2 platform skips 11 pass 9 pass pass
Windows x64 20 pass, 1 platform skip 10 pass, 1 unsupported signal 9 pass pass

Regressions cover blocked runtime-error stderr, blocked parse-error stderr, blocked help/version stdout, preserved normal help/version output, and Windows invalid-Unicode diagnostics. Go test/race/vet, GCC/Clang/MSVC builds, source checks, locked NuGet audit, repeated scenarios, and binary installation checks passed. Attached verification.json records archive hashes, results, and observed lifecycle timings. The unauthenticated public macOS download was checksum/source-verified and passed 19 native tests (2 Windows-only skips), all 11 policies with the existing 0.1.0 Go verifier, and the blocked-error regression: exit 124 after 1008 ms for a 1000 ms lease, without the harness timeout.

The v0.1.0 tag and its assets are preserved. This patch does not expand the supported surface: Windows console signals, CliWrap graceful cancellation tokens, Job Object/deep-tree containment, Intel macOS, Windows ARM64, and other archive baselines remain unsupported or unrun. macOS assets are unsigned and not notarized; no security-setting changes are recommended. Cooperative token-file stop is not an OS console signal.

Download the ZIP matching your target plus its .sha256 sidecar. Archives contain the native fixture, MIT license, protocol, checksums, and source metadata. The .NET usage example needs .NET 8 SDK and this fixture; C++/Go build tools are optional. See the Korean quickstart and repository README for usage.