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
{{ message }}
Repository navigation
uf_finale_push_state swallows errors via catch-to-zero (fail-fast violation) #821
uf_finale_push_state (.opencode/plugins/uf-finale/index.ts:381,387) still contains bare catch blocks that return zero values on failure — the same catch-to-zero defect that was fixed in uf_finale_base_state (commit 1f3e52f) but never applied to its sibling tool.
This violates the documented value invariant: "behindBy decides the gate and MUST NOT silently read as 0." A swallowed error makes "genuinely zero" indistinguishable from "failed to count," silently suppressing the base-sync gate the envelope exists to protect.
Related (LOW): parseInt(x, 10) || 0 coercion at index.ts:312/314 and 379/385 converts unparseable-but-successful output into the sentinel 0, also suppressing the BASE_SYNC_COUNT gate. Real git makes this near-impossible (rev-list --count always emits an integer), hence LOW.
Fix shape
Propagate catch-block errors to the tool's failure envelope instead of returning zeros.
Replace parseInt(...) || 0 with a Number.isFinite check that routes parse failures to the same failure code as the exec throw.
Provenance
Identified during the 2026-10-25 knowledge-base audit (PR #820); recorded in the validated fail-fast and seam-verification compiled articles (.uf/dewey/compiled/).
Activity