Drawing route propose

Tool ID: drawing_route_propose

Purpose and availability

Compute a read-only orthogonal route proposal for one exact saved branch using the installed NetworkX search helper. Preserve the source endpoints and work only within the admitted persisted-wire/busbar geometry. This is neither automatic diagram cleanup nor a certified routing optimum.

Prerequisites and invocation

1. Discover the current artifact and schematic ID with drawing_diagrams, then inspect routes with drawing_inspect. Read route quality first if investigating a detour. 2. Select one exact existing branch_id. Both saved endpoints must match fixed owner-local native busbar anchors; endpoint busbars must exist and be unrotated. Present wires need valid preserved routes, not missing points or unlocked automatic geometry. The tool will not guess ports or repair these prerequisites. 3. Pass expected_artifact, diagram_id, branch_id and optionally clearance. Clearance defaults to 40 native drawing units, must be greater than zero and no more than 100000, and is not metres, kilometres, MW or electrical insulation clearance. Boolean values are invalid. No caller-supplied points, anchor coordinates, label rectangles, paths, Apply flag or candidate override is accepted.

Exact input schema

{
  "additionalProperties": false,
  "properties": {
    "branch_id": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string"
    },
    "clearance": {
      "exclusiveMinimum": 0,
      "maximum": 100000,
      "type": "number"
    },
    "diagram_id": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string"
    },
    "expected_artifact": {
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
    }
  },
  "required": [
    "expected_artifact",
    "diagram_id",
    "branch_id"
  ],
  "type": "object"
}

Results and units

schema=powersystem-route-proposal/1, candidate_id, artifact, diagram_id and branch_id bind the proposal. points is an orthogonal polyline retaining the exact saved first/last points; it is not installed. status="proposed" means a shorter drawing path was found; status="no-shorter-route" means the returned admitted path is not shorter, not that the old drawing is approved. Compare before and after drawing lengths, detour ratios and review reasons; a shortened route may still be a long detour. configuration records clearance, units and search budgets; router records helper name/version, algorithm, licence, grid points and segment-check count. saved=false, native_visual_review_required=true and engineering_approval=false remain explicit. geometry_scope="persisted-wires-and-busbars-only", label_geometry_available=false, symbol_geometry_available=false, label_check_status="unavailable" and a null label_rectangles_sha256 mean no rendered label/symbol safety has been checked.

Limits and recovery

Bounds include 2000 candidate branches, 2–256 route points, 256 rectangles, 10000 visibility-grid points and 750000 segment checks. Paging another tool cannot lift them. A blocked endpoint breakout, missing/automatic wire geometry, invalid anchors, unsupported busbars, exhausted budget or no path produces an error with the drawing unchanged. Do not increase limits, ignore obstacles or invent native geometry to force a result. Inspect the exact native source and request an explicit human-controlled detached correction or separately retained smaller admitted input. If the artifact is stale, rediscover with drawing_diagrams before reselecting IDs. A proposal still needs native overview/detail review of labels, symbols, crossings and endpoints. These tools provide no installation action; any separately authorized Build edit must be explicit and rechecked. No automatic model/inference retry or Original/Main edit follows from success.

AI and human boundaries

This tool is read-only in Plan and Build. The server binds candidate_id; it is not a selectable input. artifact is the SHA-256 of the exact saved candidate archive, not an approval or a new engineering version. engineering_approval=false always. No tool installs a proposal, saves a circuit, edits Original/Main, switches the human editor, accepts engineering or fetches map tiles. Native visual review and an explicitly authorized detached edit remain separate. See AI drawing workflow and Human review.