Commit e83e5f1
committed
planner: lift the ThinkingStyle compat alias back to thinking:: (D-TSC-1 regression fix)
1a11038 (D-TSC-1) renamed the planner 12-space ThinkingStyle -> StyleFamily
and left `#[deprecated] pub type ThinkingStyle = StyleFamily;` in
thinking/style.rs "for external compat" — but the same commit dropped
ThinkingStyle from the `thinking/mod.rs` re-export (line 22 went from
`pub use style::{…, ThinkingStyle}` to `…, StyleFamily`). So the alias
was stranded one level down: `thinking::style::ThinkingStyle` resolved,
but `thinking::ThinkingStyle` — the natural, pre-existing consumer import
path — hard-broke. Not a compat shim; a compat shim I forgot to wire up.
Same second-order break for the methods that used to be inherent on the
old enum (cluster/tau_address/modulation): they moved onto the
`PlannerStyleExt` ext trait, which was only privately `use`d in mod.rs,
so `style.cluster()` broke even with the type alias present.
Fix: re-export ThinkingStyle at thinking/mod.rs (with `#[allow(deprecated)]`
on the re-export line so the crate stays -D warnings clean) and lift
PlannerStyleExt via `pub use`. Consumers on the old paths now compile again
(with the deprecation warning steering them to StyleFamily) instead of
failing outright.
`cargo build -p lance-graph-planner` clean, no new warnings (the 2 remaining
are pre-existing deprecated-CausalEdge64 calls in nars_engine.rs, untouched).
thinking-engine's alias was already at its prior path (cognitive_stack::) so
it never broke; #674 audited clean (RESERVE-DON'T-RECLAIM, no stranded alias).
Board: EPIPHANIES E-COMPAT-ALIAS-MUST-BE-LIFTED-1.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Awg6TXocHcwTtc6eGsHcdD1 parent b9ae704 commit e83e5f1
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 | | |
2 | 11 | | |
3 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
27 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
0 commit comments