Build a Cross-Border Semiconductor Shock Excursion Proof Generator — implementation
Linked challenge: Build a Cross-Border Semiconductor Shock Excursion Proof Generator
Prompt source
implementation88 lines11 sectionsNo variables1 code block
## Build
Evaluate IoT accelerometer logs during transit of precision semiconductor equipment. Synthesize verifiable TradeTrust incident dossiers and itemized supplier damage claims for mechanical shock and vibration excursions.
## User
Transit Quality Auditor
## Workflow
1. Parse IoT accelerometer telemetry capturing mechanical shock and vibration g-forces along cross-border haulage routes.
2. Identify sustained vibration or acute shock impacts exceeding manufacturer transit tolerance thresholds.
3. Assemble excursion sensor proofs into an OpenAttestation compliant inspection document and calculate merkle roots.
4. Draft itemized damage investigation packets for transit insurance claims.
## Interface
Vibration timeline viewer displaying telemetry graphs, sensor calibration hashes, and damage claim drafts.
## Data
Simulated IoT accelerometer CSV exports mimicking heavy machinery transport movements across borders.
Starter examples below are synthetic. They are not downloaded records.
## Source
[OpenAttestation](https://raw.githubusercontent.com/Open-Attestation/open-attestation/master/README.md)
Applies OpenAttestation wrapDocuments to produce tamper-evident cargo violation bundles with Secp256k1 verification parameters.
## Tools
dspy, pandas, typescript.
DSPy systematically optimizes prompt pipelines for compiling complex multi-sensor shock excursion claims into objective audit records.
Hosted reasoning model accessed via standard LLM API to evaluate mechanical shock transit excursion thresholds.
## 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
- Detect mechanical shock excursions exceeding threshold g-forces during the transit period.
- Wrap the excursion incident record using the OpenAttestation schema conventions.
- Produce an itemized loss estimate based on unit pricing and damage severity.
- Output a defensible insurer claim summary without emotional or speculative language.
## Starter Examples
```json
[
{
"input": {
"consignment_id": "SEMI-SG-4412",
"commodity": "Lithography Lens",
"max_shock_tolerance_g": 3,
"telemetry_points": [
{
"time": "2025-03-01T10:00:00Z",
"shock_g": 0.5
},
{
"time": "2025-03-01T10:30:00Z",
"shock_g": 4.2
}
],
"unit_value_sgd": 4500000
},
"expected_output": {
"excursion_detected": true,
"max_shock_g": 4.2,
"estimated_loss_sgd": 4500000,
"proof_wrapped": true,
"claim_status": "CLAIM_DOSSIER_COMPILED",
"record_type": "simplified synthetic app record"
}
},
{
"input": {
"consignment_id": "SEMI-SG-4413",
"commodity": "Wafer Batch",
"max_shock_tolerance_g": 5,
"telemetry_points": [
{
"time": "2025-03-01T14:00:00Z",
"shock_g": 1.2
},
{
"time": "2025-03-01T14:15:00Z",
"shock_g": 2.3
}
],
"unit_value_sgd": 300000
},
"expected_output": {
"excursion_detected": false,
"max_shock_g": 2.3,
"estimated_loss_sgd": 0,
"proof_wrapped": false,
"claim_status": "EXCURSION_WITHIN_TOLERANCE",
"record_type": "simplified synthetic app record"
}
}
]
```
## Safety
Claim dossiers are generated for commercial review only; no financial claims or insurance settlements are initiated.
Use mock external writes. Require human review before any real deployment.