(#39) Status answers read the nest #47

Merged
jacisjake merged 2 commits from task/39-quill-reads-nest into main 2026-10-28 14:57:16 +00:00
jacisjake commented 2026-10-28 14:46:22 +00:00 (Migrated from github.com)

What was addressed

  • Quill prompt now includes a capped block of the 20 most recent nest messages (excluding the requesting message), formatted as [author|kind] text with text truncated to 200 runes
  • Empty nest emits the line The nest has no earlier messages.
  • History cap constant quillHistoryCap lives in quill.go, not guardrails
  • Three new tests: TestQuillPromptContainsNestHistory, TestQuillEmptyNestSaysQuiet, TestQuillHistoryCap

How to test / validate

  • go test -race -count=1 -run TestQuill . — all Quill tests pass

RED excerpt (before implementation):

--- FAIL: TestQuillPromptContainsNestHistory (0.01s)
    quill_test.go:145: prompt must contain the owners earlier message: "FROM: owner\nMESSAGE: where did that get to"
--- FAIL: TestQuillEmptyNestSaysQuiet (0.00s)
    quill_test.go:171: prompt must state the nest is empty: "FROM: owner\nMESSAGE: any updates?"
--- FAIL: TestQuillHistoryCap (0.02s)
    quill_test.go:212: expected some history lines, got none

GREEN (after implementation):

ok  	somanycrows	1.054s
  • gofmt -l . — no output
  • go vet ./... — no output
  • go test -race -count=1 -timeout 180s . — ok

Configurations or dependencies

  • None.

Closes #39
Epic: #36

## What was addressed - Quill prompt now includes a capped block of the 20 most recent nest messages (excluding the requesting message), formatted as `[author|kind] text` with text truncated to 200 runes - Empty nest emits the line `The nest has no earlier messages.` - History cap constant `quillHistoryCap` lives in quill.go, not guardrails - Three new tests: TestQuillPromptContainsNestHistory, TestQuillEmptyNestSaysQuiet, TestQuillHistoryCap ## How to test / validate - [ ] `go test -race -count=1 -run TestQuill .` — all Quill tests pass RED excerpt (before implementation): ``` --- FAIL: TestQuillPromptContainsNestHistory (0.01s) quill_test.go:145: prompt must contain the owners earlier message: "FROM: owner\nMESSAGE: where did that get to" --- FAIL: TestQuillEmptyNestSaysQuiet (0.00s) quill_test.go:171: prompt must state the nest is empty: "FROM: owner\nMESSAGE: any updates?" --- FAIL: TestQuillHistoryCap (0.02s) quill_test.go:212: expected some history lines, got none ``` GREEN (after implementation): ``` ok somanycrows 1.054s ``` - [ ] `gofmt -l .` — no output - [ ] `go vet ./...` — no output - [ ] `go test -race -count=1 -timeout 180s .` — ok ## Configurations or dependencies - [ ] None. Closes #39 Epic: #36
Sign in to join this conversation.