@yagni-app/code-staging 1.2.14-staging.2376.1 → 1.2.14-staging.2389.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -323,9 +323,11 @@ const OWN_PLANS_STOP = "Then stop: next you review this plan yourself, in this s
323
323
  /**
324
324
  * How a turn treats a review's items. The host acknowledges each thread at
325
325
  * take and posts the outcomes after its push (`attempts/review.ts`), with the
326
- * marker Proctor reads, so a reply of the session's own is noise or worse.
326
+ * marker Proctor reads, so a reply of the session's own is noise or worse. A
327
+ * person's question is answered in the outcomes, never with a change, and the
328
+ * host posts the answer where it was asked.
327
329
  */
328
- const FIX_RULE = "For each item: check it against the pull request on GitHub as it is now (read it with gh, and only read), then fix it, with a test that fails without the fix where it changes behavior, or dispute it with evidence a reviewer can check. Never reply, comment, react or resolve on GitHub: YAGNI posts your outcomes on each thread after it pushes your commit.";
330
+ const FIX_RULE = "For each item: check it against the pull request on GitHub as it is now (read it with gh, and only read), then fix it, with a test that fails without the fix where it changes behavior, or dispute it with evidence a reviewer can check, or, when it only asks a question, answer it from the code as it is and change nothing for it. Never reply, comment, react or resolve on GitHub: YAGNI posts your outcomes where each item was asked once your turn ends.";
329
331
  /** The one message a turn sends the session. Pure. */
330
332
  export function turnMessage(facts) {
331
333
  const at = (file) => join(facts.inputDir, file);
@@ -363,7 +365,7 @@ export function turnMessage(facts) {
363
365
  parts.push(`The person approved the plan. The plan as approved is ${at("plan.md")}: their answers are already in it, under Decisions and Not doing, and it supersedes the draft you wrote earlier in this session. Build that plan. Leave out everything under Not doing. ${PLAN_CHANGES_RULE}`);
364
366
  }
365
367
  else if (facts.stage === "fix" && facts.review) {
366
- parts.push(`A review or the CI on this attempt's pull request asks for changes. They are in ${at("ticket.md")}, under "Review on this attempt's pull request", each with its id; the branch may hold a person's commits since your last turn, so read the code as it is now. Address every item with the smallest change that does it, write the outcomes file that section names, and commit.`, FIX_RULE);
368
+ parts.push(`A review or the CI on this attempt's pull request asks for changes. They are in ${at("ticket.md")}, under "Review on this attempt's pull request", each with its id; the branch may hold a person's commits since your last turn, so read the code as it is now. Fix each item that asks for a change with the smallest change that does it and commit; answer each item that only asks a question in the outcomes file that section names, with no commit for it.`, FIX_RULE);
367
369
  }
368
370
  else {
369
371
  const why = facts.continuation?.priorStop
@@ -379,7 +381,7 @@ export function turnMessage(facts) {
379
381
  parts.push("Check the work on this branch against the plan: run the checks, fix only what this change broke, and commit any fix.");
380
382
  }
381
383
  if (facts.review) {
382
- parts.push(`A review or the CI on this attempt's pull request asks for changes: they are in ${at("ticket.md")}, under "Review on this attempt's pull request". Address every item and write the outcomes file that section names.`, FIX_RULE);
384
+ parts.push(`A review or the CI on this attempt's pull request asks for changes: they are in ${at("ticket.md")}, under "Review on this attempt's pull request". Address every item (answer an item that only asks a question, with no change for it) and write the outcomes file that section names.`, FIX_RULE);
383
385
  }
384
386
  }
385
387
  if (facts.handOffAnswer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yagni-app/code-staging",
3
- "version": "1.2.14-staging.2376.1",
3
+ "version": "1.2.14-staging.2389.1",
4
4
  "description": "YAGNI Code: a terminal coding agent that already knows your company. One YAGNI login routes the model and grounds the agent in your team's context.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "YAGNI, Inc. <jack@yagni.app> (https://yagni.app)",
@@ -58,5 +58,5 @@
58
58
  "turndown": "^7.2.4",
59
59
  "typebox": "^1.3.15"
60
60
  },
61
- "yagniSourceSha": "e3853de07ba33a6c7cdd6308eff6f15a31cf8d27"
61
+ "yagniSourceSha": "b395678afa4b7105c4b66301a6d1b68ce0df2324"
62
62
  }