Skip to content

Latest commit

 

History

History
1072 lines (1000 loc) · 45.6 KB

Task.md

File metadata and controls

1072 lines (1000 loc) · 45.6 KB

DevRank OS Project Checklist

Use this file as the step-by-step checkpoint list from project start to project end. Tick each box only after the item is actually implemented, verified, and documented where needed.

0. Product Definition

  • Confirm final system name: DevRank OS.
  • Confirm tagline: "A personal engineering intelligence system that learns from my AI-agent work, GitHub history, PRs, projects, DSA progress, and market trends to guide my growth as a Software Engineer."
  • Define the main career positioning: Software Engineer with AI-native engineering workflow.
  • Confirm the system is not only "Hermes running on Mac", but a hybrid personal engineering intelligence system.
  • Confirm core system responsibilities:
    • Local Mac agent reads local AI-agent chats and repos.
    • Cloud/Vercel app keeps dashboards alive when the Mac is off.
    • Supabase Postgres is the single source of truth.
    • Hermes acts as the agent/orchestrator layer.
    • GitHub App and webhooks support future repo/PR tracking.
    • Linear integration tracks project-wise execution, issue health, and planning evidence.
    • Slack bot/webhook sends daily targets.
    • Search provider supports market/job-skill benchmarking.
    • Optional external memory provider can supply cross-agent context without replacing Supabase.

1. Architecture Decisions

  • Implement the high-level architecture with these major parts:
    • Vercel App.
    • Next.js Dashboard.
    • API Routes.
    • Vercel Cron.
    • Supabase Postgres DB.
    • pgvector.
    • Analytics tables.
    • Local Mac Hermes/Daemon.
    • GitHub App.
    • GitHub Webhooks/API.
    • Linear API/Webhooks.
    • Slack Notifier.
    • Local AI Chat Sources.
    • Optional Supermemory context provider.
  • Support local AI chat sources:
    • Claude Code.
    • Codex CLI / Codex Desktop.
    • OpenCode.
    • Antigravity.
    • Local transcripts.
    • Sessions.
    • Logs.
    • Artifacts.
  • Support Codex Cloud/Web history only through approved and exportable sources:
    • Prefer local Codex CLI/Desktop sessions under ~/.codex/sessions/ for reliable ingestion.
    • Use Codex workspace analytics, compliance export, or manual export only if available to the account.
    • Do not depend on private UI scraping, browser session cookies, or unsupported cloud-history endpoints.
  • Make GitHub tracking, dashboard, score snapshots, and Slack daily target cloud-capable so they work when the Mac is off.
  • Schedule daily planning carefully for India time because Vercel cron runs in UTC.
  • Account for Vercel Hobby cron limits if using the Hobby plan.

2. Database Choice

  • Use Postgres + pgvector, not Mongo.
  • Use Supabase Postgres + pgvector as the database provider.
  • Use Supabase for both development and hosted environments unless a later requirement forces a separate local database.
  • Ensure the database supports relational joins between:
    • Users.
    • Repos.
    • Commits.
    • PRs.
    • Reviews.
    • Linear workspaces.
    • Linear teams.
    • Linear projects.
    • Linear issues.
    • Linear cycles.
    • Linear project updates.
    • Skills.
    • Plans.
    • Rankings.
    • Daily targets.
    • Dashboard metrics.
  • Ensure pgvector supports semantic memory search over:
    • AI chats.
    • Repo summaries.
    • Skill evidence.
    • Redacted external context summaries.

3. Monorepo Setup

  • Install base tools on macOS:
    • brew install node pnpm git
  • Create the project folder if starting from scratch:
    • mkdir devrank-os
    • cd devrank-os
  • Initialize Turborepo:
    • pnpm dlx create-turbo@latest .
  • Add root dependencies:
    • pnpm add -w zod dotenv tsx pino
    • pnpm add -w drizzle-orm postgres
    • pnpm add -w @octokit/app @octokit/webhooks @octokit/rest
    • pnpm add -w openai
    • pnpm add -w chokidar
    • pnpm add -w @slack/webhook
  • Add future integration dependencies when implementation starts:
    • pnpm add -w @linear/sdk
    • Add Supermemory SDK/tooling only if the optional external context provider is enabled.
  • Create app folders:
    • apps/web for the Next.js dashboard.
    • apps/local-agent for the Mac daemon.
    • apps/worker for background processors.
    • apps/cli for the devrank CLI.
  • Create package folders:
    • packages/db.
    • packages/github.
    • packages/ai-chat-ingestors.
    • packages/scoring.
    • packages/planner.
    • packages/slack.
    • packages/search.
    • packages/hermes.
    • packages/shared.
    • packages/linear.
    • packages/context.
  • Create infrastructure folders/files:
    • infra/vercel.json.
    • infra/github-app.md.
    • infra/migrations/.
    • infra/supabase.md.
  • Create documentation files:
    • docs/architecture.md.
    • docs/scoring-rubric.md.
    • docs/resume-bullets.md.
  • Replace starter app READMEs and docs UI with DevRank-specific operational docs.

4. Supabase Database Setup

  • Create a Supabase project for DevRank OS.
  • Create or confirm the Supabase Postgres database.
  • Enable the vector extension for pgvector in Supabase.
  • Store the Supabase database connection string securely.
  • Store the Supabase project URL securely.
  • Store the Supabase anon key securely if the web app needs browser-safe Supabase access.
  • Store the Supabase service role key securely for server-only jobs if needed.
  • Add Supabase environment variables to local development.
  • Add Supabase environment variables to Vercel.
  • Confirm local code can connect to Supabase Postgres.
  • Confirm Vercel can connect to Supabase Postgres.
  • Confirm pgvector queries work through Supabase.
  • Document Supabase setup in infra/supabase.md.

