← Commit history

0.2.123: more of Adom Fields in analyze (suggested spec keys, heat paths, capacitors, rf module)

Colby Knox ·0b67edf2fa · ·parent 47592ba
Co-Authored-By: Claude Opus 5.5 <[email protected]>
10 files changed +240−15
Cargo.lock+10−10
@@ -4,7 +4,7 @@ version = 4  [[package]] name = "adom-aiflow"-version = "0.2.122"+version = "0.2.123" dependencies = [  "aiflow-analyze",  "aiflow-board",@@ -27,7 +27,7 @@ dependencies = [  [[package]] name = "aiflow-analyze"-version = "0.2.122"+version = "0.2.123" dependencies = [  "aiflow-board",  "serde",@@ -37,7 +37,7 @@ dependencies = [  [[package]] name = "aiflow-board"-version = "0.2.122"+version = "0.2.123" dependencies = [  "roxmltree",  "serde",@@ -46,7 +46,7 @@ dependencies = [  [[package]] name = "aiflow-bridge"-version = "0.2.122"+version = "0.2.123" dependencies = [  "aiflow-board",  "serde",@@ -55,7 +55,7 @@ dependencies = [  [[package]] name = "aiflow-copper"-version = "0.2.122"+version = "0.2.123" dependencies = [  "aiflow-board",  "aiflow-grid",@@ -65,7 +65,7 @@ dependencies = [  [[package]] name = "aiflow-grid"-version = "0.2.122"+version = "0.2.123" dependencies = [  "aiflow-board",  "serde",@@ -74,7 +74,7 @@ dependencies = [  [[package]] name = "aiflow-place"-version = "0.2.122"+version = "0.2.123" dependencies = [  "aiflow-board",  "serde",@@ -83,7 +83,7 @@ dependencies = [  [[package]] name = "aiflow-pours"-version = "0.2.122"+version = "0.2.123" dependencies = [  "aiflow-board",  "aiflow-copper",@@ -93,7 +93,7 @@ dependencies = [  [[package]] name = "aiflow-router"-version = "0.2.122"+version = "0.2.123" dependencies = [  "aiflow-board",  "aiflow-grid",@@ -104,7 +104,7 @@ dependencies = [  [[package]] name = "aiflow-run"-version = "0.2.122"+version = "0.2.123" dependencies = [  "serde",  "serde_json",
Cargo.toml+1−1
@@ -14,7 +14,7 @@ members = [ ]  [workspace.package]-version = "0.2.122"+version = "0.2.123" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
bin/adom-aiflow
⋯ 1 unchanged line ⋯
crates/adom-aiflow/src/fields_review.rs+20−1
@@ -212,7 +212,12 @@ pub fn recommended_modules(board: &Board, spec: &Value) -> ModulePlan {         add("pdn", why.into());     } -    let order = ["si", "noise", "emc", "esd", "pdn"];+    // RF trigger (the Fields thread, 2026-12-01): an antenna on the board, or a spec that describes the radio+    let antenna = board.footprints.values().find(|f| f.lib.to_ascii_lowercase().contains("antenna") || { let r = f.reference.to_ascii_uppercase(); r.starts_with("ANT") || (r.starts_with("AE") && r[2..].chars().all(|c| c.is_ascii_digit())) });+    if let Some(a) = antenna { add("rf", format!("antenna {} ({})", a.reference, a.lib)); }+    else if spec["rf"].is_object() { add("rf", "spec describes the radio (rf)".into()); }++    let order = ["si", "noise", "emc", "esd", "pdn", "rf"];     let modules: Vec<String> = order.iter().filter(|&&m| reasons.contains_key(m)).map(|s| s.to_string()).collect();     ModulePlan { modules, reasons, detected_external, override_used: false } }@@ -554,4 +559,18 @@ mod tests {         assert_eq!(s["pdn"].as_array().unwrap().len(), 2);         assert_eq!(s["esd"].as_array().unwrap().len(), 1);     }++    #[test]+    fn an_antenna_recommends_the_rf_module() {+        // the Fields thread, 2026-12-01: rf was reachable only through spec.fieldsModules+        let b = Board::from_text("t.kicad_pcb", r#"(kicad_pcb (layers (0 "F.Cu" signal) (25 "Edge.Cuts" user)) (gr_rect (start 0 0) (end 30 20) (layer "Edge.Cuts"))+  (footprint "RF_Antenna:Texas_SWRA117D_2.4GHz_Left" (layer "F.Cu") (at 5 5) (property "Reference" "AE1") (pad "1" smd rect (at 0 0) (size 1 1) (layers "F.Cu"))))"#.into()).unwrap();+        let p = recommended_modules(&b, &json!({}));+        assert!(p.modules.contains(&"rf".to_string()), "{:?}", p.modules);+        assert!(p.describe().contains("AE1"), "{}", p.describe());+        let plain = Board::from_text("t.kicad_pcb", r#"(kicad_pcb (layers (0 "F.Cu" signal) (25 "Edge.Cuts" user)) (gr_rect (start 0 0) (end 30 20) (layer "Edge.Cuts")))"#.into()).unwrap();+        assert!(!recommended_modules(&plain, &json!({})).modules.contains(&"rf".to_string()));+        assert!(recommended_modules(&plain, &json!({"rf": {"loHz": 2.4e9}})).modules.contains(&"rf".to_string()));+    }+ }
crates/adom-aiflow/src/fields_suggest.rsadded+166
@@ -0,0 +1,166 @@+//! Fields features AI Flow writes or reads (the Fields thread's list, 2026-12-01). `analyze` turns a same-input Fields+//! solve and the run's own knowledge (requirements, BOM, board) into:+//! - suggestions: spec keys for Fields, each with the fragment to write and why (never written silently: the spec is+//!   the human's; `analyze` prints them and records them in its outcome);+//! - details: what the solve says that AI Flow did not show before (where each hot part's heat goes, capacitors near+//!   their rating, spec net names Fields read in the board's form, the board's outline, module disagreements).+use aiflow_board::Board;+use serde_json::{json, Value};++/// One spec key for Fields, with its value and why.+#[derive(Debug, Clone, PartialEq)]+pub struct Suggestion { pub key: String, pub value: Value, pub why: String }++impl Suggestion {+    pub fn line(&self) -> String { format!("spec \"{}\": {} ({})", self.key, self.value, self.why) }+    pub fn to_json(&self) -> Value { json!({"key": self.key, "value": self.value, "why": self.why}) }+}++/// Footprint libraries of U-numbered parts that are not chips: Fields' decoupling check wants a chip.+fn not_a_chip(lib: &str) -> bool {+    let l = lib.to_ascii_lowercase();+    ["r_array", "resistor", "res_array", "rnet", "led", "display", "connector", "conn_", "header", "socket", "jumper", "switch", "button"]+        .iter().any(|k| l.contains(k))+}++/// The run's words for its enclosure (requirements.json formFactor / enclosure, the spec's enclosure).+fn enclosure_words(spec: &Value, requirements: &Value) -> String {+    [&requirements["enclosure"], &requirements["formFactor"], &spec["enclosure"]].iter()+        .map(|v| if v.is_string() { v.as_str().unwrap_or("").to_string() } else { v.to_string() }).collect::<Vec<_>>().join(" ").to_ascii_lowercase()+}++/// A fan on the board or in the brief.+fn has_fan(board: &Board, spec: &Value, requirements: &Value) -> bool {+    let fp = board.footprints.values().any(|f| f.lib.to_ascii_lowercase().contains("fan") || f.reference.to_ascii_uppercase().starts_with("FAN"));+    fp || requirements.to_string().to_ascii_lowercase().contains("\"fan") || spec["fans"].is_array() || spec["fan"].is_object()+}++pub fn suggestions(spec: &Value, board: &Board, fields: &Value, requirements: &Value) -> Vec<Suggestion> {+    let mut out = Vec::new();+    // 3: the board's air: a sealed box is still air below Fields' 10 W/m2K default+    let words = enclosure_words(spec, requirements);+    if spec.get("hStillWM2k").is_none() && (words.contains("sealed") || words.contains("potted") || words.contains("closed enclosure") || words.contains("ip6") || words.contains("airtight")) {+        out.push(Suggestion { key: "hStillWM2k".into(), value: json!(6), why: "the brief puts the board in a sealed enclosure: about 5 to 8 W/m2K on its faces, not Fields' 10".into() });+    }+    if spec.get("fanLevels").is_none() && has_fan(board, spec, requirements) {+        out.push(Suggestion { key: "fanLevels".into(), value: json!([0, 0.25, 0.5, 0.75, 1]), why: "a fan on the board or in the brief: Fields solves each fan speed and brackets the airflow the board needs".into() });+    }+    // 4: a decoupling finding on a U-numbered part that is not a chip+    let mut skip: Vec<String> = fields["issues"].as_array().into_iter().flatten()+        .filter(|i| i["kind"].as_str().is_some_and(|k| k.starts_with("decoupling")))+        .filter_map(|i| i["reference"].as_str()).filter(|r| r.starts_with('U'))+        .filter(|r| board.footprints.get(*r).is_some_and(|f| not_a_chip(&f.lib)))+        .map(str::to_string).collect();+    skip.sort();+    skip.dedup();+    let already: Vec<String> = spec["decouplingSkip"].as_array().into_iter().flatten().filter_map(|v| v.as_str().map(str::to_string)).collect();+    skip.retain(|r| !already.contains(r));+    if !skip.is_empty() {+        let mut all = already.clone();+        all.extend(skip.iter().cloned());+        out.push(Suggestion { key: "decouplingSkip".into(), value: json!(all), why: format!("{} {} U-numbered but not a chip (its footprint: a resistor network, LED, connector or switch), so Fields' decoupling finding on it is not one", skip.join(", "), if skip.len() == 1 { "is" } else { "are" }) });+    }+    // 5: copper heating that changes the answer: the second pass+    if spec["electroThermal"] != true {+        if let Some(i) = fields["issues"].as_array().into_iter().flatten().find(|i| i["kind"] == "electro-thermal") {+            let pct = i["action"]["jouleIncreasePct"].as_f64().map(|p| format!("{p:.0} %")).unwrap_or_else(|| "over 10 %".into());+            out.push(Suggestion { key: "electroThermal".into(), value: json!(true), why: format!("copper at its solved temperature dissipates {pct} more than at 20 C: solve again with the second pass") });+        }+    }+    out+}++/// Where each hot part's heat goes in the solve (6): its plane, its own vias, through the board, the air, other vias.+pub fn heat_paths(fields: &Value) -> Vec<String> {+    fields["chips"].as_array().into_iter().flatten().filter(|c| c["watts"].as_f64().unwrap_or(0.0) > 0.0).filter_map(|c| {+        let w = c["watts"].as_f64()?;+        let parts: Vec<String> = [("planeW", "copper"), ("viaW", "its vias"), ("dielW", "through the board"), ("airW", "air"), ("otherViaW", "other vias")].iter()+            .filter_map(|(k, name)| c[*k].as_f64().filter(|v| *v > 0.005 * w).map(|v| format!("{name} {:.0} %", 100.0 * v / w))).collect();+        (!parts.is_empty()).then(|| format!("{} ({w:.2} W, +{} C): heat goes to {}", c["reference"].as_str().unwrap_or("?"), c["riseC"].as_f64().map(|r| format!("{r:.0}")).unwrap_or("?".into()), parts.join(", ")))+    }).collect()+}++/// Capacitors within 20 C of their rating in the solve (6), and how many ratings were assumed.+pub fn capacitor_lines(fields: &Value) -> Vec<String> {+    let caps: Vec<&Value> = fields["review"]["checks"]["capacitors"].as_array().or(fields["review"]["capacitors"].as_array()).into_iter().flatten().collect();+    let mut out: Vec<String> = caps.iter().filter(|c| match (c["tempC"].as_f64(), c["ratingC"].as_f64()) { (Some(t), Some(r)) => r - t < 20.0, _ => false })+        .map(|c| format!("{} {} at {:.0} C against its {:.0} C rating{}", c["ref"].as_str().unwrap_or("?"), c["value"].as_str().unwrap_or(""), c["tempC"].as_f64().unwrap_or(0.0), c["ratingC"].as_f64().unwrap_or(0.0),+            if c["ratingAssumed"] == true { " (assumed: give its MPN so Fields reads the real rating)".to_string() } else { c["ratingFrom"].as_str().map(|f| format!(" ({f})")).unwrap_or_default() })).collect();+    let assumed = caps.iter().filter(|c| c["ratingAssumed"] == true).count();+    if assumed > 0 { out.push(format!("{assumed} capacitor rating(s) assumed (no MPN Fields can read)")); }+    out+}++/// Spec net names Fields read in the board's form (6, adom-fields 0.10.12): "GND" taken as "/GND".+pub fn spec_net_lines(fields: &Value) -> Vec<String> {+    let v = &fields["specNets"];+    let pairs: Vec<(String, String)> = match v {+        Value::Object(m) => m.iter().filter_map(|(k, b)| b.as_str().filter(|b| *b != k).map(|b| (k.clone(), b.to_string()))).collect(),+        Value::Array(a) => a.iter().filter_map(|e| Some((e["spec"].as_str()?.to_string(), e["board"].as_str()?.to_string()))).filter(|(s, b)| s != b).collect(),+        _ => Vec::new(),+    };+    pairs.into_iter().map(|(s, b)| format!("spec net {s} read as the board's {b}")).collect()+}++/// The board as Fields solved it (6, adom-fields 0.10.14): its outline and area.+pub fn board_line(fields: &Value) -> Option<String> {+    let b = &fields["board"];+    let area = b["areaMm2"].as_f64()?;+    Some(format!("board solved as {} outline, {area:.0} mm2", b["outline"].as_str().unwrap_or("its")))+}++/// Where Fields' own module advice and AI Flow's choice differ (7).+pub fn module_lines(fields: &Value, ours: &[String]) -> Vec<String> {+    let mut out = Vec::new();+    let ran: Vec<String> = fields["modules"]["ran"].as_array().into_iter().flatten().filter_map(|m| m["module"].as_str().or(m.as_str()).map(|s| s.to_ascii_lowercase())).collect();+    for s in fields["modules"]["skipped"].as_array().into_iter().flatten() {+        let m = s["module"].as_str().unwrap_or("").to_ascii_lowercase();+        if let Some(why) = s["whyItMayMatter"].as_str().filter(|w| !w.trim().is_empty()) {+            if !ours.contains(&m) && !ran.contains(&m) { out.push(format!("Fields suggests the {m} module ({why}); AI Flow did not pick it: add it to spec fieldsModules if it applies")); }+        }+    }+    out+}++#[cfg(test)]+mod tests {+    use super::*;++    fn board() -> Board {+        Board::from_text("t.kicad_pcb", r#"(kicad_pcb (layers (0 "F.Cu" signal) (25 "Edge.Cuts" user)) (gr_rect (start 0 0) (end 30 20) (layer "Edge.Cuts"))+  (footprint "Resistor_SMD:R_Array_Convex_4x0603" (layer "F.Cu") (at 5 5) (property "Reference" "U2") (pad "1" smd rect (at 0 0) (size 1 1) (layers "F.Cu")))+  (footprint "Package_SO:SOIC-8" (layer "F.Cu") (at 15 5) (property "Reference" "U1") (pad "1" smd rect (at 0 0) (size 1 1) (layers "F.Cu")))+  (footprint "Fan:Fan_30mm" (layer "F.Cu") (at 25 15) (property "Reference" "FAN1") (pad "1" thru_hole circle (at 0 0) (size 2 2) (drill 1) (layers "*.Cu"))))"#.into()).unwrap()+    }++    #[test]+    fn suggestions_come_from_the_brief_the_board_and_the_solve() {+        let fields = json!({"issues": [{"kind": "decoupling-far", "reference": "U2"}, {"kind": "decoupling-far", "reference": "U1"}, {"kind": "electro-thermal", "action": {"jouleIncreasePct": 15.7}}]});+        let s = suggestions(&json!({}), &board(), &fields, &json!({"enclosure": "sealed IP67 box"}));+        let keys: Vec<&str> = s.iter().map(|x| x.key.as_str()).collect();+        assert_eq!(keys, vec!["hStillWM2k", "fanLevels", "decouplingSkip", "electroThermal"], "{s:?}");+        assert_eq!(s[2].value, json!(["U2"]), "the SOIC U1 is a chip: its finding stands");+        assert!(s[3].why.contains("16 %"));+        // keys the spec already has are not suggested again+        let set = json!({"hStillWM2k": 7, "fanLevels": [0, 1], "decouplingSkip": ["U2"], "electroThermal": true});+        assert!(suggestions(&set, &board(), &fields, &json!({"enclosure": "sealed"})).is_empty());+    }++    #[test]+    fn the_solves_details_are_read() {+        let fields = json!({+            "chips": [{"reference": "U1", "watts": 2.0, "riseC": 41.0, "planeW": 1.2, "viaW": 0.5, "dielW": 0.2, "airW": 0.1, "otherViaW": 0.0}, {"reference": "D1", "watts": 0.0}],+            "review": {"checks": {"capacitors": [{"ref": "C4", "value": "100n", "tempC": 74.4, "ratingC": 85.0, "ratingAssumed": true}, {"ref": "C3", "tempC": 50.0, "ratingC": 125.0, "ratingAssumed": false}]}},+            "specNets": {"GND": "/GND", "VIN": "VIN"},+            "board": {"outline": "shaped", "areaMm2": 706.9},+            "modules": {"ran": [], "skipped": [{"module": "rf", "whyItMayMatter": "an antenna footprint"}, {"module": "emc", "whyItMayMatter": null}]}});+        let h = heat_paths(&fields);+        assert_eq!(h, vec!["U1 (2.00 W, +41 C): heat goes to copper 60 %, its vias 25 %, through the board 10 %, air 5 %".to_string()]);+        let c = capacitor_lines(&fields);+        assert!(c[0].starts_with("C4 100n at 74 C against its 85 C rating (assumed") && c[1].contains("1 capacitor rating(s) assumed"), "{c:?}");+        assert_eq!(spec_net_lines(&fields), vec!["spec net GND read as the board's /GND".to_string()]);+        assert_eq!(board_line(&fields).unwrap(), "board solved as shaped outline, 707 mm2");+        assert_eq!(module_lines(&fields, &[]).len(), 1);+        assert!(module_lines(&fields, &["rf".into()]).is_empty());+    }+}
crates/adom-aiflow/src/main.rs+17−1
@@ -32,6 +32,7 @@ mod remote_binding; mod placement_verify; mod altium_placement; mod embedded_models;+mod fields_suggest; mod assembly_contacts; mod provenance; mod spec_freeze;@@ -6599,8 +6600,21 @@ fn main() {             let covered_acks = screen.as_ref().map(|c| c.clone()).unwrap_or_default();             let sink_assumptions = aiflow_analyze::board_sink::assumptions(&res);             let field_note=screen.err().unwrap_or_else(||"same-input field screen passed under its stated assumptions".into());+            // the Fields thread's list (2026-12-01): spec keys to give Fields, and what the solve says that was not shown+            let (f_suggest, f_details): (Vec<fields_suggest::Suggestion>, Vec<String>) = match fdoc_loaded.as_ref() {+                Some(fd) => {+                    let sug = fields_suggest::suggestions(&spec, &board_now, fd, &requirements_of(&r));+                    let mut det = Vec::new();+                    if what == "thermal" { det.extend(fields_suggest::heat_paths(fd)); det.extend(fields_suggest::capacitor_lines(fd)); }+                    det.extend(fields_suggest::spec_net_lines(fd));+                    det.extend(fields_suggest::board_line(fd));+                    det.extend(fields_suggest::module_lines(fd, &fields_mod_plan.modules));+                    (sug, det)+                }+                None => (Vec::new(), Vec::new()),+            };             r.stage_end(&name, Some(json!({"pass": passed})), None);-            r.outcome(&name, json!({"pass": passed, "heuristicPass":heuristic_passed, "fieldReport":fields_file, "fieldNote":field_note, "fieldsModulesRan": ran_fields_modules, "fieldsModulesPlan": fields_mod_plan.describe(), "results": res, "acknowledgedPeaks": covered_acks, "expiredAcks": expired_acks, "boardSinkAssumptions": sink_assumptions, "boardSinkNotes": sink_notes}));+            r.outcome(&name, json!({"fieldsSuggestions": f_suggest.iter().map(|x| x.to_json()).collect::<Vec<_>>(), "fieldsDetails": f_details, "pass": passed, "heuristicPass":heuristic_passed, "fieldReport":fields_file, "fieldNote":field_note, "fieldsModulesRan": ran_fields_modules, "fieldsModulesPlan": fields_mod_plan.describe(), "results": res, "acknowledgedPeaks": covered_acks, "expiredAcks": expired_acks, "boardSinkAssumptions": sink_assumptions, "boardSinkNotes": sink_notes}));             r.save().unwrap();             let mut lines: Vec<String> = res.iter().map(|x| format!("{} {}: {}", x.get("net").or(x.get("ref")).and_then(|v| v.as_str()).unwrap_or("?"), x["status"].as_str().unwrap_or(""), x.get("how").or(x.get("hint")).and_then(|v| v.as_str()).unwrap_or(""))).collect();             if fdoc_loaded.is_some() {@@ -6610,6 +6624,8 @@ fn main() {             for c in &covered_acks { lines.push(format!("acknowledged peak: {} {:.1} A/mm2 at ({:.2}, {:.2}) {} by --ack {}: \"{}\" ({}); Fields reports one maximum per net, so check its density map for a second spot", c["net"].as_str().unwrap_or(""), c["peakJ"].as_f64().unwrap_or(0.0), c["at"][0].as_f64().unwrap_or(0.0), c["at"][1].as_f64().unwrap_or(0.0), c["layer"].as_str().unwrap_or(""), c["ack"].as_str().unwrap_or(""), c["why"].as_str().unwrap_or(""), c["aiThread"].as_str().unwrap_or(""))); }             for a in &expired_acks { lines.push(format!("expired acknowledgement (copper or spec changed since the review; acknowledge again if it still holds): {}", aiflow_analyze::current_acks::describe(a, "expired"))); }             for a in &sink_assumptions { lines.push(format!("board-sink assumption: {a}")); }+            for d in &f_details { lines.push(format!("fields: {d}")); }+            for x in &f_suggest { lines.push(format!("fields suggestion: {}", x.line())); }             for n in &sink_notes { lines.push(format!("board sink: {n}")); }             // the copper this analysis judged: the nets with pours, for the drawing and the walkthrough             let mut pour_nets: Vec<String> = Vec::new();
docs/release-0.2.123.mdadded+22
@@ -0,0 +1,22 @@+# adom-aiflow 0.2.123++## More of Adom Fields in analyze (the Fields thread's list, 2026-12-01)++`analyze current` and `analyze thermal` read more of the same-input Fields solve, and suggest the spec keys that would make it more accurate.++**Suggestions** (`fields suggestion:` lines, recorded in the outcome as `fieldsSuggestions`; never written into your spec for you):+- `hStillWM2k`: a board the brief puts in a sealed enclosure has about 5 to 8 W/m2K on its faces, not Fields' default 10.+- `fanLevels: [0, 0.25, 0.5, 0.75, 1]`: a board with a fan, so Fields solves each fan speed and brackets the airflow it needs.+- `decouplingSkip`: a U-numbered part that is not a chip (its footprint is a resistor network, LED, connector or switch) and that Fields flagged for decoupling.+- `electroThermal: true`: when the solve reports copper heating over 10 %, for the second pass.++**Details** (`fields:` lines, recorded as `fieldsDetails`):+- Where each hot part's heat goes: its copper, its vias, through the board, the air, other vias.+- Capacitors within 20 C of their rating, and how many ratings were assumed for want of an MPN.+- Spec net names Fields read in the board's form (`GND` as `/GND`).+- The board's outline and area as solved.+- A module Fields suggests that AI Flow did not pick.++**Modules:** the rf module is now recommended for a board with an antenna footprint (`RF_Antenna:*`, AE1, ANT1) or a spec `rf` section; before, it was reachable only through `spec.fieldsModules`.++The skill names the other keys for boards that have them: `transient` (pulsed loads), `emcFmaxHz`, `victimBudgetsMv`, `tdr`.
package.json+1−1
@@ -1,7 +1,7 @@ {   "slug": "adom-aiflow",   "type": "app",-  "version": "0.2.122",+  "version": "0.2.123",   "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.122",+  "version": "0.2.123",   "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
@@ -362,6 +362,8 @@ After the pours and the analyses: `adom-fields analyze --board <the current boar  adom-fields 0.10 and later write a lean `fields.json` and put each net's plated connections, the flow nets, parts and vias in `detail.json` beside it. aiflow reads both, merged the way adom-fields does, everywhere it reads a Fields report (`analyze`, `finish`, the converter check, the current acknowledgements, the board sink); keep the two files together. A lean report whose `detail.json` is missing is an ERROR naming the file, and the watched-solve record binds the hash of `detail.json` as well as `fields.json`. Older inline reports read as before. +`analyze current` and `analyze thermal` read more of the same-input solve and print it under `fields:`: where each hot part's heat goes (its copper, its vias, through the board, the air), capacitors within 20 C of their rating (and how many ratings were assumed), spec net names Fields read in the board's form (`GND` as `/GND`), the board's outline and area, and a module Fields suggests that AI Flow did not pick. They also print `fields suggestion:` lines, spec keys for Fields with the value and why, recorded in the outcome (`fieldsSuggestions`) and never written for you: `hStillWM2k` for a board in a sealed enclosure (about 5 to 8 W/m2K, Fields' default 10; `hMovingWM2k` for a known airflow, default 25), `fanLevels: [0, 0.25, 0.5, 0.75, 1]` for a board with a fan (Fields solves each speed; `fanExponent` 0.5), `decouplingSkip` for a U-numbered part that is not a chip (a resistor network, LED, connector), and `electroThermal: true` when the solve reports copper heating over 10 %. Write the ones that apply into the spec and solve again. Keys for boards that have them, written by you from the design: `transient: {durationS, steps, powerScale, fromSteady}` for pulsed loads (motor start, hot-plug), `emcFmaxHz` (the stitching-fence frequency), `victimBudgetsMv` (crosstalk budgets per net), `tdr` (TDR runs per net). The rf module is recommended for a board with an antenna footprint or a spec `rf` section.+ The fields walkthrough's take is capped: every window recording aiflow starts carries a 12 Mbit/s peak (`maxBitrate`; `AIFLOW_CLIP_MAX_BITRATE` overrides) and the walkthrough stops itself after 15 minutes. A clip stop never waits without a limit: a take still finalising is polled for up to 5 minutes (`AIFLOW_CLIP_FINALISE_SECONDS`), a take Adom Bridge no longer knows ("No recording with id") is flagged `pullFailed` with the reason at once, and `recut`, `finish` and `deliver` stop and pull a take that was still finalising.  **A switching converter needs `voltages`, `sources` and `switching` in the spec (issue #75).** A run is a converter when the spec declares `switchNodes` or `switching`, or the calcs evidence (`evidence add --kind calcs`) carries a switching frequency (`fsw`, `fsw_kHz`, `switching_frequency_Hz`, ...) or a converter `topology`. Fields models the cycle, the hot loop, emissions and the PDN only with the rails, the part feeding each output and the switching node with its frequency: `"voltages": {"VIN": 12, "VOUT": 5}, "sources": {"VOUT": ["L1"], "SW": ["U1"]}, "switching": {"SW": {"highV": 12, "lowV": 0, "freqHz": 500000, "riseNs": 8}}`. `start`, `evidence add --kind calcs` and `analyze` warn when the block is missing; `tour fields` (the step's proof) and `finish` refuse it, and also refuse a solve whose `fields.json` says it modelled no converter (`review.converter` null) or checked no rail's PDN (`review.pdn.rails` all skipped). The refusal prints the block filled from calcs.json (VIN, VOUT, fsw) and the board (switch, inductor, rails); `riseNs` 8 is adom-fields' default edge time, an estimate to replace from the regulator datasheet. Add the block, solve again, serve, `tour fields`.