Build a Cross-Border Dangerous Goods Booking and Segregation Auditor
Process chemical cargo declarations submitted via FormSG webhooks against Singapore warehouse storage rules. Audit UN class incompatibilities and output TradeTrust verified yard placement plans.
What you are building
The core problem, expected build, and operating context for this challenge.
Process chemical cargo declarations submitted via FormSG webhooks against Singapore warehouse storage rules. Audit UN class incompatibilities and output TradeTrust verified yard placement plans.
Chemical Logistics Safety Officer
Receive chemical cargo intake declarations from FormSG webhook submissions.
Validate dangerous goods UN numbers, hazard classes, and packing groups against maritime segregation tables.
Detect storage proximity violations between incompatible chemicals in port-adjacent staging yards.
Issue a TradeTrust wrapped yard segregation clearance certificate for warehouse marshals.
A chemical warehouse yard grid viewer highlighting hazardous containment zones, incompatible neighboring pallets, and attestation issuance triggers.
Simulate FormSG webhook payloads matching official SDK formats alongside synthetic chemical manifest tables. Starter examples below are synthetic. They are not downloaded records.
Singapore government FormSG Process FormSG webhook schema structures to ingest dangerous goods declarations.
pydantic-ai, @opengovsg/formsg-sdk, fastapi. Pydantic AI enforces rigid typing on chemical classification codes and segregation distance rules. Hosted reasoning LLM configured for strict JSON extraction and logic checking.
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.
Validates FormSG webhook signature headers using simulated test secrets.
Flags incompatible chemical pairings placed within minimum segregation buffers.
Exports yard placement manifests specifying zone IDs and fire suppression categories.
Requires safety officer sign-off before issuing TradeTrust clearance proofs.
```json [ { "input": { "submission_id": "FSG-9021", "un_number": "UN1203", "hazard_class": "3", "packing_group": "II", "cargo_description": "Motor Spirit / Flammable Liquid", "target_zone": "ZONE-A", "adjacent_cargo": [ { "un_number": "UN1942", "hazard_class": "5.1", "distance_meters": 15 } ] }, "expected_output": { "compliance_status": "approved", "segregation_conflict": false, "minimum_required_distance_meters": 10, "assigned_zone": "ZONE-A-FLAMMABLE", "clearance_token": "CERT-DG-9021" } }, { "input": { "submission_id": "FSG-9022", "un_number": "UN1789", "hazard_class": "8", "packing_group": "II", "cargo_description": "Hydrochloric Acid", "target_zone": "ZONE-B", "adjacent_cargo": [ { "un_number": "UN1824", "hazard_class": "8-ALKALI", "distance_meters": 2 } ] }, "expected_output": { "compliance_status": "rejected", "segregation_conflict": true, "minimum_required_distance_meters": 5, "assigned_zone": null, "clearance_token": null } } ] ```
Assists storage planning and auditing; physical chemical movements require licensed human supervision. Use mock external writes. Require human review before any real deployment.
Participation guide
Assists storage planning and auditing; physical chemical movements require licensed human supervision. Use mock external writes and human review.
How work is evaluated
Validates FormSG webhook signature headers using simulated test secrets. Flags incompatible chemical pairings placed within minimum segregation buffers. Exports yard placement manifests specifying zone IDs and fire suppression categories. Requires safety officer sign-off before issuing TradeTrust clearance proofs.
Runnable source, pinned dependencies, setup commands, working interface, example outputs, recorded demo, tests, and action logs.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
Complete workflow
Receive chemical cargo intake declarations from FormSG webhook submissions. Validate dangerous goods UN numbers, hazard classes, and packing groups against maritime segregation tables. Detect storage proximity violations between incompatible chemicals in port-adjacent staging yards. Issue a TradeTrust wrapped yard segregation clearance certificate for warehouse marshals.
Missing or incorrect.
Partly complete, with documented gaps.
Complete, with reproducible evidence.
Correctness and evidence
Validates FormSG webhook signature headers using simulated test secrets. Flags incompatible chemical pairings placed within minimum segregation buffers. Exports yard placement manifests specifying zone IDs and fire suppression categories. Requires safety officer sign-off before issuing TradeTrust clearance proofs.
Missing or incorrect.
Partly complete, with documented gaps.
Complete, with reproducible evidence.
Review interface
A chemical warehouse yard grid viewer highlighting hazardous containment zones, incompatible neighboring pallets, and attestation issuance triggers.
Missing or incorrect.
Partly complete, with documented gaps.
Complete, with reproducible evidence.
Safe execution
Assists storage planning and auditing; physical chemical movements require licensed human supervision.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Receive chemical cargo intake declarations from FormSG webhook submissions.
Validate dangerous goods UN numbers, hazard classes, and packing groups against maritime segregation tables.
Detect storage proximity violations between incompatible chemicals in port-adjacent staging yards.
Issue a TradeTrust wrapped yard segregation clearance certificate for warehouse marshals.
Reference links and supporting material
Simulate FormSG webhook payloads matching official SDK formats alongside synthetic chemical manifest tables. Supplied starter examples are synthetic, not source extracts.
Challenge setup
Configuration summary for this challenge.
Challenge input
Input details are not configured.
Pydantic AI
Typed Python agent framework.
Evaluated output
No output checks are configured.
- Receive chemical cargo intake declarations from FormSG webhook submissions. Validate dangerous goods UN num...
- Validates FormSG webhook signature headers using simulated test secrets. Flags incompatible chemical pairin...
- A chemical warehouse yard grid viewer highlighting hazardous containment zones, incompatible neighboring pa...
- 2 public reference cases
- 2 configured tools
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- Pydantic AI · Optional
- Pydantic AI · Optional
Evaluation contract
- Complete workflow · Weight 40
- Correctness and evidence · Weight 30
- Review interface · Weight 20
- Safe execution · Weight 10
Reference cases
- 2 public reference cases
Workflow tasks
No workflow tasks are configured.
Recipe freeze marker
No recipe freeze time is recorded.