Metadata queued after a failure
Asset generation failed for the ninth Order, and the client queued Metadata anyway.
Impact: The partner marked the Order broken, which hurts the label's quality score.
All problemsData & Systems
Finish an async client that delivers a label's song releases through a scored practice API.
Your mission · Async delivery challenge
Low Tide Music Group's first catalog update on its own delivery client stopped after one failed release, so 831 songs missed release day. Artists were affected, and the partner counted the broken release against the label's quality score. Three in a month brings manual review, and the next update goes out December 4.
Asset generation failed for the ninth Order, and the client queued Metadata anyway.
Impact: The partner marked the Order broken, which hurts the label's quality score.
The exception from the broken Order stopped the whole delivery.
Impact: 831 songs were never taken and missed release day.
The SDK has no FailedOrder, so the client only knows the success path.
Impact: The label cannot see which generation failed to fix its source files.
Edit the components marked “Your work”. The other components show where your changes fit.
| Field | Type | Notes |
|---|---|---|
order_id | string | Such as ord-3fa9c1. |
title, artist | string | The song and the artist. |
isrc | string | The recording's ISRC code. |
| Field | Type | Notes |
|---|---|---|
asset_id, order_id | string | One or more Assets per Order. |
type, filename | string | audio, cover_art and so on. |
details | AssetDetail | {asset_id, checksum, size_bytes, format}, one per Asset, filled in by the client. |
| Field | Type | Notes |
|---|---|---|
status | string | SHIPPABLE or FAILED. |
order | Order | Always present. |
assets | Asset[] or null | null when Asset generation failed. |
metadata | Metadata or null | null in every FailedOrder. |
logs/c0-seed-7-starter.log The Terminal log of the starter client on C0 with seed 7. Pass {"challenge": "C0", "seed": 7} to run to repeat it exactly.=== C0: 8 orders, 0 ms latency, time limit 30s (seed 7) ===
0.0s 1/8 finished score 0/8
main() raised an exception:
Traceback (most recent call last):
File "delivery/client.py", line 33, in main
await process_order(sdk, order)
File "delivery/client.py", line 19, in process_order
await sdk.queue_metadata_generation(order.order_id)
File "delivery/sdk.py", line 154, in queue_metadata_generation
await self._request("POST", "/orders/%s/metadata/generate" % order_id)
File "delivery/sdk.py", line 115, in _request
raise ApiError(status, reply)
delivery.sdk.ApiError: HTTP 409: {'code': 'ORDER_BROKEN', 'error': 'metadata generation queued although asset generation failed'}
8 order(s) not correct (first 8 shown):
ord-bb3b93 BROKEN submitted=None metadata generation queued although asset generation failed
ord-7b382e NOT_SUBMITTED submitted=None never taken
ord-724c60 NOT_SUBMITTED submitted=None never taken
ord-442f7d NOT_SUBMITTED submitted=None never taken
ord-5c882b NOT_SUBMITTED submitted=None never taken
ord-1e840b NOT_SUBMITTED submitted=None never taken
ord-b92152 NOT_SUBMITTED submitted=None never taken
ord-99ba40 NOT_SUBMITTED submitted=None never taken
C0 score: 0/8 (0%) incorrect 0, broken 1, not submitted 7; 7 requests, 0.0ssamples/failed-order-assets.json The body a FailedOrder must have when Asset generation failed.{
"status": "FAILED",
"order": {
"order_id": "ord-3fa9c1",
"title": "Paper Lantern",
"artist": "Juno Vale",
"isrc": "XXCBB2600007"
},
"assets": null,
"metadata": null
}samples/failed-order-metadata.json The body a FailedOrder must have when Metadata generation failed: the Assets with their details, and no Metadata.{
"status": "FAILED",
"order": {
"order_id": "ord-3fa9c1",
"title": "Paper Lantern",
"artist": "Juno Vale",
"isrc": "XXCBB2600007"
},
"assets": [
{
"asset_id": "ord-3fa9c1-a1",
"order_id": "ord-3fa9c1",
"type": "audio",
"filename": "ord-3fa9c1_1_audio.wav",
"details": {
"asset_id": "ord-3fa9c1-a1",
"checksum": "9b2f41c07e",
"size_bytes": 10170287,
"format": "WAV"
}
},
{
"asset_id": "ord-3fa9c1-a2",
"order_id": "ord-3fa9c1",
"type": "cover_art",
"filename": "ord-3fa9c1_2_cover_art.jpg",
"details": {
"asset_id": "ord-3fa9c1-a2",
"checksum": "51d0aa8e33",
"size_bytes": 2861402,
"format": "JPEG"
}
}
],
"metadata": null
}metrics/deliveries-2026-11.csv November deliveries from the partner's report. failed_assets and failed_metadata count Orders correctly submitted as FailedOrders. On November 20 the new client submitted 8 Orders, broke the ninth, and never took the other 831.date,client,orders,correct,failed_assets,failed_metadata,broken,not_submitted 2026-11-06,vendor,212,212,13,19,0,0 2026-11-13,vendor,388,388,22,35,0,0 2026-11-20,in-house,840,8,0,0,1,831
TASK-201 Read the API notes and run the starter once Reported by Nadia (release operations)
Expected You can say which Order went wrong first, why, and why every Order behind it was never taken.
Actual C0 scores 0/8, matching logs/c0-seed-7-starter.log: ord-bb3b93 is BROKEN, main() raised a 409 ORDER_BROKEN, and the other 7 Orders are NOT_SUBMITTED.
TASK-202 Write one Order's path as a small state machine Reported by Tobi (Delivery tech lead)
Expected PLAN.md shows each call, its possible answers, and which of the three submissions each ending needs.
Actual PLAN.md says "No plan yet."
TASK-203 Add FailedOrder, then each failure path, one at a time Reported by Tobi (Delivery tech lead)
Expected C0 scores 100% on every seed. Seed 7 ends with 8 of 8 correct: two FailedOrders for Assets, four for Metadata and two ShippableOrders.
Actual The SDK has no FailedOrder and no way to submit one, and the client only knows the path where everything succeeds.
Scores use evidence from your session. A short or incomplete session may not provide enough evidence for every skill. See a sample scorecard
This client delivers a record label's song releases to Spotify through a practice API, and today it only handles the Order where nothing goes wrong. Run scores it: the share of Orders submitted correctly in each challenge, and a challenge passes only at 100%. Get C0 to 100% first. Read the API notes before you prompt, use the AI assistant however you like, and tell me how you know each failure path is right.