← Commit history

0.2.139: release Drew Owens' copper balance audit (PR #193)

Colby Knox ·4ce2429aef · ·parent 68c84f0
5 files changed +26−14
Cargo.lock+11−11
@@ -4,7 +4,7 @@ version = 4  [[package]] name = "adom-aiflow"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-analyze",  "aiflow-board",@@ -28,7 +28,7 @@ dependencies = [  [[package]] name = "aiflow-analyze"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-board",  "aiflow-sys",@@ -39,7 +39,7 @@ dependencies = [  [[package]] name = "aiflow-board"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-sys",  "roxmltree",@@ -49,7 +49,7 @@ dependencies = [  [[package]] name = "aiflow-bridge"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-board",  "aiflow-sys",@@ -59,7 +59,7 @@ dependencies = [  [[package]] name = "aiflow-copper"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-board",  "aiflow-grid",@@ -70,7 +70,7 @@ dependencies = [  [[package]] name = "aiflow-grid"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-board",  "serde",@@ -79,7 +79,7 @@ dependencies = [  [[package]] name = "aiflow-place"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-board",  "aiflow-sys",@@ -89,7 +89,7 @@ dependencies = [  [[package]] name = "aiflow-pours"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-board",  "aiflow-copper",@@ -100,7 +100,7 @@ dependencies = [  [[package]] name = "aiflow-router"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-board",  "aiflow-grid",@@ -111,7 +111,7 @@ dependencies = [  [[package]] name = "aiflow-run"-version = "0.2.138"+version = "0.2.139" dependencies = [  "aiflow-sys",  "serde",@@ -120,7 +120,7 @@ dependencies = [  [[package]] name = "aiflow-sys"-version = "0.2.138"+version = "0.2.139" dependencies = [  "serde_json", ]
Cargo.toml+1−1
@@ -15,7 +15,7 @@ members = [ ]  [workspace.package]-version = "0.2.138"+version = "0.2.139" edition = "2021" license = "MIT" repository = "https://wiki.adom.inc/adom/adom-aiflow"
docs/release-0.2.139.mdadded+12
@@ -0,0 +1,12 @@+# adom-aiflow 0.2.139++## Copper balance per layer and between mirrored layers (PR #193, Drew Owens)++Copper that differs a lot between layers mirrored about the board's core (F.Cu and B.Cu; In1.Cu and In2.Cu on four layers; In1/In4 and In2/In3 on six) bows and twists the board in lamination and reflow. AI Flow now measures it.++- Each copper layer's coverage inside the board outline (filled zones, tracks, pads, vias by their layer span, copper graphics; cutouts taken out), each mirrored pair's difference in percentage points, and a quadrant view per layer, on a 0.1 mm grid (0.3 s on a six-layer board).+- `pour` previews the balance of the planned zones before they land; `gate`, `finish` and `export` record it; `analyze balance` (or `analyze copper-balance`) runs it on its own. Warnings name the lighter layer and suggest rebalancing the pours, a hatched fill, or copper thieving kept 1.5 mm from fast traces.+- Advisory by default: a pair over 20 points (`spec.fab.maxCopperImbalancePct`) or an outer layer under 15 % (`spec.fab.minOuterCopperPct`) is a warning. `spec.fab.copperBalanceBlocking: true` (or `# adom-aiflow: copperBalanceBlocking` in the board's .kicad_dru) makes it a gate finding and an open item at finish; an explicit spec `false` wins over the .kicad_dru.+- Validated by Drew on 11 finished boards with no false positives; the boards it flagged have a full plane on one layer facing sparse routing on its mirror.++Reviewed and tested here: the workspace tests and the PR's end-to-end workflow test (pour, gate, finish, analyze balance, export, the spec and .kicad_dru switches) pass, and `analyze balance` ran on two more boards.
package.json+1−1
@@ -1,7 +1,7 @@ {   "slug": "adom-aiflow",   "type": "app",-  "version": "0.2.138",+  "version": "0.2.139",   "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.138",+  "version": "0.2.139",   "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.",