5. Database Schema

  • Choose schema tooling:
    • Prefer Drizzle for type-safe SQL and less ORM magic.
    • Use Prisma only if a specific need appears.
  • Create core tables:
    • users
    • ai_agents
    • ai_sessions
    • ai_messages
    • ai_tool_calls
    • ai_session_summaries
    • memory_items
    • skills
    • skill_evidence
    • github_repos
    • github_commits
    • github_pull_requests
    • github_webhook_events
    • github_pr_files
    • github_pr_reviews
    • github_issues
    • github_workflow_runs
    • github_code_scanning_alerts
    • linear_workspaces
    • linear_teams
    • linear_projects
    • linear_issues
    • linear_cycles
    • linear_project_updates
    • linear_webhook_events
    • codex_cloud_imports
    • external_memory_providers
    • external_memory_links
    • daily_plans
    • daily_tasks
    • dsa_questions
    • weekly_plans
    • learning_goals
    • scores
    • score_snapshots
    • portfolio_items
    • content_drafts
    • slack_notifications
    • ingestion_runs
  • Create vector tables:
    • memory_embeddings
    • repo_summary_embeddings
    • chat_summary_embeddings
    • skill_evidence_embeddings
  • Implement the rule: redact raw transcript first, summarize second, embed only the redacted summary.
  • Do not embed everything raw.
  • Add migrations.
  • Run migrations locally.
  • Verify all indexes and foreign keys.

6. Local AI Chat Collector

  • Build the local collector as adapter-based, not hardcoded.
  • Add command:
    • devrank ingest:local-ai
  • Implement adapters for:
    • Claude Code.
    • Codex CLI / Codex Desktop.
    • Codex Cloud/Web history import when a supported export or API source exists.
    • OpenCode.
    • Antigravity.
  • Support known Codex sessions under ~/.codex/sessions/.
  • Treat Codex Cloud/Web history as optional imported evidence:
    • Accept only supported exports, workspace analytics/compliance exports, or manually provided task summaries.
    • Record source type as local_session, cloud_export, manual_export, or workspace_export.
    • Store cloud-history raw content only if explicit raw storage is enabled.
    • Store redacted cloud-history summaries in Supabase before embedding.
    • Preserve task URL, task ID, repository, branch, PR link, and timestamp when available.
  • Support known OpenCode session data under ~/.local/share/opencode/.
  • Support Claude project/config/memory/settings/skills data under project directories and ~/.claude.
  • Verify exact Claude conversation files on the local machine instead of assuming the community-reported ~/.claude/projects/ layout forever.
  • Implement Antigravity discovery instead of assuming one permanent path.
  • Check possible Antigravity folders:
    • ~/.gemini/antigravity
    • ~/Library/Application Support/Antigravity
  • Extract from each session:
    • Prompt.
    • Agent response.
    • Tool calls.
    • Files edited.
    • Commands run.
    • Errors faced.
    • How the issue was solved.
    • Project/repo context.
    • Skill tags.
    • Timestamp.
    • Agent name.
    • Confidence score.
  • Generate derived learning output:
    • Learning signals.
    • Skill evidence.
    • Weaknesses.
    • Repeated mistakes.
    • Strong patterns.
    • Summaries.
    • Embeddings.
  • Reject embedding dimensions that do not match memory_embeddings.embedding vector(1536).
  • Redact secrets before sending anything to OpenRouter, Hermes, search, or cloud APIs.
  • Redact:
    • API keys.
    • .env values.
    • Company tokens.
    • Database URLs.
    • Personal emails.
    • Client-sensitive code.
    • Private Jira/customer data.
  • Store raw transcript locally only unless explicit cloud raw storage is enabled.
  • Add ingestion run tracking.
  • Add ingestion error handling.
  • Add tests for each parser.
  • Add tests for redaction.

7. Local Mac Daemon

  • Build the local daemon in apps/local-agent.
  • Add command:
    • pnpm devrank local-daemon
  • Run the daemon using macOS launchd.
  • Watch known AI-agent folders.
  • Detect new transcript files.
  • Detect changed transcript files.
  • Parse messages.
  • Redact secrets.
  • Summarize sessions.
  • Push summary and metadata to Supabase Postgres.
  • Keep raw transcripts local by default.
  • Trigger Hermes skill extraction weekly.
  • Create local config with watchers:
    • Claude watcher for ~/.claude.
    • Codex watcher for ~/.codex/sessions.
    • OpenCode watcher for ~/.local/share/opencode.
    • Antigravity watcher for ~/.gemini/antigravity.
    • Antigravity watcher for ~/Library/Application Support/Antigravity.
  • Create local config with privacy settings:
    • uploadRawChats=false.
    • redactSecrets=true.
    • storeEmbeddings=false until a real embedding provider is wired.
  • Verify daemon starts after login.
  • Verify daemon handles missing folders without crashing.
  • Verify daemon resumes after restart.

