feat: need-driven project intelligence pipeline - #99
Merged
Conversation
Add the deterministic Starboard side of the need-driven recommendation system (issue #82): extract evidence-backed needs per project, search the full eligible catalog independently for each need, classify candidates into five buckets, persist draft reports with incremental reruns, and expose a provider-neutral external review ingestion contract. - D1 migration 0004 adds 7 tables: repo_capability_cards, project_fingerprints, project_needs, need_candidate_pools, project_draft_reports, external_review_requests, project_reviewed_reports - src/lib/need-driven-intelligence.ts: full pipeline implementation with fingerprinting, need extraction, per-need retrieval, five-bucket classification, draft report persistence, cached candidate pools, incremental evaluation, and idempotent review ingestion - API endpoints: GET /api/projects/[slug]/intelligence (read), POST /api/internal/project-intelligence/run (operator run), POST /api/internal/external-reviews/ingest (review ingestion) - 249 tests pass (including 30+ new need-driven intelligence tests) - Starboard contains no Devin credentials; Devin is optional, not required - Docs: need-driven-intelligence.md, updated data-flow, features, index Closes #82 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
sarthakagrawal927
added a commit
that referenced
this pull request
Aug 17, 2026
All 26 tasks complete. PR #99 merged, migration applied, production deployed at SHA 11b0a62. Issue #82 closed. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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
0004_need_driven_intelligence.sqlwith 7 new tables: capability cards, project fingerprints, needs, candidate pools, draft reports, external review requests, reviewed reportssrc/lib/need-driven-intelligence.ts: fingerprinting, need extraction (5–10 evidence-backed needs), per-need full-catalog retrieval (Vectorize + FTS + structured), five-bucket classification, draft report persistence with incremental reruns, cached candidate pools, and provider-neutral external review ingestion with idempotencyGET /api/projects/[slug]/intelligence(read),POST /api/internal/project-intelligence/run(operator run),POST /api/internal/external-reviews/ingest(review ingestion)docs/architecture/need-driven-intelligence.md, updated data-flow, features, and indexTest plan
pnpm typecheck)pnpm lint— 1 pre-existing warning)pnpm test)pnpm docs:check— 57 files)pnpm build:cf)pnpm db:migrate)Closes #82
Generated with Devin