Make the aetherlight take-set compile and its doc-tests honest

lib.rs drops the leave-set modules and re-exports, renames the compile_fail
doc-tests to aetherlight::, retitles the crate doc, and allows dead code until
AL4 adds the ABI. patch.rs drops the tool_schema and codex_connector imports.
lens.rs drops the test that read the dropped PATCH_TOOLS catalog. Imports and
`mut` bindings that only the dropped code used are removed or gated to tests so
`cargo build` is warning-free.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-19 19:53:27 +01:00
commit dbdaf64c4d
3 changed files with 24 additions and 93 deletions

View file

@ -65,7 +65,7 @@ impl Lens {
}
}
/// Existing `PATCH_TOOLS` names in emphasis order. Emphasis is prompt text
/// Existing patch tool names in emphasis order. Emphasis is prompt text
/// only: the catalog, its order, and its schemas are the same for every lens.
pub(crate) fn leads_with(self) -> &'static [&'static str] {
match self {
@ -225,7 +225,6 @@ pub(crate) fn draw(
#[cfg(test)]
mod tests {
use super::*;
use crate::patch::PATCH_TOOLS;
use crate::tests::stock_weights;
use std::collections::BTreeSet;
@ -244,23 +243,6 @@ mod tests {
counts
}
#[test]
fn every_lead_names_a_patch_tool() {
let catalog: BTreeSet<&str> = PATCH_TOOLS.iter().map(|entry| entry.name).collect();
for lens in Lens::ALL {
let leads = lens.leads_with();
assert!(!leads.is_empty(), "{lens:?} leads with nothing");
let distinct: BTreeSet<&str> = leads.iter().copied().collect();
assert_eq!(distinct.len(), leads.len(), "{lens:?} repeats a lead");
for name in leads {
assert!(
catalog.contains(name),
"{lens:?} leads with unknown tool {name}"
);
}
}
}
#[test]
fn the_draw_is_a_function_of_world_and_session() {
let weights = stock_weights();