feat(tasks): add task activity analytics#1550
Merged
Merged
Conversation
MoltNet-Diary: 1c20acda-2cad-41d7-a859-69a6a1cfc765 Task-Group: task-activity-analytics Task-Family: refactor
MoltNet-Diary: 6848416a-1293-4438-bcb2-9943704cd21b Task-Group: task-activity-analytics
MoltNet-Diary: 3c2d342a-ad33-494c-b174-351d3656028c Task-Group: task-activity-analytics
MoltNet-Diary: 51eef9be-be2f-4bd4-b781-dff111d4c83d Task-Group: task-activity-analytics Task-Completes: true
Contributor
✅ CLI go.mod matches internal Go module releases
|
Contributor
🚨 Dependency Audit — Vulnerabilities foundFull report |
Contributor
|
MoltNet-Diary: 9d74cea9-f525-40ae-b477-fe09049658ed Task-Group: agent-roi-analytics Task-Completes: true
getlarge
marked this pull request as ready for review
July 3, 2026 20:26
MoltNet-Diary: b4db8224-5a5f-41ed-a8ec-6f2bd1f592fb Task-Group: agent-roi-analytics Task-Completes: true
MoltNet-Diary: 3ca68702-b853-47d9-befa-ce4b81c82b9f Task-Group: agent-roi-analytics Task-Completes: true
Contributor
Author
Complexity & Reviewability ReviewComposite Score: 1.0
Rationale: The change is well-organized, logically split into manageable commits, and the high volume of diff is primarily due to generated API clients. The architectural move to extract task workflows improves maintainability. |
getlarge
approved these changes
Jul 4, 2026
legreffier Bot
added a commit
that referenced
this pull request
Jul 4, 2026
Replace the mock adapter with useQuery(getTaskActivityAnalyticsOptions). The generated TaskActivityAnalyticsResponse is field-for-field identical to the task-ui mirror, so it flows into AnalyticsBoard with no adapter. TanStack status is mapped explicitly to the board's states. Adds a bidirectional type-assignability test in Console (depends on both libs) that locks the mirror to the generated wire type, so future drift fails the build. Removes the now-unused mockAnalytics.ts. MoltNet-Diary: 556b9821-0744-42b2-99d8-ecb80103505a Task-Group: agent-work-analytics-ui Task-Completes: true
This was referenced Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds task activity analytics so MoltNet users can measure agent success, productivity, ROI, cost, hurdles, and knowledge/tool usage from completed task attempts.
This PR is split into four commits:
refactor(tasks): extract task workflowsfeat(tasks): add activity analytics apichore(api): regenerate task analytics clientstest(tasks): cover activity analyticsChanges
@moltnet/task-workflowsand moves task workflow orchestration out of@moltnet/database.@moltnet/task-analytics-servicefor task analytics access control and service orchestration.GET /tasks/analytics/activitywith product-oriented metrics for success, productivity, ROI, hurdles, knowledge use, and raw totals.profileIds,diaryIds, tags, task types, and claimant agents.tasks-analytics.e2e.test.tssuite.Validation
pnpm run generate:openapipnpm run generate:clientpnpm run go:generate && pnpm run go:fmtpnpm exec nx run @moltnet/task-analytics-service:testpnpm exec nx run @moltnet/task-workflows:testpnpm exec nx run @moltnet/rest-api:test -- --run __tests__/tasks.test.tspnpm exec nx run @moltnet/rest-api:testpnpm exec nx run-many -t typecheck --projects=@moltnet/task-analytics-service,@moltnet/task-workflows,@moltnet/task-service,@moltnet/database,@moltnet/rest-api,@moltnet/api-clientgo test ./libs/moltnet-api-client/... ./apps/moltnet-cli/...pnpm exec nx run @moltnet/rest-api:typecheckNX_LOAD_DOT_ENV_FILES=false pnpm exec nx run @moltnet/rest-api:e2e -- --run e2e/tasks-analytics.e2e.test.tsNotes
@moltnet/database:testwas not fully runnable locally because integration suites require a container runtime strategy; targeted unit and e2e coverage above passed.