"""Input binding for the PF-002 identifiability study, version 1.

Virtual lab - simulated experiment tooling. The deterministic union of this
study's files and the reviewed study they import, with the checks at the real
execution boundary. Names are relative, so a record carries no machine path.
"""

import pf002_reference_gain_inputs_v1 as reviewed

OWN = (
    "PF002_IDENTIFIABILITY_V1.md", "pf002-identifiability-v1-protocol.json",
    "pf002_identifiability_v1.py", "pf002_identifiability_bounds_v1.py",
    "pf002_identifiability_oracle_v1.py", "pf002_identifiability_deadline_v1.py",
    "pf002_identifiability_inputs_v1.py")
INPUTS = tuple(sorted(set(OWN) | set(reviewed.INPUTS)))
BindingFailure = reviewed.BindingFailure
head_commit = reviewed.head_commit
assert_clean_commit = reviewed.assert_clean_commit


def digests(directory, names=INPUTS):
    """This union by default. The reviewed default would drop this study's files."""
    return reviewed.digests(directory, names)


def open_boundary(root, directory, commit, names=INPUTS):
    return reviewed.open_boundary(root, directory, commit, names)


def close_boundary(root, directory, commit, opened, names=INPUTS):
    return reviewed.close_boundary(root, directory, commit, opened, names)


def bound_run(root, directory, commit, runner, names=INPUTS):
    return reviewed.bound_run(root, directory, commit, runner, names)
