{ "title": "feat(prompts): split context loading from execution workers", "state": "OPEN", "is_draft": true, "created_at": "2026-04-30T14:22:00Z", "author": { "login": "leaferiksen", "avatar_url": "https://avatars.githubusercontent.com/u/5151?v=4" }, "base_branch_name": "main", "head_branch_name": "feat/worker-context-envelope", "body": "## Goal\n\nSplit context loading from execution workers so delegation stays predictable while this pull request is still in draft.\n\n### Why\n- workers should receive a compact payload\n- prompt packing should be testable without spawning a worker\n- retry policy should stay in one place\n\n### Proposed flow\n1. Load repository context once.\n2. Normalize file excerpts and metadata.\n3. Hand workers a stable execution envelope.\n\n```text\nContextLoader -> PromptAssembler -> WorkerRunner\n```\n\n> Draft status stays until we decide whether token counts belong in the worker response.\n\n### Questions\n- Should `ContextLoader` expose cache hit metrics?\n- Should worker retries carry the same prompt hash?\n- [ ] Add a regression test for interrupted workers" }