← Commit history
Merge PR #629: 0.2.125: fix and verify with Adom Fields (release-0.2.125 -> main) merge
Showing changes introduced by the merge (against its first parent).
9 files changed
+187−16
Cargo.lock+10−10@@ -4,7 +4,7 @@ version = 4 [[package]] name = "adom-aiflow"-version = "0.2.124"+version = "0.2.125" dependencies = [ "aiflow-analyze", "aiflow-board",@@ -27,7 +27,7 @@ dependencies = [ [[package]] name = "aiflow-analyze"-version = "0.2.124"+version = "0.2.125" dependencies = [ "aiflow-board", "serde",@@ -37,7 +37,7 @@ dependencies = [ [[package]] name = "aiflow-board"-version = "0.2.124"+version = "0.2.125" dependencies = [ "roxmltree", "serde",@@ -46,7 +46,7 @@ dependencies = [ [[package]] name = "aiflow-bridge"-version = "0.2.124"+version = "0.2.125" dependencies = [ "aiflow-board", "serde",@@ -55,7 +55,7 @@ dependencies = [ [[package]] name = "aiflow-copper"-version = "0.2.124"+version = "0.2.125" dependencies = [ "aiflow-board", "aiflow-grid",@@ -65,7 +65,7 @@ dependencies = [ [[package]] name = "aiflow-grid"-version = "0.2.124"+version = "0.2.125" dependencies = [ "aiflow-board", "serde",@@ -74,7 +74,7 @@ dependencies = [ [[package]] name = "aiflow-place"-version = "0.2.124"+version = "0.2.125" dependencies = [ "aiflow-board", "serde",@@ -83,7 +83,7 @@ dependencies = [ [[package]] name = "aiflow-pours"-version = "0.2.124"+version = "0.2.125" dependencies = [ "aiflow-board", "aiflow-copper",@@ -93,7 +93,7 @@ dependencies = [ [[package]] name = "aiflow-router"-version = "0.2.124"+version = "0.2.125" dependencies = [ "aiflow-board", "aiflow-grid",@@ -104,7 +104,7 @@ dependencies = [ [[package]] name = "aiflow-run"-version = "0.2.124"+version = "0.2.125" dependencies = [ "serde", "serde_json",
Cargo.toml+1−1@@ -14,7 +14,7 @@ members = [ ] [workspace.package]-version = "0.2.124"+version = "0.2.125" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
bin/adom-aiflow⋯ 1 unchanged line ⋯
crates/adom-aiflow/src/fields_fix.rsadded+104@@ -0,0 +1,104 @@+//! Fix and verify with Adom Fields (the Fields thread's item 1, 2026-12-01). A same-input Fields solve carries a+//! `fixPlan`: numbered steps, each a typed `action` with points. `adom-fields verify` carries out the copper ones+//! (add-vias, widen) on a copy of the board, has KiCad refill the zones and run DRC on the original and the copy, solves+//! both, and writes verify.json (per step applied or why not, the issues cleared and new, the metrics that moved, the+//! DRC errors the fix added). `fields fix` runs it on the run's board and reads the result; `--adopt` takes the fixed+//! board only when KiCad refilled and checked it and it added no DRC error.+use serde_json::Value;++/// The step types `adom-fields verify` can carry out itself; the rest are layout work.+pub const COPPER_EDITS: [&str; 2] = ["add-vias", "widen"];++/// The fix plan split into the steps verify may apply and the ones for the layout (the AI or a person).+pub fn split(fields: &Value) -> (Vec<Value>, Vec<Value>) {+ let steps: Vec<Value> = fields["fixPlan"].as_array().or(fields["fixPlan"]["steps"].as_array()).cloned().unwrap_or_default();+ steps.into_iter().partition(|s| s["action"]["type"].as_str().is_some_and(|t| COPPER_EDITS.contains(&t)))+}++/// One line per layout step: its number, kind and what Fields says to do.+pub fn layout_lines(layout: &[Value]) -> Vec<String> {+ layout.iter().map(|s| format!("step {} ({}, {}): {}", s["step"], s["kind"].as_str().unwrap_or("?"), s["action"]["type"].as_str().unwrap_or("?"), s["do"].as_str().unwrap_or(""))).collect()+}++/// What verify.json says, as lines, and whether the fixed board may be adopted (Err: why not).+pub struct Outcome { pub lines: Vec<String>, pub applied: usize, pub adoptable: Result<(), String> }++pub fn read(verify: &Value) -> Outcome {+ let rep = &verify["report"];+ let steps: Vec<&Value> = rep["steps"].as_array().into_iter().flatten().collect();+ let applied = steps.iter().filter(|s| s["applied"].as_array().is_some_and(|a| !a.is_empty())).count();+ let mut lines = Vec::new();+ for s in &steps {+ let n = s["applied"].as_array().map(|a| a.len()).unwrap_or(0);+ lines.push(match s["refused"].as_str() {+ Some(why) => format!("step {} ({}): not applied: {why}", s["step"], s["action"].as_str().unwrap_or("?")),+ None => format!("step {} ({}): {n} edit(s) applied{}", s["step"], s["action"].as_str().unwrap_or("?"),+ match s["issueCleared"].as_bool() { Some(true) => ", its issue cleared".to_string(), Some(false) => ", its issue still there (read the numbers)".to_string(), None => String::new() }),+ });+ }+ for m in rep["metrics"].as_array().into_iter().flatten() {+ lines.push(format!("{}: {} -> {} {} ({})", m["metric"].as_str().unwrap_or("?"), m["before"], m["after"], m["unit"].as_str().unwrap_or(""), if m["better"] == true { "better" } else { "worse" }));+ }+ let cleared = rep["cleared"].as_array().map(|a| a.len()).unwrap_or(0);+ let new_issues = rep["new"].as_array().map(|a| a.len()).unwrap_or(0);+ lines.push(format!("issues: {} before, {} after ({cleared} cleared, {new_issues} new)", rep["issuesBefore"], rep["issuesAfter"]));+ let drc_new: Vec<String> = verify["drc"]["new"].as_array().into_iter().flatten().map(|e| format!("{}: {}", e["type"].as_str().unwrap_or("?"), e["description"].as_str().unwrap_or(""))).collect();+ if verify["drc"].is_object() { lines.push(format!("KiCad DRC: {} error(s) before, {} after", verify["drc"]["errorsBefore"], verify["drc"]["errorsAfter"])); }+ for d in &drc_new { lines.push(format!("new DRC error: {d}")); }+ let worse: Vec<String> = rep["metrics"].as_array().into_iter().flatten().filter(|m| m["better"] == false).filter_map(|m| m["metric"].as_str().map(str::to_string)).collect();+ let adoptable = if verify["refilled"] != true { Err("KiCad did not refill and check the fixed copy (verify ran without --refill)".to_string()) }+ else if applied == 0 { Err("no step was applied".to_string()) }+ else if !drc_new.is_empty() { Err(format!("the fix added {} DRC error(s)", drc_new.len())) }+ else if new_issues > 0 { Err(format!("the fix brought {new_issues} new Fields issue(s)")) }+ else if !worse.is_empty() { Err(format!("worse after the fix: {}", worse.join(", "))) }+ else { Ok(()) };+ Outcome { lines, applied, adoptable }+}++/// The fixed board verify wrote: its `board`, resolved against the verify folder when relative.+pub fn fixed_board(verify: &Value, out_dir: &std::path::Path) -> Option<std::path::PathBuf> {+ let b = verify["board"].as_str()?;+ let p = std::path::PathBuf::from(b);+ if p.is_absolute() && p.is_file() { return Some(p); }+ let name = p.file_name()?;+ [out_dir.join(name), out_dir.join(&p)].into_iter().find(|c| c.is_file())+}++#[cfg(test)]+mod tests {+ use super::*;+ use serde_json::json;++ #[test]+ fn the_plan_splits_into_copper_edits_and_layout_work() {+ let fields = json!({"fixPlan": [+ {"step": 1, "kind": "decoupling-far", "action": {"type": "move", "ref": "C58"}, "do": "Move C58 within 1 mm of U2 pin 2"},+ {"step": 2, "kind": "tab-rise", "action": {"type": "add-vias", "net": "GND"}, "do": "add vias under the tab"},+ {"step": 3, "kind": "current-neck", "action": {"type": "widen", "toMm": 1.0}, "do": "widen to 1 mm"}]});+ let (copper, layout) = split(&fields);+ assert_eq!(copper.iter().map(|s| s["step"].as_i64().unwrap()).collect::<Vec<_>>(), vec![2, 3]);+ assert_eq!(layout_lines(&layout), vec!["step 1 (decoupling-far, move): Move C58 within 1 mm of U2 pin 2".to_string()]);+ }++ fn verify(refilled: bool, drc_new: Value, better: bool) -> Value {+ json!({"refilled": refilled, "board": "verify/b.kicad_pcb",+ "drc": {"errorsBefore": 9, "errorsAfter": 9, "new": drc_new},+ "report": {"issuesBefore": 4, "issuesAfter": 3, "cleared": [{"kind": "tab-rise"}], "new": [],+ "metrics": [{"metric": "peak rise, still air", "before": 61.0, "after": 48.5, "unit": "C", "better": better}],+ "steps": [{"step": 2, "action": "add-vias", "applied": [[1, 2]], "issueCleared": true},+ {"step": 1, "action": "move", "applied": [], "refused": "`move` is a layout change"}]}})+ }++ #[test]+ fn verify_is_read_and_adopted_only_when_refilled_clean_and_better() {+ let o = read(&verify(true, json!([]), true));+ assert_eq!(o.applied, 1);+ assert!(o.adoptable.is_ok(), "{:?}", o.adoptable);+ assert!(o.lines.iter().any(|l| l == "step 2 (add-vias): 1 edit(s) applied, its issue cleared"), "{:?}", o.lines);+ assert!(o.lines.iter().any(|l| l.starts_with("step 1 (move): not applied")));+ assert!(o.lines.iter().any(|l| l == "peak rise, still air: 61.0 -> 48.5 C (better)"));+ assert!(read(&verify(false, json!([]), true)).adoptable.unwrap_err().contains("--refill"));+ assert!(read(&verify(true, json!([{"type": "copper_edge_clearance", "description": "edge"}]), true)).adoptable.unwrap_err().contains("DRC"));+ assert!(read(&verify(true, json!([]), false)).adoptable.unwrap_err().contains("worse"));+ }+}
crates/adom-aiflow/src/main.rs+54−2@@ -33,6 +33,7 @@ mod placement_verify; mod altium_placement; mod embedded_models; mod fields_suggest;+mod fields_fix; mod assembly_contacts; mod provenance; mod spec_freeze;@@ -345,7 +346,10 @@ enum Cmd { /// RthJC and TJ max, a rail's load step, the ambient), most important first, and writes the fragment to fill (fields/inputs-to-fill.json, /// each value a placeholder naming its datasheet). Fill the values from the datasheets, then `fields fill --patch <file> --why "<sources>"` /// merges them into the spec (refused while a placeholder or an empty value is left), and `analyze` solves again.- Fields { #[arg(value_parser = ["inputs", "fill"])] action: String, #[arg(long)] patch: Option<String>, #[arg(long)] why: Option<String> },+ /// `fields fix [--steps 2,3] [--adopt]` (the Fields thread's item 1): the solve's fix plan, the copper edits (add-vias, widen)+ /// carried out by `adom-fields verify --refill` on a copy of the run's KiCad board (KiCad refills and runs DRC on both, Fields+ /// solves both), what moved, and the layout steps left for you; --adopt takes the fixed board when KiCad checked it clean.+ Fields { #[arg(value_parser = ["inputs", "fill", "fix"])] action: String, #[arg(long)] patch: Option<String>, #[arg(long)] why: Option<String>, #[arg(long)] steps: Option<String>, #[arg(long)] adopt: bool }, Deviate { item: Option<String>, #[arg(long)] why: Option<String>, #[arg(long)] list: bool, #[arg(long)] clear: bool, #[arg(long)] human_ok: Option<String>, #[arg(long)] replaced_by: Option<String> }, /// Hands-on AI Flow (docs/hands-on.md): the human chooses, step by step, whether the AI takes care of it (auto), does it and checks in (checkin), leaves it to them (human) or follows their instructions (custom), saved as flow profiles. `plan [--profile P]` shows the choice on the timeline before any design work; `set STEP=MODE ... [--note STEP=TEXT]`, `start [--save-as NAME] [--default]` confirm it from chat; `use <profile>` switches (full-ai is built in); `ask STEP --summary`, `approve|changes|done STEP --quote`, `wait` carry the human's part; `status`, `profiles [--profile P --default] [--delete P]`, `off`. Handson { #[arg(value_parser = ["plan", "set", "start", "use", "ask", "approve", "changes", "done", "wait", "status", "profiles", "off"])] action: String, args: Vec<String>, #[arg(long)] profile: Option<String>, #[arg(long)] save_as: Option<String>, #[arg(long)] default: bool, #[arg(long)] quote: Option<String>, #[arg(long)] summary: Option<String>, #[arg(long)] note: Vec<String>, #[arg(long)] notify: Option<String>, #[arg(long)] screen: Option<String>, #[arg(long, default_value_t = 540)] timeout: u64, #[arg(long)] delete: Option<String> },@@ -8704,7 +8708,7 @@ fn main() { other => err(&format!("tour {other}: use 3d, nets or fields"), &[]), } }- Cmd::Fields { action, patch, why } => {+ Cmd::Fields { action, patch, why, steps, adopt } => { thread(&cli); let mut r = load_run(&cli); let sp = r.data["spec"].as_str().unwrap_or("").to_string();@@ -8739,6 +8743,54 @@ fn main() { r.save().unwrap(); ok(&format!("{} input(s) filled from datasheets into the spec: {}", set.len(), set.join(", ")), &["Next: `adom-aiflow analyze thermal` (and current): Fields solves again with the datasheet values, and they leave the assumed list.".into()]); }+ "fix" => {+ // verify edits a KiCad file: on Fusion and Altium the live tool holds the board+ if aiflow_bridge::eda::active().id() != "kicad" { err(&format!("fields fix carries out copper edits on a KiCad board file; this run's board is in {}", aiflow_bridge::eda::active().name()), &["Make the fix plan's copper edits in the tool (the steps are in fields.json fixPlan), then `analyze` again.".into()]); }+ let cb = r.current_board();+ // the plan must be of this board and spec: a solve of another board names other copper+ let same = fd["inputIdentity"]["board"].as_str().is_some_and(|b| b == sha256_file(&cb) || copper_carry::carried_from(&r.data, b, Path::new(&cb)).is_ok())+ && fd["inputIdentity"]["spec"].as_str() == Some(sha256_file(&sp).as_str());+ if !same { err("the Fields solve is not of the run's current board and spec, so its fix plan names other copper", &["`adom-aiflow analyze thermal` (or current) solves the current board first, then `fields fix`.".into()]); }+ let (copper, layout) = fields_fix::split(&fd);+ let layout_l = fields_fix::layout_lines(&layout);+ if copper.is_empty() {+ ok(&format!("the fix plan has no copper edits Fields can carry out ({} layout step(s))\n{}", layout.len(), layout_l.join("\n")), &["The layout steps are yours: make them in KiCad, save, `adopt-board`, then `analyze` again.".into()]);+ return;+ }+ let out = dir.join("fields-fix");+ let _ = std::fs::remove_dir_all(&out);+ let mut args: Vec<String> = vec!["verify".into(), "--board".into(), cb.clone(), "--spec".into(), sp.clone(), "--fields".into(), dir.join("fields").display().to_string(), "--refill".into(), "--out".into(), out.display().to_string()];+ let want: Vec<String> = match steps { Some(st) => st.split(',').map(|x| x.trim().to_string()).filter(|x| !x.is_empty()).collect(), None => copper.iter().filter_map(|s| s["step"].as_i64().map(|n| n.to_string())).collect() };+ args.push("--step".into()); args.push(want.join(","));+ eprintln!("adom-fields {}", args.join(" "));+ let st = std::process::Command::new("adom-fields").args(&args).status().unwrap_or_else(|e| err(&format!("adom-fields could not start: {e}"), &["Install adom-fields (adom-wiki pkg install adom/adom-fields).".into()]));+ if !st.success() { err(&format!("adom-fields verify failed ({st})"), &["Read what adom-fields printed above: KiCad's refill and DRC run through kicad-cli (service-kicad, or KiCad on the desktop through Adom Bridge).".into()]); }+ let vj = read_json(&out.join("verify.json").display().to_string());+ let o = fields_fix::read(&vj);+ let fixed = fields_fix::fixed_board(&vj, &out);+ r.outcome("fields-fix", json!({"steps": want, "applied": o.applied, "adoptable": o.adoptable.is_ok(), "why": o.adoptable.as_ref().err(), "verify": out.join("verify.json"), "board": fixed, "layoutSteps": layout.len()}));+ r.save().unwrap();+ let mut msg = format!("Fields fix and verify: {} of {} copper step(s) applied\n{}", o.applied, want.len(), o.lines.join("\n"));+ if !layout_l.is_empty() { msg.push_str(&format!("\nlayout steps for you ({}):\n{}", layout_l.len(), layout_l.join("\n"))); }+ if !*adopt {+ let hint = match &o.adoptable { Ok(()) => format!("The fixed board is clean in KiCad's DRC and better on every metric: `adom-aiflow fields fix --adopt` takes it ({}).", fixed.as_ref().map(|p| p.display().to_string()).unwrap_or_default()), Err(w) => format!("Not adoptable as it is: {w}. Read the steps and numbers above; `--steps` runs a subset.") };+ ok(&msg, &[hint]);+ return;+ }+ if let Err(w) = &o.adoptable { err(&format!("{msg}\nnot adopted: {w}"), &["Run `fields fix --steps <the steps that helped>` for a subset, or make the edits in KiCad yourself.".into()]); }+ let src = fixed.unwrap_or_else(|| err("verify wrote no fixed board", &[]));+ let n = r.data["boards"].as_array().map(|a| a.len()).unwrap_or(1);+ let dest = dir.join(format!("board-{n}.kicad_pcb"));+ std::fs::copy(&src, &dest).unwrap_or_else(|e| err(&e.to_string(), &[]));+ aiflow_copper::copy_project_rules(&cb, &dest.display().to_string()).unwrap_or_else(|e| err(&e, &[]));+ let (_, carry) = copper_carry::adopt(&mut r, &dest.display().to_string());+ r.data["remoteBinding"] = Value::Null;+ r.log("fields-fix-adopted", json!({"source": src, "board": dest, "steps": want, "verify": out.join("verify.json"), "carry": carry}));+ r.save().unwrap();+ ok(&format!("{msg}\nadopted as {}; {carry}", dest.display()), &[+ format!("The desktop's KiCad still has the old board. Save it there, put {} over {} on the desktop, then `adom-aiflow capture reload` and `bind-remote-board --remote-board {}`.", dest.display(), r.data["remoteBoard"].as_str().unwrap_or("<the desktop board>"), r.data["remoteBoard"].as_str().unwrap_or("<the desktop board>")),+ "Then `analyze current` and `analyze thermal` solve the fixed board, and the gate and `measure` run again: the copper changed.".into()]);+ } _ => unreachable!(), } }
docs/release-0.2.125.mdadded+15@@ -0,0 +1,15 @@+# adom-aiflow 0.2.125++## Fix and verify with Adom Fields (the Fields thread's item 1)++A same-input Fields solve carries a fix plan: numbered steps, each a typed action (add vias, widen a neck, move a part, reroute, add copper). AI Flow did not use it. `adom-aiflow fields fix` does, on KiCad runs:++- It splits the plan into the copper edits Fields can carry out itself (add-vias, widen) and the layout steps, which it lists for you with Fields' own instruction (move, reroute, add-copper, add-part, review).+- It runs `adom-fields verify --refill` on a copy of the run's board: Fields applies the copper edits, KiCad refills the zones and runs DRC on the original and the fixed copy, and Fields solves both. kicad-cli runs through service-kicad or the desktop (`KICAD_CLI_TARGET=<the test box>`).+- It prints, per step, what was applied or why not; the metrics that moved, better or worse (peak rise, each part's rise, Joule loss, drops); the issues cleared and new; and any DRC error the fix added. The run records it (`fields-fix`).+- `--steps 2,3` runs a subset.+- `fields fix --adopt` takes the fixed board as the run's next board only when KiCad refilled and checked it, at least one step applied, the fix added no DRC error and no new Fields issue, and no metric got worse. The copper evidence is cleared, as with any copper change. Then put the board over the desktop's, `capture reload`, `bind-remote-board`, and analyze, gate and measure again.+- The solve must be of the run's current board and spec: a plan for other copper is refused.+- Fusion and Altium runs are refused with the reason: verify edits a KiCad file, and there the live tool holds the board.++Tested live on a copy of a Fields test board with KiCad 10.0.8 on the test desktop: one add-vias step applied and its ground-island issue cleared; peak rise in still air 226.6 to 205.6 C; DRC 0 errors before and after; adopted as the run's next board.
package.json+1−1@@ -1,7 +1,7 @@ { "slug": "adom-aiflow", "type": "app",- "version": "0.2.124",+ "version": "0.2.125", "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.124",+ "version": "0.2.125", "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@@ -362,7 +362,7 @@ 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. Fields also lists the inputs it assumed for want of a datasheet value (a hot part's RthJC and TJ max, a rail's load step, the ambient), printed by `analyze` most important first with each part's component page: `adom-aiflow fields inputs` writes the fragment to fill (`fields/inputs-to-fill.json`, each value a placeholder naming its datasheet field); read the datasheets, put the numbers in, keep only the keys you filled, then `adom-aiflow fields fill --patch <file> --why "<datasheet, revision, page for each>"` merges them into the spec (refused while a placeholder or empty value is left) and `analyze` solves again, so the assumption becomes the datasheet's number. 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.+`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. Fields also lists the inputs it assumed for want of a datasheet value (a hot part's RthJC and TJ max, a rail's load step, the ambient), printed by `analyze` most important first with each part's component page: `adom-aiflow fields inputs` writes the fragment to fill (`fields/inputs-to-fill.json`, each value a placeholder naming its datasheet field); read the datasheets, put the numbers in, keep only the keys you filled, then `adom-aiflow fields fill --patch <file> --why "<datasheet, revision, page for each>"` merges them into the spec (refused while a placeholder or empty value is left) and `analyze` solves again, so the assumption becomes the datasheet's number. A same-input solve also carries a fix plan (`fixPlan`): `adom-aiflow fields fix [--steps 2,3]` (KiCad runs) has `adom-fields verify --refill` carry out its copper edits (add-vias, widen) on a copy of the run's board, with KiCad refilling the zones and running DRC on both boards (kicad-cli through service-kicad or the desktop: `KICAD_CLI_TARGET=<the test box>`) and Fields solving both, then prints per step what was applied or why not, the metrics that moved (better or worse), the issues cleared and new, and any DRC error the fix added; the layout steps (move, reroute, add-copper, add-part, review) are listed for you. `fields fix --adopt` takes the fixed board as the run's next board only when KiCad refilled and checked it, at least one step applied, no DRC error and no new issue came of it and nothing got worse; then put it over the desktop board, `capture reload`, `bind-remote-board`, and analyze, gate and measure 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.