8. Hermes Orchestrator

  • Install Hermes:
    • curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
    • source ~/.zshrc
    • hermes setup
    • hermes model
    • hermes doctor
  • Configure model provider:
    • Use hermes model for interactive setup.
    • Or set OPENROUTER_API_KEY.
    • Or run hermes chat --provider openrouter --model openrouter/auto.
  • Configure Hermes/OpenRouter in code through runtime env instead of a fixed free model:
    • HERMES_MODEL.
    • OPENROUTER_BASE_URL.
    • HERMES_HTTP_REFERER.
    • HERMES_TITLE.
  • Default the Hermes reasoning provider to Groq (GROQ_API_KEY, GROQ_BASE_URL, GROQ_MODEL) with automatic fallback to the OpenRouter-compatible provider on a 429 rate-limit response.
  • Use free OpenRouter models only for early testing, not heavy production ranking.
  • Use Hermes as the reasoning/orchestration layer, not the database.
  • Require real evidence summary and non-empty weakest lanes before calling OpenRouter.
  • Implement Hermes workflows for:
    • Summarizing local AI-agent chats.
    • Creating reusable skills.
    • Calling repo-analysis tools.
    • Creating weekly improvement plans.
    • Reviewing PR quality.
    • Generating resume updates.
    • Generating LinkedIn updates.
    • Generating X/Twitter updates.
    • Asking web/search tools for current market skill demand.
    • Sending Slack messages through the app.
    • Retrieving optional external context before mentor, scoring, and planning workflows.
    • Writing approved redacted memories to the external memory provider when enabled.
  • Create Hermes skills:
    • skill-github-pr-reviewer
    • skill-ai-chat-summarizer
    • skill-sde-readiness-scorer
    • skill-daily-plan-generator
    • skill-dsa-coach
    • skill-resume-bullet-generator
    • skill-linkedin-x-content-generator
    • skill-market-skill-benchmark
    • skill-repo-portfolio-auditor
    • skill-sde-growth-mentor
  • Create the DevRank OS mentor prompt.
  • Ensure the mentor prompt extracts:
    • New skills demonstrated.
    • Weaknesses repeated.
    • Evidence from repos/PRs.
    • SDE-readiness score changes.
    • Daily learning plan.
    • Resume/LinkedIn-worthy proof.
  • Ensure the mentor prompt requires measurable evidence over generic advice.
  • Ensure the mentor prompt never stores secrets, tokens, client data, or private company details.

9. GitHub Portfolio Intelligence

  • Create a GitHub App instead of relying only on a personal token.
  • Configure clean GitHub App permissions.
  • Enable webhooks.
  • Track new repo installation events.
  • Receive PR events.
  • Configure minimal permissions for private repos:
    • Repository metadata: read.
    • Contents: read.
    • Pull requests: read.
    • Issues: read.
    • Checks/actions: read.
    • Code scanning alerts: read later if needed.
    • Webhooks: enabled.
  • Track GitHub events:
    • repository.created
    • push
    • pull_request.opened
    • pull_request.synchronize
    • pull_request.closed
    • pull_request_review.submitted
    • pull_request_review_comment.created
    • check_run.completed
    • issues.opened
    • release.published
    • workflow_run.completed
  • Add GitHub backfill command:
    • devrank github:backfill --user vedantmahajan271
  • Backfill:
    • Repositories.
    • Languages.
    • Commits.
    • PRs.
    • Changed files.
    • Review comments.
    • Merge time.
    • Issue activity.
    • README quality.
    • Test coverage signals.
    • CI status.
    • Security/code scanning alerts.
    • Project complexity.
  • Use GitHub REST APIs for:
    • Listing pull requests.
    • Listing recent default-branch commits.
    • Viewing pull requests.
    • Editing pull requests.
    • Creating pull requests if needed.
    • Merging pull requests if needed.
    • Listing PR reviews chronologically.
  • Add GitHub CodeQL/code scanning integration later.
  • Support retrieving code scanning alerts.
  • Support updating code scanning alerts.
  • Support automated reports from code scanning alerts.

10. GitHub PR Analysis Pipeline

  • Add endpoint /api/github/webhook.
  • Verify webhook signatures.
  • Block GitHub webhook replay with persisted x-github-delivery IDs.
  • Store PR metadata.
  • Fetch changed files.
  • Fetch commits from backfill and push webhooks.
  • Fetch reviews.
  • Fetch comments.
  • Fetch current-head GitHub check-run CI evidence.
  • Run static analysis summary.
  • Classify PR type:
    • Feature.
    • Bug.
    • Refactor.
    • Test.
    • Docs.
  • Classify PR complexity.
  • Classify PR risk.
  • Classify PR test quality.
  • Classify PR design quality.
  • Update PR dashboard.
  • Update skill evidence.
  • Recompute SDE readiness score.
  • Handle pull_request.opened.
  • Handle pull_request.synchronize.
  • Handle pull_request.closed.
  • Handle pull_request_review.submitted.
  • Handle pull_request_review_comment.created.
  • Handle push.

