← Commit history
Cargo.lock+10−10
@@ -4,7 +4,7 @@ version = 4  [[package]] name = "adom-aiflow"-version = "0.2.84"+version = "0.2.85" dependencies = [  "aiflow-analyze",  "aiflow-board",@@ -25,7 +25,7 @@ dependencies = [  [[package]] name = "aiflow-analyze"-version = "0.2.84"+version = "0.2.85" dependencies = [  "aiflow-board",  "serde",@@ -35,7 +35,7 @@ dependencies = [  [[package]] name = "aiflow-board"-version = "0.2.84"+version = "0.2.85" dependencies = [  "roxmltree",  "serde",@@ -44,7 +44,7 @@ dependencies = [  [[package]] name = "aiflow-bridge"-version = "0.2.84"+version = "0.2.85" dependencies = [  "aiflow-board",  "serde",@@ -53,7 +53,7 @@ dependencies = [  [[package]] name = "aiflow-copper"-version = "0.2.84"+version = "0.2.85" dependencies = [  "aiflow-board",  "aiflow-grid",@@ -63,7 +63,7 @@ dependencies = [  [[package]] name = "aiflow-grid"-version = "0.2.84"+version = "0.2.85" dependencies = [  "aiflow-board",  "serde",@@ -72,7 +72,7 @@ dependencies = [  [[package]] name = "aiflow-place"-version = "0.2.84"+version = "0.2.85" dependencies = [  "aiflow-board",  "serde",@@ -81,7 +81,7 @@ dependencies = [  [[package]] name = "aiflow-pours"-version = "0.2.84"+version = "0.2.85" dependencies = [  "aiflow-board",  "aiflow-copper",@@ -91,7 +91,7 @@ dependencies = [  [[package]] name = "aiflow-router"-version = "0.2.84"+version = "0.2.85" dependencies = [  "aiflow-board",  "aiflow-grid",@@ -101,7 +101,7 @@ dependencies = [  [[package]] name = "aiflow-run"-version = "0.2.84"+version = "0.2.85" dependencies = [  "serde",  "serde_json",
Cargo.toml+1−1
@@ -14,7 +14,7 @@ members = [ ]  [workspace.package]-version = "0.2.84"+version = "0.2.85" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
SKILL.md+9−1
@@ -20,10 +20,18 @@ adom-aiflow, and every `adom-aiflow-<stage>` app beside it, is a **dynamic skill  When you work on AI Flow itself or on a flow app, keep it this way: add hints and checks that report, never requirements, mandatory fields or steps that refuse. -**AI Flow is a suggestion engine. It never refuses.** Every check reports what it found (DRC errors stay prominent) and suggests a next action; every command completes; you and the human decide. `step` suggests the order and notes a step you skip; `finish` is a report card (what passed, what is still open, what it suggests), not a gate.+**AI Flow is a suggestion engine. It never refuses.** Every check reports what it found (DRC errors stay prominent) and suggests a next action; every command completes; you and the human decide. `step` keeps the order (it does not move past a step that has not run) and `finish` is a report card (what passed, what is still open, what it suggests), not a gate. Reporting instead of refusing is not permission to skip: see No step is skipped.  **AI Flow is a helper, not a wall.** It gives you ready-made tools (the router, pours, DRC and analysis gates, linters) so you don't write them from scratch, hints for the next step, and the Adom habits: public wiki pages for new parts that every Adom user then shares, and a project page with the 3D, schematic and board viewers and the datasheets. You are still the engineer. When a check refuses a board that is right, because AI Flow has not seen a design like it, don't stop and don't fake a pass: improve AI Flow (see "Contribute to AI Flow" at the end) and finish the board with your build. +## No step is skipped++Every step in the flow runs, whatever the board's size or the token cost. A simple board (a breakout, a test coupon) makes the steps quick and cheap, never optional: the steps are what the human asked for, and a run that leaves some out is not AI Flow.++- **Only the human skips a step**, by saying so for this board or through their hands-on flow profile. Never decide on your own that a step is not needed to save tokens or time. If you think one is not needed, ask in one line and keep running the steps until they answer. When they agree, record their words: `adom-aiflow deviate "step <name>" --why "<why this board does not need it>" --human-ok "<what they said>"`. A step with nothing to act on (no hot parts, nothing for Fields to solve) records itself as not applicable; that is not a skip.+- **A failing step is yours to fix, inside AI Flow.** You do the heavy lifting: read the error and its Hint, debug, retry (a fresh measurement, the right machine, a newer bridge), and fix the cause. Your own script for the step's work is fine, and so is a patch to AI Flow itself with a PR, as long as the step stays in the flow: declared with `step`, its proof recorded, and what you did told to the human in a line. File what broke (`adom-wiki issue create adom/adom-aiflow` with the version, the command and the exact error, or on the bridge's page when the bridge failed; `giveback` for your fix) and keep going; never stop to wait on it. What needs the human first is leaving the flow: dropping the step, or putting your own result in place of its proof. With their OK, record that: `adom-aiflow deviate "step <name>" --replaced-by "<what you did instead>" --why "<the error>" --human-ok "<what they said>"`.+- **The human sees every gap.** `finish` lists each skipped, replaced or unfinished step and who decided it ("skipped or replaced steps"; "every step in the flow ran" when none), and the project page's design review shows the same list. A step the AI skipped or replaced on its own is named as the AI's decision.+ Install: `adom-wiki pkg install adom/adom-aiflow` (one Rust binary; `service-kicad` for the offline DRC gate, and the KiCad Bridge on a desktop for the live stages). `adom-aiflow --version`.  Every state-changing command takes `--ai-thread "<your thread name>"`. Every run lives in one directory (`--run DIR`, default `./aiflow-run`) with a `run.json` manifest: the clock, the plan, the decisions, every stage's start and end, the outcomes, the capture markers and the summary. The manifest is the comparison; nothing counts that is not in it.
bin/adom-aiflow
⋯ 1 unchanged line ⋯
crates/adom-aiflow/src/deviations.rs+17−2
@@ -33,8 +33,21 @@ pub fn expired(data: &Value, board_sha: &str, spec_sha: &str) -> Vec<Value> { /// Never refused (John, 2026-11-04): a short reason or an item the last report did not name is still /// recorded, with notes saying so. pub fn record(data: &mut Value, item: &str, why: &str, thread: &str, board_sha: &str, spec_sha: &str, at: &str, known: &[String]) -> (Value, Vec<String>) {+    record_with(data, item, why, thread, board_sha, spec_sha, at, known, None, None)+}++/// `record`, with the human's own words when they approved it (`--human-ok`) and, for a workaround, what+/// replaced the step (`--replaced-by`). Issue #211: only the human skips a step or approves a workaround;+/// one recorded without their words is kept as the AI's own decision and listed that way in finish.+#[allow(clippy::too_many_arguments)]+pub fn record_with(data: &mut Value, item: &str, why: &str, thread: &str, board_sha: &str, spec_sha: &str, at: &str, known: &[String], human_ok: Option<&str>, replaced_by: Option<&str>) -> (Value, Vec<String>) {     let item = key(item);     let mut notes = Vec::new();+    let human_ok = human_ok.map(str::trim).filter(|s| !s.is_empty());+    let replaced_by = replaced_by.map(str::trim).filter(|s| !s.is_empty());+    if (item.starts_with("step ") || replaced_by.is_some()) && human_ok.is_none() {+        notes.push("only the human skips a step or approves a workaround: ask them first, then record their words with --human-ok \"...\". Without it this is recorded as the AI's own decision, and finish says so".to_string());+    }     if why.trim().chars().count() < MIN_WHY {         notes.push("a reason a person can follow later helps: say why this board is right as it is".to_string());     }@@ -45,7 +58,9 @@ pub fn record(data: &mut Value, item: &str, why: &str, thread: &str, board_sha:             format!("\"{item}\" is not an item the last report named (it named: {}), so it matches nothing until one does", known.join(", "))         });     }-    let rec = json!({"item": item, "why": why.trim(), "aiThread": thread, "at": at, "boardSha256": board_sha, "specSha256": spec_sha});+    let mut rec = json!({"item": item, "why": why.trim(), "aiThread": thread, "at": at, "boardSha256": board_sha, "specSha256": spec_sha, "decidedBy": if human_ok.is_some() { "human" } else { "ai" }});+    if let Some(h) = human_ok { rec["humanOk"] = json!(h); }+    if let Some(r) = replaced_by { rec["replacedBy"] = json!(r); }     let list = data["deviations"].as_array().cloned().unwrap_or_default();     let mut list: Vec<Value> = list.into_iter().filter(|d| d["item"] != item.as_str()).collect();     list.push(rec.clone());@@ -70,7 +85,7 @@ pub fn split(lines: Vec<String>, live: &[Value]) -> (Vec<String>, Vec<Value>) {     for line in lines {         let k = key(&line);         match live.iter().find(|d| d["item"] == k.as_str()) {-            Some(d) => accepted.push(json!({"item": k, "line": line, "why": d["why"], "aiThread": d["aiThread"], "at": d["at"]})),+            Some(d) => accepted.push(json!({"item": k, "line": line, "why": d["why"], "aiThread": d["aiThread"], "at": d["at"], "decidedBy": d["decidedBy"], "humanOk": d["humanOk"], "replacedBy": d["replacedBy"]})),             None => open.push(line),         }     }
crates/adom-aiflow/src/flow_gaps.rsadded+81
@@ -0,0 +1,81 @@+//! Issue #211 (Colby): the steps a run did not do as the flow has them, said plainly so the human sees at+//! a glance whether they got the full AI Flow. Only the human skips a step; an AI that skipped one or+//! replaced it with its own approach is named as such. Built from the live deviations on a `step ...` item+//! or with a `--replaced-by`, and from the steps finish still lists as not done.+use serde_json::{json, Value};++/// One entry per skipped, replaced or unfinished step: {step, kind, decidedBy, humanOk, replacedBy, why}.+pub fn gaps(live: &[Value], open: &[String]) -> Vec<Value> {+    let mut out: Vec<Value> = Vec::new();+    for d in live {+        let item = d["item"].as_str().unwrap_or("");+        let replaced = d["replacedBy"].as_str().filter(|s| !s.trim().is_empty());+        if !item.starts_with("step ") && replaced.is_none() { continue; }+        let step = item.strip_prefix("step ").unwrap_or(item).to_string();+        out.push(json!({"step": step, "kind": if replaced.is_some() { "replaced" } else { "skipped" },+            "decidedBy": if d["humanOk"].as_str().is_some_and(|s| !s.trim().is_empty()) { "human" } else { "ai" },+            "humanOk": d["humanOk"], "replacedBy": d["replacedBy"], "why": d["why"]}));+    }+    for line in open {+        let k = crate::deviations::key(line);+        let Some(step) = k.strip_prefix("step ") else { continue };+        if out.iter().any(|g| g["step"] == step) { continue; }+        out.push(json!({"step": step, "kind": "not done", "decidedBy": Value::Null, "why": line}));+    }+    out+}++/// One plain line per gap.+pub fn line(g: &Value) -> String {+    let step = g["step"].as_str().unwrap_or("?");+    let why = g["why"].as_str().unwrap_or("");+    let who = match (g["decidedBy"].as_str(), g["humanOk"].as_str()) {+        (Some("human"), Some(ok)) => format!("the human decided (\"{ok}\")"),+        (Some("ai"), _) => "the AI decided on its own, without the human's OK".to_string(),+        _ => "no decision recorded".to_string(),+    };+    match g["kind"].as_str() {+        Some("replaced") => format!("{step}: replaced by {}; {who} (why: {why})", g["replacedBy"].as_str().unwrap_or("another approach")),+        Some("skipped") => format!("{step}: skipped; {who} (why: {why})"),+        _ => format!("{step}: not done; {who} ({why})"),+    }+}++/// finish's block: the gaps, or the plain statement that every step ran.+pub fn text(gaps: &[Value]) -> String {+    if gaps.is_empty() { return "\nevery step in the flow ran: none skipped or replaced".into(); }+    format!("\nskipped or replaced steps ({}; only the human skips a step or approves a workaround):\n  {}", gaps.len(), gaps.iter().map(line).collect::<Vec<_>>().join("\n  "))+}++/// The suggestion when the AI skipped or replaced a step without the human.+pub fn hint(gaps: &[Value]) -> Option<String> {+    let ai: Vec<&str> = gaps.iter().filter(|g| g["decidedBy"] == "ai").filter_map(|g| g["step"].as_str()).collect();+    (!ai.is_empty()).then(|| format!("Steps the AI skipped or replaced on its own: {}. Tell the human. Go back and run each (`step <name> --back`), or ask them and record their words: `deviate \"step <name>\" --why \"...\" --human-ok \"<what they said>\"`.", ai.join(", ")))+}++#[cfg(test)]+mod tests {+    use super::*;++    #[test]+    fn every_kind_of_gap_says_who_decided() {+        let live = vec![+            json!({"item": "step thermal-vias", "why": "a coupon with nothing hot on it", "humanOk": "yes, skip it"}),+            json!({"item": "step nets", "why": "a simple breakout board"}),+            json!({"item": "gate", "why": "router refused", "replacedBy": "my own routing script", "humanOk": "ok"}),+            json!({"item": "heatsink vias", "why": "not a step"}),+        ];+        let open = vec!["step silkscreen (no silkscreen proof recorded during its last visit)".to_string(), "gate: 2 new DRC errors".to_string()];+        let g = gaps(&live, &open);+        assert_eq!(g.len(), 4, "{g:?}");+        let t = text(&g);+        assert!(t.contains("thermal-vias: skipped; the human decided (\"yes, skip it\")"), "{t}");+        assert!(t.contains("nets: skipped; the AI decided on its own, without the human's OK"), "{t}");+        assert!(t.contains("gate: replaced by my own routing script; the human decided"), "{t}");+        assert!(t.contains("silkscreen: not done; no decision recorded"), "{t}");+        assert!(!t.contains("heatsink vias"), "a deviation that is not a step or a workaround is listed with the deviations");+        assert!(hint(&g).unwrap().contains("nets") && !hint(&g).unwrap().contains("thermal-vias"));+        assert_eq!(text(&[]), "\nevery step in the flow ran: none skipped or replaced");+        assert!(hint(&[]).is_none());+    }+}
crates/adom-aiflow/src/main.rs+12−7
@@ -69,6 +69,7 @@ mod impedance_cmd; mod land_moves; mod reviews; mod deviations;+mod flow_gaps; mod prefs; mod handson; mod screen;@@ -306,7 +307,8 @@ enum Cmd {     /// Record a change to the spec's budgets (loads, hot, rise limits, switch-node length, net widths, fab) after placement began. Budgets are frozen at placement; this is the only way to move one, and it stays on the record.     SpecAmend { #[arg(long)] why: String },     /// Accept one item `finish` (or a `step`) refused, on purpose, when the check rather than the board is wrong: `deviate "<item>" --why "..."` (the item as the refusal names it, e.g. "gate", "heatsink vias", "step routing"). Recorded, bound to the saved board and spec, and listed in the finish summary; `--list` shows them, `--clear` removes one.-    Deviate { item: Option<String>, #[arg(long)] why: Option<String>, #[arg(long)] list: bool, #[arg(long)] clear: bool },+    /// Issue #211: only the human skips a step or approves a workaround. `--human-ok "<their words>"` records that they did; `--replaced-by "<what you did instead>"` records a workaround of a failed step. Without --human-ok the record is the AI's own decision, and finish lists it as one.+    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> },     /// Declare the step you are working on (placement, routing, pours, current, thermal, capture, finish, or your own). --back marks a return to an earlier step; --why says what sent you back.@@ -5687,12 +5689,12 @@ fn main() {             };             match impedance_cmd::command(action, &board_file, &spec_v, plan_p.as_deref(), *as_json) { Ok((m, h)) => ok(&m, &h), Err((m, h)) => err(&m, &h) }         }-        Cmd::Deviate { item, why, list, clear } => {+        Cmd::Deviate { item, why, list, clear, human_ok, replaced_by } => {             let mut r = load_run(&cli);             let (bs, ss) = run_hashes(&r);             if *list {                 let (live, old) = (deviations::live(&r.data, &bs, &ss), deviations::expired(&r.data, &bs, &ss));-                let fmt = |d: &Value| format!("{}: \"{}\" ({}, {})", d["item"].as_str().unwrap_or(""), d["why"].as_str().unwrap_or(""), d["aiThread"].as_str().unwrap_or(""), d["at"].as_str().unwrap_or(""));+                let fmt = |d: &Value| format!("{}: \"{}\" ({}, {}, {})", d["item"].as_str().unwrap_or(""), d["why"].as_str().unwrap_or(""), d["aiThread"].as_str().unwrap_or(""), d["at"].as_str().unwrap_or(""), match d["humanOk"].as_str() { Some(h) => format!("the human: \"{h}\""), None => "decided by the AI".into() });                 ok(&format!("{} deviation(s) on this board and spec{}{}", live.len(), live.iter().map(|d| format!("\n  {}", fmt(d))).collect::<String>(), if old.is_empty() { String::new() } else { format!("\n{} expired (the board or spec changed since):{}", old.len(), old.iter().map(|d| format!("\n  {}", fmt(d))).collect::<String>()) }), &[]);                 return;             }@@ -5706,7 +5708,7 @@ fn main() {             }             let known: Vec<String> = r.data["lastRefusalItems"].as_array().into_iter().flatten().filter_map(|v| v.as_str().map(str::to_string)).collect();             let w = why.clone().unwrap_or_default();-            let (rec, dnotes) = deviations::record(&mut r.data, &item, &w, &t, &bs, &ss, &now(), &known);+            let (rec, dnotes) = deviations::record_with(&mut r.data, &item, &w, &t, &bs, &ss, &now(), &known, human_ok.as_deref(), replaced_by.as_deref());             for n in &dnotes { note(n, &[]); }             r.log("deviate", rec.clone());             r.save().unwrap();@@ -6051,6 +6053,8 @@ fn main() {             let mut items: Vec<String> = missing.iter().map(|m| deviations::key(m)).collect();             items.dedup();             let (missing, deviated) = deviations::split(missing, &deviations::live(&r.data, &bs, &ss));+            // issue #211: every skipped, replaced or unfinished step, with who decided, in the answer and the summary+            let gaps = flow_gaps::gaps(&deviations::live(&r.data, &bs, &ss), &missing);             r.data["lastRefusalItems"] = json!(items);             r.save().ok();             // a report card, never a refusal (John, 2026-11-04): what is still open is listed with suggestions@@ -6101,6 +6105,7 @@ fn main() {             }             r.data["summary"]["notApplicable"] = json!(not_applicable);             r.data["summary"]["deviations"] = json!(deviated);+            r.data["summary"]["flowGaps"] = json!(gaps);             r.data["summary"]["open"] = json!(open_items);             // issues #127/#128: route geometry and signal quality of the saved board, report-card lines that never block             let qp = dir.join("finish-route-quality.json");@@ -6110,7 +6115,7 @@ fn main() {             if nothing_to_source { r.data["summary"]["notApplicable"].as_array_mut().unwrap().push(json!("sourcing check: not applicable (no footprint in the BOM)")); }             r.log("finish", json!({"minutes": r.elapsed_minutes(), "steps": Value::Object(r.step_report())}));             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"]) + &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)), &["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), molecule_publish_hint(&r).unwrap_or_default(), give_back_hint()]);+            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), molecule_publish_hint(&r).unwrap_or_default(), give_back_hint()]);         }         Cmd::Capture { action, label, reason, off_page } => {             let mut r = load_run(&cli);@@ -7635,8 +7640,8 @@ fn main() {                         let first = b[0].split(' ').next().unwrap_or("").to_string();                         r.log("steps-skipped", json!({"to": name, "skipped": b}));                         note(&format!("moving to {name} with earlier steps not done yet (finish lists them as open):\n  {}", b.join("\n  ")), &[-                            format!("Suggested: come back to `step {first}` when it helps this board (a step counts as done when its own command ran during its latest visit, flows/board.json proofs)."),-                            format!("If a step does not apply to this board, say why for the record: `adom-aiflow deviate \"step {first}\" --why \"...\"`, and tell the human.")]);+                            format!("Go back and run them: `step {first}` (a step counts as done when its own command ran during its latest visit, flows/board.json proofs). Every step runs, however simple the board; never skip one to save tokens or time."),+                            format!("Only the human skips a step (issue #211; No step is skipped in the adom-aiflow skill). If you think one does not apply to this board, ask them; with their OK record it: `adom-aiflow deviate \"step {first}\" --why \"...\" --human-ok \"<what they said>\"`. finish lists every skipped step and who decided it.")]);                     }                 }             }
crates/adom-aiflow/src/page_results.rs+23
@@ -128,6 +128,15 @@ pub fn build(data: &Value, figures: &[(String, String, String)], board: Option<(         (Some(_), _) => "**Status:** finish ran with no open items. A human review still comes before fabrication.\n\n".to_string(),         _ => "**Status:** the run has not finished; these are working results, not a release.\n\n".to_string(),     });+    // issue #211: the steps the run did not do as the flow has them, with who decided+    if let Some(g) = data["summary"]["flowGaps"].as_array() {+        if g.is_empty() { md.push_str("Every step in AI Flow ran; none was skipped or replaced.\n\n"); }+        else {+            md.push_str("## Skipped or replaced steps\n\nOnly the human skips an AI Flow step or approves a workaround. These steps did not run as the flow has them:\n\n");+            for x in g { md.push_str(&format!("- {}\n", esc(&crate::flow_gaps::line(x)))); }+            md.push('\n');+        }+    }      // the board and its contacts (a molecule)     if let Some((_, b)) = board.filter(|_| molecule) {@@ -324,4 +333,18 @@ mod tests {         assert!(page_item(&molecule, "B", true).unwrap().contains("--out <molecule-publish package folder>"));         assert!(page_item(&molecule, "B", false).is_none(), "no page and not a molecule: nothing to say");     }++    /// Issue #211: the page says which steps were skipped or replaced, and who decided; or that every step ran.+    #[test]+    fn the_page_lists_skipped_and_replaced_steps() {+        let tmp = std::env::temp_dir().join(format!("aiflow-page-gaps-{}", std::process::id()));+        let read = |data: &serde_json::Value| { let b = build(data, &[], None, "", None, None, false, &tmp, None, "t").unwrap(); std::fs::read_to_string(tmp.join(&b.files[0])).unwrap() };+        let gaps = serde_json::json!({"clock": {"finishTime": "t"}, "summary": {"open": [], "flowGaps": [{"step": "nets", "kind": "skipped", "decidedBy": "ai", "why": "a simple breakout board"}]}});+        let md = read(&gaps);+        assert!(md.contains("## Skipped or replaced steps") && md.contains("nets: skipped; the AI decided on its own, without the human's OK"), "{md}");+        let none = serde_json::json!({"clock": {"finishTime": "t"}, "summary": {"open": [], "flowGaps": []}});+        assert!(read(&none).contains("Every step in AI Flow ran"));+        let _ = std::fs::remove_dir_all(&tmp);+    }+ }
docs/release-0.2.85.mdadded+18
@@ -0,0 +1,18 @@+# AI Flow 0.2.85++**No step is skipped** (issue #211). An AI skipped steps on a simple board to save tokens and worked around a failed+step with its own tools, and the human could not tell what was left out.++- **The skill:** the "No step is skipped" section the flow pointed to is back, near the top of the adom-aiflow+  skill. Every step runs, whatever the board's size or the token cost; only the human skips a step (by saying so,+  or through their hands-on flow profile). A failing step is the AI's to fix inside the flow (debug, retry, its+  own script for the step's work or a patch to AI Flow, the step still declared and its proof recorded) and to+  file; only leaving the flow (dropping the step, or the AI's own result in place of its proof) needs the human's OK. The line that read as permission to skip ("notes a step+  you skip") now says the opposite.+- **`step`:** moving past steps that have not run now says to go back and run them, and that only the human skips one.+- **`deviate`:** `--human-ok "<their words>"` records that the human made the call; `--replaced-by "<what was done+  instead>"` records a workaround of a failed step. A step deviation without `--human-ok` is recorded as the AI's+  own decision, with a note saying so.+- **`finish` and the project page:** a "skipped or replaced steps" list names each skipped, replaced or unfinished+  step and who decided it (the human, with their words; or the AI on its own), or says that every step ran. The+  list is in run.json `summary.flowGaps` and in the page's design review.
package.json+1−1
@@ -1,7 +1,7 @@ {   "slug": "adom-aiflow",   "type": "app",-  "version": "0.2.84",+  "version": "0.2.85",   "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.84",+  "version": "0.2.85",   "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+9−1
@@ -20,10 +20,18 @@ adom-aiflow, and every `adom-aiflow-<stage>` app beside it, is a **dynamic skill  When you work on AI Flow itself or on a flow app, keep it this way: add hints and checks that report, never requirements, mandatory fields or steps that refuse. -**AI Flow is a suggestion engine. It never refuses.** Every check reports what it found (DRC errors stay prominent) and suggests a next action; every command completes; you and the human decide. `step` suggests the order and notes a step you skip; `finish` is a report card (what passed, what is still open, what it suggests), not a gate.+**AI Flow is a suggestion engine. It never refuses.** Every check reports what it found (DRC errors stay prominent) and suggests a next action; every command completes; you and the human decide. `step` keeps the order (it does not move past a step that has not run) and `finish` is a report card (what passed, what is still open, what it suggests), not a gate. Reporting instead of refusing is not permission to skip: see No step is skipped.  **AI Flow is a helper, not a wall.** It gives you ready-made tools (the router, pours, DRC and analysis gates, linters) so you don't write them from scratch, hints for the next step, and the Adom habits: public wiki pages for new parts that every Adom user then shares, and a project page with the 3D, schematic and board viewers and the datasheets. You are still the engineer. When a check refuses a board that is right, because AI Flow has not seen a design like it, don't stop and don't fake a pass: improve AI Flow (see "Contribute to AI Flow" at the end) and finish the board with your build. +## No step is skipped++Every step in the flow runs, whatever the board's size or the token cost. A simple board (a breakout, a test coupon) makes the steps quick and cheap, never optional: the steps are what the human asked for, and a run that leaves some out is not AI Flow.++- **Only the human skips a step**, by saying so for this board or through their hands-on flow profile. Never decide on your own that a step is not needed to save tokens or time. If you think one is not needed, ask in one line and keep running the steps until they answer. When they agree, record their words: `adom-aiflow deviate "step <name>" --why "<why this board does not need it>" --human-ok "<what they said>"`. A step with nothing to act on (no hot parts, nothing for Fields to solve) records itself as not applicable; that is not a skip.+- **A failing step is yours to fix, inside AI Flow.** You do the heavy lifting: read the error and its Hint, debug, retry (a fresh measurement, the right machine, a newer bridge), and fix the cause. Your own script for the step's work is fine, and so is a patch to AI Flow itself with a PR, as long as the step stays in the flow: declared with `step`, its proof recorded, and what you did told to the human in a line. File what broke (`adom-wiki issue create adom/adom-aiflow` with the version, the command and the exact error, or on the bridge's page when the bridge failed; `giveback` for your fix) and keep going; never stop to wait on it. What needs the human first is leaving the flow: dropping the step, or putting your own result in place of its proof. With their OK, record that: `adom-aiflow deviate "step <name>" --replaced-by "<what you did instead>" --why "<the error>" --human-ok "<what they said>"`.+- **The human sees every gap.** `finish` lists each skipped, replaced or unfinished step and who decided it ("skipped or replaced steps"; "every step in the flow ran" when none), and the project page's design review shows the same list. A step the AI skipped or replaced on its own is named as the AI's decision.+ Install: `adom-wiki pkg install adom/adom-aiflow` (one Rust binary; `service-kicad` for the offline DRC gate, and the KiCad Bridge on a desktop for the live stages). `adom-aiflow --version`.  Every state-changing command takes `--ai-thread "<your thread name>"`. Every run lives in one directory (`--run DIR`, default `./aiflow-run`) with a `run.json` manifest: the clock, the plan, the decisions, every stage's start and end, the outcomes, the capture markers and the summary. The manifest is the comparison; nothing counts that is not in it.