agora.plan.probe_predicates

Probe-specific postconditions for the tool-call fidelity probe (axis 1).

These three predicates back flows/tool-call-fidelity.plan.yaml. They are deliberately narrow and byte-exact so a failure attributes to the tool-call axis (did the model read/concatenate/copy bytes correctly and call the tools in order) rather than to code-generation or judgment.

Registered into agora.plan.predicate_registry via the standard @register_predicate decorator; importing this module performs the registration (the registry imports it at the bottom of its own module so the names resolve everywhere, exactly like the built-in factories).

All file-reading predicates fail closed: a missing target file returns False, never a vacuous pass (see the Checkpoint-1 fail-closed audit).

Functions

postcond_file_content_equals_concat(path, ...)

path must equal first_path bytes followed by second_path bytes (no separator).

postcond_file_content_equals_seed(path, ...)

path must be byte-exact equal to seed_path (both under work_dir).

postcond_mark_complete_called()

The task must have recorded a completion (ctx.completions non-empty).

agora.plan.probe_predicates.postcond_file_content_equals_concat(path, first_path, second_path)[source]

path must equal first_path bytes followed by second_path bytes (no separator). All three are work_dir-relative.

Fails closed: any missing file returns False.

agora.plan.probe_predicates.postcond_file_content_equals_seed(path, seed_path)[source]

path must be byte-exact equal to seed_path (both under work_dir).

Fails closed: if either file is missing/unreadable, returns False.

agora.plan.probe_predicates.postcond_mark_complete_called()[source]

The task must have recorded a completion (ctx.completions non-empty).

Mirrors the built-in mark_complete registry predicate; exposed under the mark_complete_called name the probe YAML references directly.