You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -287,20 +301,25 @@ You must reject a suggestion instead of editing docs when ANY of the following i
287
301
288
302
## Implementation workflow
289
303
304
+
You will write each accepted candidate's changes into a per-candidate SCRATCH
305
+
DIRECTORY. Do NOT modify the real docs/, AGENTS.md, or CLAUDE.md at any point.
306
+
Do NOT run any git commands.
307
+
290
308
1. Read the current docs first.
291
309
2. Immediately create \`${DOCS_WRITER_PLAN_FILE}\` in the repo root with one entry per suggestion. Start with every entry marked \`accepted: false\` and a placeholder \`reason\`. Update this file as you make decisions. Do not wait until the end to create it.
292
310
3. Evaluate every suggestion and decide whether it should be accepted.
293
-
4. For each accepted suggestion:
294
-
- Run \`git checkout --quiet ${baseCommit}\`
295
-
- Run \`git checkout -B evalbuff-doc-change-N\`
296
-
- Implement exactly one independent docs change.
297
-
- Keep it general, reusable, and not overfit.
298
-
- Run \`git add docs AGENTS.md CLAUDE.md\`
299
-
- Run \`git commit -m "evalbuff: doc change N"\`
300
-
- Record the branch name and commit SHA in \`${DOCS_WRITER_PLAN_FILE}\`
301
-
- Run \`git checkout --quiet ${baseCommit}\` before moving to the next suggestion so branches stay independent.
302
-
5. For each rejected suggestion, make no docs changes and record the rejection reason in \`${DOCS_WRITER_PLAN_FILE}\`.
303
-
6. Before finishing, ensure HEAD is back at \`${baseCommit}\`.
311
+
4. For each ACCEPTED suggestion N (N starts at 1):
312
+
- Work inside \`evalbuff-candidates/candidate-N/\`. Mirror the real docs tree there.
313
+
- To MODIFY an existing docs file, first copy it into the scratch dir, then edit the copy. Example for \`docs/patterns/foo.md\`:
- To MODIFY \`AGENTS.md\` or \`CLAUDE.md\`, copy to \`evalbuff-candidates/candidate-N/AGENTS.md\` (or \`CLAUDE.md\`) and edit the copy.
318
+
- To CREATE a new file, write it directly at \`evalbuff-candidates/candidate-N/<real-path>\`.
319
+
- To DELETE a file, do NOT delete the real file. Add its path to the candidate's \`deletedPaths\` list in \`${DOCS_WRITER_PLAN_FILE}\`.
320
+
- Record the scratch dir in the plan entry as \`scratchDir: "evalbuff-candidates/candidate-N"\`.
321
+
- Keep the change general, reusable, and not overfit.
322
+
5. For each REJECTED suggestion, make no changes and record the rejection reason in \`${DOCS_WRITER_PLAN_FILE}\`.
304
323
305
324
## Required output shape
306
325
@@ -314,25 +333,29 @@ You must reject a suggestion instead of editing docs when ANY of the following i
314
333
"accepted": true,
315
334
"reason": "Why this is broadly useful and not overfit",
316
335
"overfit": false,
317
-
"branchName": "evalbuff-doc-change-1",
318
-
"commitSha": "abc123"
336
+
"scratchDir": "evalbuff-candidates/candidate-1",
337
+
"deletedPaths": []
319
338
},
320
339
{
321
340
"text": "another suggestion",
322
341
"priority": 20,
323
342
"source": "agent",
324
343
"accepted": false,
325
344
"reason": "Rejected because this is overfit to one task",
326
-
"overfit": true
345
+
"overfit": true,
346
+
"deletedPaths": []
327
347
}
328
348
]
329
349
}
330
350
\`\`\`
331
351
332
352
Rules:
333
-
- ONLY modify docs/, AGENTS.md, or CLAUDE.md.
353
+
- ONLY write files under \`evalbuff-candidates/candidate-N/docs/\`, \`evalbuff-candidates/candidate-N/AGENTS.md\`, or \`evalbuff-candidates/candidate-N/CLAUDE.md\`.
354
+
- Do NOT modify the real docs/, AGENTS.md, or CLAUDE.md.
334
355
- Do NOT modify source code.
335
-
- Every accepted branch must stand on its own when diffed against \`${baseCommit}\`.
356
+
- Do NOT run git commands.
357
+
- Mirror real file paths EXACTLY under the scratch dir. The relative layout inside \`evalbuff-candidates/candidate-N/\` must match where the files live in the repo.
358
+
- Each candidate's scratch dir must stand on its own. Do not share files between candidates — if two candidates both touch \`AGENTS.md\`, each candidate copies it into its own scratch dir independently.
336
359
- Keep AGENTS.md changes limited to doc-index maintenance or factual corrections.
337
360
- Verify referenced helpers, scripts, file paths, and symbols against the codebase before documenting them.
0 commit comments