11. Linear Project Intelligence

  • Add Linear as a project-wise planning and execution source.
  • Choose Linear integration path:
    • Use Linear GraphQL API or TypeScript SDK for production sync.
    • Use Linear webhooks for near-realtime project and issue changes.
    • Use Linear MCP only for local Codex context, not as the production sync layer.
  • Store Linear credentials securely:
    • LINEAR_API_KEY for personal/local development if using a personal script.
    • OAuth credentials if building a reusable Linear app.
  • Webhook secret or verification settings according to Linear webhook setup.
  • Add endpoint /api/linear/webhook.
  • Block Linear webhook replay with persisted delivery/replay keys and timestamp checks.
  • Add Linear backfill command:
    • devrank linear:backfill.
  • Sync Linear data:
    • Workspaces.
    • Teams.
    • Projects.
    • Issues.
    • Cycles.
    • Project updates.
    • Comments if needed for planning evidence.
    • Labels and priorities.
    • Assignees.
    • Status/workflow states.
  • Build project-wise Linear dashboard data:
    • Open issues per project.
    • Done issues per project.
    • Blocked issues.
    • Stale issues.
    • High-priority issues.
    • Issues without owners.
    • Issues without GitHub PR links.
    • Project progress by status.
    • Cycle progress.
    • Recent project updates.
  • Link Linear work to engineering evidence:
    • Connect Linear issues to GitHub branches, commits, and PRs where possible.
    • Connect Linear project work to daily and weekly plans.
    • Connect completed issues to skill evidence and resume-worthy proof.
    • Keep GitHub PR evidence as the stronger engineering proof when both exist.
  • Use Linear data in planning:
    • Pull highest-priority open project tasks into daily plans.
    • Detect stalled project work.
    • Recommend one small project task for non-zero progress days.
    • Avoid creating daily plans that ignore urgent Linear project work.
  • Verify Linear sync:
    • Backfill imports projects and issues.
    • Webhook updates project dashboard after issue changes.
    • Project-wise dashboard can filter by workspace, team, project, status, and priority.
    • Linear failures are visible and do not silently break planning.

12. Vercel and Cloud Behavior

  • Build Vercel app routes:
    • /api/github/webhook
    • /api/linear/webhook
    • /api/linear/backfill
    • /api/cron/daily-plan
    • /api/cron/weekly-review
    • /api/slack/send
    • /api/ingest/local-ai
    • /api/scores/recompute
    • /api/context/search
    • /api/context/write
  • Harden backend API route envelope:
    • Enforce bounded JSON and raw webhook request body reads.
    • Add per-route in-process rate limits for backend APIs and webhooks.
    • Support scoped bearer-token environment variables with DEVRANK_API_TOKEN fallback.
    • Return stable public error messages instead of raw internal exception text.
    • Limit imported/direct evidence batch sizes and expensive embedding batches.
    • Require DEVRANK_LOCAL_INGEST_ROOTS before server-side local path ingestion.
    • Bound context containerTags and keep Supabase context retrieval scoped by tags.
    • Block obvious secrets in context metadata, imported evidence fields, direct scoring evidence, and Slack text.
    • Protect the dashboard page with fail-closed Basic/Bearer auth before reading database summaries.
  • Create vercel.json.
  • Add daily plan cron:
    • Path: /api/cron/daily-plan.
    • Schedule: 30 2 * * *.
    • Confirm 02:30 UTC = 08:00 IST on plans with per-minute precision.
    • Document Hobby timing as a 02:00-02:59 UTC / 07:30-08:29 IST delivery window.
  • Add weekly review cron:
    • Path: /api/cron/weekly-review.
    • Schedule: 30 3 * * 0.
    • Document Hobby timing as a 03:00-03:59 UTC / 08:30-09:29 IST Sunday window.
  • Keep cron schedules in UTC.
  • Use GitHub webhooks for event-driven PR updates.
  • Use Linear webhooks for event-driven project and issue updates.
  • Use GitHub Actions for heavy repo scans if needed.
  • Consider a cheap VPS for long-running Hermes work if Vercel is not enough.
  • Consider Supabase scheduled jobs if needed.
  • Consider Trigger.dev, Inngest, or QStash-style queue if needed.
  • Deploy the Next.js app to Vercel.
  • Connect Supabase Postgres environment variables.
  • Connect Linear environment variables if Linear sync is enabled.
  • Connect Supermemory environment variables only if the optional external context provider is enabled.
  • Confirm cloud app score recompute reads persisted Postgres evidence without the Mac running:
    • memory_items.
    • github_repos.
    • github_pull_requests.
    • linear_projects.
    • linear_issues.
    • Scoped repo and pull-request recompute.
  • Confirm cloud app can send Slack daily target without the Mac running:
    • Daily plan cron creates a persisted Slack notification audit row before delivery.
    • Daily plan cron records delivered or failed Slack delivery results.
    • Verify live Vercel/Supabase/Slack credentials in cloud.

13. Slack Daily Target

  • Create Slack incoming webhook.
  • Store Slack webhook URL securely.
  • Add Slack package integration.
  • Build /api/slack/send.
  • Persist manual Slack send attempts/results in slack_notifications.
  • Persist scheduled daily Slack attempts/results in slack_notifications.
  • Keep CLI planner dry-runs side-effect-free when --send-slack is passed.
  • Generate daily Slack message with:
    • Greeting.
    • Today's SDE Switch Plan.
    • DSA tasks.
    • Backend task.
    • System design topic.
    • GitHub/portfolio task.
    • AI-agent skill task.
    • Target time.
    • Minimum non-zero day.
  • Include sample DSA targets:
    • Arrays/Hashing - Medium.
    • Binary Search - Medium.
  • Include backend target:
    • Build one endpoint with validation, pagination, and tests.
  • Include system design target:
    • Revise rate limiter + Redis token bucket.
  • Include GitHub target:
    • Improve README of one repo with architecture diagram and setup steps.
  • Include Linear target when Linear is enabled:
    • Finish or unblock one high-priority Linear issue.
  • Include AI-agent skill target:
    • Use Hermes/Codex/Claude to generate tests.
    • Manually verify and document what changed.
  • Missing Slack webhook fails clearly for scheduled daily delivery.
  • Test Slack delivery manually.
  • Test Slack delivery through cron.

