Skip to content

feat(factory): auto-route research skip/patch/full on guide:draft - #60

Draft
walker-tx wants to merge 5 commits into
mainfrom
cursor/research-mode-auto-route-383d
Draft

feat(factory): auto-route research skip/patch/full on guide:draft#60
walker-tx wants to merge 5 commits into
mainfrom
cursor/research-mode-auto-route-383d

Conversation

@walker-tx

@walker-tx walker-tx commented Jul 29, 2026

Copy link
Copy Markdown
Member

Summary

Same guide:draft label — distill auto-routes research cost on resume so Decision replies don’t always pay for a full provider crawl.

Mode When (comments after last factory review) Behavior
skip Only bare drop / omit — no freeform Carry research.md forward
patch verified —, bare hedge, fat drop — instead …, Decision: …, 1 - …, or any substantive freeform Amend dossier without re-crawling
full Cold start, “re-research” / “docs moved”, or re-label with no new comment Historical default

Opus review follow-up

Opus #1 (C1–C3): Decorated replies parse; NOTES only get recent Decisions; fat drops / short freeform → patch.

Opus #2 (C1–C3):

  • C1: GitHub quote-reply copies of Scope check templates (> - \Decision 1:…``) do not count as answers.
  • C2: guides/<slug>/scope-answers.json persists answers keyed by question text; Scope checks renumber unanswered as Decision 1..k each round without ping-pong.
  • C3: Issue-body 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 bare Decision N: … lines. Force full crawl with re-research / docs moved.

Tests

npm test + npm run typecheck — 64/64 green.

Open in Web Open in Cursor 

cursoragent and others added 5 commits July 29, 2026 16:44
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants