← Commit history
Merge PR #626: 0.2.122: metal-core (IMS) boards in analyze thermal (#271); dielectric conductivity in presets (release-0.2.122 -> main) merge
Showing changes introduced by the merge (against its first parent).
12 files changed
+192−18
Cargo.lock+10−10Cargo.toml+1−1bin/adom-aiflowcrates/adom-aiflow/src/boardkind.rs+4crates/adom-aiflow/src/main.rs+8−5crates/adom-aiflow/src/stackup_presets.rs+28crates/aiflow-analyze/src/lib.rs+3crates/aiflow-analyze/src/metal_core.rs+120docs/release-0.2.122.md+14package.json+1−1page.json+1−1skills/adom-aiflow/SKILL.md+2Cargo.lock+10−10@@ -4,7 +4,7 @@ version = 4 [[package]] name = "adom-aiflow"-version = "0.2.121"+version = "0.2.122" dependencies = [ "aiflow-analyze", "aiflow-board",@@ -27,7 +27,7 @@ dependencies = [ [[package]] name = "aiflow-analyze"-version = "0.2.121"+version = "0.2.122" dependencies = [ "aiflow-board", "serde",@@ -37,7 +37,7 @@ dependencies = [ [[package]] name = "aiflow-board"-version = "0.2.121"+version = "0.2.122" dependencies = [ "roxmltree", "serde",@@ -46,7 +46,7 @@ dependencies = [ [[package]] name = "aiflow-bridge"-version = "0.2.121"+version = "0.2.122" dependencies = [ "aiflow-board", "serde",@@ -55,7 +55,7 @@ dependencies = [ [[package]] name = "aiflow-copper"-version = "0.2.121"+version = "0.2.122" dependencies = [ "aiflow-board", "aiflow-grid",@@ -65,7 +65,7 @@ dependencies = [ [[package]] name = "aiflow-grid"-version = "0.2.121"+version = "0.2.122" dependencies = [ "aiflow-board", "serde",@@ -74,7 +74,7 @@ dependencies = [ [[package]] name = "aiflow-place"-version = "0.2.121"+version = "0.2.122" dependencies = [ "aiflow-board", "serde",@@ -83,7 +83,7 @@ dependencies = [ [[package]] name = "aiflow-pours"-version = "0.2.121"+version = "0.2.122" dependencies = [ "aiflow-board", "aiflow-copper",@@ -93,7 +93,7 @@ dependencies = [ [[package]] name = "aiflow-router"-version = "0.2.121"+version = "0.2.122" dependencies = [ "aiflow-board", "aiflow-grid",@@ -104,7 +104,7 @@ dependencies = [ [[package]] name = "aiflow-run"-version = "0.2.121"+version = "0.2.122" dependencies = [ "serde", "serde_json",
Cargo.toml+1−1@@ -14,7 +14,7 @@ members = [ ] [workspace.package]-version = "0.2.121"+version = "0.2.122" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
bin/adom-aiflow⋯ 1 unchanged line ⋯
crates/adom-aiflow/src/boardkind.rs+4@@ -38,7 +38,11 @@ pub const FIELDS_NA: &str = "no loads, hot parts or signal checks in the spec"; pub const THERMAL_VIAS_NA: &str = "no hot parts in the spec (spec.hot is empty)"; /// Why a thermal-vias record of "not applicable" no longer stands: spec.hot now names a part.+/// Issue #271: why thermal vias do not apply on a metal-core (IMS) board.+pub const THERMAL_VIAS_IMS: &str = "metal-core (IMS) board, spec.metalCore: the heat leaves through the dielectric into the metal base, not through vias";+ pub fn thermal_vias_na_refusal(spec: &Value) -> Option<String> {+ if aiflow_analyze::metal_core::declared(spec).is_some() { return None; } nonempty(&spec["hot"]).then(|| "spec.hot names hot parts".to_string()) }
crates/adom-aiflow/src/main.rs+8−5@@ -6579,7 +6579,7 @@ fn main() { } else { Vec::new() }; let s = copper_carry::field_screen_with_acks(&r.data,&f,&spec,Path::new(&solved_board),&spec_bytes,what,&live_acks).map(|(n, c)| { if let Some(n) = n { eprintln!("{n}"); } c }).map_err(|e| if e.contains("identity") { format!("{e}: adom-fields analyze --board {solved_board} --spec {} --out {}",r.data["spec"].as_str().unwrap_or(""),dir.join("fields").display()) } else { e }); // issue #67: the same-input solve with a declared board-sink block stands in for the estimate- if what == "thermal" && s.is_ok() { sink_notes = aiflow_analyze::board_sink::accept_solve(&mut res, &spec, &f); sink_notes.extend(aiflow_analyze::lead_cooling::accept_solve(&mut res, &f)); sink_notes.extend(aiflow_analyze::plane_backed::accept_solve(&mut res, &f)); heuristic_passed = res.iter().all(|x| x["status"] == "pass"); }+ if what == "thermal" && s.is_ok() { sink_notes = aiflow_analyze::board_sink::accept_solve(&mut res, &spec, &f); sink_notes.extend(aiflow_analyze::lead_cooling::accept_solve(&mut res, &f)); sink_notes.extend(aiflow_analyze::plane_backed::accept_solve(&mut res, &f)); sink_notes.extend(aiflow_analyze::metal_core::accept_solve(&mut res, &f)); heuristic_passed = res.iter().all(|x| x["status"] == "pass"); } // issue #107: the passed solve's rise at each net's narrowest neck judges the whole-net width screen if what == "current" && s.is_ok() { aiflow_analyze::solved_ampacity::accept_solve(&mut res, &spec, &f); heuristic_passed = res.iter().all(|x| x["status"] == "pass"); } s@@ -7689,18 +7689,21 @@ fn main() { if !live_note.is_empty() { lines.push(live_note.clone()); } r.outcome("thermal-vias-plan", json!({"plan": pp, "parts": parts.iter().map(|p| json!({"ref": p.reference, "net": p.net, "target": p.target, "existing": p.existing, "planned": p.planned.len(), "note": p.note, "copper": p.copper})).collect::<Vec<_>>(), "pourFreshness": freshness, "boardZones": board_zones})); r.save().unwrap();- if spec["hot"].as_object().map(|o| o.is_empty()).unwrap_or(true) {+ // issue #271: on a metal-core (IMS) board the heat leaves through the dielectric into the base, not through vias+ let ims = aiflow_analyze::metal_core::declared(&spec).is_some();+ if ims || spec["hot"].as_object().map(|o| o.is_empty()).unwrap_or(true) { // issue #206 (Noah): nothing dissipates (a coupon, a pattern, passive copper): the step's proof is 0 vias, // recorded as not applicable the way `tour fields` records no solve; finish refuses it once spec.hot names a part- if let Some(c) = converter::detect(&spec, converter::calcs_of_run(&r.data).as_ref()) {+ let na = if ims { boardkind::THERMAL_VIAS_IMS } else { boardkind::THERMAL_VIAS_NA };+ if let (false, Some(c)) = (ims, converter::detect(&spec, converter::calcs_of_run(&r.data).as_ref())) { findings(&format!("spec.hot names no hot parts, so nothing is recorded: but the design is a switching converter ({c})"), &["Its switch, diode and inductor dissipate: add each to spec.hot with its watts and tabNet (from calcs.json, aiflow-circuit-design), then `thermal-vias plan` again.".into()]); }- r.outcome("thermal-vias", json!({"notApplicable": true, "reason": boardkind::THERMAL_VIAS_NA, "landed": 0, "short": [], "acked": acked, "hotNote": spec["hotNote"].clone()}));+ r.outcome("thermal-vias", json!({"notApplicable": true, "reason": na, "landed": 0, "short": [], "acked": acked, "hotNote": spec["hotNote"].clone()})); r.save().unwrap(); let mut hints = vec!["finish lists thermal-vias as not applicable, and refuses this record if spec.hot later names a part (then `thermal-vias plan` and `land` again). Never add a hot part only to get vias.".to_string()]; if spec["hotNote"].as_str().map(|n| n.trim().is_empty()).unwrap_or(true) { hints.push("Suggested: say why nothing dissipates in spec.hotNote (\"a via-resistance coupon: only the copper's own I2R, 112 mW\"), so the reader of the run sees the reason.".into()); } hints.push("Next: `step pours`.".into());- ok(&format!("thermal-vias: not applicable ({}); recorded as the step's proof, 0 vias planned or landed\n{}", boardkind::THERMAL_VIAS_NA, lines.join("\n")), &hints);+ ok(&format!("thermal-vias: not applicable ({na}); recorded as the step's proof, 0 vias planned or landed\n{}", lines.join("\n")), &hints); return; } ok(&format!("heatsink via plan ({} vias): {}\n{}", plan["nets"].as_array().map(|a| a.len()).unwrap_or(0), pp.display(), lines.join("\n")), &["Review it with the human in one line per part, then `thermal-vias land`. A part with a note needs your call: pour its net on the other layer, move a neighbour, or `--ack REF --why`.".into(), "Copper here is spec.pours plus the saved board's filled zones (the human's zones count before the pours step adopts them); after the human redraws or refills a zone, save the board (adopt-board) and plan again.".into()]);
crates/adom-aiflow/src/stackup_presets.rs+28@@ -24,6 +24,10 @@ pub struct StackupPreset { pub dielectric_kind: &'static [&'static str], pub dielectric_material: &'static [&'static str], pub epsilon_r_by_gap: &'static [f64],+ /// The dielectric's thermal conductivity per gap, W/(m K), only when the fab's datasheet gives it (Rogers, thermal+ /// prepregs, IMS dielectrics). Written to spec `dielectricKWmK` (adom-fields 0.10.16+); None leaves Fields' FR4+ /// default. JLCPCB's FR4 stackups publish no conductivity, so they carry none rather than restate FR4.+ pub dielectric_kwmk: Option<&'static [f64]>, pub solder_mask_mm: f64, pub solder_mask_er: f64, pub summary: &'static str,@@ -41,6 +45,7 @@ pub const PRESETS: &[StackupPreset] = &[ dielectric_kind: &["prepreg", "core", "prepreg"], dielectric_material: &["7628", "FR4", "7628"], epsilon_r_by_gap: &[4.4, 4.6, 4.4],+ dielectric_kwmk: None, solder_mask_mm: 0.025, solder_mask_er: 3.8, summary: "JLCPCB 4L 1.6 mm 7628 standard impedance stackup (1 oz outer / 0.5 oz inner, 0.2104 mm Er 4.4 prepreg)",@@ -56,6 +61,7 @@ pub const PRESETS: &[StackupPreset] = &[ dielectric_kind: &["prepreg", "core", "prepreg"], dielectric_material: &["3313", "FR4", "3313"], epsilon_r_by_gap: &[4.05, 4.6, 4.05],+ dielectric_kwmk: None, solder_mask_mm: 0.025, solder_mask_er: 3.8, summary: "JLCPCB 4L 1.6 mm 3313 impedance stackup (1 oz outer / 0.5 oz inner, 0.0994 mm Er 4.05 prepreg, narrower 50/90 ohm traces)",@@ -71,6 +77,7 @@ pub const PRESETS: &[StackupPreset] = &[ dielectric_kind: &["prepreg", "core", "prepreg", "core", "prepreg"], dielectric_material: &["3313", "FR4", "2116", "FR4", "3313"], epsilon_r_by_gap: &[4.05, 4.6, 4.16, 4.6, 4.05],+ dielectric_kwmk: None, solder_mask_mm: 0.025, solder_mask_er: 3.8, summary: "JLCPCB 6L 1.6 mm 3313 impedance stackup (1 oz outer / 0.5 oz inner)",@@ -86,6 +93,7 @@ pub const PRESETS: &[StackupPreset] = &[ dielectric_kind: &["core"], dielectric_material: &["FR4"], epsilon_r_by_gap: &[4.5],+ dielectric_kwmk: None, solder_mask_mm: 0.025, solder_mask_er: 3.8, summary: "JLCPCB 2L 1.6 mm standard FR4 (1 oz copper, 1.53 mm Er 4.5 core)",@@ -112,6 +120,12 @@ pub fn apply_to_spec(preset: &StackupPreset, spec: &mut Value) { spec["stackupMm"] = json!(preset.dielectric_mm); spec["epsilonR"] = json!(preset.epsilon_r_by_gap[0]); spec["epsilonRByGap"] = json!(preset.epsilon_r_by_gap);+ // adom-fields 0.10.16: the dielectric's thermal conductivity, when the fab publishes it; a value the spec carries from+ // another stackup is taken out so Fields does not apply it to this one+ match preset.dielectric_kwmk {+ Some(k) => spec["dielectricKWmK"] = json!(k),+ None => { if let Some(o) = spec.as_object_mut() { o.remove("dielectricKWmK"); } }+ } let mut cu_map = serde_json::Map::new(); for (name, um) in preset.copper_layers.iter().zip(preset.copper_um.iter()) { cu_map.insert((*name).to_string(), json!(*um));@@ -397,4 +411,18 @@ mod tests { assert!(md.is_file() && js.is_file()); let _ = std::fs::remove_dir_all(&dir); }++ #[test]+ fn a_published_conductivity_is_written_and_none_takes_a_stale_one_out() {+ // adom-fields 0.10.16 dielectricKWmK: per gap, as stackupMm+ let mut p = *find("JLC04161H-7628").unwrap();+ let mut spec = json!({"dielectricKWmK": 2.0});+ apply_to_spec(&p, &mut spec);+ assert!(spec.get("dielectricKWmK").is_none(), "JLCPCB FR4 publishes none: Fields keeps its FR4 default, not another stackup's value");+ p.dielectric_kwmk = Some(&[0.69, 0.69, 0.69]);+ apply_to_spec(&p, &mut spec);+ assert_eq!(spec["dielectricKWmK"], json!([0.69, 0.69, 0.69]));+ assert_eq!(spec["dielectricKWmK"].as_array().unwrap().len(), spec["stackupMm"].as_array().unwrap().len(), "one per gap");+ }+ }
crates/aiflow-analyze/src/lib.rs+3@@ -9,6 +9,7 @@ pub mod branches; pub mod current_acks; pub mod fields_report; pub mod lead_cooling;+pub mod metal_core; pub mod package_cooling; pub mod plane_backed; pub mod pour_cover;@@ -204,6 +205,8 @@ pub fn analyze_thermal_on_board(plan: &Value, spec: &Value, zone_state: Option<& } // a tab pour over a solid plane on the next copper layer: the single-layer estimate does not apply plane_backed::classify(&mut results, board);+ // issue #271: a declared metal-core (IMS) board: the copper-to-air estimate does not apply+ metal_core::classify(&mut results, spec); // issue #67: a declared board-face sink, for the parts it names only if let Err(e) = board_sink::apply(&mut results, spec, board, zone_state) { results.push(json!({"ref": "boardSink", "status": "fail", "hint": e})); } (results.iter().all(|r| r["status"] == "pass"), results)
crates/aiflow-analyze/src/metal_core.rsadded+120@@ -0,0 +1,120 @@+//! Issue #271 (King Silver): an insulated-metal-substrate board (IMS, MCPCB): copper on one layer, a thin high-k+//! dielectric under it, then an aluminium (or copper) base pressed on a housing. The tab estimate sends each part's+//! watts into its tab net's copper and to air only, so it reads every LED far too hot (+255 C where the same-input Fields+//! solve with the base modelled reads +15 C), and `boardSink` cannot describe the base without tab vias.+//!+//! The board says so in `spec.metalCore` (`true`, or `{"note": ...}`). A part whose tab estimate failed then waits for+//! the same-input Fields solve, which the field screen already holds to its rise budget, as a plane-backed part does.+//! adom-fields 0.10.16+ models the board when the spec gives it: the dielectric's thickness in `stackupMm`, its+//! conductivity in `dielectricKWmK`, and the base as a `heatsinks` block. Thermal vias do not apply.+use serde_json::{json, Value};++/// The board's declaration, when the spec makes one.+pub fn declared(spec: &Value) -> Option<&Value> {+ spec.get("metalCore").filter(|v| v.as_bool() == Some(true) || v.is_object())+}++/// What the Fields spec still needs to model the board (empty: complete).+pub fn missing(spec: &Value) -> Vec<String> {+ if declared(spec).is_none() { return Vec::new(); }+ let mut out = Vec::new();+ if !(spec["stackupMm"].is_array() || spec["stackupMm"].is_number()) {+ out.push("stackupMm: the dielectric's real thickness (about 0.1 mm on an IMS board); never scale it to fake a better dielectric, the impedance, plane-capacitance and EMC checks read the same thickness".into());+ }+ if !(spec["dielectricKWmK"].is_number() || spec["dielectricKWmK"].is_array()) {+ out.push("dielectricKWmK: the dielectric's thermal conductivity from its datasheet (IMS dielectrics 1 to 8 W/mK; adom-fields 0.10.16+)".into());+ }+ if !spec["heatsinks"].as_array().is_some_and(|a| !a.is_empty()) {+ out.push("heatsinks: the metal base as a conducting block under the board (aluminium about 200 W/mK, its thickness, the interface to the housing)".into());+ }+ out+}++/// Rows that failed only the copper-to-air tab estimate wait for the Fields solve on a declared metal-core board; with+/// the Fields keys missing they stay failed and say which keys to write.+pub fn classify(results: &mut [Value], spec: &Value) {+ if declared(spec).is_none() { return; }+ let gaps = missing(spec);+ for r in results.iter_mut().filter(|r| r["status"] == "fail" && r["estimateFailed"] == true) {+ let reference = r["ref"].as_str().unwrap_or("").to_string();+ r["metalCore"] = json!(true);+ if gaps.is_empty() {+ r["status"] = json!("pending-fields");+ r["hint"] = json!(format!("{reference}: metal-core board (spec.metalCore): the copper-to-air estimate (+{} C) leaves out the dielectric and the metal base, so it passes only on the same-input Fields solve within its budget", r["riseEstimateC"]));+ } else {+ r["hint"] = json!(format!("{reference}: metal-core board (spec.metalCore), but the copper-to-air estimate (+{} C) cannot judge it and Fields cannot model the base yet; write in the spec: {}", r["riseEstimateC"], gaps.join("; ")));+ }+ }+}++/// After the same-input field screen passed: each pending metal-core row takes its solved rise, provided the solve+/// modelled the board's dielectric (not adom-fields' FR4 default).+pub fn accept_solve(results: &mut [Value], fields: &Value) -> Vec<String> {+ let mut notes = Vec::new();+ let dielectric = &fields["board"]["dielectricKWmK"];+ let assumed = dielectric.is_null() || dielectric["material"].as_str().is_some_and(|m| m.contains("assumed"));+ for r in results.iter_mut().filter(|r| r["status"] == "pending-fields" && r["metalCore"] == true) {+ let reference = r["ref"].as_str().unwrap_or("").to_string();+ if assumed {+ r["status"] = json!("fail");+ r["hint"] = json!(format!("{reference}: the Fields solve ran with an assumed FR4 dielectric, not the metal-core board's: update adom-fields to 0.10.16 or later, keep spec.dielectricKWmK, and solve again"));+ continue;+ }+ match fields["chips"].as_array().into_iter().flatten().find(|c| c["reference"] == reference.as_str()) {+ Some(c) => {+ r["status"] = json!("pass");+ r["judgedBy"] = json!("fields-solve");+ r["riseC"] = c["riseC"].clone();+ r["riseMovingC"] = c["riseMovingC"].clone();+ r["how"] = json!(format!("metal-core board: the same-input Fields solve (dielectric {}, the base as a heatsink) puts it at +{} C still air, +{} C moving air, within its budget; the copper-to-air estimate was +{} C", dielectric, c["riseC"], c["riseMovingC"], r["riseEstimateC"]));+ if let Some(o) = r.as_object_mut() { o.remove("hint"); }+ notes.push(format!("{reference}: metal-core board, judged by the Fields solve"));+ }+ None => {+ r["status"] = json!("fail");+ r["hint"] = json!(format!("{reference}: the Fields report has no row for it; solve again on this saved board and spec"));+ }+ }+ }+ notes+}++#[cfg(test)]+mod tests {+ use super::*;++ fn row() -> Value { json!({"ref": "D1", "tabNet": "GND", "status": "fail", "estimateFailed": true, "riseEstimateC": 255.0}) }+ fn full() -> Value { json!({"hot": {"D1": {"watts": 1.68}}, "metalCore": true, "stackupMm": [0.1], "dielectricKWmK": 2.2, "heatsinks": [{"name": "base"}]}) }++ #[test]+ fn a_declared_metal_core_board_waits_for_the_solve_and_takes_it() {+ // issue #271 (King Silver): +255 C on the copper-to-air estimate, +15 C on the solve with the base+ let mut rows = vec![row()];+ classify(&mut rows, &full());+ assert_eq!(rows[0]["status"], "pending-fields");+ let solved = json!({"board": {"dielectricKWmK": 2.2}, "chips": [{"reference": "D1", "riseC": 15.2, "riseMovingC": 11.0}]});+ let notes = accept_solve(&mut rows, &solved);+ assert_eq!(rows[0]["status"], "pass", "{}", rows[0]);+ assert_eq!(rows[0]["riseC"], 15.2);+ assert_eq!(notes.len(), 1);+ }++ #[test]+ fn missing_fields_keys_or_an_fr4_solve_do_not_pass() {+ let mut rows = vec![row()];+ classify(&mut rows, &json!({"metalCore": true}));+ assert_eq!(rows[0]["status"], "fail");+ let h = rows[0]["hint"].as_str().unwrap();+ assert!(h.contains("stackupMm") && h.contains("dielectricKWmK") && h.contains("heatsinks"), "{h}");+ let mut rows = vec![row()];+ classify(&mut rows, &full());+ accept_solve(&mut rows, &json!({"board": {"dielectricKWmK": {"throughBoard": 0.3, "inPlane": 0.6, "material": "FR4 (assumed)"}}, "chips": [{"reference": "D1", "riseC": 4.0}]}));+ assert_eq!(rows[0]["status"], "fail");+ assert!(rows[0]["hint"].as_str().unwrap().contains("0.10.16"));+ // not declared: nothing changes+ let mut rows = vec![row()];+ classify(&mut rows, &json!({"hot": {"D1": {"watts": 1.0}}}));+ assert_eq!(rows[0]["status"], "fail");+ assert!(rows[0].get("metalCore").is_none());+ }+}
docs/release-0.2.122.mdadded+14@@ -0,0 +1,14 @@+# adom-aiflow 0.2.122++## analyze thermal on a metal-core (IMS) board (issue #271, King Silver)++On an insulated-metal-substrate board (copper on one layer, a thin high-k dielectric, an aluminium base pressed on a housing), the thermal estimate sent each part's watts into its tab copper and to air only. It read every LED far too hot (+255 C where the same-input Fields solve with the base modelled read +15 C), and `spec.boardSink` could not describe the base without tab vias.++- The board says so in `spec.metalCore` (`true`, or `{"note": ...}`).+- A part whose copper-to-air estimate fails then waits for the same-input Fields solve, which the field screen holds to its rise budget, the way a plane-backed part does.+- Fields models the board with adom-fields 0.10.16: the dielectric's real thickness in `stackupMm`, its conductivity in `dielectricKWmK`, the base as a `heatsinks` block. `analyze thermal` names whichever is missing, and does not accept a solve that ran on Fields' assumed FR4.+- `thermal-vias` records not applicable on such a board (the heat leaves through the dielectric into the base), and `finish` accepts that.++## Stackup presets and the dielectric's conductivity++A stackup preset can carry the dielectric's thermal conductivity, written to spec `dielectricKWmK` (adom-fields 0.10.16), only when the fab's datasheet gives one (Rogers, thermal prepregs, IMS dielectrics). JLCPCB's FR4 stackups publish none, so they carry none and Fields keeps its FR4 default; applying one of them also takes out a `dielectricKWmK` left from another stackup.
package.json+1−1@@ -1,7 +1,7 @@ { "slug": "adom-aiflow", "type": "app",- "version": "0.2.121",+ "version": "0.2.122", "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.121",+ "version": "0.2.122", "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.",
skills/adom-aiflow/SKILL.md+2@@ -739,6 +739,8 @@ A drilled pad with no copper layer (an NPTH that lists only `*.Mask`, such as a `spec.boardSink` declares a pedestal or plate on a board face for named tabless parts: a conservative via, mask, interface and sink series estimate in `analyze thermal`, or the same-input Fields solve with the named conducting block. Both record their assumption in the run summary and `finish`; other parts keep the still-air check. Read `docs/board-sink.md`. +A metal-core board (IMS / MCPCB: copper on one layer, a thin high-k dielectric, an aluminium base on a housing) says so in `spec.metalCore` (`true` or `{"note": ...}`; issue #271). The copper-to-air tab estimate cannot judge it (it read an LED +255 C where the solve with the base read +15 C), so a part whose estimate fails waits for the same-input Fields solve within its budget, as a plane-backed part does. Give Fields the board (adom-fields 0.10.16+): the dielectric's real thickness in `stackupMm` (never scaled to fake a better dielectric: the impedance and EMC checks read it), its conductivity in `dielectricKWmK` (IMS dielectrics 1 to 8 W/mK, from the datasheet), and the base as a `heatsinks` block; `analyze thermal` names whichever is missing, and refuses a solve that ran on Fields' assumed FR4. `thermal-vias` records not applicable on such a board. A stackup preset writes `dielectricKWmK` only when the fab publishes a conductivity (JLCPCB's FR4 stackups publish none).+ `outline check` reads only Edge.Cuts: board items and footprint Edge.Cuts items placed in board coordinates. ## LED on/off states (0.2.18)