oc_chat
Loading...
Searching...
No Matches
jev_walk.py File Reference

Go to the source code of this file.

Classes

class  jev_walk.FlatLeg
class  jev_walk.WalkLeg
class  jev_walk.Step
class  jev_walk.Composed

Namespaces

namespace  jev_walk

Functions

FlatLeg jev_walk._repeat_leg (int index)
FlatLeg jev_walk._perm_leg (str key)
dict[str, str] jev_walk.permuted_criteria (str key)
Path jev_walk.sandbox_root ()
str jev_walk.slice_text (str node)
str jev_walk.whole_policy (Path|None root=None)
str|None jev_walk.node_state_text (str node, str leaf_state=DEFAULT_LEAF_STATE, str|None policy_text=None)
Callable[[int, str, str], str] jev_walk.node_instructions (str node)
dict[str, Any] jev_walk.build_node_request (str node, Sequence[str] commands, bool with_policy=True, str leaf_state=DEFAULT_LEAF_STATE, str|None policy_text=None)
str jev_walk.node_of_request (Mapping[str, Any] body)
Composed jev_walk.compose (Sequence[Step] steps, str remainder=DEFAULT_EARLY_STOP_REMAINDER)
dict[str, float] jev_walk._spread (str verdict, float probability, Mapping[str, float]|None leaf_probs, str remainder_rule=DEFAULT_EARLY_STOP_REMAINDER)
dict[str, str] jev_walk.gate_node_labels (str command, Path|None root=None)
str jev_walk._gate_structure (str command, Any decision)
list[dict[str, Any]] jev_walk.walk (list[dict[str, Any]] cases, bool with_policy, int batch=DEFAULT_BATCH, str|None key=None, dict[str, Any]|None usage=None, float timeout=DEFAULT_TIMEOUT, int retries=DEFAULT_RETRIES, Callable[..., Any]|None opener=None, Callable[[float], None] sleep=time.sleep, Callable[[str], None]|None progress=None, str leaf_state=DEFAULT_LEAF_STATE, str remainder=DEFAULT_EARLY_STOP_REMAINDER)
dict[str, Any] jev_walk._walked_row (dict[str, Any] case, list[Step] steps, float ms, int requests, str remainder=DEFAULT_EARLY_STOP_REMAINDER)
str jev_walk._composition_note (str remainder)
dict[str, Any] jev_walk.run_leg (WalkLeg leg, list[dict[str, Any]] cases, int batch=DEFAULT_BATCH, str|None key=None, float timeout=DEFAULT_TIMEOUT, int retries=DEFAULT_RETRIES, Callable[..., Any]|None opener=None, Callable[[float], None] sleep=time.sleep, Callable[[str], None]|None progress=None)
dict[str, Any] jev_walk.run_flat_leg (FlatLeg leg, list[dict[str, Any]] cases, str|None policy_text, int batch=DEFAULT_BATCH, str|None key=None, float timeout=DEFAULT_TIMEOUT, int retries=DEFAULT_RETRIES, Callable[..., Any]|None opener=None, Callable[[float], None] sleep=time.sleep, Callable[[str], None]|None progress=None)
float|None jev_walk._top_probability (Mapping[str, Any] row)
int jev_walk._agreement (Sequence[Mapping[str, Any]] rows)
int jev_walk._granted_more (Sequence[Mapping[str, Any]] rows)
dict[str, Any] jev_walk.noise_band (Sequence[tuple[str, dict[str, Any]]] payloads)
dict[str, Any] jev_walk.permutation_table (Sequence[tuple[str, dict[str, Any]]] payloads)
list[dict[str, Any]] jev_walk.per_node_table (Sequence[Mapping[str, Any]] rows, Path|None root=None)
str jev_walk.render_noise_table (Mapping[str, Any] band)
str jev_walk.render_permutation_table (Mapping[str, Any] table)
str jev_walk.render_per_node_table (Sequence[Mapping[str, Any]] table)
list[dict[str, Any]] jev_walk.leaf_control_table (Sequence[tuple[str, dict[str, Any]]] payloads, Path|None root=None)
str jev_walk.render_leaf_control_table (Sequence[Mapping[str, Any]] table)
dict[str, Any] jev_walk.remainder_comparison (dict[str, Any] pinned, dict[str, Any] escalating, float threshold=DEFAULT_THRESHOLD)
list[dict[str, Any]] jev_walk.pinned_rule_rows (Sequence[Mapping[str, Any]] rows)
str jev_walk.render_remainder_table (Mapping[str, Any] result)
str jev_walk.render_walk_cost_table (Sequence[tuple[str, dict[str, Any]]] payloads)
list[tuple[str, dict[str, Any]]] jev_walk._read_payloads (Path results_dir, Iterable[str] names)
int jev_walk._analyse (Path results_dir)
argparse.ArgumentParser jev_walk._build_parser ()
int jev_walk._run_flat (Sequence[FlatLeg] legs, Path base, Path out_dir, str key, argparse.Namespace args, dict[str, float] spent)
WalkLeg jev_walk._resolved_leg (WalkLeg leg, argparse.Namespace args)
int jev_walk._run_walks (Sequence[WalkLeg] legs, Path base, Path out_dir, str key, argparse.Namespace args, dict[str, float] spent)
int jev_walk.main (list[str]|None argv=None)

Variables

str jev_walk.ROUTE = "typesafe-walk"
dict jev_walk.PERMISSIVENESS = {"deny": 0, "confirm": 1, "allow": 2}
str jev_walk.FALLBACK_LABEL = "deny"
tuple jev_walk.LEAF_STATES = ("slice", "whole", "none")
str jev_walk.DEFAULT_LEAF_STATE = "slice"
tuple jev_walk.EARLY_STOP_REMAINDERS = ("none", "next")
str jev_walk.DEFAULT_EARLY_STOP_REMAINDER = "none"
dict jev_walk.NEXT_MOST_PERMISSIVE = {"deny": "confirm"}
float jev_walk.SPEND_CAP_USD = 2.0
tuple jev_walk._STRUCTURE_SENTENCES
tuple jev_walk._CASING
tuple jev_walk._PROGRAM_SENTENCES
tuple jev_walk._QUOTED_METACHAR
tuple jev_walk._BARE
tuple jev_walk._UNKNOWN_OPTIONS
dict jev_walk.POLICY_SLICES
dict jev_walk.NODE_OPTIONS
tuple jev_walk.NODE_ORDER
frozenset jev_walk.LEAF_NODES = frozenset({"listing", "echo", "where", "pip"})
dict jev_walk.STOP_VERDICTS
dict jev_walk.NEXT_NODE
dict jev_walk.PROGRAM_CLASSES
dict jev_walk.NODE_CRITERIA
dict jev_walk.NODE_VERBS
dict jev_walk.CRITERIA_ORDERS
dict jev_walk.WORD_CRITERIA = {label: label for label in LABELS}
dict jev_walk.REPEAT_LEGS
dict jev_walk.PERM_LEGS = {key: _perm_leg(key) for key in CRITERIA_ORDERS}
 jev_walk.name
 jev_walk.model
 jev_walk.case_file
 jev_walk.policy_file
 jev_walk.criteria
 jev_walk.note
dict jev_walk.WALK_LEGS
tuple jev_walk.PLAN_296_WALK_LEGS = ("hand", "hard", "hard_nopolicy")
tuple jev_walk.PLAN_301_WALK_LEGS
tuple jev_walk.CONTROL_LEGS = ("hard", "hard_rep1", "hard_whole", "hard_none")