INNER CODE UNIT · Python

unexpected_stdin

WMAL/kodachios · Kodachi-OS-10-stable/open/dock/lib/kodachi_direct.py:761

        unexpected_stdin = sorted(set(stdin_values) - all_stdin_names)
        if unexpected_stdin:
            raise DirectContractError(
                "unexpected stdin parameter(s): " + ", ".join(unexpected_stdin))
    elif stdin_values not in (None, b"", ""):
        accepting = sum(bool(binding["stdinParameters"]) for binding in bindings)
        if accepting != 1 or not isinstance(stdin_values, bytearray):
            raise DirectContractError(
                "one mutable stdin owner requires exactly one accepting step")
    try:
        previous_code = 0
        if policy["stepPolicy"] == "profile":
            # The workflow-manager binding owns every child condition, delay,
            # readback and rollback in the profile digest.  GTK invokes that
            # backend exactly once and must not reinterpret or truncate it.
            execution_plan = [(bindings[0], None)]
        else:
            execution_plan = list(zip(bindings, steps))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…