feat(factory): auto-route research skip/patch/full on guide:draft - #60
Draft
walker-tx wants to merge 5 commits into
Draft
feat(factory): auto-route research skip/patch/full on guide:draft#60walker-tx wants to merge 5 commits into
walker-tx wants to merge 5 commits into
Conversation
Decision replies no longer always pay for a full provider research crawl. On resume, distill classifies Decisions and sets research mode: skip for scope-only (drop/hedge), patch to amend the dossier without re-crawling, full for cold starts or explicit re-research. Decisions are extracted verbatim outside the distill LLM so template examples do not count as answers. Co-authored-by: Walker Lockard <walker-tx@users.noreply.github.com>
Harden research-mode auto-routing against real issue #51 replies: accept unnumbered Decision: and N - dash lines; treat bare hedge as patch; never skip when substantive freeform arrives; classify only comments after the latest factory review so stale drops cannot mask new corrections. Co-authored-by: Walker Lockard <walker-tx@users.noreply.github.com>
C1: accept decorated Decision replies (backticks/bold/quote/list) and update the live Scope check formatter to ask for bare Decision lines. C2: merge only recent Decisions into NOTES; strip distill-copied stale Decision N: clauses so they cannot clear new material open questions. C3: fat drop bodies and any non-trivial freeform route to patch, not skip. Co-authored-by: Walker Lockard <walker-tx@users.noreply.github.com>
Co-authored-by: Walker Lockard <walker-tx@users.noreply.github.com>
Address Opus #2 C1–C3: ignore GitHub quote-replies of Scope check templates; persist Decisions in guides/<slug>/scope-answers.json keyed by question text across renumbered rounds; accept issue-body Decisions with recent comments winning on index. Co-authored-by: Walker Lockard <walker-tx@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Same
guide:draftlabel — distill auto-routes research cost on resume so Decision replies don’t always pay for a full provider crawl.skipdrop/omit— no freeformresearch.mdforwardpatchverified —, barehedge, fatdrop — instead …,Decision: …,1 - …, or any substantive freeformfullOpus review follow-up
Opus #1 (C1–C3): Decorated replies parse; NOTES only get recent Decisions; fat drops / short freeform → patch.
Opus #2 (C1–C3):
> - \Decision 1:…``) do not count as answers.guides/<slug>/scope-answers.jsonpersists answers keyed by question text; Scope checks renumber unanswered as Decision 1..k each round without ping-pong.Decision N:lines count (FACTORY.md path); recent comments win on the same index.Human workflow
Comment (or edit the issue body) + re-add
guide:draft. Prefer bareDecision N: …lines. Force full crawl withre-research/docs moved.Tests
npm test+npm run typecheck— 64/64 green.