refine-item: check facts against the code, mark decisions, size and order sub-items #45

Open
opened 2026-11-20 15:08:26 +01:00 by dario · 0 comments
Owner

After #28 is merged (the refine-item skill lives there).

Problem

Three refine runs on #23 produced specifications that would fail on the first implementation attempt:

  • Facts not checked against the code. Comment 414 decided Repo{Owner: "org/project"} "keeps the struct unchanged", but ParseRepo (internal/forge/forge.go:82) splits at the first / and repoPart allows no /. It also claimed a backend without issues "passes forgetest.Run", which tests issue operations.
  • Its own decisions presented as answers. 414 and 418 have "Open questions" that the refiner answers itself, and a "Decisions" list mixing my answers with its proposals, even after I asked in the session to mark each decision as mine.
  • Sub-items too large and overlapping. 414: "implements all forge.Forge methods" as one item. 418: sub-item 2 still "implements all methods", including what sub-items 3 and 4 implement.
  • No order. 418 says "each sub-item is self-contained with its prerequisites" but names none.

Change (skills/refine-item/SKILL.md)

  1. Every required fact names where it was checked: file:line, or a command and its result. A fact that cannot be checked is an open question.
  2. Every decision is marked either (answer), with who gave it and where, or (proposal), for the person to confirm. The refiner never answers its own open questions.
  3. A sub-item fits one PR when: it changes one behavior; it names the files to change and the tests to add; and an implementer needs no design decision for it. Otherwise split further.
  4. Each sub-item is self-contained (it repeats the decisions and facts it needs instead of "see #23") and names its prerequisites ("after sub-item N").

Done criteria

  • The four rules are in the skill, with the result template showing (answer)/(proposal) and prerequisites.
  • The PR has an Evidence section linking comments 414, 416, 417 and 418 on #23 (AGENTS.md).
  • just check passes.
After #28 is merged (the refine-item skill lives there). ## Problem Three refine runs on #23 produced specifications that would fail on the first implementation attempt: - **Facts not checked against the code.** Comment 414 decided `Repo{Owner: "org/project"}` "keeps the struct unchanged", but `ParseRepo` (internal/forge/forge.go:82) splits at the first `/` and `repoPart` allows no `/`. It also claimed a backend without issues "passes `forgetest.Run`", which tests issue operations. - **Its own decisions presented as answers.** 414 and 418 have "Open questions" that the refiner answers itself, and a "Decisions" list mixing my answers with its proposals, even after I asked in the session to mark each decision as mine. - **Sub-items too large and overlapping.** 414: "implements all `forge.Forge` methods" as one item. 418: sub-item 2 still "implements all methods", including what sub-items 3 and 4 implement. - **No order.** 418 says "each sub-item is self-contained with its prerequisites" but names none. ## Change (skills/refine-item/SKILL.md) 1. Every required fact names where it was checked: `file:line`, or a command and its result. A fact that cannot be checked is an open question. 2. Every decision is marked either **(answer)**, with who gave it and where, or **(proposal)**, for the person to confirm. The refiner never answers its own open questions. 3. A sub-item fits one PR when: it changes one behavior; it names the files to change and the tests to add; and an implementer needs no design decision for it. Otherwise split further. 4. Each sub-item is self-contained (it repeats the decisions and facts it needs instead of "see #23") and names its prerequisites ("after sub-item N"). ## Done criteria - The four rules are in the skill, with the result template showing (answer)/(proposal) and prerequisites. - The PR has an Evidence section linking comments 414, 416, 417 and 418 on #23 (AGENTS.md). - `just check` passes.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dario/factory#45
No description provided.