Back to Prompt Library
implementation
Build the application
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Build an ISO 5817 Weld Defect Rework Router
Format
Code-aware
Lines
74
Sections
11
Linked challenge
Build an ISO 5817 Weld Defect Rework Router
Prompt source
Original prompt text with formatting preserved for inspection.
74 lines
11 sections
No variables
1 code block
## Build
Inspect optical weld scanner logs to evaluate weld bead porosity and undercuts against ISO 5817 criteria. Route non-conforming weld seams into localized rework queues and formulate verification evidence dossiers.
## User
Welding Quality Inspector
## Workflow
1. Ingest 3D weld bead profile scan records containing seam width, depth, and porosity voids.
2. Evaluate profiles against ISO 5817 weld quality grade acceptance levels.
3. Queue non-conforming weld segments into localized gouge-and-re-weld work orders.
4. Synthesize an evidence dossier cross-referencing operator IDs and weld wire batch lots.
## Interface
Weld seam defect viewer with 3D profile overlays and rework queue assignment buttons.
## Data
Synthesize JSON records representing normalized 3D weld seam profile measurements and defect classes.
Starter examples below are synthetic. They are not downloaded records.
## Source
[MoveIt robotics](https://raw.githubusercontent.com/moveit/moveit2/main/README.md)
Applies MoveIt geometric shapes and bounding collision volume conventions from Source 1 to weld inspection regions.
## Tools
langgraph, fastapi, pandas.
LangGraph manages stateful transitions between defect detection, rework routing, and final inspector sign-off.
Local or cloud LLM to generate clear welding engineer rework instructions and evidence summaries.
## Deliverables
Submit runnable source, pinned dependencies, setup commands, a working interface, example outputs, and a recorded end-to-end demo. Include tests and an action log.
## Acceptance
- Correctly identifies weld seams violating ISO 5817 quality grade B limits.
- Generates localized grinding and re-welding path coordinates for operators.
- Produces complete defect evidence review dossiers for QA archiving.
## Starter Examples
```json
[
{
"input": {
"seam_id": "WELD-CHASSIS-101",
"weld_length_mm": 500,
"defect_detected": "UNDERCUT",
"defect_depth_mm": 1.2,
"max_allowed_depth_mm": 0.5,
"start_mm": 120,
"end_mm": 160
},
"expected_output": {
"seam_id": "WELD-CHASSIS-101",
"verdict": "REWORK_REQUIRED",
"rework_segment": {
"start_mm": 115,
"end_mm": 165
},
"rework_process": "GRIND_AND_REFILL",
"qa_signoff_needed": true
}
},
{
"input": {
"seam_id": "WELD-CHASSIS-102",
"weld_length_mm": 500,
"defect_detected": "SURFACE_PORE",
"defect_depth_mm": 0.2,
"max_allowed_depth_mm": 0.5,
"start_mm": 40,
"end_mm": 42
},
"expected_output": {
"seam_id": "WELD-CHASSIS-102",
"verdict": "ACCEPTABLE",
"rework_segment": null,
"rework_process": "NONE",
"qa_signoff_needed": false
}
}
]
```
## Safety
Read-only inspection and rework queue planner; does not alter welding equipment parameters.
Use mock external writes. Require human review before any real deployment.Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.