FA-3646 / Binary formats / Open access
Unknown reserved flag bits are silently retained · case 01
Unknown reserved flag bits are silently retained.
ROOT CAUSE
The implementation applies an operation whose text or grammar semantics violate this contract: Validate that an octet uses only bits zero and two, then return those flags as booleans; else None.
THE FAILURE
The implementation applies an operation whose text or grammar semantics violate this contract: Validate that an octet uses only bits zero and two, then return those flags as booleans; else None.
Unsuccessful approach: The attempted repair handles the primary example but still violates a separate boundary of the same contract.
Case contract
Validate that an octet uses only bits zero and two, then return those flags as booleans; else None.
Why this case matters
A local executable model for consumers of structured text; oracle values are authored literals, not outputs copied from the repaired implementation.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import re, unicodedata, json, csv, io, html, base64, binascii, codecs, struct
from urllib.parse import quote, unquote, unquote_to_bytes, urlencode, parse_qsl, urlsplit, urlunsplit
from email.header import decode_header, make_header
from email.utils import getaddresses
from xml.etree import ElementTree as ET
import shlex, string, textwrap
N = 1
observations = []
def solve(x):
try:
return [bool(x&1),bool(x&4)]
except Exception as exc:
return {"error": type(exc).__name__}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('boundary 1', solve(8), None)
check('boundary 2', solve(2), None)
check('boundary 3', solve(5), [True, True])
check('boundary 4', solve(0), [False, False])
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 |
|---|---|---|---|
| boundary 1 | [False, False] | None | Failed |
| boundary 2 | [False, False] | None | Failed |
| boundary 3 | [True, True] | [True, True] | Passed |
| boundary 4 | [False, False] | [False, False] | Passed |
SHA-256 / d31aaed5be8aef9602f3f87439bb1c817acac971c1c05c3e8af850895e65fef2
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
import re, unicodedata, json, csv, io, html, base64, binascii, codecs, struct
from urllib.parse import quote, unquote, unquote_to_bytes, urlencode, parse_qsl, urlsplit, urlunsplit
from email.header import decode_header, make_header
from email.utils import getaddresses
from xml.etree import ElementTree as ET
import shlex, string, textwrap
N = 1
observations = []
def solve(x):
try:
return None if x&2 else [bool(x&1),bool(x&4)]
except Exception as exc:
return {"error": type(exc).__name__}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('boundary 1', solve(8), None)
check('boundary 2', solve(2), None)
check('boundary 3', solve(5), [True, True])
check('boundary 4', solve(0), [False, False])
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 |
|---|---|---|---|
| boundary 1 | [False, False] | None | Failed |
| boundary 2 | None | None | Passed |
| boundary 3 | [True, True] | [True, True] | Passed |
| boundary 4 | [False, False] | [False, False] | Passed |
SHA-256 / 8624f250b228c9f76b5e0711c69ce1ee58c51cbc315d17270db6f8f1c1f35cd6
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 4 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
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:37:29.063490+00:00.
Case digest / e1c0a375f22b23e1ff640fce08b9b278cad7369fb75140b770d54f7e04d50f3c