14. Dashboards

  • Build dashboard shell in apps/web.
  • Back dashboard shell with live Supabase/Postgres summary queries and setup empty states.
  • Show latest score snapshot and rubric breakdown from score_snapshots.
  • Show source health/counts from GitHub, Linear, local sessions, Hermes, and Slack.
  • Show latest daily plan from daily_plans.
  • Show recent ingestion runs from ingestion_runs.
  • Create Dashboard A: Skill Rank Dashboard.
  • Skill Rank Dashboard shows:
    • Overall SDE readiness score.
    • Backend score.
    • Frontend score.
    • System design score.
    • DSA score.
    • Testing/QA automation score.
    • DevOps score.
    • AI-agent/orchestration score.
    • GitHub portfolio score.
    • Communication/content score.
  • Create Dashboard B: AI Agent Learning Dashboard.
  • AI Agent Learning Dashboard shows:
    • Which agents were used most.
    • What kind of tasks agents are asked to do.
    • Which sessions came from local history, cloud exports, or manual imports.
    • Where there is too much AI dependency.
    • Where improvement happened.
    • Repeated bugs/errors.
    • Best prompts.
    • Reusable skills created.
  • Create Dashboard C: GitHub Portfolio Dashboard.
  • GitHub Portfolio Dashboard shows:
    • Best repos.
    • Weak repos.
    • Repos needing README.
    • Repos needing tests.
    • Repos needing deployment.
    • Repos needing architecture diagram.
    • Tech stack distribution.
    • Commit consistency.
    • PR quality.
    • Project complexity.
  • Create Dashboard D: PR Review Dashboard.
  • PR Review Dashboard shows:
    • Summary.
    • Files changed.
    • Risk level.
    • Test quality.
    • Review comments.
    • Merge status.
    • Architecture impact.
    • Code smell score.
    • Security issues.
    • Learning extracted.
    • Resume-worthy impact.
  • Create Dashboard E: Daily/Weekly Learning Plan Dashboard.
  • Daily/Weekly Learning Plan Dashboard shows:
    • Today's DSA questions.
    • Today's backend task.
    • Today's system design topic.
    • Today's GitHub/portfolio task.
    • Today's AI-agent/orchestration task.
    • Weekly goal.
    • Completion status.
    • Streak.
  • Create Dashboard F: Career/Content Dashboard.
  • Career/Content Dashboard generates:
    • Resume bullets.
    • LinkedIn post ideas.
    • X/Twitter build-in-public posts.
    • Portfolio project descriptions.
    • Interview talking points.
    • Weekly progress summary.
  • Create Dashboard G: Linear Project Dashboard.
  • Linear Project Dashboard shows:
    • Projects by workspace/team.
    • Open, done, blocked, and stale issues per project.
    • Priority distribution.
    • Cycle progress.
    • Issues linked to GitHub PRs.
    • Issues missing GitHub proof.
    • Project work that should become today's plan.
    • Resume-worthy completed project evidence.

15. Scoring System

  • Make scoring transparent and rubric-based.
  • Avoid random AI-vibe scoring.
  • Implement Overall SDE readiness formula:
    • 20% DSA.
    • 15% Backend/API.
    • 5% Frontend/UI.
    • 10% System Design.
    • 15% GitHub Portfolio Quality.
    • 15% Code Quality + Testing.
    • 8% DevOps/Cloud.
    • 7% AI Agent/Automation Skills.
    • 5% Communication + Public Proof.
  • Implement PR quality score formula:
    • 25% clarity of change.
    • 20% test coverage.
    • 15% code structure.
    • 15% review response quality.
    • 10% CI health.
    • 10% security/static analysis.
    • 5% documentation.
  • Implement AI-agent maturity score formula:
    • 25% ability to break tasks into plans.
    • 20% prompt quality.
    • 20% validation/testing after AI output.
    • 15% tool/orchestrator setup.
    • 10% reusable skills created.
    • 10% reduced repeated mistakes.
  • Implement Repo Portfolio Score formula:
    • 20% real-world problem clarity.
    • 15% architecture quality.
    • 15% code quality.
    • 15% tests/CI.
    • 10% deployment/demo.
    • 10% README/docs.
    • 10% technical depth.
    • 5% uniqueness.
  • Store score snapshots over time.
  • Explain every score with evidence.
  • Detect stale score snapshots when the scoring rubric changes.
  • Refresh stale score snapshots from persisted evidence before dashboard and daily planning use.
  • Show score changes in dashboards.

16. Portfolio Generation Logic

  • Score every repo with Repo Portfolio Score.
  • Generate repo status labels:
    • This repo is resume-ready.
    • This repo needs README.
    • This repo needs tests.
    • This repo needs deployed demo.
    • This repo is too tutorial-like.
    • This repo has strong backend depth.
    • This repo does not prove SDE skill yet.
  • Link repo scores to dashboard recommendations.
  • Link repo improvements to daily/weekly learning plans.
  • Link Linear completed issues to portfolio evidence only when they map to real code, PRs, docs, or deployed work.
  • Link strong repos to resume and LinkedIn content generation.

