Fix productivity pipeline: date filtering, data loss, AI misclassification#1
Open
Rohitwa wants to merge 1 commit into
Open
Fix productivity pipeline: date filtering, data loss, AI misclassification#1Rohitwa wants to merge 1 commit into
Rohitwa wants to merge 1 commit into
Conversation
…ation - Platform dashboard: query tracker DB daily_memory by date instead of cumulative PMIS V2 memory_nodes (date picker now works) - Worker classification: any human input in segment = human work (was majority vote, causing most ChatGPT sessions to be labeled AI) - Hourly aggregator: accept both "ai" and "agent" worker values (mismatch was zeroing all recent AI time) - Daily rollup: delete-then-insert prevents duplicate entries on repeated runs; hourly cleanup only at end-of-day (11 PM) - New PipelineLog table tracks processed hours/dates so daemon knows what's been done - Startup catch-up: daemon processes ALL missed hours and dates across full history, not just today - Hourly catch-up accepts target_date param for cross-date recovery Before: Apr 10 showed 8min (91% data loss, 0 AI time) After: Apr 10 shows 2h45m (1h58m human, 47m AI) matching raw segments Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
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
daily_memoryby date instead of cumulative PMIS V2memory_nodes"ai"and"agent"worker values; worker classification changed from majority-vote to "any human input = human"pipeline_logtable — daemon tracks which hours/dates have been processed, enabling automatic catch-up on restartBefore vs After
Files changed (6)
memory_system/platform/server.py— dashboard API date filteringproductivity-tracker/src/agent/tracker.py— worker logic + startup catch-upproductivity-tracker/src/memory/hourly_aggregator.py— worker mismatch + cross-date catch-upproductivity-tracker/src/memory/daily_rollup.py— delete-before-insert + pipeline loggingproductivity-tracker/src/storage/db.py— PipelineLog helpers + delete_daily_for_dateproductivity-tracker/src/storage/models.py— PipelineLog modelTest plan
🤖 Generated with Claude Code