← Commit history
0.2.119: tour fields follows the screen mode on macOS (#123); KiCad Bridge 1.1.11 version pin and footprintsNotAsPlanned
Co-Authored-By: Claude Opus 5.5 <[email protected]>
10 files changed
+113−27
Cargo.lock+10−10@@ -4,7 +4,7 @@ version = 4 [[package]] name = "adom-aiflow"-version = "0.2.118"+version = "0.2.119" dependencies = [ "aiflow-analyze", "aiflow-board",@@ -25,7 +25,7 @@ dependencies = [ [[package]] name = "aiflow-analyze"-version = "0.2.118"+version = "0.2.119" dependencies = [ "aiflow-board", "serde",@@ -35,7 +35,7 @@ dependencies = [ [[package]] name = "aiflow-board"-version = "0.2.118"+version = "0.2.119" dependencies = [ "roxmltree", "serde",@@ -44,7 +44,7 @@ dependencies = [ [[package]] name = "aiflow-bridge"-version = "0.2.118"+version = "0.2.119" dependencies = [ "aiflow-board", "serde",@@ -53,7 +53,7 @@ dependencies = [ [[package]] name = "aiflow-copper"-version = "0.2.118"+version = "0.2.119" dependencies = [ "aiflow-board", "aiflow-grid",@@ -63,7 +63,7 @@ dependencies = [ [[package]] name = "aiflow-grid"-version = "0.2.118"+version = "0.2.119" dependencies = [ "aiflow-board", "serde",@@ -72,7 +72,7 @@ dependencies = [ [[package]] name = "aiflow-place"-version = "0.2.118"+version = "0.2.119" dependencies = [ "aiflow-board", "serde",@@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "aiflow-pours"-version = "0.2.118"+version = "0.2.119" dependencies = [ "aiflow-board", "aiflow-copper",@@ -91,7 +91,7 @@ dependencies = [ [[package]] name = "aiflow-router"-version = "0.2.118"+version = "0.2.119" dependencies = [ "aiflow-board", "aiflow-grid",@@ -102,7 +102,7 @@ dependencies = [ [[package]] name = "aiflow-run"-version = "0.2.118"+version = "0.2.119" dependencies = [ "serde", "serde_json",
Cargo.toml+1−1@@ -14,7 +14,7 @@ members = [ ] [workspace.package]-version = "0.2.118"+version = "0.2.119" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
bin/adom-aiflow⋯ 1 unchanged line ⋯
crates/adom-aiflow/src/main.rs+39−7@@ -401,6 +401,8 @@ enum Cmd { #[arg(long)] isolated: bool, /// reload: revert even when the editor shows unsaved edits; close: close without saving #[arg(long)] discard: bool,+ /// open --isolated only: the KiCad install the run's editor uses ("9.0", "10.0.8"; KiCad Bridge 1.1.11+). Default: the newest stable release+ #[arg(long)] kicad_version: Option<String>, /// reject only: take the clip off the run page and out of the run (privacy: another project or a person was filmed), not kept as evidence #[arg(long)] off_page: bool }, /// The comparison page: a sub-README for this run and another (`compose --with` first), the side-by-side video first, then the numbers from both ledgers, the AIs' drawings side by side and the links to both run pages; --push puts it on the page under docs/comparisons/<a>-vs-<b>/@@ -3449,6 +3451,11 @@ fn live_board(r: &Run, cli: &Cli, dir: &std::path::Path) -> Option<(String, Stri } } +/// Issue #123: whether the Fields walkthrough is filmed. Nothing when recording is off; an off-screen window (pup's+/// on macOS) only when the screen mode lets AI Flow raise it over the desktop (`allowed`), since an unpainted window+/// films nothing and raising it on the human's own machine is their call.+fn fields_film(record: bool, offscreen: bool, may_raise: bool) -> bool { record && (!offscreen || may_raise) }+ /// Issue #229: one fresh read of the live Altium board (the plan board rendered from it, and the /// read's revision). fn altium_live_read(r: &Run, cli: &Cli, dir: &std::path::Path) -> (Board, String) {@@ -7120,7 +7127,7 @@ fn main() { r.save().unwrap(); ok(&(format!("finished: {} from the prompt to a board {}, {:.1} min\npours: {}\n{}{}", r.data["engine"], match (open_items.len(), deviated.len()) { (0, 0) => "passing the configured screens".to_string(), (0, d) => format!("passing the configured screens except {d} recorded deviation(s), listed below"), (o, d) => format!("with {o} open item(s) still worth a look{} (listed above; finish again after any change)", if d > 0 { format!(" and {d} recorded deviation(s)") } else { String::new() }) }, r.elapsed_minutes(), pourverify::mode_label(r.outcomes().get("land-pours").unwrap_or(&Value::Null)), step_table(&r), if lib_parts.is_empty() { String::new() } else { format!("\nparts from a project library (no public component page): {}", lib_parts.join("; ")) }) + &na_text(&r.data["summary"]["notApplicable"]) + &flow_gaps::text(&gaps) + &if reviewed.is_empty() { String::new() } else { format!("\nreviewed exceptions and assumptions:\n {}", reviewed.join("\n ")) } + &if deviated.is_empty() { String::new() } else { format!("\nfinished with {} recorded deviation(s) (checks this board did not meet, accepted on purpose):\n {}", deviated.len(), deviated.iter().map(|d| format!("{}: {} (why: {})", d["item"].as_str().unwrap_or(""), d["line"].as_str().unwrap_or(""), d["why"].as_str().unwrap_or(""))).collect::<Vec<_>>().join("\n ")) } + &if quality_lines.is_empty() { String::new() } else { format!("\n{}", quality_lines.join("\n")) } + "\n" + &verified::message(&checked)), &[flow_gaps::hint(&gaps).unwrap_or_default(), "Tell the human exactly the verified list above; never call the board ready to fabricate unless every item says yes, and even then advise a human review.".into(), "The run is not delivered yet: cut the video, then `adom-aiflow deliver --video <mp4> --message \"<what you tell the human>\"`; the clock stops there, not here.".into(), "Add your token and dollar accounting to run.json under tokens and usd; the manifest is the row on the chart.".into(), results_hint(&r), page_build_hint(&r), molecule_publish_hint(&r).unwrap_or_default(), give_back_hint()]); }- Cmd::Capture { action, label, reason, off_page, isolated, discard } => {+ Cmd::Capture { action, label, reason, off_page, isolated, discard, kicad_version } => { let mut r = load_run(&cli); if action == "screen" { // the human's word, mid-run: "you can take my screen now" -> allowed, until they say otherwise@@ -7145,13 +7152,15 @@ fn main() { "open" if *isolated => { let raise = screen_mode(&mut r).may_raise(); let why = reason.clone().unwrap_or_else(|| format!("aiflow run {engine}: the run's own editor"));- let iso = br.open_isolated(&rb, &why, raise).unwrap_or_else(|f| { use aiflow_bridge::isolated::Refusal; match f {+ let iso = br.open_isolated(&rb, &why, raise, kicad_version.as_deref()).unwrap_or_else(|f| { use aiflow_bridge::isolated::Refusal; match f {+ Refusal::KicadVersion(m) => err(&format!("the KiCad bridge did not open that KiCad: {m}"), &[format!("{}The live verbs refuse a 10.99 development editor; open with a stable install (the default, or `--kicad-version <installed stable version>`).", kicad_version.as_deref().map(|v| format!("--kicad-version {v} is not an installed KiCad: give one the desktop has, or leave it out for the newest stable release. ")).unwrap_or_default())]), Refusal::BoardLocked(m) => err(&format!("another KiCad has {rb} open, so the bridge refused a second editor: {m}"), &["Work on a copy: copy the board (with its .kicad_pro and .kicad_dru) to a new name, `adom-aiflow start` on the copy, then `capture open --isolated`. Never close the other editor.".into()]), Refusal::Unsupported(m) => err(&format!("the KiCad bridge did not open an isolated editor: {m}"), &["Update the KiCad bridge to 1.1.5 or newer (`adom-bridge bridge_update '{\"name\":\"kicad\"}'`), or use `capture open` (the shared editor).".into()]), Refusal::UnsavedChanges(m) | Refusal::Other(m) => err(&format!("could not open the board in an isolated editor: {m}"), &[]), }}); std::env::set_var("ADOM_AIFLOW_KICAD_SOCKET", &iso.socket); r.data["kicadIsolated"] = iso.record(&rb, &now());+ if let Some(v) = kicad_version.as_deref().filter(|v| !v.trim().is_empty()) { r.data["kicadIsolated"]["kicadVersion"] = json!(v.trim()); } r.data["captures"].as_array_mut().unwrap().push(json!({"opened": now(), "hwnd": iso.hwnd, "window": iso.title, "isolated": true})); r.save().unwrap(); let (revision, reply) = br.revision_with_reply(&rb);@@ -7263,6 +7272,7 @@ fn main() { ok(&format!("board reloaded from the file, revision {}; {changed}", rl.revision.unwrap_or("?".into())), &[warn, "Re-run the check that wanted the edit (`gate`, `measure`) so it reads the new revision.".into()]); } Err(Refusal::UnsavedChanges(m)) => err(&format!("the editor has unsaved edits, so it was not reloaded: {m}"), &["Save them first (`adom-bridge kicad_save_board` with the board's filePath and, for an isolated editor, its socketPath), or `capture reload --discard` to drop them.".into()]),+ Err(Refusal::KicadVersion(m)) => err(&format!("could not reload the board: {m}"), &["The live verbs refuse a 10.99 development editor (KiCad Bridge 1.1.11): close it, then `capture open --isolated` with a stable KiCad.".into()]), Err(Refusal::BoardLocked(m) | Refusal::Unsupported(m) | Refusal::Other(m)) => err(&format!("could not reload the board: {m}"), &["`kicad_reload_board` needs KiCad Bridge 1.1.5 or newer.".into()]), } }@@ -8575,11 +8585,21 @@ fn main() { // issue #180: AIFLOW_AUTO_CAPTURE=off records nothing (the tour still drives the views and takes // its screenshots); a recorder problem is a note, never a stop; a take is capped in length AND size let record = !auto_capture_off();- // an off-screen window records nothing (#123): put it on screen for the take, then tuck it away+ // an off-screen window records nothing (#123): put it on screen for the take, then tuck it away.+ // Only when the screen is AI Flow's to take (`allowed`): on the human's own machine (hands-off, ask)+ // a window raised over their work for the ten-minute walkthrough is their call, so the walkthrough+ // runs and records its results, but it is not filmed let offscreen = offscreen && record;- let raised = offscreen && Bridge::ok(&br.call("pup_raise_os_window", &json!({"sessionId": sid, "reason": "aiflow fields walkthrough: an off-screen window is not painted, so it cannot be filmed; lowered again when the take ends"})));+ let mode = screen_mode(&mut r);+ let film = fields_film(record, offscreen, mode.may_raise());+ let raised = offscreen && film && Bridge::ok(&br.call("pup_raise_os_window", &json!({"sessionId": sid, "reason": "aiflow fields walkthrough: an off-screen window is not painted, so it cannot be filmed; lowered again when the take ends"})));+ // a raised window may take a moment to paint its first frame+ if raised { std::thread::sleep(std::time::Duration::from_secs(3)); }+ if offscreen && !film {+ eprintln!("NOTE: the Fields window is off screen on {} (macOS: pup keeps it there) and the screen is {}, so it is not raised over the human's work and this walkthrough is not filmed; its results are recorded. To film it: `capture screen allowed`, `tour fields` again, then `capture screen hands-off` (issue #123).", br.target, mode.as_str());+ } if offscreen { eprintln!("{}", if raised { "the Fields window was off-screen (macOS): raised it on screen for the walkthrough take; it is lowered when the take ends" } else { "WARNING: the Fields window is off-screen (macOS) and pup could not raise it: the take will likely be empty" }); std::thread::sleep(std::time::Duration::from_secs(3)); }- let rid = tour_record_start(&mut r, &br, win, "aiflow fields walkthrough", FIELDS_CLIP_MAX_MS, TOUR_CLIP_MAX_MB);+ let rid = if film { tour_record_start(&mut r, &br, win, "aiflow fields walkthrough", FIELDS_CLIP_MAX_MS, TOUR_CLIP_MAX_MB) } else { None }; if let Some(rid) = &rid { r.data["captures"].as_array_mut().unwrap().push(json!({"recordingId": rid, "start": now(), "kind": "window", "hwnd": win, "step": step, "visit": visit, "back": false, "tour": "fields", "maxMs": FIELDS_CLIP_MAX_MS, "maxMb": TOUR_CLIP_MAX_MB})); r.log("clip-start", json!({"step": step, "visit": visit, "recordingId": rid, "window": "Adom Fields"}));@@ -8624,19 +8644,21 @@ fn main() { let issues = fields["issues"].as_array().cloned().unwrap_or_default(); r.stage_end("tour-fields", Some(json!({"issues": issues.len(), "tour": tour_ok})), None); if tour_ok {- r.outcome("tour-fields", json!({"issues": issues, "nets": fields["nets"], "chips": fields["chips"], "heat": fields["heat"], "clip": clip_file, "offscreen": offscreen, "raised": raised}));+ r.outcome("tour-fields", json!({"issues": issues, "nets": fields["nets"], "chips": fields["chips"], "heat": fields["heat"], "clip": clip_file, "offscreen": offscreen, "raised": raised, "filmed": film, "screen": mode.as_str()})); } r.log("artifact", json!({"step": step, "visit": visit, "kind": "fields-summary", "issues": issues.len(), "peakJ": fields["scales"]["jMax"], "peakRiseC": fields["heat"]["peakRiseC"]})); r.save().unwrap(); // no silent pass (#123): the walkthrough ran, but there is no clip of it if clip_file.is_none() && !record { eprintln!("NOTE: no clip of the fields walkthrough: AIFLOW_AUTO_CAPTURE is off, so nothing was recorded; the start and end screenshots are in the run");+ } else if clip_file.is_none() && !film {+ // said above: an off-screen window on the human's own machine is not filmed } else if clip_file.is_none() { eprintln!("WARNING: the fields walkthrough ran, but the recorder produced no clip of the app window{} (issue #123). The run's video will have no Fields segment: run `tour fields` again{}, or film the app another way and register it with `artifact`.", if offscreen { ", which was off-screen" } else { "" }, if offscreen && !raised { " once pup can raise its window (pup_raise_os_window)" } else { "" }); } if !tour_ok { err("the app's walkthrough did not run (adom-fields tour failed)", &["`adom-fields tour` by hand shows why; the clip of this visit still exists.".into()]); } let page_hint = results_hint(&r); // issue #147- ok(&format!("fields walkthrough {}: {} issue(s) on the board, peak {:.0} A/mm², peak rise {:.0} °C in still air", if clip_file.is_some() { "recorded" } else if !record { "ran (not recorded: AIFLOW_AUTO_CAPTURE=off)" } else { "ran, but NO CLIP was recorded (see the WARNING above)" }, issues.len(), fields["scales"]["jMax"].as_f64().unwrap_or(0.0), fields["heat"]["peakRiseC"].as_f64().unwrap_or(0.0)), &[page_hint, if issues.is_empty() { "No issues: every loaded net under 60 A/mm² and every hot tab within its budget.".to_string() } else { format!("The issues are yours to answer before delivery: {}", issues.iter().take(4).map(|i| i["what"].as_str().unwrap_or("").to_string()).collect::<Vec<_>>().join(" | ")) }, "Next: step nets, or step 3d.".into(), on_note]);+ ok(&format!("fields walkthrough {}: {} issue(s) on the board, peak {:.0} A/mm², peak rise {:.0} °C in still air", if clip_file.is_some() { "recorded" } else if !record { "ran (not recorded: AIFLOW_AUTO_CAPTURE=off)" } else if !film { "ran (not filmed: its window is off screen and the screen is the human's; see the NOTE above)" } else { "ran, but NO CLIP was recorded (see the WARNING above)" }, issues.len(), fields["scales"]["jMax"].as_f64().unwrap_or(0.0), fields["heat"]["peakRiseC"].as_f64().unwrap_or(0.0)), &[page_hint, if issues.is_empty() { "No issues: every loaded net under 60 A/mm² and every hot tab within its budget.".to_string() } else { format!("The issues are yours to answer before delivery: {}", issues.iter().take(4).map(|i| i["what"].as_str().unwrap_or("").to_string()).collect::<Vec<_>>().join(" | ")) }, "Next: step nets, or step 3d.".into(), on_note]); } other => err(&format!("tour {other}: use 3d, nets or fields"), &[]), }@@ -9602,4 +9624,14 @@ mod land_gate_tests { assert!(!super::gate_refuses_landing(&g(0, 172), true, None), "open connections land"); assert!(!super::gate_refuses_landing(&g(5, 0), false, None), "another plan: a note, not a refusal"); }++ /// Issue #123: an off-screen Fields window is filmed only when the screen is AI Flow's to take.+ #[test]+ fn an_offscreen_fields_window_is_filmed_only_when_the_screen_may_be_taken() {+ assert!(super::fields_film(true, false, false), "an on-screen window films in any mode");+ assert!(super::fields_film(true, true, true), "allowed: raised and filmed");+ assert!(!super::fields_film(true, true, false), "hands-off or ask: not raised, not filmed");+ assert!(!super::fields_film(false, false, true), "AIFLOW_AUTO_CAPTURE=off records nothing");+ }+ }
crates/aiflow-bridge/src/isolated.rs+13@@ -30,6 +30,9 @@ pub enum Refusal { UnsavedChanges(String), /// The bridge does not know `isolated` (older than 1.1.5) or answered no socket. Unsupported(String),+ /// KiCad Bridge 1.1.11: the pinned `kicadVersion` is not installed (`kicad_version_not_installed`), or the editor+ /// is a 10.99 development build the live verbs refuse (`unsupported_kicad_development`).+ KicadVersion(String), Other(String), } @@ -52,6 +55,7 @@ fn refusal(reply: &Value) -> Refusal { "board_locked" => Refusal::BoardLocked(m), "unsaved_changes" => Refusal::UnsavedChanges(m), "unknown_verb" | "unknown_parameter" | "invalid_args" | "not_supported" => Refusal::Unsupported(m),+ "kicad_version_not_installed" | "unsupported_kicad_development" => Refusal::KicadVersion(m), _ => Refusal::Other(if m.is_empty() { reply.to_string().chars().take(300).collect() } else { m }), } }@@ -155,4 +159,13 @@ mod tests { assert_eq!(reload_args("C:/b.kicad_pcb", Some("ipc://s"), true), json!({"filePath": "C:/b.kicad_pcb", "socketPath": "ipc://s", "discardUnsaved": true})); assert_eq!(reload_args("C:/b.kicad_pcb", Some(" "), false), json!({"filePath": "C:/b.kicad_pcb"})); }++ #[test]+ fn a_kicad_version_refusal_is_named() {+ let r = json!({"success": false, "errorCode": "kicad_version_not_installed", "error": "KiCad 9.0 is not installed (installed: 10.0.8)"});+ assert!(matches!(refusal(&r), Refusal::KicadVersion(m) if m.contains("10.0.8")));+ let d = json!({"success": false, "errorCode": "unsupported_kicad_development", "error": "10.99 editor"});+ assert!(matches!(refusal(&d), Refusal::KicadVersion(_)));+ }+ }
crates/aiflow-bridge/src/lib.rs+32−6@@ -261,6 +261,15 @@ pub fn retry_budget_secs() -> u64 { std::env::var("AIFLOW_CLIP_RETRY_SECONDS").ok().and_then(|v| v.trim().parse().ok()).unwrap_or(20) } +/// KiCad Bridge 1.1.11 (kicad-bridge #160): a live edit that rebuilt a footprint names the footprints whose rebuild differs+/// from what was asked (`footprintsNotAsPlanned`); their child ids changed too. One warning that says so, or None.+pub fn not_as_planned_warning(verb: &str, reply: &Value) -> Option<String> {+ let list = reply.get("footprintsNotAsPlanned").or_else(|| reply.get("data").and_then(|d| d.get("footprintsNotAsPlanned")))?.as_array()?;+ if list.is_empty() { return None; }+ let names: Vec<String> = list.iter().map(|f| f.as_str().map(str::to_string).or_else(|| f["ref"].as_str().or(f["reference"].as_str()).map(|r| match f["why"].as_str().or(f["reason"].as_str()) { Some(w) => format!("{r} ({w})"), None => r.to_string() })).unwrap_or_else(|| f.to_string())).collect();+ Some(format!("WARNING: {verb}: KiCad rebuilt {} footprint(s) differently from what was asked: {}. Their child ids changed: read the board again (routing_state / placement_state) before the next edit to them, and check them in the editor.", names.len(), names.join(", ")))+}+ /// The recorder no longer has this take registered ("No recording with id ..."). pub fn recording_unknown(reply: &Value) -> bool { let f = reply_fields(reply);@@ -443,11 +452,12 @@ impl Bridge { pub fn call(&self, verb: &str, args: &Value) -> Value { // every board operation goes to the run's EDA backend (eda.rs; docs/eda-backends.md): the flow's // verbs keep their historical kicad_* names, and the backend answers them in its own tool- if verb.starts_with("kicad_") {+ let r = if verb.starts_with("kicad_") { let backend = eda::for_call(args);- return eda::dispatch(&*backend, &|v: &str, a: &Value| self.raw_call(v, a), verb, args);- }- self.raw_call(verb, args)+ eda::dispatch(&*backend, &|v: &str, a: &Value| self.raw_call(v, a), verb, args)+ } else { self.raw_call(verb, args) };+ if let Some(w) = not_as_planned_warning(verb, &r) { eprintln!("{w}"); }+ r } /// One adom-bridge verb with a hard wall-clock limit on the CLI process (issue #98): past it the@@ -607,8 +617,12 @@ impl Bridge { /// Issue #223: open the board in the run's own editor (KiCad Bridge 1.1.5+), launched by the bridge in the /// background with a private API pipe. The same board again answers the same editor. `raise` (a test box) /// maximises it and brings it in front; otherwise it stays where the bridge put it.- pub fn open_isolated(&self, remote_board: &str, reason: &str, raise: bool) -> Result<isolated::Isolated, isolated::Refusal> {- let r = self.call("kicad_open_board", &json!({"filePath": remote_board, "isolated": true, "foreground": false, "reason": reason}));+ /// `kicad_version` (KiCad Bridge 1.1.11+): pin the KiCad install for this editor ("9.0", "10.0.8"); None takes the+ /// bridge's default, the newest stable release.+ pub fn open_isolated(&self, remote_board: &str, reason: &str, raise: bool, kicad_version: Option<&str>) -> Result<isolated::Isolated, isolated::Refusal> {+ let mut args = json!({"filePath": remote_board, "isolated": true, "foreground": false, "reason": reason});+ if let Some(v) = kicad_version.filter(|v| !v.trim().is_empty()) { args["kicadVersion"] = json!(v.trim()); }+ let r = self.call("kicad_open_board", &args); let mut iso = isolated::isolated_of(&r)?; if !raise { let _ = self.follow_focus_rule(&r); } if iso.hwnd.is_none() { iso.hwnd = self.wait_board_window(remote_board, &json!({"success": true})).map(|w| w.0); }@@ -1484,6 +1498,18 @@ pub fn board_window_in(status: &Value, windows: &Value, stem: &str) -> Option<i6 }).and_then(|w| w["hwnd"].as_i64()).filter(|h| *h > 0) } +#[cfg(test)]+mod not_as_planned_tests {+ use super::*;+ #[test]+ fn a_footprint_rebuilt_differently_is_named_once() {+ assert!(not_as_planned_warning("kicad_silk_fields_batch", &json!({"success": true})).is_none());+ assert!(not_as_planned_warning("x", &json!({"footprintsNotAsPlanned": []})).is_none());+ let w = not_as_planned_warning("kicad_silk_fields_batch", &json!({"data": {"footprintsNotAsPlanned": [{"ref": "U1", "why": "library sibling differs"}, "J2"]}})).unwrap();+ assert!(w.contains("2 footprint(s)") && w.contains("U1 (library sibling differs)") && w.contains("J2") && w.contains("read the board again"), "{w}");+ }+}+ #[cfg(test)] mod board_window_tests { use super::*;
docs/release-0.2.119.mdadded+15@@ -0,0 +1,15 @@+# adom-aiflow 0.2.119++## tour fields on macOS follows the screen mode (issue #123, Joe Rouvier)++On macOS pup keeps the Fields app's window off screen, where Chrome does not paint it, so a walkthrough filmed there is empty. Since 0.2.39 `tour fields` raised that window for the take. It did so in every screen mode, which on the person's own Mac (hands-off) put a window over their work for the ten-minute walkthrough.++- With `capture screen allowed` (a test box) it still raises the window for the take, waits a moment for it to paint, and lowers it after.+- In hands-off or ask, the window is not raised and not filmed. The walkthrough still runs and records its results (the `tour-fields` outcome the project page reads), and it says how to film it: `capture screen allowed`, `tour fields` again, then `capture screen hands-off`. There is no empty take for `finish` to report missing.+- The outcome records `filmed` and the screen mode.++## KiCad Bridge 1.1.11 (from the KiCad lane)++- `capture open --isolated --kicad-version <version>` pins which installed KiCad the run's own editor uses ("9.0", "10.0.8"). Without it the bridge takes the newest stable release. A version that is not installed (`kicad_version_not_installed`) or a 10.99 development editor (`unsupported_kicad_development`) is refused by name with what to do; the pinned version is kept in run.json.+- A live edit that rebuilt a footprint differently from what was asked (`footprintsNotAsPlanned`) prints one WARNING naming those footprints: their child ids changed, so read the board again before editing them.+- Bigger boards' snapshot DRC deadline grew in the bridge, so `place verify` should no longer meet `drc_timeout` on a large board; nothing changes in AI Flow for that.
package.json+1−1@@ -1,7 +1,7 @@ { "slug": "adom-aiflow", "type": "app",- "version": "0.2.118",+ "version": "0.2.119", "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.118",+ "version": "0.2.119", "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@@ -396,7 +396,7 @@ The first `step` (or `capture start`) asks the test box once which recorder its `capture open` puts the board on screen the same way for every engine (foreground OpenGL on a test box we own, maximised, zoom to fit). `capture start` records the PCB editor window itself through Adom Bridge's window recorder (Windows Graphics Capture, background-capturable: whatever another thread or an updater puts in front of KiCad on a shared box does not reach the take, and nobody at the box is disturbed; the monitor is recorded only when no editor is open), every stage command writes a marker with its timestamp into the manifest, `capture mark <label>` adds yours, `capture stop` pulls the MP4 into the run. The split-screen comparison (gang-takes split mode) aligns the two engines on those markers. -**Screen: hands-off on the human's own machine (issues #132, #135).** `screen: hands-off | ask | allowed` says whether AI Flow may bring windows to the front on the run's desktop. When the target is the machine the human is using (a Hydrogen local workspace's own PC, or the primary machine `adom-bridge targets` names) it is `hands-off` by default; a test box is `allowed`. The run records it in run.json (`screenMode`, with where it came from) and prints it once. In hands-off (and `ask`), `step` raises nothing, `capture open` opens the board without focus or maximise, and if Windows still puts a newly launched KiCad in front it sends it to the bottom and gives the human their window back (the answer says what it did); `tour 3d` does not run, because the viewer only paints in front: suggest the human runs it, or takes the screen off hands-off for it. Clips keep recording by window capture, which needs no foreground; only a minimised window films nothing. On a hands-off machine never launch KiCad (or any window) yourself with `Start-Process`, `run_script` or a shell: only the KiCad bridge launches without taking focus. When another session's KiCad holds the shared pipe (`board_mismatch`), `capture open --isolated` (KiCad Bridge 1.1.5+) has the bridge open the board in the run's own editor in the background, and every later live call of the run goes to it; a board another KiCad has open is refused (`board_locked`): work on a copy. Once the board is open, edit it live (`kicad_silk_text_batch`, `kicad_silk_fields_batch`, `kicad_apply_zone_plan`, `land ...`); for a change with no live verb, save, edit the file, then `capture reload` (KiCad's own Revert, no prompt, no relaunch). `capture close` saves and closes only the run's own editor. Never click a prompt on the human's screen (issue #223, docs/isolated-kicad-read-socket.md). The human changes it any time: `capture screen allowed` ("you can take my screen now"), `capture screen hands-off`, `capture screen` to read it; a declared test box can say `"capture": {"screen": "allowed"}` in the spec; `AIFLOW_SCREEN=allowed|ask|hands-off` wins over both.+**Screen: hands-off on the human's own machine (issues #132, #135).** `screen: hands-off | ask | allowed` says whether AI Flow may bring windows to the front on the run's desktop. When the target is the machine the human is using (a Hydrogen local workspace's own PC, or the primary machine `adom-bridge targets` names) it is `hands-off` by default; a test box is `allowed`. The run records it in run.json (`screenMode`, with where it came from) and prints it once. In hands-off (and `ask`), `step` raises nothing, `capture open` opens the board without focus or maximise, and if Windows still puts a newly launched KiCad in front it sends it to the bottom and gives the human their window back (the answer says what it did); `tour 3d` does not run, because the viewer only paints in front: suggest the human runs it, or takes the screen off hands-off for it. On macOS the Fields app's window sits off screen, so `tour fields` in hands-off or ask records the walkthrough's results without filming it (raising it over the person's work for ten minutes is their call); with `allowed` it raises the window for the take and lowers it after (issue #123). Clips keep recording by window capture, which needs no foreground; only a minimised window films nothing. On a hands-off machine never launch KiCad (or any window) yourself with `Start-Process`, `run_script` or a shell: only the KiCad bridge launches without taking focus. When another session's KiCad holds the shared pipe (`board_mismatch`), `capture open --isolated` (KiCad Bridge 1.1.5+) has the bridge open the board in the run's own editor in the background, and every later live call of the run goes to it; a board another KiCad has open is refused (`board_locked`): work on a copy. Once the board is open, edit it live (`kicad_silk_text_batch`, `kicad_silk_fields_batch`, `kicad_apply_zone_plan`, `land ...`); for a change with no live verb, save, edit the file, then `capture reload` (KiCad's own Revert, no prompt, no relaunch). `capture close` saves and closes only the run's own editor. `capture open --isolated --kicad-version 9.0` (KiCad Bridge 1.1.11+) pins which installed KiCad the run's editor uses; without it the bridge takes the newest stable release, and it refuses a version that is not installed or a 10.99 development editor, by name. A live edit that rebuilt a footprint differently from what was asked prints a WARNING naming it (`footprintsNotAsPlanned`): read the board again before editing it further. Never click a prompt on the human's screen (issue #223, docs/isolated-kicad-read-socket.md). The human changes it any time: `capture screen allowed` ("you can take my screen now"), `capture screen hands-off`, `capture screen` to read it; a declared test box can say `"capture": {"screen": "allowed"}` in the spec; `AIFLOW_SCREEN=allowed|ask|hands-off` wins over both. ## The spec