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 inall_defsat 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
universebut not inkeep_realis opaqued totrue; definitions outsideuniverseare left exactly as they are inall_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).