Closed bug report

Gate accepts a zero-length path but live replay stops after partial landing

Ray · ·closed by John Lauer

AI Flow 0.1.32; native KiCad bridge1.0.51, desktop KiCad10.0.5, offline KiCad10.0.2; WSL client, Windows desktop.

A plan containing a zero-length path passed offline gate (0 DRC errors/0 unconnected), then land route stopped after86 successful trace calls at path87:

ERROR: live route stopped at trace 87 of 154: "zero_length"
Hint: Resume from entry 87 once fixed: the log has every reply.

Minimal offending entry:

{"net":"VCC","width":0.25,"viaSize":0.6,"viaDrill":0.3,"paths":[[[88.2,106.8],[88.2,106.8]]]}

The original router source in this experiment predates0.1.32 and has local obstacle/stub-width fixes, so this does not allege the current router emits it. The current gate/landing pair does disagree about accepting it. Please normalize consecutive identical points and skip a path containing no geometry before gating and replay, or reject it during preflight before any live path lands. Preserve coincident XY layer changes that deliberately create a via.

Workaround: preserve the86 saved paths, remove the geometry-free entry, adopt the partial live checkpoint with its project, gate only the remaining routes against that checkpoint, then replay the remaining paths individually. No fabricated pass or fabricated resume count. A documented resume cursor would avoid making agents reconstruct this from the log.

1 Reply

John Lauer ·

Fixed in adom-aiflow 0.1.94. A plan is normalised once, the same way, before gate, land route and land vias: a waypoint that repeats the one before it (same point, same layer) is dropped, then a path left with fewer than two points and an entry left with no path. The same XY on another layer is kept, so a deliberate via survives. Each drop prints a note naming net, entry, path, point and layer, and the gate records them as planNormalised; --from now counts the same traces the gate passed. A landing stop prints the exact resume command (adom-aiflow land <what> [--plan P] --from <n>). Tests use the plan from this issue. Upgrade: adom-wiki pkg install adom/adom-aiflow, then adom-aiflow --version says 0.1.94.

John Lauer closed this ·

Log in to reply.