Skip to main content
Challenge

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.

Business OperationsHosted by Vera
Challenge brief

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.

Rules

Participation guide

Assists storage planning and auditing; physical chemical movements require licensed human supervision. Use mock external writes and human review.

Delivery guide

How work is evaluated

Evaluation

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.

Submission format

Runnable source, pinned dependencies, setup commands, working interface, example outputs, recorded demo, tests, and action logs.

Datasets

Challenge datasets

Public datasets, plus the private datasets you have access to.

Evaluation rubric

How submissions are scored

These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.

Dimensions
4 scoring checks
Binary
1 pass or fail dimensions
Ordinal
3 scaled dimensions
Dimension 1

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.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 2

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.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 3

Review interface

A chemical warehouse yard grid viewer highlighting hazardous containment zones, incompatible neighboring pallets, and attestation issuance triggers.

Score scale
012
Score 0

Missing or incorrect.

Score 1

Partly complete, with documented gaps.

Score 2

Complete, with reproducible evidence.

Dimension 4

Safe execution

Assists storage planning and auditing; physical chemical movements require licensed human supervision.

Binary check

This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.

Learning goals

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.

Resources and assets

Reference links and supporting material

Dataset notes

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.

Evaluation checks
  • 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...
Configured evaluation evidence
  • 2 public reference cases
Configured runtime
  • 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

Action Space
  • Pydantic AI · Optional
Orchestration
  • 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.

Frequently Asked Questions about Build a Cross-Border Dangerous Goods Booking and Segregation Auditor