Skip to main content

Module bisect

Module bisect 

Source
Expand description

cargo xtask codex-schema bisect <dir> - binary-searches a fresh schema dump for the minimal definition(s) that panic typify’s schema-merge logic (typify-impl-0.7.0’s merge.rs:427, “not yet implemented” - the same failure mode McpServerElicitationRequestParams hit; see crates/shared/codex-app-server-client/README.md). Automates the “opaque out half the new/changed definitions, see if the panic goes away” process that was previously done by hand.

Functions§

bisect
minimize 🔒
Binary-searches universe (a set of definition names that, kept real with everything else in all_defs at its natural realness, is already known to reproduce the target panic) down to a minimal culprit set.
parse_args 🔒
probe_with_kept 🔒
Builds a candidate schema where every definition in universe but not in keep_real is opaqued to true; definitions outside universe are left exactly as they are in all_defs. Probes it with typify.
run
split_at 🔒
suspect_universe 🔒
Definitions that are new or textually changed vs. the currently committed protocol.schema.json. Falls back to searching every definition when no usable baseline is found (e.g. the baseline file is missing/unparseable, or nothing actually changed).