FA-18176 / Time representation / Open access
Deadline coordinate is emitted in the other timer basis · case 01
The decoded time state disagrees with the explicit regression oracle for clock_now.
ROOT CAUSE
Deadline coordinate is emitted in the other timer basis.
VERIFIED REPAIR
Preserve the declared coordinate and state contract at clock_now: clock_now = r['boot_now'] if r['include_suspend'] else r['mono_now'].
Unsuccessful approach: The partial correction still substitutes r['boot_now'] at the same fault site.
Case contract
A process exposes wall-independent monotonic ticks excluding system suspend and boot ticks including suspend. Snapshot pairs define awake and sleep elapsed. A timer chooses awake or boot basis, can pause independently, and carries expiration budget. Report elapsed selected, consumed active ticks, signed suspend delta, remaining, deadline in selected domain and validity of paired sample (boot elapsed must cover monotonic elapsed).
Why this case matters
Clock transfer and timestamp consumers require preserved coordinate, phase, validity and elapsed-time semantics.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
N = 1
observations = []
def solve(r):
awake = r['mono_now'] - r['mono_start']
boot = r['boot_now'] - r['boot_start']
sleep = boot - awake
valid = awake >= 0 and sleep >= 0
selected = boot if r['include_suspend'] else awake
consumed = max(0,selected - r['paused_ticks'])
remaining = max(0,r['budget'] - consumed)
clock_now = r['mono_now']
deadline = clock_now + remaining
expired = valid and consumed >= r['budget']
return [valid,consumed,sleep,remaining,deadline,expired]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 20}), [True, 20, 10, 0, 50, True])
check('fixture 2', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 20}), [True, 10, 10, 10, 30, False])
check('fixture 3', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 40, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 10}), [True, 10, 0, 0, 20, True])
check('fixture 4', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 35, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 0}), [False, 5, -5, 0, 35, False])
check('fixture 5', solve({'mono_now': 5, 'mono_start': 10, 'boot_now': 30, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 0}), [False, 0, 5, 0, 5, False])
check('fixture 6', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 25, 'budget': 10}), [True, 0, 10, 10, 60, False])
check('fixture 7', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 2, 'budget': 5}), [True, 8, 10, 0, 20, True])
check('fixture 8', solve({'mono_now': 10, 'mono_start': 10, 'boot_now': 30, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 0}), [True, 0, 0, 0, 10, True])
check('fixture 9', solve({'mono_now': 30, 'mono_start': 10, 'boot_now': 70, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 5, 'budget': 50}), [True, 35, 20, 15, 85, False])
check('fixture 10', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 40, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 5}), [True, 10, 0, 0, 40, True])
variant = [({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 21}, [True, 20, 10, 1, 51, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 22}, [True, 20, 10, 2, 52, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 23}, [True, 20, 10, 3, 53, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 24}, [True, 20, 10, 4, 54, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 25}, [True, 20, 10, 5, 55, False])]
check("variant capture", solve(variant[N-1][0]), variant[N-1][1])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | [True, 20, 10, 0, 20, True] | [True, 20, 10, 0, 50, True] | Failed |
| fixture 2 | [True, 10, 10, 10, 30, False] | [True, 10, 10, 10, 30, False] | Passed |
| fixture 3 | [True, 10, 0, 0, 20, True] | [True, 10, 0, 0, 20, True] | Passed |
| fixture 4 | [False, 5, -5, 0, 20, False] | [False, 5, -5, 0, 35, False] | Failed |
| fixture 5 | [False, 0, 5, 0, 5, False] | [False, 0, 5, 0, 5, False] | Passed |
| fixture 6 | [True, 0, 10, 10, 30, False] | [True, 0, 10, 10, 60, False] | Failed |
| fixture 7 | [True, 8, 10, 0, 20, True] | [True, 8, 10, 0, 20, True] | Passed |
| fixture 8 | [True, 0, 0, 0, 10, True] | [True, 0, 0, 0, 10, True] | Passed |
| fixture 9 | [True, 35, 20, 15, 45, False] | [True, 35, 20, 15, 85, False] | Failed |
| fixture 10 | [True, 10, 0, 0, 20, True] | [True, 10, 0, 0, 40, True] | Failed |
| variant capture | [True, 20, 10, 1, 21, False] | [True, 20, 10, 1, 51, False] | Failed |
SHA-256 / 47eb35f151b18123c4387e1465ec69e6ed6e66b19921ab7de414a636ef63721f
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
N = 1
observations = []
def solve(r):
awake = r['mono_now'] - r['mono_start']
boot = r['boot_now'] - r['boot_start']
sleep = boot - awake
valid = awake >= 0 and sleep >= 0
selected = boot if r['include_suspend'] else awake
consumed = max(0,selected - r['paused_ticks'])
remaining = max(0,r['budget'] - consumed)
clock_now = r['boot_now']
deadline = clock_now + remaining
expired = valid and consumed >= r['budget']
return [valid,consumed,sleep,remaining,deadline,expired]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 20}), [True, 20, 10, 0, 50, True])
check('fixture 2', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 20}), [True, 10, 10, 10, 30, False])
check('fixture 3', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 40, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 10}), [True, 10, 0, 0, 20, True])
check('fixture 4', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 35, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 0}), [False, 5, -5, 0, 35, False])
check('fixture 5', solve({'mono_now': 5, 'mono_start': 10, 'boot_now': 30, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 0}), [False, 0, 5, 0, 5, False])
check('fixture 6', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 25, 'budget': 10}), [True, 0, 10, 10, 60, False])
check('fixture 7', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 2, 'budget': 5}), [True, 8, 10, 0, 20, True])
check('fixture 8', solve({'mono_now': 10, 'mono_start': 10, 'boot_now': 30, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 0}), [True, 0, 0, 0, 10, True])
check('fixture 9', solve({'mono_now': 30, 'mono_start': 10, 'boot_now': 70, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 5, 'budget': 50}), [True, 35, 20, 15, 85, False])
check('fixture 10', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 40, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 5}), [True, 10, 0, 0, 40, True])
variant = [({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 21}, [True, 20, 10, 1, 51, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 22}, [True, 20, 10, 2, 52, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 23}, [True, 20, 10, 3, 53, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 24}, [True, 20, 10, 4, 54, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 25}, [True, 20, 10, 5, 55, False])]
check("variant capture", solve(variant[N-1][0]), variant[N-1][1])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | [True, 20, 10, 0, 50, True] | [True, 20, 10, 0, 50, True] | Passed |
| fixture 2 | [True, 10, 10, 10, 60, False] | [True, 10, 10, 10, 30, False] | Failed |
| fixture 3 | [True, 10, 0, 0, 40, True] | [True, 10, 0, 0, 20, True] | Failed |
| fixture 4 | [False, 5, -5, 0, 35, False] | [False, 5, -5, 0, 35, False] | Passed |
| fixture 5 | [False, 0, 5, 0, 30, False] | [False, 0, 5, 0, 5, False] | Failed |
| fixture 6 | [True, 0, 10, 10, 60, False] | [True, 0, 10, 10, 60, False] | Passed |
| fixture 7 | [True, 8, 10, 0, 50, True] | [True, 8, 10, 0, 20, True] | Failed |
| fixture 8 | [True, 0, 0, 0, 30, True] | [True, 0, 0, 0, 10, True] | Failed |
| fixture 9 | [True, 35, 20, 15, 85, False] | [True, 35, 20, 15, 85, False] | Passed |
| fixture 10 | [True, 10, 0, 0, 40, True] | [True, 10, 0, 0, 40, True] | Passed |
| variant capture | [True, 20, 10, 1, 51, False] | [True, 20, 10, 1, 51, False] | Passed |
SHA-256 / ffb20f12745c68c4408cb79c09abb63c26b7a26b56290e914ac282f8fa36a3bd
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
N = 1
observations = []
def solve(r):
awake = r['mono_now'] - r['mono_start']
boot = r['boot_now'] - r['boot_start']
sleep = boot - awake
valid = awake >= 0 and sleep >= 0
selected = boot if r['include_suspend'] else awake
consumed = max(0,selected - r['paused_ticks'])
remaining = max(0,r['budget'] - consumed)
clock_now = r['boot_now'] if r['include_suspend'] else r['mono_now']
deadline = clock_now + remaining
expired = valid and consumed >= r['budget']
return [valid,consumed,sleep,remaining,deadline,expired]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 20}), [True, 20, 10, 0, 50, True])
check('fixture 2', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 20}), [True, 10, 10, 10, 30, False])
check('fixture 3', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 40, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 10}), [True, 10, 0, 0, 20, True])
check('fixture 4', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 35, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 0}), [False, 5, -5, 0, 35, False])
check('fixture 5', solve({'mono_now': 5, 'mono_start': 10, 'boot_now': 30, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 0}), [False, 0, 5, 0, 5, False])
check('fixture 6', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 25, 'budget': 10}), [True, 0, 10, 10, 60, False])
check('fixture 7', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 2, 'budget': 5}), [True, 8, 10, 0, 20, True])
check('fixture 8', solve({'mono_now': 10, 'mono_start': 10, 'boot_now': 30, 'boot_start': 30, 'include_suspend': False, 'paused_ticks': 0, 'budget': 0}), [True, 0, 0, 0, 10, True])
check('fixture 9', solve({'mono_now': 30, 'mono_start': 10, 'boot_now': 70, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 5, 'budget': 50}), [True, 35, 20, 15, 85, False])
check('fixture 10', solve({'mono_now': 20, 'mono_start': 10, 'boot_now': 40, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 5}), [True, 10, 0, 0, 40, True])
variant = [({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 21}, [True, 20, 10, 1, 51, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 22}, [True, 20, 10, 2, 52, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 23}, [True, 20, 10, 3, 53, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 24}, [True, 20, 10, 4, 54, False]), ({'mono_now': 20, 'mono_start': 10, 'boot_now': 50, 'boot_start': 30, 'include_suspend': True, 'paused_ticks': 0, 'budget': 25}, [True, 20, 10, 5, 55, False])]
check("variant capture", solve(variant[N-1][0]), variant[N-1][1])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | [True, 20, 10, 0, 50, True] | [True, 20, 10, 0, 50, True] | Passed |
| fixture 2 | [True, 10, 10, 10, 30, False] | [True, 10, 10, 10, 30, False] | Passed |
| fixture 3 | [True, 10, 0, 0, 20, True] | [True, 10, 0, 0, 20, True] | Passed |
| fixture 4 | [False, 5, -5, 0, 35, False] | [False, 5, -5, 0, 35, False] | Passed |
| fixture 5 | [False, 0, 5, 0, 5, False] | [False, 0, 5, 0, 5, False] | Passed |
| fixture 6 | [True, 0, 10, 10, 60, False] | [True, 0, 10, 10, 60, False] | Passed |
| fixture 7 | [True, 8, 10, 0, 20, True] | [True, 8, 10, 0, 20, True] | Passed |
| fixture 8 | [True, 0, 0, 0, 10, True] | [True, 0, 0, 0, 10, True] | Passed |
| fixture 9 | [True, 35, 20, 15, 85, False] | [True, 35, 20, 15, 85, False] | Passed |
| fixture 10 | [True, 10, 0, 0, 40, True] | [True, 10, 0, 0, 40, True] | Passed |
| variant capture | [True, 20, 10, 1, 51, False] | [True, 20, 10, 1, 51, False] | Passed |
SHA-256 / e1644b1823a11d4da998f00c1c1c35dd79aff49bd05152337079886f4981963e
Verification & scope
Deterministic integer reference model with stipulated units and policies; not a complete clock, wire standard or platform implementation. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.
Observations recorded using Python 3.12.14 at 2026-09-29T14:39:54.853655+00:00.
Case digest / f82145605d5e2ed2fdc77bf464b39f4f87a80d4cabc6647373cb50e2f34ee605