17. Daily and Weekly Learning Planner

  • Track strengths into SDE advantage:
    • Testing skill -> quality-focused SDE.
    • Bug reporting -> debugging + edge-case thinking.
    • QA automation -> CI/CD + test infrastructure.
    • Agent workflow -> AI-native developer productivity.
  • Generate daily plan with:
    • DSA: 2 questions.
    • Backend/SDE: 60-90 min.
    • System Design: 30 min.
    • GitHub project: 45-60 min.
    • Linear project task if Linear has urgent or blocked work.
    • AI-agent workflow: 20 min.
    • Public proof: 1 small note/post every 2-3 days.
  • Map weak testing, DevOps, system design, AI-agent, GitHub, DSA, backend, and public-proof lanes to deterministic tasks.
  • Worker daily-plan job uses persisted score snapshots or persisted evidence instead of empty in-memory defaults.
  • Cloud daily-plan cron recomputes and persists a score snapshot from persisted evidence when no snapshot exists.
  • Generate weekly plan:
    • Monday: Arrays/Hashing + backend API.
    • Tuesday: Binary Search/Two Pointers + database design.
    • Wednesday: Stack/Queue/Linked List + testing/CI.
    • Thursday: Trees/Graphs + system design.
    • Friday: DP basics + project feature.
    • Saturday: Build day, one solid PR.
    • Sunday: Review dashboard, update resume/LinkedIn/X, plan next week.
  • Track completion status.
  • Track streak.
  • Recompute future plans based on weak areas, Linear project priority, and market benchmark.

18. Search Access and Market Benchmarking

  • Add a Market Skill Benchmark Agent.
  • Do not let Hermes guess market demand from memory.
  • Configure Hermes Tool Gateway/Nous Portal or bring a search provider.
  • Fail clearly when unsupported search provider keys are configured without TAVILY_API_KEY.
  • Run weekly searches for:
    • SDE fresher/backend roles India.
    • Java Spring Boot backend roles.
    • Node.js backend roles.
    • AWS/Kubernetes/Kafka jobs.
    • AI agent engineer roles.
    • QA to SDE transition keywords.
    • DSA interview trends.
    • System design expectations for 0-2 YOE.
  • Generate market benchmark output:
    • Skills appearing repeatedly.
    • Missing skills in the profile.
    • Projects that can prove those skills.
    • Resume keyword gap.
    • Weekly learning priority.
  • Store benchmark snapshots.
  • Show benchmark changes over time.

19. External Context and Supermemory

  • Treat Supermemory as an optional external context provider, not the source of truth.
  • Keep Supabase Postgres + pgvector as the canonical store for:
    • Scores.
    • Skill evidence.
    • Dashboard metrics.
    • GitHub and Linear sync state.
    • Audit trail.
    • Redaction status.
  • Use Supermemory only for:
    • Cross-agent context retrieval.
    • User/project preference memory.
    • Redacted chat and project summaries.
    • Optional MCP-based local assistant context.
  • Add context provider abstraction:
    • Supabase vector provider.
    • Supermemory provider.
    • Combined retrieval provider.
    • Provider health check.
    • Provider fallback behavior.
  • Configure Supermemory only when enabled:
    • SUPERMEMORY_API_KEY.
    • SUPERMEMORY_PROJECT_ID if project scoping is used.
    • CONTEXT_PROVIDER=supabase.
    • CONTEXT_PROVIDER=supermemory.
    • CONTEXT_PROVIDER=combined.
  • Use deterministic Supermemory containerTag values:
    • user:{userId} for user-level memory.
    • project:{projectId} for project-level memory.
    • agent:{agentId} for agent-specific memory.
    • repo:{repoId} for repository-level memory if needed.
  • Store only redacted and summarized content in Supermemory:
    • No raw transcripts by default.
    • No secrets.
    • No private customer data.
    • No company-sensitive code.
    • No database URLs or API keys.
  • Add external memory write rules:
    • Summarize first.
    • Redact second.
    • Classify sensitivity third.
    • Store externally only after passing policy checks.
  • Add external memory read rules:
    • Retrieve only by explicit user/project/repo scope.
    • Attach source metadata to every retrieved context item.
    • Deduplicate with Supabase memories.
    • Never let retrieved context override fresh repo/API/database evidence.
  • Use Supermemory MCP for local assistant context only:
    • Document local MCP setup separately from production app setup.
    • Do not require Supermemory MCP for Vercel production flows.
    • Do not store Supermemory API keys in repo files.
  • Verify external context behavior:
    • App works with CONTEXT_PROVIDER=supabase.
    • App works with CONTEXT_PROVIDER=supermemory only when credentials are present.
    • App works with CONTEXT_PROVIDER=combined.
    • Missing Supermemory config fails clearly or falls back to Supabase by design.
    • Secret redaction test passes before any external memory write.

20. Resume, LinkedIn, and X Output

  • Generate resume bullets after 4-6 weeks of real usage.
  • Generate LinkedIn post ideas.
  • Generate X/Twitter build-in-public posts.
  • Generate portfolio project descriptions.
  • Generate interview talking points.
  • Generate weekly progress summary.
  • Include this resume-level positioning when evidence exists:
    • Built DevRank OS, a personal engineering intelligence platform that ingests AI-agent sessions, GitHub repositories, PRs, reviews, and learning activity to generate SDE-readiness scores, skill-gap analysis, portfolio insights, and daily Slack learning plans.
    • Implemented event-driven GitHub App and Linear webhooks, Postgres + pgvector memory storage, Next.js dashboards, Hermes-based AI orchestration, local macOS transcript ingestion, and automated career planning workflows.
  • Avoid weak positioning like "Used AI tools for coding."
  • Ensure generated content is backed by actual repo, PR, dashboard, or usage evidence.

