$npx -y skills add zhaoxuya520/reverse-skill --skill competition-queue-worker-driftInternal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for queues, async workers, cron jobs, delayed tasks, retry behavior, worker-only config drift, and payload-to-side-effect chains. Use when the user asks to trace a queue payload, inspect async job execut
| 1 | # Competition Queue Worker Drift |
| 2 | |
| 3 | Use this skill only as a downstream specialization after `$ctf-sandbox-orchestrator` is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to `$ctf-sandbox-orchestrator` first. |
| 4 | |
| 5 | Use this skill when the decisive effect happens after enqueue, inside a worker, or only under async runtime state that differs from the request path. |
| 6 | |
| 7 | Reply in Simplified Chinese unless the user explicitly requests English. |
| 8 | |
| 9 | ## Quick Start |
| 10 | |
| 11 | 1. Map the async chain first: enqueue point, queue payload, worker consumer, retries, and final side effect. |
| 12 | 2. Keep request-time state separate from worker-time state. |
| 13 | 3. Record queue name, message shape, worker config, retry policy, and downstream store in one chain. |
| 14 | 4. Compare synchronous path and async path when behavior diverges. |
| 15 | 5. Reproduce the smallest enqueue-to-side-effect flow that proves the decisive async drift. |
| 16 | |
| 17 | ## Workflow |
| 18 | |
| 19 | ### 1. Map Enqueue And Worker Identity |
| 20 | |
| 21 | - Record queue names, topics, cron schedules, delayed jobs, dead-letter queues, worker processes, and consumer groups. |
| 22 | - Note which config, env vars, feature flags, or credentials exist only in the worker environment. |
| 23 | - Keep enqueue request, stored payload, and worker identity tied together. |
| 24 | |
| 25 | ### 2. Trace Worker-Only State And Retries |
| 26 | |
| 27 | - Show how worker runtime differs from the request path: different env, files, mounts, caches, permissions, or clocks. |
| 28 | - Record retry count, backoff, dedupe keys, failure handling, dead-letter flow, and idempotency behavior. |
| 29 | - Distinguish immediate request success from eventual worker success or failure. |
| 30 | |
| 31 | ### 3. Reduce To The Decisive Async Chain |
| 32 | |
| 33 | - Compress the result to the smallest sequence: enqueue -> worker runtime -> retry or branch -> resulting effect. |
| 34 | - State clearly whether the decisive difference lives in payload shape, worker config, retry path, or downstream consumer. |
| 35 | - If the issue is really about the file parser invoked by the worker, switch back to the tighter file-parser skill. |
| 36 | |
| 37 | ## Read This Reference |
| 38 | |
| 39 | - Load `references/queue-worker-drift.md` for the queue checklist, retry checklist, and evidence packaging. |
| 40 | |
| 41 | ## What To Preserve |
| 42 | |
| 43 | - Queue names, payloads, worker identities, retry metadata, dead-letter edges, and downstream effects |
| 44 | - The exact worker-only config or state that changes behavior |
| 45 | - One minimal enqueue-to-side-effect reproduction chain |