oficina / equipo Public

design: no "as they stand now" line when there are no notes

Final review M7 (Fable 10). designFixPrompt appended
wire.TasteResumedNote ("These notes are as they stand now; they may
have changed since your last round.") after any taste block, so a
resumed round of a person who skipped discovery read "has no design
notes" and then "These notes are as they stand now". The line now
follows only a block of notes (wire.TasteHeader and their lines). The
budget (TasteFit) still counts it, so a block with notes is unchanged.

Test (RED first):
  go test ./internal/runner/thin/ -run TestFixPromptCarriesTasteAndAsk
    RED: "no notes, yet the resumed note"
    GREEN: ok; also -run 'TestFixPrompt|TestTastePrompt|DesignPrompt'
Mutations (each restored): always append -> the RED above; never
append -> "the notes are not said to stand as they are now" FAIL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev a89702ec39400252021af4e98b6b151887ec046a parent 1510481
2 files changed, +14 −1
  • internal/runner/thin/design_prompt_test.go +8 −0
  • internal/runner/thin/design_step.go +6 −1
diff --git a/internal/runner/thin/design_prompt_test.go b/internal/runner/thin/design_prompt_test.go
index 77132cf4..d14ad4c3 100644
--- a/internal/runner/thin/design_prompt_test.go
+++ b/internal/runner/thin/design_prompt_test.go
@@ -165,10 +165,18 @@ func TestFixPromptCarriesTasteAndAsk(t *testing.T) {
if taste == "" || ask == "" || !strings.Contains(p, taste) || !strings.Contains(p, ask) || strings.Index(p, ask) > strings.Index(p, "Keep to /workspace") {
t.Fatalf("fix prompt:\n%s", p)
}
+ if !strings.Contains(p, taste+wire.TasteResumedNote) {
+ t.Fatalf("the notes are not said to stand as they are now:\n%s", p)
+ }
row.Taste, row.DesignAsk, row.TasteSkipped = nil, nil, true
if p := e.designFixPrompt(row); !strings.Contains(p, tastePrompt("Paul", nil, true)) {
t.Fatalf("skipped fix prompt:\n%s", p)
}
+ // Final review M7: with no notes there are none to stand as they
+ // are now.
+ if p := e.designFixPrompt(row); strings.Contains(p, wire.TasteResumedNote) {
+ t.Fatalf("no notes, yet the resumed note:\n%s", p)
+ }
}
// TestTastePromptAtTheCap: notes fitted by the instance's budget
diff --git a/internal/runner/thin/design_step.go b/internal/runner/thin/design_step.go
index 375e0d7f..38c45ae8 100644
--- a/internal/runner/thin/design_step.go
+++ b/internal/runner/thin/design_step.go
@@ -409,7 +409,12 @@ func (e *Engineer) designFixPrompt(r stepRow) string {
b.WriteString(engineeringDataRule)
b.WriteString("CI and Review feedback:\n" + r.Feedback + "\n")
if t := tastePrompt(r.Person, r.Taste, r.TasteSkipped); t != "" {
- b.WriteString(t + wire.TasteResumedNote)
+ b.WriteString(t)
+ if strings.HasPrefix(t, wire.TasteHeader(r.Person)) {
+ // Only notes stand "as they are now": never after the line
+ // saying there are none.
+ b.WriteString(wire.TasteResumedNote)
+ }
}
b.WriteString(askPrompt(r.Person, r.DesignAsk))
b.WriteString("render_page and submit_candidate start afresh in this round: the captures of earlier rounds are gone, so render again, and submit naming only this round's captures. ")