← Commit history
Merge PR #646: 0.2.133: adopt adom-fields 0.10.17 (memory plan, capacitor re-solve note) (fields-0.10.17-0.2.133 -> main) merge
Showing changes introduced by the merge (against its first parent).
9 files changed
+180−22
Cargo.lock+11−11@@ -4,7 +4,7 @@ version = 4 [[package]] name = "adom-aiflow"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-analyze", "aiflow-board",@@ -28,7 +28,7 @@ dependencies = [ [[package]] name = "aiflow-analyze"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-board", "aiflow-sys",@@ -39,7 +39,7 @@ dependencies = [ [[package]] name = "aiflow-board"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-sys", "roxmltree",@@ -49,7 +49,7 @@ dependencies = [ [[package]] name = "aiflow-bridge"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-board", "aiflow-sys",@@ -59,7 +59,7 @@ dependencies = [ [[package]] name = "aiflow-copper"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-board", "aiflow-grid",@@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "aiflow-grid"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-board", "serde",@@ -79,7 +79,7 @@ dependencies = [ [[package]] name = "aiflow-place"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-board", "aiflow-sys",@@ -89,7 +89,7 @@ dependencies = [ [[package]] name = "aiflow-pours"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-board", "aiflow-copper",@@ -100,7 +100,7 @@ dependencies = [ [[package]] name = "aiflow-router"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-board", "aiflow-grid",@@ -111,7 +111,7 @@ dependencies = [ [[package]] name = "aiflow-run"-version = "0.2.132"+version = "0.2.133" dependencies = [ "aiflow-sys", "serde",@@ -120,7 +120,7 @@ dependencies = [ [[package]] name = "aiflow-sys"-version = "0.2.132"+version = "0.2.133" dependencies = [ "serde_json", ]
Cargo.toml+1−1@@ -15,7 +15,7 @@ members = [ ] [workspace.package]-version = "0.2.132"+version = "0.2.133" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
crates/adom-aiflow/src/fields_pitch.rs+82−4@@ -60,10 +60,66 @@ pub fn large_board_note(b: &Board, spec: &Value) -> Option<String> { }) } -/// The hints of the current and thermal steps: how a solve counts, and the cell on a large board.-pub fn step_hints(b: &Board, spec: &Value) -> Vec<String> {+/// adom-fields 0.10.17 (adom/adom-fields#39): Fields' own plan for this solve, without solving: `--memory-plan`+/// answers {availableMb, budgetMb, ladder, plan: {cellMm, cellChosen, estimateMb, note} or {refused}}. None from an+/// older Fields (no such flag) or when it cannot run; the cell-count note is the fallback then.+pub fn memory_plan(board: &str, spec_path: &str, with_csv: Option<&str>, spec: &Value) -> Option<Value> {+ let mut args: Vec<String> = vec!["analyze".into(), "--board".into(), board.into(), "--spec".into(), spec_path.into()];+ if let Some(w) = with_csv { args.push("--with".into()); args.push(w.into()); }+ args.extend(self::args(spec, None));+ args.push("--memory-plan".into());+ let o = aiflow_sys::process::Command::new("adom-fields").args(&args).stderr(aiflow_sys::process::Stdio::null()).output().ok()?;+ let v: Value = serde_json::from_slice(&o.stdout).ok()?;+ v["plan"].is_object().then_some(v)+}++/// The cell a Fields refusal says fits ("... --pitch 0.5 fits (about 324 MB)").+pub fn fitting_cell(refused: &str) -> Option<f64> {+ // "at --pitch 0.2 ... needs ...: --pitch 0.5 fits": the cell named just before "fits"+ let head = &refused[..refused.find(" fits")?];+ let i = head.rfind("--pitch ")?;+ head[i + 8..].trim().parse().ok().filter(|p: &f64| *p > 0.0)+}++/// What Fields' plan says, in the run's words: a refusal (with the spec line that fits), a cell Fields fitted itself,+/// or the cell and its memory.+pub fn plan_lines(reply: &Value, spec: &Value) -> Vec<String> {+ let plan = &reply["plan"];+ let mb = |v: &Value| v.as_f64().map(|m| format!("{m:.0} MB"));+ if let Some(refused) = plan["refused"].as_str() {+ let mut l = format!("Adom Fields would refuse this solve: {refused}");+ if let Some(c) = fitting_cell(refused) { l.push_str(&format!(". Set the spec's cell: \"fieldsPitch\": {c}")); }+ else if !spec["fieldsPitch"].is_null() { l.push_str(". Or remove spec fieldsPitch so Fields fits the cell itself"); }+ return vec![l];+ }+ let cell = plan["cellMm"].as_f64().unwrap_or(DEFAULT_MM);+ let est = mb(&plan["estimateMb"]).unwrap_or_else(|| "?".into());+ let free = mb(&reply["availableMb"]).unwrap_or_else(|| "?".into());+ match plan["cellChosen"].as_str() {+ Some("fitted") => vec![format!("Adom Fields will solve at a {cell} mm cell it fitted itself ({})", plan["note"].as_str().unwrap_or("the default did not fit in memory"))],+ Some("given") => vec![format!("Adom Fields will solve at spec fieldsPitch {cell} mm: about {est}, {free} free")],+ _ => vec![format!("Adom Fields will solve at its default {cell} mm cell: about {est}, {free} free")],+ }+}++/// The cell and memory a solve used (fields.json `memory`, adom-fields 0.10.17+), one line, or None before it.+pub fn solved_line(fields: &Value) -> Option<String> {+ let m = &fields["memory"];+ let cell = m["cellMm"].as_f64()?;+ let how = match m["cellChosen"].as_str() { Some("given") => "spec fieldsPitch", Some("fitted") => "fitted by Fields", _ => "default" };+ let peak = m["peakMb"].as_f64().map(|p| format!(", peak {p:.0} MB")).unwrap_or_default();+ let note = m["note"].as_str().map(|n| format!(": {n}")).unwrap_or_default();+ Some(format!("Fields solved at a {cell} mm cell ({how}){peak}{note}"))+}++/// The hints of the current and thermal steps: how a solve counts, and the cell: Fields' own plan when it can make+/// one (adom-fields 0.10.17+), else the cell-count note on a large board.+pub fn step_hints(b: &Board, spec: &Value, plan: Option<&Value>) -> Vec<String> { let mut out = vec!["A Fields solve counts as evidence only when this run started or watched it: let `analyze` start it, or run it yourself as `adom-aiflow exec -- adom-fields analyze ...`. A fields.json made any other way is solved again by `analyze`, with spec fieldsPitch as the cell.".to_string()];- out.extend(large_board_note(b, spec));+ match plan {+ Some(p) => out.extend(plan_lines(p, spec)),+ None => out.extend(large_board_note(b, spec)),+ } out } @@ -91,6 +147,28 @@ mod tests { assert!(super::large_board_note(&big, &json!({"fieldsPitch": 0.45})).is_none()); // a molecule-sized board says nothing assert!(super::large_board_note(&board(28.0, 20.0), &json!({})).is_none());- assert!(super::step_hints(&big, &json!({}))[0].contains("adom-aiflow exec -- adom-fields"));+ assert!(super::step_hints(&big, &json!({}), None)[0].contains("adom-aiflow exec -- adom-fields"));+ // with Fields' own plan, its words replace the cell count+ let fitted = json!({"availableMb": 400.0, "plan": {"cellMm": 0.3, "cellChosen": "fitted", "estimateMb": 315.0, "note": "solved at a 0.3 mm cell, not the default 0.2 mm"}});+ let h = super::step_hints(&big, &json!({}), Some(&fitted));+ assert!(h.len() == 2 && h[1].contains("0.3 mm cell it fitted itself") && !h[1].contains("million cells"), "{h:?}");+ }+ #[test]+ fn fields_own_plan_is_said_in_the_runs_words() {+ // adom-fields 0.10.17 (adom/adom-fields#39): the replies of --memory-plan, measured on a 160 x 99 mm board+ let refused = json!({"availableMb": 400.0, "plan": {"refused": "at --pitch 0.2 this 190 x 240 mm board needs about 1.8 GB and 400 MB is free: --pitch 0.5 fits (about 324 MB)"}});+ assert_eq!(super::fitting_cell(refused["plan"]["refused"].as_str().unwrap()), Some(0.5));+ let l = super::plan_lines(&refused, &json!({"fieldsPitch": 0.2}));+ assert!(l[0].starts_with("Adom Fields would refuse this solve") && l[0].ends_with("\"fieldsPitch\": 0.5"), "{l:?}");+ let none_fits = json!({"plan": {"refused": "this board needs about 673 MB at a 0.2 mm cell and only 50 MB is free; even a 1 mm cell doesn't fit"}});+ assert!(super::fitting_cell(none_fits["plan"]["refused"].as_str().unwrap()).is_none());+ let given = json!({"availableMb": 10637.0, "plan": {"cellMm": 0.4, "cellChosen": "given", "estimateMb": 190.0}});+ assert_eq!(super::plan_lines(&given, &json!({"fieldsPitch": 0.4}))[0], "Adom Fields will solve at spec fieldsPitch 0.4 mm: about 190 MB, 10637 MB free");+ let default = json!({"availableMb": 10637.0, "plan": {"cellMm": 0.2, "cellChosen": "default", "estimateMb": 673.0, "note": null}});+ assert!(super::plan_lines(&default, &json!({}))[0].contains("default 0.2 mm cell: about 673 MB"));+ // what a solve used+ let solved = json!({"memory": {"cellMm": 0.3, "cellChosen": "fitted", "peakMb": 290.0, "note": "0.2 mm would need 673 MB"}});+ assert_eq!(super::solved_line(&solved).unwrap(), "Fields solved at a 0.3 mm cell (fitted by Fields), peak 290 MB: 0.2 mm would need 673 MB");+ assert!(super::solved_line(&json!({"board": {"cellMm": 0.2}})).is_none()); } }
crates/adom-aiflow/src/fields_versions.rs+50@@ -17,6 +17,8 @@ //! 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.17 (adom/adom-fields#40, monrad): a CP_Radial_/CP_Axial_ capacitor, or any capacitor over 100 uF, was read as a+//! ceramic, which invented a hot-plug overshoot and the wrong PDN impedance. Other boards are byte-identical. use serde_json::Value; use std::path::Path; @@ -66,6 +68,15 @@ pub fn stale_notes(fields: &Value, spec: &Value, board: &Path) -> Vec<String> { } } }+ // 0.10.17: a polarized (CP_Radial/CP_Axial) or 100 uF+ capacitor was read as a ceramic+ if solver < (0, 10, 17) {+ if let Some(b) = plan_board(board, &text) {+ let parts = ceramic_misread(spec, &b);+ if !parts.is_empty() {+ out.push(format!("this Fields solve is adom-fields {}, before 0.10.17, which read {} as ceramic capacitor(s): the PDN impedance and any hot-plug overshoot it found are wrong. Update adom-fields (adom-wiki pkg install adom/adom-fields; 0.10.17 reads them as electrolytic, or as the spec's `capacitors` names them) and analyze again", version_text(solver), parts.join(", ")));+ }+ }+ } if solver < (0, 10, 9) && text.contains("(kicad_pcb") { if let Ok(b) = aiflow_board::Board::from_text(&board.display().to_string(), text) { let mut parts = Vec::new();@@ -81,6 +92,29 @@ pub fn stale_notes(fields: &Value, spec: &Value, board: &Path) -> Vec<String> { out } +/// adom-fields 0.10.17: the capacitors an older Fields read as ceramics: a CP_Radial_/CP_Axial_ footprint, or a+/// value over 100 uF, unless the spec's `capacitors` names the part.+pub fn ceramic_misread(spec: &Value, b: &aiflow_board::Board) -> Vec<String> {+ let named = |r: &str| spec["capacitors"].get(r).is_some();+ let mut out: Vec<String> = b.footprints.iter().filter(|(r, fp)| {+ let is_cap = r.starts_with('C') && r[1..].chars().next().is_some_and(|c| c.is_ascii_digit());+ let lib = fp.lib.to_ascii_lowercase();+ let polar = lib.contains("cp_radial") || lib.contains("cp_axial");+ let big = footprint_value(b, fp).as_deref().and_then(crate::usb_power::parse_capacitance_uf).is_some_and(|uf| uf > 100.0 - 1e-9);+ is_cap && (polar || big) && !named(r)+ }).map(|(r, _)| r.clone()).collect();+ out.sort();+ out+}++/// A footprint's Value property, if it has one.+fn footprint_value(b: &aiflow_board::Board, fp: &aiflow_board::Footprint) -> Option<String> {+ let block = b.text.get(fp.start..fp.end)?;+ let i = block.find("(property \"Value\" \"")?;+ let rest = &block[i + 19..];+ Some(rest[..rest.find('"')?].to_string())+}+ /// The board model of the solved board file: a KiCad board as it is, a Fusion/EAGLE .brd through AI Flow's own /// rendering (its Dimension layer becomes Edge.Cuts). fn plan_board(board: &Path, text: &str) -> Option<aiflow_board::Board> {@@ -277,6 +311,22 @@ mod tests { } + /// adom-fields 0.10.17: a polarized or 100 uF+ capacitor solved before it is told to solve again; a small ceramic is not,+ /// and a part the spec's `capacitors` names is not.+ #[test]+ fn electrolytics_read_as_ceramic_are_told_to_solve_again() {+ let fp = |r: &str, lib: &str, v: &str, x: f64| format!(r#"(footprint "{lib}" (layer "F.Cu") (at {x} 5) (property "Reference" "{r}") (property "Value" "{v}"))"#);+ let text = format!(r#"(kicad_pcb (gr_rect (start 0 0) (end 40 10) (layer "Edge.Cuts")) {} {} {} {})"#,+ fp("C1", "Capacitor_THT:CP_Radial_D8.0mm_P3.50mm", "47uF", 5.0), fp("C2", "Capacitor_SMD:C_1210_3225Metric", "220uF", 15.0),+ fp("C3", "Capacitor_SMD:C_0603_1608Metric", "100nF", 25.0), fp("CR1", "Diode_SMD:D_SMA", "SS34", 35.0));+ let p = tmp("caps.kicad_pcb", &text);+ let old = stale_notes(&json!({"inputIdentity": {"solverVersion": "0.10.16"}}), &json!({}), &p);+ assert!(old.iter().any(|n| n.contains("before 0.10.17") && n.contains("C1, C2 as ceramic")), "{old:?}");+ let named = stale_notes(&json!({"inputIdentity": {"solverVersion": "0.10.16"}}), &json!({"capacitors": {"C1": {"type": "electrolytic"}}}), &p);+ assert!(named.iter().any(|n| n.contains("read C2 as ceramic")), "{named:?}");+ assert!(stale_notes(&json!({"inputIdentity": {"solverVersion": "0.10.17"}}), &json!({}), &p).is_empty());+ }+ /// adom-fields 0.10.15: a hot SMD part on the bottom side, solved before it, is told to solve again; one on top is not. #[test] fn a_bottom_hot_part_solved_before_0_10_15_is_told_to_solve_again() {
crates/adom-aiflow/src/main.rs+18−3@@ -564,7 +564,12 @@ fn board_step_hints(r: &Run, step: &str) -> Vec<String> { let spec = spec_soft(r); let mut out = Vec::new(); // issue #273: how a Fields solve counts, and the cell on a large board, before the long solve- if matches!(step, "current" | "thermal") { out.extend(fields_pitch::step_hints(&b, &spec)); }+ if matches!(step, "current" | "thermal") {+ // adom-fields 0.10.17: its own memory plan for this board, spec and modules, before the long solve+ let with = fields_review::recommended_modules(&b, &spec).with_csv();+ let plan = r.data["spec"].as_str().and_then(|sp| fields_pitch::memory_plan(&path, sp, with.as_deref(), &spec));+ out.extend(fields_pitch::step_hints(&b, &spec, plan.as_ref()));+ } if step == "silkscreen" { out.extend(silk_polarity::power_input_hint(&b)); let profile = checks::rules_target(&spec, &r.data["fabRules"]).map(|t| t.0);@@ -6582,13 +6587,23 @@ fn main() { // issue #273: the spec's cell, refused before a long solve when it is not one if let Err(e) = fields_pitch::pitch(&spec) { err(&e, &[]); } args.extend(fields_pitch::args(&spec, None));+ // adom-fields 0.10.17: its own plan first: a solve it would refuse is not started, a cell it fits is said+ let plan = fields_pitch::memory_plan(&solved_board, r.data["spec"].as_str().unwrap_or(""), fields_mod_plan.with_csv().as_deref(), &spec);+ let refused = plan.as_ref().and_then(|p| p["plan"]["refused"].as_str().map(|_| fields_pitch::plan_lines(p, &spec).join(" ")));+ if let Some(why) = refused {+ unobserved = Some(format!("{why}; then `adom-aiflow analyze {what}` again (or solve it yourself through `adom-aiflow exec -- adom-fields {}`)", args.join(" ")));+ } else { eprintln!("{} was not produced by an Adom Fields solve this run watched; solving it now ({}): adom-fields {}", fields_file.display(), fields_mod_plan.describe(), args.join(" "));- if let Some(n) = fields_pitch::large_board_note(&board_now, &spec) { eprintln!("WARNING: {n}. Stop it (Ctrl-C), set the cell and analyze {what} again; or solve it yourself through `adom-aiflow exec -- adom-fields {}`.", args.join(" ")); }+ match &plan {+ Some(p) => for l in fields_pitch::plan_lines(p, &spec) { eprintln!("{l}"); },+ None => if let Some(n) = fields_pitch::large_board_note(&board_now, &spec) { eprintln!("WARNING: {n}. Stop it (Ctrl-C), set the cell and analyze {what} again; or solve it yourself through `adom-aiflow exec -- adom-fields {}`.", args.join(" ")); },+ } match aiflow_sys::process::Command::new("adom-fields").args(&args).status() {- Ok(st) if st.success() => { fields_file = out_dir.join("fields.json"); let mut full=vec!["adom-fields".to_string()]; full.extend(args.clone()); record_fields_solve(&mut r, &fields_file, "analyze", &full); r.save().unwrap(); }+ Ok(st) if st.success() => { fields_file = out_dir.join("fields.json"); if let Some(l) = std::fs::read(&fields_file).ok().and_then(|b| serde_json::from_slice::<Value>(&b).ok()).as_ref().and_then(fields_pitch::solved_line) { eprintln!("{l}"); } let mut full=vec!["adom-fields".to_string()]; full.extend(args.clone()); record_fields_solve(&mut r, &fields_file, "analyze", &full); r.save().unwrap(); } Ok(st) => { unobserved = Some(format!("the field solve aiflow started failed ({st}); fix what adom-fields printed, then `adom-aiflow exec -- adom-fields {}` and analyze {what} again", args.join(" "))); } Err(e) => { unobserved = Some(format!("{} was not produced by an Adom Fields solve this run watched, and adom-fields could not start ({e}): install adom-fields, then `adom-aiflow exec -- adom-fields {}`", fields_file.display(), args.join(" "))); } }+ } } if !ack.is_empty() && (unobserved.is_some() || !fields_file.is_file()) { err("--ack needs a same-input Fields solve this run watched to read the peak from; analyze current without --ack first", &[]); } let mut expired_acks: Vec<Value> = Vec::new();
docs/release-0.2.133.mdadded+15@@ -0,0 +1,15 @@+# adom-aiflow 0.2.133++Adopts adom-fields 0.10.17 (adom/adom-fields#39, #40).++## Fields plans its own memory++adom-fields 0.10.17 estimates a solve's memory before it starts: with no `--pitch` it takes the finest cell that fits in free memory, and a `--pitch` that does not fit is refused at once, naming the cell that does.++- `step current` and `step thermal` print Fields' own plan for this board, spec and modules (`adom-fields analyze ... --memory-plan`): the cell, its memory and the free memory, the cell Fields fitted itself and why, or the refusal with the spec line that fits (`"fieldsPitch": 0.5`). This replaces 0.2.128's cell-count estimate, which stays only for an older adom-fields.+- When `analyze` would start its own solve, it asks for the plan first: a solve Fields would refuse is not started (the analysis says why and what to set), and a cell Fields fits itself is said before the solve. After the solve it prints the cell used and the peak memory (fields.json `memory`).+- `fieldsPitch` still goes to every solve AI Flow starts as `--pitch`, and `fields fix` still reuses the solved cell.++## Solve again where 0.10.17 reads capacitors differently++Before 0.10.17, adom-fields read a CP_Radial/CP_Axial capacitor, or any capacitor of 100 uF or more, as a ceramic, which invented a hot-plug overshoot and gave the wrong PDN impedance. `analyze` now names those parts on a solve made by an older adom-fields and suggests updating and solving again; a part the spec's `capacitors` names is left out. Other boards solve byte-identically, so nothing else is flagged.
package.json+1−1@@ -1,7 +1,7 @@ { "slug": "adom-aiflow", "type": "app",- "version": "0.2.132",+ "version": "0.2.133", "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.132",+ "version": "0.2.133", "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+1−1@@ -360,7 +360,7 @@ A KiCad run that starts with no board (`intake` with no `start --board`) follows After the pours and the analyses: `adom-fields analyze --board <the current board> --spec <spec> --out fields` (about two minutes; `adom-wiki pkg install adom/adom-fields` if it is missing), `adom-fields serve --fields fields --port 8874 &`, then `step fields` and `tour fields`: the binary opens the app in a pup window on the test box, films that window while `adom-fields tour` walks the board gently (the app paces itself: slow eased moves about nine seconds long, the board drifting a few degrees through every held beat, one copper pour isolated at a time, a quick turn-over to the bottom layer, because the flow plays this clip back at ten times speed, where a snap reads as frenetic) (each net lit, the hot parts, the issues flown to; the app's toasts are the captions), and records the issues in the run. When the Fields URL is a localhost proxy (an Adom Hydrogen desktop container's `VSCODE_PROXY_URI` is `http://{{port}}.localhost:<port>/`, reachable only on the machine hosting the container), the window opens on the user's primary machine (`adom-bridge targets` names it) instead of the test box, and the answer says so; `--on <box>` overrides. The issues (a current neck, a tab over its rise budget, a chip missing its thermal vias) are yours to answer before delivery; the app's screenshots are drawings you can register with `artifact`. -**Run the solve through aiflow, and size its cell to the board (issue #273).** A Fields solve counts only when this run started or watched it: run it as `adom-aiflow exec -- adom-fields analyze ...`, or let `analyze current|thermal` start it (a fields.json made any other way is solved again there). adom-fields solves at a 0.2 mm cell by default, a minute on a 65 x 75 mm board but more memory than a container has on a 190 x 240 mm one. Put the cell in the spec, `"fieldsPitch": 0.4` (mm), and aiflow passes it to every solve it starts (`analyze`, `fields fix`; `fields fix` otherwise reuses the cell of the solve it fixes). `step current` and `step thermal` name a large board and the cell to set before the long solve starts; pass the same `--pitch` when you run the solve yourself.+**Run the solve through aiflow, and size its cell to the board (issue #273).** A Fields solve counts only when this run started or watched it: run it as `adom-aiflow exec -- adom-fields analyze ...`, or let `analyze current|thermal` start it (a fields.json made any other way is solved again there). adom-fields solves at a 0.2 mm cell by default, a minute on a 65 x 75 mm board but more memory than a container has on a 190 x 240 mm one. Put the cell in the spec, `"fieldsPitch": 0.4` (mm), and aiflow passes it to every solve it starts (`analyze`, `fields fix`; `fields fix` otherwise reuses the cell of the solve it fixes). With adom-fields 0.10.17 and later, Fields plans its own memory: with no `fieldsPitch` it takes the finest cell that fits in free memory, and a `fieldsPitch` that does not fit is refused at once with the cell that does. `step current` and `step thermal` print Fields' plan for this board before the long solve (`adom-fields analyze ... --memory-plan`), `analyze` does not start a solve Fields would refuse and says the spec line to set, and after a solve it prints the cell used and the peak memory. Pass the same `--pitch` when you run the solve yourself. 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.