← All tasks
MFG 06Manufacturing Knowledge3D Spatial ReasoningReverse Engineering & Optimization

Mill an aluminium part in two vise setups

Tools
FreeCAD
Time limit
8 hours

Agent is asked to mill an aluminium part from a rectangular block in exactly two vise setups, choosing the shop's machine and tools and posting a program for each setup.

Agent Input

What the agent is given: the instruction and its input files.

instruction.md

Mill the part in /app/part.brep from a rectangular block of 6061-T6 aluminium of at most 540,000 mm³. The BREP defines the finished geometry in millimetres. Choose a machine from /app/shop/machines.json and tools from /app/shop/tool_crib.json. FreeCAD tool bits are in /app/shop/toolbits/. Stay within every limit the shop files list for the machine, its vise and each tool.

Use exactly two setups. In both, grip the work in the selected machine's vise. Set G54 in each setup so that X, Y and Z each lie on an accessible outside flat of the stock or the already-machined work.

Machine all faces to ISO 2768-f general tolerances. Inside corners may retain the cutting tool's radius. Hold the curved pocket's chamfer within 0.010 mm along its surface normal and the thickness of both ear webs within ±0.02 mm. Hold the thickness of the wall between that chamfer and each side pocket within ±0.05 mm. On each main side wall, the cuts from the two setups must line up within 0.02 mm.

Use at most 16 active operations across the two Jobs, counting a dressup with its parent operation. Keep total programmed feed travel, including feed moves in air, within 20,233.67 mm. The posted cycle-time ceiling is 20.71 minutes, including feeds, rapids and tool changes. Tool bending may be at most 0.05 mm in any pass, and at most 0.005 mm in finishing passes. In every cutting pass, feed per tooth must be at least 15% of the crib maximum for that tool.

Save the process and machine in /app/process.json as {"process": "milling", "machine": "<shop machine ID>"}. Save the FreeCAD CAM project at /app/part_cam.FCStd with one Job per setup in execution order. Place the part and a solid for each piece of workholding in each Job's Model group at their actual setup positions. Model the vise as its two jaws only, touching the material without overlapping it; leave out the vise body and its fasteners. Set Length in each tool controller to the actual stick-out. Post each Job with the selected machine's post-processor and save its program in /app/gcode/ as setup1.ngc and setup2.ngc in execution order.

You have 28800 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.

Grading & Reference Solution

How the submission is scored, and a human expert-authored reference solution.

rubric

Gates

G1Submission correctness
Pass / fail

Files present, CAM project computes, programs read. Any failure: score 0.

  • Process plan reads×3 · process.json reads and names a process and a machine that are in the shop's files.
  • CAM project opens×2 · part_cam.FCStd opens in FreeCAD and holds at least one CAM Job.
  • Setups are complete · Each Job: stock, part in its model, workholding touching the material.
  • Operations compute · Every active operation recomputes with no error and gives a toolpath.
  • Programs present and readable · setup1.ngc and setup2.ngc in /app/gcode/, parsing in the machine's dialect.
G2Plan integrity
Pass / fail

Runnable plan: process, tools, matching programs, clean cut. Any failure: score 0.

  • Right process · The process plan names milling, on a milling machine of the shop.
  • Tools can be mounted · Each tool used is a crib tool whose shank fits a machine collet.
  • G-code matches the plan · Re-posted Job vs submitted program, block by block: move type, tool, arc direction, end/mid points.
  • Square turns only · Each setup turns the part by square (90°) turns only, so its axes stay on the machine's.
  • Part inside the block · The part, as placed in the first setup, lies inside the starting block.
  • Cut makes the part×2 · Simulated cut of all setups: share of part volume kept and share cut away.
  • No holding collisions · No tool, shank, holder or rapid touches jaws, parallels, plates, bed or other holding.
  • Part held to the last cut · Per setup, opposed vise jaws keep the minimum machined grip area (or raw grip height) to the last cut.

Scored Categories

M1Part accuracy
20%

Simulated part within ISO 2768-f on every face, sizes across setups, chamfer ±0.010 mm.

  • Faces within tolerance · Surface points of the simulated cut within ISO 2768-f; tool-radius inside corners count as in.
  • No gouges · Sample points where the cut went deeper into the part than the band.
  • No material left · Points with material proud beyond the band, tool-radius inside corners excepted.
  • Sizes after the cut×14 · Chamfer-to-pocket wall at 3 heights per side (6.465–9.429), 15 mm ear webs, side walls aligned at 3 stations.
  • Chamfer within 0.010 mm · 3,000 points on the 4 mm chamfer round the curved pocket, probed along normal.
  • Every face cut · Per face: share of points proud beyond band (tool-radius corners excepted); e.g. uncut 6 mm bore fails.