21. MVP Build Order

Week 1: Foundation

  • Set up monorepo.
  • Set up Supabase Postgres + pgvector.
  • Create Next.js dashboard shell.
  • Create basic DB schema.
  • Set up Hermes + OpenRouter.
  • Create local ingestion CLI.
  • Decide whether Linear is in MVP or Phase 2.
  • Decide whether Supermemory is disabled, optional, or combined with Supabase for MVP.

Week 2: AI Chat Ingestion

  • Build Claude adapter.
  • Build Codex adapter.
  • Add optional Codex Cloud/Web import path only if a supported export source is available.
  • Build OpenCode adapter.
  • Build Antigravity discovery adapter.
  • Build secret redaction.
  • Build session summarization.
  • Build AI Chat Dashboard.

Week 3: GitHub Backfill

  • Set up GitHub OAuth/App.
  • Import all repos.
  • Import PRs.
  • Import commits.
  • Implement repo scoring.
  • Build Portfolio Dashboard.

Week 4: GitHub and Linear Webhooks

  • Handle PR opened/updated webhook.
  • Handle PR review webhook.
  • Handle push webhook.
  • Implement score recomputation.
  • Build PR Review Dashboard.
  • Set up Linear API access if Linear is in MVP.
  • Backfill Linear projects and issues if Linear is in MVP.
  • Handle Linear issue/project webhook if Linear is in MVP.
  • Build Linear Project Dashboard if Linear is in MVP.

Week 5: Planning and Slack

  • Build daily planner.
  • Build weekly planner.
  • Build DSA target generator.
  • Integrate Slack incoming webhook.
  • Configure Vercel cron.

Week 6: Market Benchmark and Content Engine

  • Add search access.
  • Build skill-gap benchmark.
  • Add optional Supermemory context provider after redaction is stable.
  • Generate resume bullets.
  • Generate LinkedIn/X content.
  • Generate weekly public-proof report.

22. First MVP Scope

  • Build Supabase Postgres + pgvector first.
  • Build Next.js dashboard on Vercel.
  • Build GitHub backfill for all repos.
  • Build PR/repo scoring dashboard.
  • Build Linear project-wise dashboard only after GitHub PR/repo flow is stable, unless Linear becomes the primary planning source.
  • Build Slack daily target.
  • Build local Codex/Claude/OpenCode chat ingestion.
  • Build Hermes weekly mentor summary.
  • Make GitHub + dashboard + Slack work before expanding everything else.
  • Add local AI-agent memory after the core cloud workflow works.
  • Add Codex Cloud/Web history after local Codex ingestion works and only through supported exports/imports.
  • Add Supermemory after Supabase memory, redaction, and evidence tracking are stable.
  • Add Hermes continuous learning after ingestion and scoring are stable.

23. Final Implementation Stack

  • Use Turborepo.
  • Use Next.js.
  • Use Vercel.
  • Use Supabase Postgres.
  • Use pgvector.
  • Use Drizzle.
  • Use GitHub App.
  • Use Linear GraphQL API/SDK and webhooks if Linear project intelligence is enabled.
  • Use Hermes.
  • Use OpenRouter.
  • Use Slack Webhook.
  • Use Local macOS Daemon.
  • Use Supermemory only as an optional external context provider.

24. End-to-End Verification

  • Local development can connect to Supabase successfully.
  • Hosted database is reachable from Vercel.
  • Migrations run from local development against Supabase.
  • Migrations run against Supabase Postgres.
  • Dashboard loads without the local Mac daemon.
  • GitHub App webhook signature verification passes.
  • GitHub backfill imports repos, commits, and PRs.
  • PR webhook updates PR dashboard.
  • Push webhook updates repo activity.
  • Linear backfill imports teams, projects, issues, cycles, and project updates if Linear is enabled.
  • Linear webhook updates project dashboard if Linear is enabled.
  • Linear project dashboard filters by workspace, team, project, status, and priority if Linear is enabled.
  • Score recomputation updates snapshots.
  • Slack daily message sends manually.
  • Slack daily message sends through cron inside the documented IST delivery window.
  • Local collector ingests Codex sessions.
  • Local collector imports Codex Cloud/Web history only from supported exports or manually provided summaries.
  • Local collector ingests Claude sessions after path verification.
  • Local collector ingests OpenCode sessions.
  • Local collector discovers Antigravity data.
  • Secret redaction blocks sensitive values before upload.
  • Raw transcripts stay local by default.
  • Full redacted transcripts can be stored in Postgres only after explicit upload policy.
  • Session summaries are stored in Supabase Postgres.
  • Embeddings are generated only from summarized and redacted content.
  • External context writes are blocked until summarization and redaction pass.
  • Supermemory retrieval works only in the configured scope if Supermemory is enabled.
  • Missing Supermemory credentials do not break Supabase-only mode.
  • Hermes weekly mentor summary runs.
  • Hermes skill extraction runs.
  • Market benchmark runs weekly using live search/tooling.
  • Daily planner uses scores, weak areas, and market gaps.
  • Career/content dashboard generates evidence-backed output.
  • Portfolio dashboard identifies resume-ready and weak repos.
  • Linear dashboard identifies blocked, stale, and high-priority project work if Linear is enabled.
  • README and docs explain setup and architecture.
  • The project can be described clearly as a resume-worthy system.

