FA-4836 / Call argument binding / Open access
Positional only binding: Makes the second parameter keyword-only · case 01
Makes the second parameter keyword-only and changes the required Python-language result.
ROOT CAUSE
Makes the second parameter keyword-only. The executable reproducer isolates this operation from the rest of the contract.
VERIFIED REPAIR
Call f(a, /, b=10) and return [a,b]. The first parameter is required and positional-only; b accepts position or keyword.
Unsuccessful approach: The alternative still fails because it binds but discards the explicitly supplied second parameter.
Case contract
Call f(a, /, b=10) and return [a,b]. The first parameter is required and positional-only; b accepts position or keyword. Inputs use the finite Python types shown in the fixtures. An error string denotes the specified caught exception, not an unhandled process failure.
Why this case matters
Runs Python standard-library language operations in a deterministic local reproducer. Literal expected answers are authored independently. Related defects share an evaluation group to avoid benchmark split leakage.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(args, kwargs):
def f(a, /, *, b=10):
return [a,b]
try:
return f(*args, **kwargs)
except TypeError:
return "TypeError"
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('keyword first rejected', solve([], {'a': 1}), 'TypeError')
check('omitted optional', solve([1], {}), [1, 10])
check('two positions', solve([1, 2], {}), [1, 2])
check('named second', solve([1], {'b': 3}), [1, 3])
check('missing first', solve([], {}), 'TypeError')
check('duplicate apparent first', solve([1], {'a': 2}), 'TypeError')
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 |
|---|---|---|---|
| keyword first rejected | TypeError | TypeError | Passed |
| omitted optional | [1, 10] | [1, 10] | Passed |
| two positions | TypeError | [1, 2] | Failed |
| named second | [1, 3] | [1, 3] | Passed |
| missing first | TypeError | TypeError | Passed |
| duplicate apparent first | TypeError | TypeError | Passed |
SHA-256 / e531459712e50aea7fd3089929dce6be4cd23d8d65bb5292bdf97b8657413853
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(args, kwargs):
def f(a, /, b=10):
return [a,10]
try:
return f(*args, **kwargs)
except TypeError:
return "TypeError"
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('keyword first rejected', solve([], {'a': 1}), 'TypeError')
check('omitted optional', solve([1], {}), [1, 10])
check('two positions', solve([1, 2], {}), [1, 2])
check('named second', solve([1], {'b': 3}), [1, 3])
check('missing first', solve([], {}), 'TypeError')
check('duplicate apparent first', solve([1], {'a': 2}), 'TypeError')
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 |
|---|---|---|---|
| keyword first rejected | TypeError | TypeError | Passed |
| omitted optional | [1, 10] | [1, 10] | Passed |
| two positions | [1, 10] | [1, 2] | Failed |
| named second | [1, 10] | [1, 3] | Failed |
| missing first | TypeError | TypeError | Passed |
| duplicate apparent first | TypeError | TypeError | Passed |
SHA-256 / 341c8302671da55e7337dff97f0454ea1b6b2cf89113c611d67316cd9e8bf492
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(args, kwargs):
def f(a, /, b=10):
return [a,b]
try:
return f(*args, **kwargs)
except TypeError:
return "TypeError"
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('keyword first rejected', solve([], {'a': 1}), 'TypeError')
check('omitted optional', solve([1], {}), [1, 10])
check('two positions', solve([1, 2], {}), [1, 2])
check('named second', solve([1], {'b': 3}), [1, 3])
check('missing first', solve([], {}), 'TypeError')
check('duplicate apparent first', solve([1], {'a': 2}), 'TypeError')
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 |
|---|---|---|---|
| keyword first rejected | TypeError | TypeError | Passed |
| omitted optional | [1, 10] | [1, 10] | Passed |
| two positions | [1, 2] | [1, 2] | Passed |
| named second | [1, 3] | [1, 3] | Passed |
| missing first | TypeError | TypeError | Passed |
| duplicate apparent first | TypeError | TypeError | Passed |
SHA-256 / a7f0c0db7e309a9433808a96015cde16baf5995584a62dbb286f89eaec3c823d
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:43.430315+00:00.
Case digest / eb3c2bab364aecf4689b7829e09b8d340d0ad11cf80d5ed8f6d4f1a2d233edda