From 0f977341c1e5cf9b29873504cc05eac5a55c551b Mon Sep 17 00:00:00 2001 From: Vitalii Mishchenko Date: Thu, 14 May 2026 15:02:27 -0700 Subject: [PATCH 1/2] Auto-attach original spec context to implement-spec prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a run is created on a branch that was seeded from a prior draft run, surface the original spec to the LLM so it has the full intent behind the feature—not just the current (possibly narrowed) spec. - Add `original_spec` module that resolves and renders the preamble from a prior run, an open PR, or commits-only history - Add `find_original_run_on_branch` to locate the earliest draft run that created a given branch - Inject `{{ORIGINAL_SPEC}}` placeholder into the implement-spec template and render it before each LLM invocation - Log the rendered prompt (with attempt/timestamp) to the step log so retries are fully auditable - Emit a `original-spec: attached from