FAILURE MAP
← Case archive

FA-68122 / Traffic signal timing plans / Member archive

Dual-ring barrier sequencing: lead-lag is keyed on the second phase of the pair · case 02

Dual-ring barrier sequencing returns a wrong result when lead-lag is keyed on the second phase of the pair.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input {ring1: [[1,d],[2,d],[3,d],[4,d]], ring2: [[5,d],[6,d],[7,d],[8,d]] with durations including clearance, calls, lag}. Phases 1-2/5-6 are left of the barrier and 3-4/7-8 right of it. On each side both rings start together at the barrier; if the first phase of a ring's pair is in lag the pair is swapped. Phases without calls are skipped and take no time. Both rings cross a barrier together when the slower ring finishes. Return {starts: sorted [phase, start], cycle}.

Why this case matters

Signal timing arithmetic is exact and integer or rational; a wrong rule silently produces unsafe or inefficient timing plans.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
timing oracle 0{"cycle": 131, "starts": [[1, 36], [2, 0], [3, 90], [4, 76], [5, 0], [6, 13], [7, 76], [8, 103]]}{"cycle": 131, "starts": [[1, 36], [2, 0], [3, 76], [4, 111], [5, 30], [6, 0], [7, 76], [8, 103]]}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