25. Project Completion Criteria

  • DevRank OS has a working cloud dashboard.
  • DevRank OS has a working Supabase Postgres + pgvector database.
  • DevRank OS can run when the Mac is off for GitHub, scoring snapshots, dashboard, and Slack daily targets.
  • DevRank OS can ingest local AI-agent chats when the Mac daemon is running.
  • DevRank OS can optionally import Codex Cloud/Web history from supported exports without relying on unsupported scraping.
  • DevRank OS can analyze GitHub repos and PRs.
  • DevRank OS can show project-wise Linear dashboards when Linear integration is enabled.
  • DevRank OS can produce transparent SDE readiness, PR quality, AI-agent maturity, and portfolio scores.
  • DevRank OS can create daily and weekly learning plans.
  • DevRank OS can send Slack targets.
  • DevRank OS can benchmark current market skill demand.
  • DevRank OS can use optional external context without replacing Supabase as the source of truth.
  • DevRank OS can generate resume, LinkedIn, X, and portfolio content from real evidence.
  • DevRank OS supports the final story: a real, resume-worthy system that works locally, works on Vercel when the Mac is off, learns from AI-agent usage, tracks GitHub/PR/Linear project growth, and gives a measurable path for Software Engineering growth.

26. Production Hardening Audit Fixes

  • Protect all dashboard routes with fail-closed Basic/Bearer auth, not only /.
  • Stop unauthenticated API rate limiting from trusting spoofable IP headers by default.
  • Redact or reject secret-like evidence before Hermes sends mentor-review prompts to the AI provider.
  • Preserve Linear project and team links when sparse issue webhooks arrive.
  • Import and persist Linear workspace ownership for workspace filters.
  • Import and persist Linear updatedAt values for stale issue detection.
  • Reclaim stale webhook deliveries that remain stuck in processing.
  • Treat missing, unreadable, or no-op local ingestion paths as explicit failures.
  • Resolve local ingestion symlinks before allowed-root checks.
  • Replace stale materialized daily task rows when a plan is regenerated.
  • Make local daemon watch mode catch failures and avoid overlapping ingestion jobs.
  • Make combined context writes idempotent or status-aware across Supabase and Supermemory.
  • Return client errors for invalid short context search queries instead of 503.
  • Align github:backfill CLI auth validation and --commit-limit behavior with runtime support.
  • Skip malformed Antigravity artifacts without aborting valid local ingestion.
  • Bound GitHub portfolio dashboard signal scores to 0-100 with an explicit 100-point weight budget.

27. Full Production Deployment Audit

  • Accept delayed Linear webhook retries only for persisted failed or abandoned delivery IDs.
  • Reconcile deleted GitHub and Linear records.
  • Make multi-table persistence operations transactional.
  • Add an idempotency boundary for scheduled Slack delivery.
  • Stop local daemon logs from writing complete session results and configure bounded retention.
  • Make local watch ingestion incremental with persisted checkpoints and resource limits.
  • Add deadlines and bounded retry policies to external HTTP calls.
  • Paginate Linear backfill without silent truncation.
  • Refresh PR files and reviews from GitHub webhook activity.
  • Make GitHub backfill bounded, resumable, and rate-limit aware.
  • Recursively profile monorepos with bounded Git tree traversal.
  • Make combined context writes idempotent across Supabase and Supermemory failures.
  • Make context retrieval resilient and provider-scoped.
  • Replace process-local API rate limiting with production-safe distributed enforcement.
  • Enforce the supported single-user ownership boundary or implement tenant isolation.
  • Make readiness scoring monotonic for unrelated evidence and version the rubric.
  • Generate evidence-adaptive planner tasks instead of fixed templates.
  • Serialize migrations with transactions and a Postgres advisory lock.
  • Apply Linear dashboard filters and counts before pagination limits.
  • Align the supported Node runtime with Next.js requirements.
  • Honor CLI workspace options and provider-aware context readiness.

28. Product Activation Iteration

  • Make the public homepage a zero-account GitHub readiness trial.
  • Keep the existing private command center available at /dashboards.
  • Bound public trial scans and avoid persisting profile or evidence data.
  • Close the daily DSA loop in the web dashboard.
  • Surface Hermes daily mentoring with a deterministic fallback.
  • Add read-only GitLab repository, commit, and merge-request backfill.

29. Centralized Personal Hub

  • Produce and cross-review the verified product plan in docs/centralized-personal-hub-plan.md.
  • Release 0: reframe readiness as Evidence Coverage and make personal attribution safe.
  • Release 0: add evidence proof classification, correction, exclusion, restore, and delete controls.
  • Release 1: add the learning-run lifecycle, active focus, time budget, and deterministic one-action ranking.
  • Release 1: require proof and one lesson, then schedule a deterministic delayed review.
  • Release 2: reorganize the private product into Today, Progress, Evidence, Library, and Settings.
  • Release 2: verify the complete loop on desktop and mobile.
  • Release 3: install and harden a dedicated native Hermes profile with memory and skill approvals.
  • Release 3: expose bounded read-only DevRank MCP tools to native Hermes.
  • Release 3: pilot the cited devrank-proof-reviewer skill with an auditable run ledger.
  • Release 4: add weekly review, approved memory/skill proposals, and one allowlisted mobile gateway.
  • Release 5: build the evidence-backed Agent Portfolio and proposal-only curator.
  • Release 6: evaluate pgvector, one external Hermes memory provider, delegation, and write proposals only at their documented gates.