id stringlengths 17 53 | goal stringlengths 47 281 | plan stringlengths 35 181 ⌀ | error_introduced unknown | propagation unknown | diagnosis unknown | recovery unknown | verification unknown | steps unknown | outcome stringlengths 57 740 | reward unknown | meta unknown |
|---|---|---|---|---|---|---|---|---|---|---|---|
cer-r01-wrong-account-id-field | Finance says Acme Corp (customer ACM-4419) shows $0 weekly invoice total on the billing dashboard while Stripe's customer page lists paid invoices. Find why the dashboard join drops Acme and make the weekly total match Stripe. | Locate the dashboard invoice fetch, bind the customer to the billing API the same way the existing client does, cache the weekly rollup, and confirm pytest plus a dashboard refresh. | {
"step": 6,
"kind": "wrong_but_existing_api_field",
"description": "Bound GET /v1/invoices to customer.account_id (acct_legacy_0091) instead of customer.id (cus_acme_4419). Both fields exist on the customer object. The billing API accepts account_id as a *different* resource (legacy ledger tenant) and returns HT... | {
"hops": 5,
"survived_steps": [
7,
8,
9,
10,
11
],
"mask": "HTTP 200 empty list treated as 'customer has no invoices this week'; unit test mocked list_invoices(account_id=...) to return []; sync log printed OK synced 0 invoices for ACM-4419",
"first_symptom_step": 12
} | {
"step": 13,
"how_survived": "The wrong field was a *valid* existing key, so the client never raised. The empty 200 looked like a true zero. The new test certified the wrong binding by echoing account_id into the mock. The success log keyed the customer *code* (ACM-4419) while the request used the legacy tenant id... | {
"step": 14,
"action": "Switch fetch to customer_id=customer.id; reject account_id for invoice list; rewrite the test to assert the query string and a non-empty Stripe fixture."
} | {
"step": 15,
"evidence": "pytest 14/14 including test_invoice_query_uses_customer_id; sync log invoices=3 total_cents=4821000 for ACM-4419; dashboard weekly total $48,210.00 matches Stripe export."
} | [
{
"n": 1,
"decision_basis": "Plan: ticket names ACM-4419 $0 vs Stripe paid invoices. List billing-dashboard source to find the weekly rollup fetch.",
"tool_call": {
"name": "bash",
"args": {
"command": "ls -la apps/billing-dashboard && find apps/billing-dashboard -type f -name '*.py'... | Root error was binding GET /v1/invoices to the existing sibling field customer.account_id (legacy tenant acct_legacy_0091) instead of customer.id (cus_acme_4419). It survived five later steps because the API returned HTTP 200 status=ok with an empty list, a new unit test mocked that same wrong argument, and the success... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 14,
"amount_cents_recovered": 4821000
} | {
"factory": "cascading-error-recovery-factory",
"round": 1,
"generator": "grok-4.6",
"kind": "episode",
"seed": "wrong-but-existing-api-field",
"designed": true
} |
cer-r01-naive-cutoff-test-wrong-reason | Overnight usage report for warehouse WH-ORD includes 5 hours of the previous UTC day. Finance closes the day at 00:00 UTC; the report is supposed to use yesterday in America/Chicago. Make the cutoff match finance's UTC close without dropping Chicago-local late-evening events. | Read the cutoff helper and its pytest, reproduce the overnight window, patch the helper so yesterday in Chicago is correct, and re-run the suite. | {
"step": 5,
"kind": "test_passing_for_the_wrong_reason",
"description": "Patched cutoff_yesterday() to use the same naive datetime.now() helper the existing test already used for *both* expected and actual. The test compared two naive local midnights derived from one clock, so it stayed green while production co... | {
"hops": 6,
"survived_steps": [
6,
7,
8,
9,
10,
11
],
"mask": "test_yesterday_cutoff passed because expected and actual shared naive_now(); report job logged REPORT_OK rows=18428 elapsed_ms=912; staging checksum matched the previous green run",
"first_symptom_step": 12
} | {
"step": 13,
"how_survived": "The test never constructed an independent expected value. It called the production helper (or a copy of naive_now) on both sides, so any naive implementation satisfied the assertion. CI therefore could not see that naive midnight America/Chicago was later compared to UTC event.ts. The... | {
"step": 14,
"action": "Store cutoff as timezone-aware Chicago midnight converted to UTC. Rewrite the test with a frozen clock and an independently computed expected instant."
} | {
"step": 15,
"evidence": "pytest 11/11 including test_cutoff_is_chicago_midnight_as_utc; join shows 0 events with event_ts < cutoff_utc and 0 events from the previous UTC day inside the report; REPORT_OK rows=17604."
} | [
{
"n": 1,
"decision_basis": "Plan: ticket is overnight cutoff WH-ORD vs finance UTC close. Find the cutoff helper and its test.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"cutoff_yesterday|America/Chicago|naive_now\" -g '*.py' | head -n 40"
}
},
"obse... | Root error was rewriting cutoff_yesterday to keep the existing naive_now contract so test_yesterday_cutoff would stay green. The test passed for the wrong reason: expected and actual both came from naive_now(), and a second test pinned tzinfo is None. That error survived six later steps (green unit tests, 10/10 suite, ... | {
"success": true,
"diagnosis_hops": 6,
"wasted_steps": 6,
"tests_passed": 11,
"rows_excluded_prev_utc_day": 824
} | {
"factory": "cascading-error-recovery-factory",
"round": 1,
"generator": "grok-4.6",
"kind": "episode",
"seed": "test-passing-for-the-wrong-reason",
"designed": true
} |
cer-r02-export-ok-leftover-workdir | Daily invoice export for 2026-08-18 must land at s3://finance-exports/daily/2026-08-18.csv and match warehouse invoice hashes. Last night's job logged EXPORT_OK but finance says the file is yesterday's data. | Read the export job, run it for 2026-08-18, confirm the EXPORT_OK line and the S3 key exists, then spot-check row counts against the source query. | {
"step": 5,
"kind": "success_looking_log",
"description": "Inherited WORK_DIR=/tmp/export-prev from the previous operator shell. The writer dumped today's CSV there, then the logger printed the *configured* S3 URI (s3://finance-exports/daily/2026-08-18.csv) and the leftover file's row count. No upload ran becaus... | {
"hops": 5,
"survived_steps": [
6,
7,
8,
9,
10
],
"mask": "EXPORT_OK rows=14002 path=s3://finance-exports/daily/2026-08-18.csv; aws s3api head-object 200 on that key; row count matched the leftover file; downstream 'file arrived' check only tests key existence",
"first_symptom_step": 11
} | {
"step": 12,
"how_survived": "The success log printed the destination from config, not the path that was written. S3 HEAD returned 200 because yesterday's object was still at that key. The row count in the log was the leftover local file (also 14002). The arrival check never compared LastModified or a content hash... | {
"step": 13,
"action": "Clear leftover env; write to a run-scoped temp; require upload; log the etag and LastModified of the object actually PUT; fail if SKIP_UPLOAD is set outside dry-run."
} | {
"step": 14,
"evidence": "EXPORT_OK etag=f3c1… last_modified=2026-08-19T02:14:08Z rows=14002; hash join 14002/14002; pytest 8/8 including test_log_uses_uploaded_etag."
} | [
{
"n": 1,
"decision_basis": "Plan: ticket is EXPORT_OK vs stale S3 bytes for 2026-08-18. List the export job and its logger.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"EXPORT_OK|WORK_DIR|SKIP_UPLOAD|finance-exports\" jobs/invoice_export -g '*.py' | head -n 40"
... | Root error was treating EXPORT_OK as evidence of an S3 write while leftover WORK_DIR=/tmp/export-prev and SKIP_UPLOAD=1 made the job write locally and skip the PUT. It survived five later steps: HTTP 200 on yesterday's object, FILE_ARRIVED on key existence, matching warehouse row count (14002), matching leftover line c... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 8,
"rows_matched": 14002
} | {
"factory": "cascading-error-recovery-factory",
"round": 2,
"generator": "grok-4.6",
"kind": "episode",
"seed": "success-looking-log",
"designed": true
} |
cer-r02-ny-date-joined-as-utc | Overnight SLA dashboard shows 47 'missing shipment' orders that ops can see in the WMS. Orders store created_local as America/New_York calendar dates; shipments store shipped_at as timestamptz UTC. Fix the daily join so late-evening NY orders are not compared to the next UTC date. | Read the dbt join, run the uniqueness/relationship tests, sample a midday window where dates should agree, then ship if tests pass. | {
"step": 4,
"kind": "tz_vs_utc_only_after_join",
"description": "Joined orders.created_local::date to (shipments.shipped_at at time zone 'UTC')::date. created_local is already an NY calendar date, not a UTC timestamp. The cast looks symmetric and type-checks."
} | {
"hops": 7,
"survived_steps": [
5,
6,
7,
8,
9,
10,
11
],
"mask": "dbt relationship test 998/1000 pass; midday sample 12:00–16:00 ET has 0 date mismatches; looker tile 'join_ok 99.8%'; row counts on 2026-08-18 agree to 3 orders",
"first_symptom_step": 12
} | {
"step": 13,
"how_survived": "Midday samples never cross the UTC date line, so a wrong tz interpretation still matched. dbt relationships checked keys, not the date predicate. The three-order count delta was absorbed as 'in-flight'. Only the overnight SLA join (20:00–23:59 America/New_York == next UTC morning) mad... | {
"step": 14,
"action": "Interpret created_local in America/New_York, convert both sides to UTC dates using shipped_at directly, and add a test that freezes a 22:15 ET order."
} | {
"step": 15,
"evidence": "dbt 14/14 including test_late_evening_ny_order_joins_same_utc_day; SLA missing-shipment count 0; 47 previously missing orders join to their WMS shipments."
} | [
{
"n": 1,
"decision_basis": "Plan: SLA missing-shipment 47 vs WMS. Find the dbt model that joins orders to shipments on a date key.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"created_local|shipped_at|sla_missing\" models/ -g '*.sql' | head -n 40"
}
},
... | Root error was joining naive America/New_York created_local::date to (shipped_at AT TIME ZONE 'UTC')::date. The error survived seven later steps: dbt 6/6, midday 812/0 mismatch, 1001 vs 998 counts blamed on in-flight, Looker join_ok 99.8%, a midday singular test, and dbt build PASS=7. Diagnosis required the overnight j... | {
"success": true,
"diagnosis_hops": 7,
"wasted_steps": 7,
"tests_passed": 14,
"orders_recovered": 47
} | {
"factory": "cascading-error-recovery-factory",
"round": 2,
"generator": "grok-4.6",
"kind": "episode",
"seed": "tz-vs-utc-only-after-join",
"designed": true
} |
cer-r03-graphql-200-errors-ignored | Order ORD-7701 charged on Stripe but never entered the fulfillment queue. The storefront agent queried GraphQL order(id) and recorded status=pending. Find why fulfillment did not start and make a denied-scope query fail the job. | Read the GraphQL client, replay the order query, treat HTTP 200 as success, and check the pending-status path. | {
"step": 5,
"kind": "http_200_graphql_errors_ignored",
"description": "Parsed only data.order. HTTP 200 body was {data:{order:null}, errors:[{extensions.code:INSUFFICIENT_SCOPE}]}. Null order was mapped to status='pending' by a helper that treats missing as not-yet-created."
} | {
"hops": 6,
"survived_steps": [
6,
7,
8,
9,
10,
11
],
"mask": "HTTP 200; helper mapped null order to pending; webhook ACCEPTED; test_order_not_yet_created mocks 200+null; queue depth 0 looks like an empty store",
"first_symptom_step": 12
} | {
"step": 13,
"how_survived": "Transport success hid a payload error. The null-order helper was written for a race where orders appear a few seconds later, so pending was a legal state. The unit test enshrined 200+null as that race. The webhook ACK only checked HTTP status. errors[] was never joined to the request ... | {
"step": 14,
"action": "Fail closed on errors[]; do not map null+errors to pending; add test that INSUFFICIENT_SCOPE raises."
} | {
"step": 15,
"evidence": "pytest 9/9; replay raises InsufficientScope; fulfillment job nacks and pages instead of writing pending."
} | [
{
"n": 1,
"decision_basis": "Plan: ORD-7701 charged but not in fulfillment. Find the GraphQL order fetch and the pending-status mapper.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"order\\(id|INSUFFICIENT_SCOPE|status=.pending|data.order\" services/fulfillment -g '*... | Root error was treating a GraphQL HTTP 200 with data.order=null as the async-create pending path while errors[] carried INSUFFICIENT_SCOPE. It survived six later steps: worker defer, webhook ACCEPTED, empty queue, a unit test that mocked 200+null without errors, projection upsert to pending, and a paid Stripe charge th... | {
"success": true,
"diagnosis_hops": 6,
"wasted_steps": 6,
"tests_passed": 9
} | {
"factory": "cascading-error-recovery-factory",
"round": 3,
"generator": "grok-4.6",
"kind": "episode",
"seed": "graphql-200-errors-ignored",
"designed": true
} |
cer-r03-cache-key-missing-tenant | Acme tenant users are seeing Globex feature flags (including globex.beta_checkout). Flags are cached in Redis as user:{id}:flags. Stop the cross-tenant hit without disabling the cache. | Read the cache key builder, reproduce a HIT for user 4419, and confirm the flag payload looks well-formed. | {
"step": 4,
"kind": "cache_key_missing_tenant",
"description": "Cache key is user:{user_id}:flags. user_id 4419 exists in both Acme and Globex. A Globex write populated the key; Acme reads return that payload as a HIT."
} | {
"hops": 5,
"survived_steps": [
5,
6,
7,
8,
9
],
"mask": "Redis HIT; JSON schema valid; single-tenant pytest fixture; p99 cache hit 94%; flags endpoint 200",
"first_symptom_step": 10
} | {
"step": 11,
"how_survived": "The payload was a valid flag document, so schema checks passed. Tests use one tenant so user_id is unique in-fixture. Latency dashboards reward HITs. The collision only appears when joining flag.tenant_id to the request tenant."
} | {
"step": 12,
"action": "Include tenant_id in the key; add a two-tenant collision test; invalidate the bare user:*:flags pattern."
} | {
"step": 13,
"evidence": "pytest 10/10 test_two_tenants_same_user_id_isolated; Redis GET acme:user:4419:flags vs globex:user:4419:flags; join mismatch 0."
} | [
{
"n": 1,
"decision_basis": "Plan: Acme users see globex.beta_checkout. Find the Redis flag cache key.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"user:.*flags|cache_key|beta_checkout\" services/flags -g '*.py' | head -n 30"
}
},
"observation": "servi... | Root error was a Redis key user:{user_id}:flags that omitted tenant_id. user 4419 exists in Acme and Globex; a Globex SETEX was returned as an Acme HIT. It survived five later steps: SCHEMA_OK, HTTP 200 X-Cache HIT, a single-tenant pytest, 94.1% hit ratio, and a raw GET that still looked like a valid flag document. Dia... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 10,
"colliding_user_ids": 214
} | {
"factory": "cascading-error-recovery-factory",
"round": 3,
"generator": "grok-4.6",
"kind": "episode",
"seed": "cache-key-missing-tenant",
"designed": true
} |
cer-r04-page-zero-coerced-to-one | Catalog sync for merchant M-88 is missing the last ~50 SKUs. The client walks GET /v1/skus?page=&page_size=100 until a short page. Make the sync complete without changing page_size. | Read the pager, replay page=0/1/2 the way the Python client does, and confirm unique SKU counts. | {
"step": 4,
"kind": "pagination_zero_coerced_to_one",
"description": "Used 0-based pages (page=0,1,2). The API is 1-based and coerces page<=0 to 1, so page=0 and page=1 return the same 100 SKUs. A later unique() hid the duplicate."
} | {
"hops": 6,
"survived_steps": [
5,
6,
7,
8,
9,
10
],
"mask": "HTTP 200 x3; unique() 200; total=248 so 3*100 looked sufficient; short last page; test used 80 SKUs (one page)",
"first_symptom_step": 11
} | {
"step": 12,
"how_survived": "page=0 silently became page=1 (no error). unique() collapsed the duplicate page so len==200 looked like two full pages plus a short page=2 (48). Source total 248 was 'close enough' to 200+ops lag. The unit test fixture had 80 SKUs, so a single page never exercised the 0/1 alias. Only ... | {
"step": 13,
"action": "Reject page<1; iterate 1..N; assert no overlapping ids across consecutive pages; test with 248 SKUs."
} | {
"step": 14,
"evidence": "pytest 8/8; sync 248/248; overlap(page1,page2)=0; page=0 now 400."
} | [
{
"n": 1,
"decision_basis": "Plan: last ~50 SKUs missing for M-88. Find the catalog pager and its page argument.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"page=|page_size|skus\" jobs/catalog_sync -g '*.py' | head -n 30"
}
},
"observation": "jobs/cat... | Root error was a 0-based pager against a 1-based API that coerces page<=0 to 1. page=0 and page=1 returned the same 100 SKUs; unique() reported 148 after a short page=2. The error survived six steps: identical 200s treated as success, unique 148, 248 vs 148 blamed on lag, an 80-SKU fixture, SYNC_OK receipt, and overlap... | {
"success": true,
"diagnosis_hops": 6,
"wasted_steps": 6,
"tests_passed": 8,
"skus_recovered": 100
} | {
"factory": "cascading-error-recovery-factory",
"round": 4,
"generator": "grok-4.6",
"kind": "episode",
"seed": "pagination-zero-coerced-to-one",
"designed": true
} |
cer-r04-csv-date-is-ship-date | Weekend incident dashboard spiked Saturday/Sunday for warehouse WH-ATL even though pickers were off. The feed is incidents.csv with a Date column. Make daily counts follow the event, not the shipment. | Read the CSV header, plot Date counts, and confirm the existing fixture test still passes. | {
"step": 4,
"kind": "csv_header_alias",
"description": "Grouped incidents by the CSV column Date, which the vendor glossary defines as ship_date (when the carton left), not event_date (when the scan exception fired)."
} | {
"hops": 5,
"survived_steps": [
5,
6,
7,
8,
9
],
"mask": "Date parses as ISO; weekday histogram 'looks busy'; fixture has Date==event_date; Looker tile OK",
"first_symptom_step": 10
} | {
"step": 11,
"how_survived": "The column name Date is a legal ISO date, so parsing succeeded. The committed fixture copied Date from event_date, so the unit test could not see the alias. Weekend spikes looked like real volume. Only joining CSV Date to WMS event_ts and ship_ts showed Date==ship_ts::date and event_t... | {
"step": 12,
"action": "Use EventDateTime (or join WMS event_ts); add a fixture row where ship date is Sunday and event is Friday."
} | {
"step": 13,
"evidence": "pytest 7/7; Saturday/Sunday incident counts 0; Friday +18 matches WMS exceptions."
} | [
{
"n": 1,
"decision_basis": "Plan: WH-ATL weekend incident spike. Inspect incidents.csv header and the aggregator.",
"tool_call": {
"name": "bash",
"args": {
"command": "head -n 2 data/incidents.csv && rg -n \"Date|event_date|groupby\" jobs/incident_daily -g '*.py' | head"
}
... | Root error was grouping incidents by vendor column Date, which is ship_date. It survived five steps: ISO parse success, test_agg green, a fixture where Date equaled event day, a Saturday n=21 that looked like volume, and Looker/DAILY_OK. Diagnosis joined Date to EventDateTime/ShipDateTime: 18/21 Saturday rows were Frid... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 7,
"rows_reclassified": 18
} | {
"factory": "cascading-error-recovery-factory",
"round": 4,
"generator": "grok-4.6",
"kind": "episode",
"seed": "csv-header-alias-ship-date",
"designed": true
} |
cer-r05-lfs-pointer-hash-green | Embedding golden test test_encoder_fixture_hash is green but staging nearest-neighbor recall against fixtures/encoder/mini.onnx is 0. Confirm the fixture bytes are the ONNX model, not a Git LFS pointer, and restore recall. | Read the hash test, sha256 the fixture, and compare to the committed expected digest. | {
"step": 4,
"kind": "lfs_pointer_hashed_as_content",
"description": "Accepted fixtures/encoder/mini.onnx whose bytes are a Git LFS pointer (132 B). The test expected sha256 of that pointer file, so CI stayed green."
} | {
"hops": 5,
"survived_steps": [
5,
6,
7,
8,
9
],
"mask": "sha256 match; pytest green; file exists; ONNX header check skipped; CI artifact size 132 B labeled ok",
"first_symptom_step": 10
} | {
"step": 11,
"how_survived": "The test hashed whatever was on disk and compared it to a golden digest taken from the same pointer. Existence plus digest equality never inspected the LFS header. Inference 'ran' on 132 ASCII bytes and produced an embedding of the pointer text. Recall 0 appeared only after joining th... | {
"step": 12,
"action": "smudge LFS; assert starts with ONNX magic; recompute golden hash of the real model; fail if pointer header present."
} | {
"step": 13,
"evidence": "pytest 6/6; file 3.1 MiB starts with 0x08; recall@1 0.97 vs staging queries."
} | [
{
"n": 1,
"decision_basis": "Plan: recall@1 is 0 on staging while test_encoder_fixture_hash is green. Find the hash test and fixture path.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"mini.onnx|fixture_hash|sha256\" tests/encoder models/encoder | head -n 30"
}... | Root error was treating a 132-byte Git LFS pointer as mini.onnx because test_encoder_fixture_hash expected the pointer's sha256. It survived five steps: digest match, 5/5 pytest, CI artifact 132 B, FallbackHasher load, and a unit embed test that used the hasher. Diagnosis was xxd (version https://git-lfs) plus a join t... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 6,
"recall_at_1": 0.97
} | {
"factory": "cascading-error-recovery-factory",
"round": 5,
"generator": "grok-4.6",
"kind": "episode",
"seed": "lfs-pointer-hashed-as-content",
"designed": true
} |
cer-r05-stale-idempotency-key | Checkout created order ORD-9902 and Stripe shows a $12.00 charge, but the charge metadata.order_id is ORD-9899 (the previous cart in this worker). Stop the retry helper from reusing Idempotency-Key across orders. | Read the payment retry helper, replay ORD-9902, and confirm Stripe returned 200. | {
"step": 5,
"kind": "stale_idempotency_key",
"description": "Thread-local LAST_IDEMPOTENCY_KEY was left at order-ORD-9899 from a retry. The next charge reused that header; Stripe returned the previous $12 charge as 200."
} | {
"hops": 6,
"survived_steps": [
6,
7,
8,
9,
10,
11
],
"mask": "Stripe 200 paid; amount $12 matches both carts; webhook charge.succeeded; test reused one key on purpose",
"first_symptom_step": 12
} | {
"step": 13,
"how_survived": "Idempotent replay is supposed to return the same charge. Amounts were equal ($12 sale item). The helper test used a single order. Webhook ACK only checked paid=true. The mismatch appeared only after joining charge.metadata.order_id to the new checkout order_id."
} | {
"step": 14,
"action": "Key = f'order:{order_id}:{intent}'; clear thread-local on success; test two sequential $12 orders get two charge ids."
} | {
"step": 15,
"evidence": "pytest 8/8; ORD-9902 charge ch_new metadata.order_id=ORD-9902; ORD-9899 unchanged."
} | [
{
"n": 1,
"decision_basis": "Plan: ORD-9902 charged but metadata names ORD-9899. Find the Idempotency-Key builder.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"Idempotency-Key|LAST_IDEMPOTENCY|idempotency\" services/checkout -g '*.py' | head"
}
},
"obs... | Root error was reusing thread-local LAST_IDEMPOTENCY_KEY (order-ORD-9899) for ORD-9902. Stripe correctly returned the previous $12 charge as HTTP 200. It survived six steps: retrieve paid, checkout marked paid, webhook replay ACK, a same-order retry test, identical $12 totals, and RECON_OK on amount. Diagnosis joined m... | {
"success": true,
"diagnosis_hops": 6,
"wasted_steps": 6,
"tests_passed": 8
} | {
"factory": "cascading-error-recovery-factory",
"round": 5,
"generator": "grok-4.6",
"kind": "episode",
"seed": "stale-idempotency-key",
"designed": true
} |
cer-r06-charge-succeeded-not-invoice-paid | SaaS renewals for plan pro-annual are marked collected when Stripe emits charge.succeeded, but finance says invoice INV-3301 is still open. Drive the collected flag from invoice.paid, not from the sibling charge event. | Read the webhook router, replay the latest Stripe events for INV-3301, and confirm collected flips. | {
"step": 4,
"kind": "wrong_but_existing_event_type",
"description": "Routed collection on charge.succeeded (a real event that fires for the $0/authorization and for invoice-adjacent charges) instead of invoice.paid."
} | {
"hops": 5,
"survived_steps": [
5,
6,
7,
8,
9
],
"mask": "charge.succeeded 200; collected=true; webhook test only posts charge.succeeded; amount matches the invoice",
"first_symptom_step": 10
} | {
"step": 11,
"how_survived": "charge.succeeded is a live sibling event, so the router did not 404. The handler set collected=true on any paid charge whose customer matched. The unit test only posted charge.succeeded. invoice.paid never arrived in the test fixture. The open invoice appeared only after joining invoi... | {
"step": 12,
"action": "Handle invoice.paid; ignore charge.succeeded for subscription collection; test both events."
} | {
"step": 13,
"evidence": "pytest 9/9; INV-3301 collected=false until invoice.paid; then true and invoice.status=paid."
} | [
{
"n": 1,
"decision_basis": "Plan: INV-3301 collected but Stripe invoice open. Find which event flips collected.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"charge.succeeded|invoice.paid|collected\" services/billing_webhooks -g '*.py' | head"
}
},
"ob... | Root error was flipping collected on charge.succeeded, a real sibling of invoice.paid. The event was an uncaptured $99 authorization (invoice=null). It survived five steps: router 200, collected=true, invoice still open written off as settling, a test that only posted charge.succeeded, and CLOSE_OK. Diagnosis joined ev... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 9
} | {
"factory": "cascading-error-recovery-factory",
"round": 6,
"generator": "grok-4.6",
"kind": "episode",
"seed": "wrong-but-existing-webhook-event",
"designed": true
} |
cer-r06-float-dollars-sum-join | Statement line items for account A-17 sum to $100.00 in the UI but the ledger balance after join is $99.9999994 and the close job refuses to post. Store money as integer cents and make the daily sum match the ledger. | Read the money type, run the unit tests that assert 19.99, and post a $100 statement. | {
"step": 4,
"kind": "float_dollars",
"description": "Kept amount as float dollars because test_price_eq passed on 19.99 and 0.1+0.2 was not in the suite. The close job sums floats then compares to Decimal('100.00')."
} | {
"hops": 6,
"survived_steps": [
5,
6,
7,
8,
9,
10
],
"mask": "pytest 19.99==19.99; UI $100.00; CSV export 100.00; line count 8",
"first_symptom_step": 11
} | {
"step": 12,
"how_survived": "Single-price equality and UI rounding hid binary float error. The close job compared an unrounded sum to Decimal('100.00'). The mismatch only appeared after joining SUM(amount) to ledger.expected_cents."
} | {
"step": 13,
"action": "Store cents int; compare integers; add a 0.1+0.2-style 10-cent ten-times test."
} | {
"step": 14,
"evidence": "pytest 8/8; SUM=10000 cents; close job POST_OK."
} | [
{
"n": 1,
"decision_basis": "Plan: A-17 UI $100 vs close-job reject. Find the amount type and the 19.99 test.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"19.99|amount|Decimal|cents\" services/ledger -g '*.py' | head -n 30"
}
},
"observation": "service... | Root error was keeping money as float dollars because test_price_eq (19.99==19.99) and a uniform 8×$12.50 statement rounded to $100.00. It survived six steps: green unit test, UI $100.00, CSV 100.00, 6/6 suite, READY_OK, and a dry-run that only used the 12.50 set. Diagnosis summed the nightly mix (0.1/0.2) to 99.999… w... | {
"success": true,
"diagnosis_hops": 6,
"wasted_steps": 6,
"tests_passed": 8
} | {
"factory": "cascading-error-recovery-factory",
"round": 6,
"generator": "grok-4.6",
"kind": "episode",
"seed": "float-dollars-sum-join",
"designed": true
} |
cer-r07-nfc-nfd-unique-miss | Catalog unique(artist_name) is green but WH-imports created a second row for Café Comète (NFC) next to Café Comète (NFD). Dedup on NFC and make the unique test fail on a decomposed fixture. | Read the unique index, run the ASCII unique test, and import tonight's warehouse file. | {
"step": 4,
"kind": "missing_unicode_normalize",
"description": "Treated artist_name equality as raw Python ==. Unique test used ASCII only. NFC and NFD café imported as two rows."
} | {
"hops": 5,
"survived_steps": [
5,
6,
7,
8,
9
],
"mask": "unique constraint pytest green; import 200; row count +1 expected; ASCII names in fixture",
"first_symptom_step": 10
} | {
"step": 11,
"how_survived": "Postgres unique(text) and Python == are codepoint equality, so NFC≠NFD. The test fixture was ASCII. Import logged created=1 because the raw string was new. The duplicate appeared only after joining normalize('NFC', name)."
} | {
"step": 12,
"action": "Store NFC; unique on normalized; add Café/Café fixture that must collapse."
} | {
"step": 13,
"evidence": "pytest 7/7; one row for Café Comète; NFD import updates the same id."
} | [
{
"n": 1,
"decision_basis": "Plan: two rows for Café Comète. Find the unique(artist_name) constraint and import path.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"artist_name|unique|normalize\" services/catalog -g '*.{py,sql}' | head"
}
},
"observation... | Root error was raw artist_name == / unique(text) with an ASCII-only test. NFD Café Comète imported as created=1 beside the NFC row. It survived five steps: green unique test, IMPORT_OK, two visible-identical names with 13 vs 15 bytes, 6/6 suite, and count=2 treated as expected. Diagnosis grouped normalize(NFC) to one k... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 7
} | {
"factory": "cascading-error-recovery-factory",
"round": 7,
"generator": "grok-4.6",
"kind": "episode",
"seed": "unicode-nfc-vs-nfd-join",
"designed": true
} |
cer-r07-jwt-userid-not-sub | Support impersonation for ticket T-552 wrote audit rows as user 17 (legacy user_id claim) while the authenticated subject is sub=usr_9f2a. Bind the audit actor to JWT sub, not the sibling user_id claim. | Decode the access token, read the audit writer, and confirm user_id is what we already log. | {
"step": 4,
"kind": "wrong_but_existing_jwt_claim",
"description": "Used payload['user_id'] (legacy numeric, still present) instead of payload['sub'] (usr_9f2a). user_id=17 is a different staff account left in the token for old APIs."
} | {
"hops": 6,
"survived_steps": [
5,
6,
7,
8,
9,
10
],
"mask": "JWT valid; user_id exists; audit insert 200; tests mint tokens with sub==str(user_id)",
"first_symptom_step": 11
} | {
"step": 12,
"how_survived": "user_id is a real claim, so the decoder did not KeyError. Tests mint tokens where sub equals str(user_id). Audit FK to users.id accepted 17. The wrong actor appeared only after joining audit.actor_id to users.external_sub."
} | {
"step": 13,
"action": "Actor = sub; reject if user_id != sub's mapped legacy id; test token where they differ."
} | {
"step": 14,
"evidence": "pytest 8/8; audit.actor_sub=usr_9f2a; user 17 no longer on T-552 rows."
} | [
{
"n": 1,
"decision_basis": "Plan: T-552 audit shows user 17 not usr_9f2a. Find where the audit actor is taken from the JWT.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"user_id|payload\\[.|audit\" services/support_api -g '*.py' | head"
}
},
"observati... | Root error was binding the audit actor to JWT user_id (legacy 17) instead of sub (usr_9f2a → user 9). user_id is a live sibling claim. It survived six steps: valid insert, FK to users.id=17, tests where sub==str(user_id), last_actor=17, SOX_OK on legacy-bot, and a join that finally showed sub maps to 9. Recovery looks ... | {
"success": true,
"diagnosis_hops": 6,
"wasted_steps": 6,
"tests_passed": 8
} | {
"factory": "cascading-error-recovery-factory",
"round": 7,
"generator": "grok-4.6",
"kind": "episode",
"seed": "jwt-user_id-not-sub",
"designed": true
} |
cer-r08-s3-export-vs-exports-prefix | Nightly finance drop must be under s3://fin-lake/exports/2026-08-18/. The job logged LIST_OK with 4 objects but finance cannot see today's files. Point the lister at the exports/ prefix the writer uses, not export/. | Read the writer prefix, list export/ as the dashboard already does, and confirm 4 objects. | {
"step": 4,
"kind": "wrong_but_existing_s3_prefix",
"description": "Listed s3://fin-lake/export/2026-08-18/ (legacy singular prefix that still holds yesterday's 4 objects) instead of exports/ (plural) where the writer PUT."
} | {
"hops": 5,
"survived_steps": [
5,
6,
7,
8,
9
],
"mask": "LIST_OK 4 objects; HEAD 200; dashboard already uses export/; test fixture only creates export/",
"first_symptom_step": 10
} | {
"step": 11,
"how_survived": "export/ is a live prefix with yesterday's 4 files, so LIST/HEAD succeeded. The dashboard and unit test still use the legacy name. The writer moved to exports/ last week. A join of listed keys to writer PUT keys was empty."
} | {
"step": 12,
"action": "List exports/; fail if writer prefix != list prefix; migrate the test fixture."
} | {
"step": 13,
"evidence": "LIST 4 keys under exports/2026-08-18/; join to PUT keys 4/4; pytest 6/6."
} | [
{
"n": 1,
"decision_basis": "Plan: finance cannot see today's drop. Find the S3 prefix the job lists vs writes.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"export|prefix|fin-lake\" jobs/fin_drop -g '*.py' | head"
}
},
"observation": "jobs/fin_drop/wri... | Root error was listing the live leftover prefix export/ (yesterday's 4 objects, HEAD 200) while the writer PUTs to exports/. It survived five steps: LIST_OK, HEAD 200, dashboard health, a fixture that only created export/, and ARRIVED_OK. Diagnosis compared etags (aa11old vs f30ctoday) after a basename join looked equa... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 6
} | {
"factory": "cascading-error-recovery-factory",
"round": 8,
"generator": "grok-4.6",
"kind": "episode",
"seed": "s3-wrong-existing-prefix",
"designed": true
} |
cer-r08-latest-tag-not-build-digest | Staging api-web should run the image built from git sha 9c1e2aa (digest sha256:b1…). kubectl reports Image=ghcr.io/acme/api-web:latest and Ready=True but the new /v2/health field is missing. Pin the deploy to the build digest, not :latest. | Read the deploy manifest, confirm the :latest image exists and the rollout is Ready, then hit /health. | {
"step": 4,
"kind": "mutable_latest_tag",
"description": "Deployed ghcr.io/acme/api-web:latest. latest still resolved to yesterday's digest sha256:aa11…, not today's sha256:b1… from git 9c1e2aa."
} | {
"hops": 6,
"survived_steps": [
5,
6,
7,
8,
9,
10
],
"mask": "image pull 200; rollout Ready; probe /health 200; CI test only checks docker image inspect :latest exists",
"first_symptom_step": 11
} | {
"step": 12,
"how_survived": ":latest exists and is pullable, so kubectl Ready is true. /health 200 is the old handler. The image-exists test never compared digests. The miss appeared after joining the running container's RepoDigests to the build's sha256:b1."
} | {
"step": 13,
"action": "Set image to @sha256:b1… (or :9c1e2aa immutable tag); assert running digest == build digest."
} | {
"step": 14,
"evidence": "pytest 5/5; kubectl image @sha256:b1; /v2/health present; digest join equal."
} | [
{
"n": 1,
"decision_basis": "Plan: /v2/health missing while Ready=True. Find the image field in the staging deploy.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"image:|latest|9c1e2aa\" deploy/staging/api-web.yaml"
}
},
"observation": "11: image:... | Root error was deploying ghcr.io/acme/api-web:latest, which still resolved to yesterday's sha256:aa11. It survived six steps: pull 200, rollout Ready, /health 200 (v1.8.4), an inspect-only test, DEPLOY_OK, and a 404 on /v2/health written off as a path typo. Diagnosis joined the running imageID to the 9c1e2aa build dige... | {
"success": true,
"diagnosis_hops": 6,
"wasted_steps": 6,
"tests_passed": 5
} | {
"factory": "cascading-error-recovery-factory",
"round": 8,
"generator": "grok-4.6",
"kind": "episode",
"seed": "docker-latest-vs-gitsha-digest",
"designed": true
} |
cer-r09-null-region-vs-empty-string | Region coverage report for customers is 100% in the dashboard but ops says 312 accounts have no region. The join is customers.region = regions.code. Include NULL regions instead of treating '' as the only missing value. | Read the coverage query, run it, and confirm 100% against the regions fixture. | {
"step": 4,
"kind": "null_vs_empty_string",
"description": "Filtered missing regions with region = '' (and the test fixture uses ''). Production missingness is NULL, which the equality join and the '' filter both skip."
} | {
"hops": 5,
"survived_steps": [
5,
6,
7,
8,
9
],
"mask": "coverage 100%; inner join row count = customers-with-non-null-region; test uses ''; Looker OK",
"first_symptom_step": 10
} | {
"step": 11,
"how_survived": "SQL NULL is not equal to ''. The dashboard query was an inner join, so NULL customers never entered the denominator. The test inserted ''. COUNT(*) on the joined table looked complete. The 312 appeared only after joining customers to a NULL-safe missingness predicate."
} | {
"step": 12,
"action": "Use IS NULL OR region=''; left join; test fixture includes NULL."
} | {
"step": 13,
"evidence": "pytest 6/6; missing=312; coverage 94.1%; dashboard matches ops."
} | [
{
"n": 1,
"decision_basis": "Plan: 312 unregioned customers vs 100% tile. Find the coverage SQL.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"region =|coverage|regions.code\" jobs/region_coverage -g '*.{py,sql}' | head"
}
},
"observation": "jobs/region... | Root error was treating missing region as region='' and using an inner join c.region=r.code. Production missingness is NULL, which SQL does not equal ''. It survived five steps: 4999/4999, a test that inserted '' and asserted missing_empty=0, Looker 100%, SNAP_OK, and a NULL-vs-'' count that finally showed 312. Recover... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 6,
"null_customers": 312
} | {
"factory": "cascading-error-recovery-factory",
"round": 9,
"generator": "grok-4.6",
"kind": "episode",
"seed": "sql-null-vs-empty-join",
"designed": true
} |
cer-r09-kafka-latest-skips-backlog | Replay of topic orders.v2 for consumer group billing-rebuild must include the 40,218 messages produced overnight. The job logged LAG=0 and REBUILD_OK but the rebuild table has only 1,104 rows. Start from earliest (or a recorded offset), not latest. | Read the consumer config, start the rebuild, and confirm LAG=0. | {
"step": 4,
"kind": "auto_offset_reset_latest",
"description": "Started a new group billing-rebuild-0820 with auto.offset.reset=latest. LAG=0 because the cursor was at the log end; 40,218 older records were never read."
} | {
"hops": 6,
"survived_steps": [
5,
6,
7,
8,
9,
10
],
"mask": "LAG=0; REBUILD_OK; consumer test uses a 3-message topic created after subscribe; row count 1104 matches the post-subscribe window",
"first_symptom_step": 11
} | {
"step": 12,
"how_survived": "latest + a new group is a valid Kafka config, so LAG=0 is truthful for that cursor. The unit test created the topic after subscribe. 1,104 rows matched messages produced after the job started. The skip appeared only after joining rebuild.order_id to the topic's earliest-to-high waterm... | {
"step": 13,
"action": "auto.offset.reset=earliest; seek to committed rebuild checkpoint; test a pre-existing backlog."
} | {
"step": 14,
"evidence": "pytest 5/5; rebuild rows=41322; join to watermark 41322/41322."
} | [
{
"n": 1,
"decision_basis": "Plan: rebuild has 1104 rows vs 40k overnight. Find auto.offset.reset for billing-rebuild.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"auto.offset.reset|group.id|orders.v2\" jobs/billing_rebuild -g '*.{py,yml}' | head"
}
},
... | Root error was auto.offset.reset=latest on a new group billing-rebuild-0820. LAG=0 and REBUILD_OK 1104 were a live tail. It survived six steps: group describe LAG=0 at 41322, a test that produced after subscribe, 3/3 pytest, 1104 distinct, REBUILD_OK receipt, and watermarks 104–41322. Diagnosis joined overnight ids (0/... | {
"success": true,
"diagnosis_hops": 6,
"wasted_steps": 6,
"tests_passed": 5,
"rows_rebuilt": 41218
} | {
"factory": "cascading-error-recovery-factory",
"round": 9,
"generator": "grok-4.6",
"kind": "episode",
"seed": "kafka-latest-offset-skip",
"designed": true
} |
cer-r10-flag-default-true-unknown-key | billing.v2_collect was never created in the flag catalog but 38% of checkout traffic hit the v2 collector overnight. Unknown flags must default off, not on. | Read enabled(), check the checkout call site, and confirm the helper's default. | {
"step": 4,
"kind": "unknown_flag_defaults_true",
"description": "enabled() returns True when the key is missing (comment: 'fail open so new flags work before the catalog row exists'). checkout called billing.v2_collect, which is not in the catalog."
} | {
"hops": 5,
"survived_steps": [
5,
6,
7,
8,
9
],
"mask": "enabled() True; 200s on v2 path; tests only use cataloged keys; default-open comment treated as policy",
"first_symptom_step": 10
} | {
"step": 11,
"how_survived": "Missing-key → True is a deliberate fail-open. Tests never ask about unknown keys. v2 200s looked like a successful rollout. The 38% appeared only after joining checkout.flag_key to flag_catalog.name (no row)."
} | {
"step": 12,
"action": "Default False; log unknown keys; test enabled('not.a.flag') is False."
} | {
"step": 13,
"evidence": "pytest 7/7; unknown key false; v2_collect traffic 0 until catalog row + explicit on."
} | [
{
"n": 1,
"decision_basis": "Plan: v2 collector saw 38% traffic without a catalog row. Find enabled() default.",
"tool_call": {
"name": "bash",
"args": {
"command": "rg -n \"def enabled|default|v2_collect\" services/flags services/checkout -g '*.py' | head"
}
},
"observ... | Root error was enabled() default True on a missing catalog key, so billing.v2_collect (never created) routed 38% of checkout to v2. It survived five steps: helper True, 200 X-Collector v2, tests that only used known keys, 5/5, and ROLLOUT_OK source=default. Diagnosis joined checkout_log.flag_key to flag_catalog (8714 u... | {
"success": true,
"diagnosis_hops": 5,
"wasted_steps": 5,
"tests_passed": 7,
"uncataloged_hits": 8714
} | {
"factory": "cascading-error-recovery-factory",
"round": 10,
"generator": "grok-4.6",
"kind": "episode",
"seed": "feature-flag-unknown-defaults-true",
"designed": true
} |
Cascading Error Recovery Trajectories
Rights & intended use: legacy public research corpus / portfolio artifact. Hosted frontier-model outputs are research-only inputs under project policy (synthetic-factory#161):
intended_use: research_only,project_training_policy: blocked. Not training data for any model-weight update. Machine-readable record:rights.json.
Release status: The raw, uncurated payload is now published under
data/raw/. It is available for inspection and reproducibility, but it is not training-ready.
Visibility: public raw-data repository.
Rights and intended use
This is a legacy public research corpus and portfolio artifact, not training data.
Under the Synthetic Factory project-policy decision recorded in rmems/synthetic-factory#161, outputs of hosted frontier models (here: Grok 4.6 (xAI)) are research-only inputs:
intended_use: research_onlyproject_training_policy: blocked
These records must not enter SFT, DPO, RL, distillation, continued
pretraining, or any other model-weight update in this project.
training_ready: false is a data-quality statement; even a future curated
release would not make this corpus eligible for weight updates under
project policy. That policy value does not change merely because a provider
document later permits training — changing it would require a separate
recorded project decision.
Research retention, evaluation, and redistribution rights are tracked
separately per provider/channel/date and fail closed while unresolved
(research_retention_status, research_evaluation_status,
redistribution_status: unresolved). The machine-readable record is
rights.json. Full contributor/role breakdown is preserved in ATTRIBUTION.md.
Historical release provenance
This dataset was originally published under Apache-2.0 during the 2026-08 Synthetic Data Factory runs. That historical grant is documented as released — this update reframes intended use going forward; it does not rewrite, backdate, or delete the release history or the payload.
Cascading-error diagnosis and recovery (fault@4, multi-hop).
Intended model target
This is a general agentic research dataset in the Grok 4.6 agentic factory. It is independent of the Fable 5 collection and is not labeled as Spikenaut training data.
Generation attribution
The underlying synthetic data is generated by Grok 4.6 through the
Synthetic Data Factory agentic lane. Factory slug:
cascading-error-recovery-factory. Source tree:
outputs/raw/2026-08-19-agentic/cascading-error-recovery-factory/.
Published raw payload
The release contains 5882 raw records across
data/raw/batch-r01.jsonl through data/raw/batch-r2941.jsonl (~37501 KB), snapshotted from
outputs/raw/2026-08-19-agentic/cascading-error-recovery-factory/. Supporting notes are under
data/metadata/NOTES-*.md. The factory source remains the write destination; this Hub
copy is a public evidence snapshot, not the curated training export. Public
visibility is not a training-readiness claim.
Nested columns (error_introduced, propagation, diagnosis, recovery, verification, steps, reward, meta) load as generic json features and need a recent datasets release (Json feature support; validated with 5.1.0).
Planned curated release
Curated training publication remains blocked until a later audit and export pass. Do not treat this repository as a training corpus.
Execution and validation environment
All local curation, validation, dataset processing, packaging, and release engineering for this dataset were performed exclusively on the Ship of Theseus AI/HPC research workstation.
Ship of Theseus was the sole local execution environment for this project. It
was not the hosted model-generation channel: the synthetic records were
generated through the provider surface identified in rights.json and the
dataset provenance metadata.
Links
License
This public raw release is licensed under the Apache License 2.0. That license grants reuse permissions; it does not make the records training-ready or factual real-world measurements.
- Downloads last month
- 1,216