← Commit history
Merge PR #531: AI Flow 0.2.86: questions never stop the run (aiflow-0.2.86 -> main) merge
Showing changes introduced by the merge (against its first parent).
10 files changed
+33−19
Cargo.lock+10−10@@ -4,7 +4,7 @@ version = 4 [[package]] name = "adom-aiflow"-version = "0.2.85"+version = "0.2.86" dependencies = [ "aiflow-analyze", "aiflow-board",@@ -25,7 +25,7 @@ dependencies = [ [[package]] name = "aiflow-analyze"-version = "0.2.85"+version = "0.2.86" dependencies = [ "aiflow-board", "serde",@@ -35,7 +35,7 @@ dependencies = [ [[package]] name = "aiflow-board"-version = "0.2.85"+version = "0.2.86" dependencies = [ "roxmltree", "serde",@@ -44,7 +44,7 @@ dependencies = [ [[package]] name = "aiflow-bridge"-version = "0.2.85"+version = "0.2.86" dependencies = [ "aiflow-board", "serde",@@ -53,7 +53,7 @@ dependencies = [ [[package]] name = "aiflow-copper"-version = "0.2.85"+version = "0.2.86" dependencies = [ "aiflow-board", "aiflow-grid",@@ -63,7 +63,7 @@ dependencies = [ [[package]] name = "aiflow-grid"-version = "0.2.85"+version = "0.2.86" dependencies = [ "aiflow-board", "serde",@@ -72,7 +72,7 @@ dependencies = [ [[package]] name = "aiflow-place"-version = "0.2.85"+version = "0.2.86" dependencies = [ "aiflow-board", "serde",@@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "aiflow-pours"-version = "0.2.85"+version = "0.2.86" dependencies = [ "aiflow-board", "aiflow-copper",@@ -91,7 +91,7 @@ dependencies = [ [[package]] name = "aiflow-router"-version = "0.2.85"+version = "0.2.86" dependencies = [ "aiflow-board", "aiflow-grid",@@ -101,7 +101,7 @@ dependencies = [ [[package]] name = "aiflow-run"-version = "0.2.85"+version = "0.2.86" dependencies = [ "serde", "serde_json",
Cargo.toml+1−1@@ -14,7 +14,7 @@ members = [ ] [workspace.package]-version = "0.2.85"+version = "0.2.86" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
SKILL.md+4−2@@ -28,8 +28,10 @@ When you work on AI Flow itself or on a flow app, keep it this way: add hints an 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>"`.+- **This rule is for a full run.** When the human asks for one part of AI Flow (just route this board, just the pours, just the current and thermal analysis, just the export, just a molecule check), do that part: its command, or the adom-aiflow-routing skill for routing alone. The steps they did not ask for are their choice, not a skip.+- **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 without waiting, and keep running the steps. 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. Leaving the flow (dropping the step, or your own result in place of its proof) is the human's call: ask without waiting and keep working; with their OK, record it: `adom-aiflow deviate "step <name>" --replaced-by "<what you did instead>" --why "<the error>" --human-ok "<what they said>"`.+- **A question never stops the run.** Runs go overnight while the human sleeps: every question is asked without waiting (a line in the chat, a notification) while you keep working. With no answer, run every step anyway; where a step truly cannot run as the flow has it, do its work your own way, record it as your decision (`deviate "step <name>" --replaced-by "..." --why "..."`, no `--human-ok`) and keep going. Never skip a step to save tokens, asked or not. - **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`.
bin/adom-aiflow⋯ 1 unchanged line ⋯
crates/adom-aiflow/src/deviations.rs+1−1@@ -46,7 +46,7 @@ pub fn record_with(data: &mut Value, item: &str, why: &str, thread: &str, board_ 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());+ notes.push("only the human skips a step or approves a workaround: ask them without waiting (never stop the run for an answer) and record their words with --human-ok \"...\" when they give them. 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());
crates/adom-aiflow/src/main.rs+1−1@@ -7641,7 +7641,7 @@ fn main() { 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!("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.")]);+ 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 without waiting and keep running the steps; 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.")]); } } }
docs/release-0.2.86.mdadded+10@@ -0,0 +1,10 @@+# AI Flow 0.2.86++- **A question never stops the run** (follow-up to #211). Runs go overnight while the human sleeps, so every+ question AI Flow tells the AI to ask (a step it thinks is not needed, leaving the flow when a step cannot run) is+ asked without waiting while the AI keeps working. With no answer, the AI runs every step; where one truly cannot+ run as the flow has it, it does the step's work its own way, records that as its own decision (`deviate+ --replaced-by`, no `--human-ok`) and keeps going, and `finish` lists it for the morning. Skipping a step to save+ tokens is still never the AI's call. The skill, the `step` hint and the `deviate` note say so.+- **One part of AI Flow on its own still works.** The rule is for a full run; when the human asks for one part+ (routing, pours, analysis, export, a molecule check), the AI does that part. The skill says so.
package.json+1−1@@ -1,7 +1,7 @@ { "slug": "adom-aiflow", "type": "app",- "version": "0.2.85",+ "version": "0.2.86", "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.85",+ "version": "0.2.86", "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+4−2@@ -28,8 +28,10 @@ When you work on AI Flow itself or on a flow app, keep it this way: add hints an 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>"`.+- **This rule is for a full run.** When the human asks for one part of AI Flow (just route this board, just the pours, just the current and thermal analysis, just the export, just a molecule check), do that part: its command, or the adom-aiflow-routing skill for routing alone. The steps they did not ask for are their choice, not a skip.+- **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 without waiting, and keep running the steps. 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. Leaving the flow (dropping the step, or your own result in place of its proof) is the human's call: ask without waiting and keep working; with their OK, record it: `adom-aiflow deviate "step <name>" --replaced-by "<what you did instead>" --why "<the error>" --human-ok "<what they said>"`.+- **A question never stops the run.** Runs go overnight while the human sleeps: every question is asked without waiting (a line in the chat, a notification) while you keep working. With no answer, run every step anyway; where a step truly cannot run as the flow has it, do its work your own way, record it as your decision (`deviate "step <name>" --replaced-by "..." --why "..."`, no `--human-ok`) and keep going. Never skip a step to save tokens, asked or not. - **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`.