FA-17851 / Time representation / Open access
Timestamp delimiter normalization admits unsupported decimal separator · case 01
The decoded time state disagrees with the explicit regression oracle for parts.
ROOT CAUSE
Timestamp delimiter normalization admits unsupported decimal separator.
THE FAILURE
Timestamp delimiter normalization admits unsupported decimal separator.
Unsuccessful approach: The partial correction still substitutes payload.replace(',','.').split('.') at the same fault site.
Case contract
Parse exact ASCII signed decimal epoch seconds: optional one leading minus, nonempty whole digits, optional dot plus one to three fractional digits. Reject whitespace, plus, comma, exponent, empty fraction, non-ASCII digits and excess precision. Return validity, exact signed milliseconds or None, and negative-zero lexical marker. No floating point is used.
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):
negative = r['text'].startswith('-')
payload = r['text'][1:] if negative else r['text']
parts = payload.split('.')[:2]
whole = parts[0]
fraction = parts[1] if len(parts) == 2 else ''
whole_valid = len(whole) > 0 and all('0' <= c <= '9' for c in whole)
fraction_valid = len(parts) == 1 or (len(parts) == 2 and 1 <= len(fraction) <= 3 and all('0' <= c <= '9' for c in fraction))
valid = whole_valid and fraction_valid and len(parts) <= 2
magnitude = int(whole) * 1000 + int(fraction.ljust(3,'0')) if valid else None
milliseconds = (-magnitude if negative else magnitude) if valid else None
return [valid,milliseconds,valid and negative and magnitude == 0]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'text': '1.2', 'probe': 1}), [True, 1200, False])
check('fixture 2', solve({'text': '-0.125', 'probe': 1}), [True, -125, False])
check('fixture 3', solve({'text': '12', 'probe': 1}), [True, 12000, False])
check('fixture 4', solve({'text': '-1.2', 'probe': 1}), [True, -1200, False])
check('fixture 5', solve({'text': '0', 'probe': 1}), [True, 0, False])
check('fixture 6', solve({'text': '-0.000', 'probe': 1}), [True, 0, True])
check('fixture 7', solve({'text': '1.', 'probe': 1}), [False, None, False])
check('fixture 8', solve({'text': '--1', 'probe': 1}), [False, None, False])
check('fixture 9', solve({'text': '+1', 'probe': 1}), [False, None, False])
check('fixture 10', solve({'text': ' 1', 'probe': 1}), [False, None, False])
check('fixture 11', solve({'text': '1,2', 'probe': 1}), [False, None, False])
check('fixture 12', solve({'text': '1.2.3', 'probe': 1}), [False, None, False])
check('fixture 13', solve({'text': '.2', 'probe': 1}), [False, None, False])
check('fixture 14', solve({'text': '1.2300', 'probe': 1}), [False, None, False])
check('fixture 15', solve({'text': '١', 'probe': 1}), [False, None, False])
check('fixture 16', solve({'text': '1.٢', 'probe': 1}), [False, None, False])
check('fixture 17', solve({'text': '1 2', 'probe': 1}), [False, None, False])
check('fixture 18', solve({'text': '2.000', 'probe': 1}), [True, 2000, False])
check('fixture 19', solve({'text': '0.12', 'probe': 1}), [True, 120, False])
variant = [({'text': '1.125', 'probe': 1}, [True, 1125, False]), ({'text': '2.125', 'probe': 1}, [True, 2125, False]), ({'text': '3.125', 'probe': 1}, [True, 3125, False]), ({'text': '4.125', 'probe': 1}, [True, 4125, False]), ({'text': '5.125', 'probe': 1}, [True, 5125, 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, 1200, False] | [True, 1200, False] | Passed |
| fixture 2 | [True, -125, False] | [True, -125, False] | Passed |
| fixture 3 | [True, 12000, False] | [True, 12000, False] | Passed |
| fixture 4 | [True, -1200, False] | [True, -1200, False] | Passed |
| fixture 5 | [True, 0, False] | [True, 0, False] | Passed |
| fixture 6 | [True, 0, True] | [True, 0, True] | Passed |
| fixture 7 | [False, None, False] | [False, None, False] | Passed |
| fixture 8 | [False, None, False] | [False, None, False] | Passed |
| fixture 9 | [False, None, False] | [False, None, False] | Passed |
| fixture 10 | [False, None, False] | [False, None, False] | Passed |
| fixture 11 | [False, None, False] | [False, None, False] | Passed |
| fixture 12 | [True, 1200, False] | [False, None, False] | Failed |
| fixture 13 | [False, None, False] | [False, None, False] | Passed |
| fixture 14 | [False, None, False] | [False, None, False] | Passed |
| fixture 15 | [False, None, False] | [False, None, False] | Passed |
| fixture 16 | [False, None, False] | [False, None, False] | Passed |
| fixture 17 | [False, None, False] | [False, None, False] | Passed |
| fixture 18 | [True, 2000, False] | [True, 2000, False] | Passed |
| fixture 19 | [True, 120, False] | [True, 120, False] | Passed |
| variant capture | [True, 1125, False] | [True, 1125, False] | Passed |
SHA-256 / f4f9720d4ea503306fcf0b6a82253ac157bba9c4b66df80ebba10aa8ce879853
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):
negative = r['text'].startswith('-')
payload = r['text'][1:] if negative else r['text']
parts = payload.replace(',','.').split('.')
whole = parts[0]
fraction = parts[1] if len(parts) == 2 else ''
whole_valid = len(whole) > 0 and all('0' <= c <= '9' for c in whole)
fraction_valid = len(parts) == 1 or (len(parts) == 2 and 1 <= len(fraction) <= 3 and all('0' <= c <= '9' for c in fraction))
valid = whole_valid and fraction_valid and len(parts) <= 2
magnitude = int(whole) * 1000 + int(fraction.ljust(3,'0')) if valid else None
milliseconds = (-magnitude if negative else magnitude) if valid else None
return [valid,milliseconds,valid and negative and magnitude == 0]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve({'text': '1.2', 'probe': 1}), [True, 1200, False])
check('fixture 2', solve({'text': '-0.125', 'probe': 1}), [True, -125, False])
check('fixture 3', solve({'text': '12', 'probe': 1}), [True, 12000, False])
check('fixture 4', solve({'text': '-1.2', 'probe': 1}), [True, -1200, False])
check('fixture 5', solve({'text': '0', 'probe': 1}), [True, 0, False])
check('fixture 6', solve({'text': '-0.000', 'probe': 1}), [True, 0, True])
check('fixture 7', solve({'text': '1.', 'probe': 1}), [False, None, False])
check('fixture 8', solve({'text': '--1', 'probe': 1}), [False, None, False])
check('fixture 9', solve({'text': '+1', 'probe': 1}), [False, None, False])
check('fixture 10', solve({'text': ' 1', 'probe': 1}), [False, None, False])
check('fixture 11', solve({'text': '1,2', 'probe': 1}), [False, None, False])
check('fixture 12', solve({'text': '1.2.3', 'probe': 1}), [False, None, False])
check('fixture 13', solve({'text': '.2', 'probe': 1}), [False, None, False])
check('fixture 14', solve({'text': '1.2300', 'probe': 1}), [False, None, False])
check('fixture 15', solve({'text': '١', 'probe': 1}), [False, None, False])
check('fixture 16', solve({'text': '1.٢', 'probe': 1}), [False, None, False])
check('fixture 17', solve({'text': '1 2', 'probe': 1}), [False, None, False])
check('fixture 18', solve({'text': '2.000', 'probe': 1}), [True, 2000, False])
check('fixture 19', solve({'text': '0.12', 'probe': 1}), [True, 120, False])
variant = [({'text': '1.125', 'probe': 1}, [True, 1125, False]), ({'text': '2.125', 'probe': 1}, [True, 2125, False]), ({'text': '3.125', 'probe': 1}, [True, 3125, False]), ({'text': '4.125', 'probe': 1}, [True, 4125, False]), ({'text': '5.125', 'probe': 1}, [True, 5125, 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, 1200, False] | [True, 1200, False] | Passed |
| fixture 2 | [True, -125, False] | [True, -125, False] | Passed |
| fixture 3 | [True, 12000, False] | [True, 12000, False] | Passed |
| fixture 4 | [True, -1200, False] | [True, -1200, False] | Passed |
| fixture 5 | [True, 0, False] | [True, 0, False] | Passed |
| fixture 6 | [True, 0, True] | [True, 0, True] | Passed |
| fixture 7 | [False, None, False] | [False, None, False] | Passed |
| fixture 8 | [False, None, False] | [False, None, False] | Passed |
| fixture 9 | [False, None, False] | [False, None, False] | Passed |
| fixture 10 | [False, None, False] | [False, None, False] | Passed |
| fixture 11 | [True, 1200, False] | [False, None, False] | Failed |
| fixture 12 | [False, None, False] | [False, None, False] | Passed |
| fixture 13 | [False, None, False] | [False, None, False] | Passed |
| fixture 14 | [False, None, False] | [False, None, False] | Passed |
| fixture 15 | [False, None, False] | [False, None, False] | Passed |
| fixture 16 | [False, None, False] | [False, None, False] | Passed |
| fixture 17 | [False, None, False] | [False, None, False] | Passed |
| fixture 18 | [True, 2000, False] | [True, 2000, False] | Passed |
| fixture 19 | [True, 120, False] | [True, 120, False] | Passed |
| variant capture | [True, 1125, False] | [True, 1125, False] | Passed |
SHA-256 / 4af5d89cd3428c5d52741c0c34f648f4c710e91465e2319b041b049463da4912
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 20 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.
Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.
Member access is invitation-based. Sign in with your invited account to inspect the repair.
Sign in to the archive ↗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:51.819347+00:00.
Case digest / 6bac7f129c904a5727d8aa6eb7967d65444346d94485e137feaff8fbdda10705