← Commit history

0.2.145: adopt adom-fields 0.10.23 (input network re-solve note)

Colby Knox ·ec02c882f1 · ·parent 8c99886
6 files changed +51−14
Cargo.lock+11−11
@@ -4,7 +4,7 @@ version = 4  [[package]] name = "adom-aiflow"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-analyze",  "aiflow-board",@@ -28,7 +28,7 @@ dependencies = [  [[package]] name = "aiflow-analyze"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-board",  "aiflow-sys",@@ -39,7 +39,7 @@ dependencies = [  [[package]] name = "aiflow-board"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-sys",  "roxmltree",@@ -49,7 +49,7 @@ dependencies = [  [[package]] name = "aiflow-bridge"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-board",  "aiflow-sys",@@ -59,7 +59,7 @@ dependencies = [  [[package]] name = "aiflow-copper"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-board",  "aiflow-grid",@@ -70,7 +70,7 @@ dependencies = [  [[package]] name = "aiflow-grid"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-board",  "serde",@@ -79,7 +79,7 @@ dependencies = [  [[package]] name = "aiflow-place"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-board",  "aiflow-sys",@@ -89,7 +89,7 @@ dependencies = [  [[package]] name = "aiflow-pours"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-board",  "aiflow-copper",@@ -100,7 +100,7 @@ dependencies = [  [[package]] name = "aiflow-router"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-board",  "aiflow-grid",@@ -111,7 +111,7 @@ dependencies = [  [[package]] name = "aiflow-run"-version = "0.2.144"+version = "0.2.145" dependencies = [  "aiflow-sys",  "serde",@@ -120,7 +120,7 @@ dependencies = [  [[package]] name = "aiflow-sys"-version = "0.2.144"+version = "0.2.145" dependencies = [  "serde_json", ]
Cargo.toml+1−1
@@ -15,7 +15,7 @@ members = [ ]  [workspace.package]-version = "0.2.144"+version = "0.2.145" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
crates/adom-aiflow/src/fields_versions.rs+32
@@ -17,6 +17,9 @@ //!   fix but stamped 0.10.12; a note on such a solve is harmless.) //! - 0.10.15 (adom/adom-fields#38, PR 23 from King Silver): a `hot` SMD part whose pads are all on B.Cu had its watts //!   put into F.Cu and its tab read there. A two-sided board read about 30 % low, a single-sided one far too hot.+//! - 0.10.23 (adom/adom-fields#46, Jinwon Kim): a converter's input network (filter ladder, line-side bulk, damping legs,+//!   upstream TVS) is in the conducted, input-filter stability and hot-plug models. Before it those three were+//!   pessimistic on such boards (a 48 V case: conducted 109 -> 71 dBuV, Middlebrook -4 -> +28 dB, hot plug 91.6 -> 48.5 V). //! - 0.10.21 (adom/adom-fields#43, Fredrik Angell Moe): spec `planes` counts as a return plane (and return-named nets and a //!   converter's power-stage ground without it), decoupling no longer judges pins typed as signals (an EN pin on a supply //!   net), and the hot-loop capacitor is the smallest one near the switch, not the smallest on the rail. Before it, such@@ -79,6 +82,21 @@ pub fn stale_notes(fields: &Value, spec: &Value, board: &Path) -> Vec<String> {             }         }     }+    // 0.10.23: the converter's input network in the conducted, stability and hot-plug models+    if solver < (0, 10, 23) {+        let mut kinds: Vec<String> = fields["issues"].as_array().into_iter().flatten().filter_map(|i| i["kind"].as_str().or(i["type"].as_str()))+            .filter(|k| k.contains("conducted") || k.contains("hot-plug") || k.contains("middlebrook") || k.contains("input-filter") || k.contains("stability")).map(str::to_string).collect();+        kinds.sort(); kinds.dedup();+        // a 0.10.22 solve traced the input network: only a board that has one is affected+        let net = &fields["review"]["conductedEmissions"]["inputNetwork"];+        let has = |k: &str| net[k].as_array().is_some_and(|a| !a.is_empty()) || (net[k].is_string() && !net[k].as_str().unwrap_or("").is_empty());+        let traced = net.is_object();+        let network = traced && (has("series") || has("lineCaps") || has("damping") || has("tvs"));+        if !kinds.is_empty() && (network || !traced) {+            out.push(format!("this Fields solve is adom-fields {}, before 0.10.23, which left the converter's input network out of its {} findings: {}they are pessimistic (a 48 V case: conducted 109 -> 71 dBuV, Middlebrook -4 -> +28 dB, hot plug 91.6 -> 48.5 V). Update adom-fields (adom-wiki pkg install adom/adom-fields) and analyze again",+                version_text(solver), kinds.join(", "), if network { "this board has an input filter, line-side bulk, a damping leg or an upstream TVS, so " } else { "on a board with an input filter, line-side bulk, a damping leg or an upstream TVS " }));+        }+    }     // 0.10.21: decoupling on signal pins, return planes in spec planes, the hot-loop capacitor near the switch     if solver < (0, 10, 21) {         let mut kinds: Vec<String> = fields["issues"].as_array().into_iter().flatten().filter_map(|i| i["kind"].as_str().or(i["type"].as_str()))@@ -382,6 +400,20 @@ mod tests {     }  +    /// adom-fields 0.10.23: conducted, stability and hot-plug findings with an input network are named; without one they are not+    #[test]+    fn input_network_findings_are_told_to_solve_again() {+        let p = tmp("plain23.kicad_pcb", r#"(kicad_pcb (gr_rect (start 0 0) (end 10 10) (layer "Edge.Cuts")))"#);+        let issues = json!([{"kind": "conducted-emissions"}, {"kind": "hot-plug-overshoot"}, {"kind": "current-neck"}]);+        let with = json!({"inputIdentity": {"solverVersion": "0.10.22"}, "issues": issues, "review": {"conductedEmissions": {"inputNetwork": {"series": ["L2"], "lineCaps": ["C1"], "damping": [["C5", "R3"]], "tvs": ["D1"]}}}});+        let n = stale_notes(&with, &json!({}), &p);+        assert!(n.iter().any(|x| x.contains("before 0.10.23") && x.contains("this board has an input filter") && x.contains("conducted-emissions, hot-plug-overshoot")), "{n:?}");+        let bare = json!({"inputIdentity": {"solverVersion": "0.10.22"}, "issues": issues, "review": {"conductedEmissions": {"inputNetwork": {"series": [], "lineCaps": [], "damping": [], "tvs": []}}}});+        assert!(!stale_notes(&bare, &json!({}), &p).iter().any(|x| x.contains("0.10.23")));+        let older = json!({"inputIdentity": {"solverVersion": "0.10.20"}, "issues": issues});+        assert!(stale_notes(&older, &json!({}), &p).iter().any(|x| x.contains("before 0.10.23") && x.contains("on a board with an input filter")));+    }+     /// adom-fields 0.10.21: decoupling, hot-loop and no-reference findings from an older solve are named; others are not     #[test]     fn decoupling_and_hot_loop_findings_are_told_to_solve_again() {
docs/release-0.2.145.mdadded+5
@@ -0,0 +1,5 @@+# adom-aiflow 0.2.145++Adopts adom-fields 0.10.23 (adom/adom-fields#46, Jinwon Kim): a converter's input network (filter ladder, line-side bulk, damping legs, upstream TVS) is now in the conducted-emissions, input-filter stability and hot-plug models.++- **Re-solve note:** `analyze` names a solve made before 0.10.23 that carries conducted, stability or hot-plug findings: on a board with such an input network they were pessimistic (a 48 V case: conducted 109 to 71 dBuV, Middlebrook -4 to +28 dB, hot plug 91.6 to 48.5 V). When the solve already traced the network (adom-fields 0.10.22), the note appears only if the board has one.
package.json+1−1
@@ -1,7 +1,7 @@ {   "slug": "adom-aiflow",   "type": "app",-  "version": "0.2.144",+  "version": "0.2.145",   "title": "AI Flow",   "description": "Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board. One Rust binary with a crate per step (placement helpers, a grid router with Kelvin taps, pours with keepouts, KiCad's DRC gate, live landing through the KiCad Bridge, copper measurement, current and thermal analysis) and a finish line that refuses an unfinished board. Every command answers with hints for the AI; every turn, its thinking time and every rework loop go into run.jsonl, so Claude, Codex and any other engine are compared on the same flow. KiCad, Fusion 360 and Altium Designer today (the same steps and gates through each tool's bridge); Adom's own web apps next.",   "summary": "Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board. The AI thinks its way from placement through routing, pours, current and thermal analysis to a delivered video; the binary does the fast, deterministic parts of every step, hands back hints, and keeps a ledger of every turn, every return to an earlier step, and the clock from the prompt to done.",
page.json+1−1
@@ -1,7 +1,7 @@ {   "slug": "adom-aiflow",   "type": "app",-  "version": "0.2.144",+  "version": "0.2.145",   "title": "AI Flow",   "description": "Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board. One Rust binary with a crate per step (placement helpers, a grid router with Kelvin taps, pours with keepouts, KiCad's DRC gate, live landing through the KiCad Bridge, copper measurement, current and thermal analysis) and a finish line that refuses an unfinished board. Every command answers with hints for the AI; every turn, its thinking time and every rework loop go into run.jsonl, so Claude, Codex and any other engine are compared on the same flow. KiCad, Fusion 360 and Altium Designer today (the same steps and gates through each tool's bridge); Adom's own web apps next.",   "summary": "Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board. The AI thinks its way from placement through routing, pours, current and thermal analysis to a delivered video; the binary does the fast, deterministic parts of every step, hands back hints, and keeps a ledger of every turn, every return to an earlier step, and the clock from the prompt to done.",