M2Stock and workholding
30%

Small enough block, in the machine's own vise with a sound grip, touch-off zero.

  • Block size · Volume of the starting block, against the reference's 100 × 120 × 45 mm.
  • Holding clear of the block · Volume of each holding solid placed inside the block.
  • Holding from the shop · Each holding solid matches the machine's listed workholding in shape and size.
  • Grip limits · Per setup: grip height, area, thinnest wall vs vise limits; part between opposed jaws.
  • Work zero can be touched off · G54: X, Y, Z on flat outside faces of stock or work, or X/Y at a hole or boss centre.
M3Tools and cutting
15%

Crib tools within data and power; light, stiff finishing on toleranced faces.

  • Tools from the crib · Unchanged crib tool; stick-out ≤ length minus holder grip.
  • Tool fits the machine · Suits machine and 6061: speed, rating, size, room under spindle.
  • Feeds and speeds · Surface speed, feed and plunge per tooth (per rev for drills) vs crib data; slowest feed per tool.
  • No cut above the flutes · No material touches a tool above its cutting length.
  • Tool load · Each pass vs material at op start: spindle power (1.1 J/mm³) and tool bending.
  • Finishing passes on the toleranced faces×14 · Last pass on chamfer, web tops and undersides, main side walls: tool bending and cut depth.
  • Tool reach · Each tool sticks out far enough for its deepest cut, so the holder never reaches the work.
M4Process plan and finishing
25%

Two setups, rough before finish, ≤ 16 ops, time and length near reference.

  • Setup count · Number of setups (CAM Jobs).
  • Operation order×3 · Per setup, no op leaves stock where an earlier one finished; nothing cut after part is free.
  • Operation count · Number of active operations; a dressup counts with its operation.
  • Machining time · Time at machine feeds and rapids vs reference 18.83 min.
  • Cutting length · Length of all feed moves, against the reference plan's 18,394.25 mm.
M5Machine and G-code
10%

Programs run on the chosen machine as written, split as asked.

  • Within machine travel · Each program's moves fit the machine's X, Y and Z travel.
  • Machine limits · Spindle speeds and feeds in the programs lie within the machine's ranges.
  • G-code dialect · Accepted words only; metric, G54, tool change per new tool, ends M2/M30.
  • No rapid through material · No rapid (G0) move passes through material in the simulation.
  • Spindle on while cutting · Spindle on and tool loaded for every cutting move.
  • Output split as asked · Only setup1.ngc and setup2.ngc in run order.

Sample Model Trials

Claude Fable 5.20.70
Part accuracyStock and workholdingTools and cuttingProcess plan and finishingMachine and G-code
  • Loses 6 of 20 weight points on 1 of 5 categories (stock and workholding).
  • Its other run scored 0: it failed a gate.
  • Stock and workholding: Setup 2: Setup 2 Support plate 0.5 mm 6061 (115x56x0.5 mm) is not workholding the shop has (0.50 mm thick, thinner than a plate (1 mm))
GPT-6.2 Astra0.85
Part accuracyStock and workholdingTools and cuttingProcess plan and finishingMachine and G-code
  • Loses 3 of 20 weight points on 1 of 5 categories (tools and cutting).
  • Its other run scored 0: it failed a gate.
  • Tools and cutting: Setup 2, 06 Rough the open side pockets: the heaviest pass needs 4.96 kW (6.8 mm deep, 14 mm wide at 2850 mm/min); the spindle has 3.7 kW
Gemini 4 Neon0.00
Part accuracyStock and workholdingTools and cuttingProcess plan and finishingMachine and G-code
  • Fails a gate, so every category scores 0 (3 of 206 checks failed).
  • Plan integrity: Setup 2: no vise jaw touches the part by line 9287 (S2_09_BossB_Bore), so nothing holds it while it is cut
  • Stock and workholding: Setup 2: soft jaw Model-SoftJaw_Fixed_Setup2 has no vise jaw behind it to push it; soft jaw Model-SoftJaw_Movable_Setup2 has no vise jaw behind it to push it
  • + 1 more failed check

Agent Output Failed Checks