Skip to content

Feat/ai insights - #16

Merged
SaadShakeel1 merged 4 commits into
mainfrom
feat/ai-insights
Oct 13, 2026
Merged

SaadShakeel1 merged 4 commits into
mainfrom
feat/ai-insights

Conversation

@SaadShakeel1

Copy link
Copy Markdown
Owner

Summary

Completes TaskFlow’s core backend and adds AI-powered project risk analysis using
Groq.

What changed

  • Added persistent AI analysis runs with queued, running, succeeded, and failed
    states.
  • Added project snapshots containing authorized project, task, dependency, and
    activity data.
  • Added a background worker that safely claims queued jobs with PostgreSQL SKIP LOCKED.
  • Added Groq structured-output analysis with validated findings and
    recommendations.
  • Added AI analysis APIs:
    • POST /projects/{id}/analysis-runs
    • GET /projects/{id}/analysis-runs
    • GET /projects/{id}/analysis-runs/{runID}
  • Added model, API, worker, Groq-client, and opt-in live integration tests.
  • Added public repository documentation, .env.example, GitHub Actions CI, and
    MIT license.

Security

  • API keys remain local in .env and are ignored by Git.
  • AI receives only a scoped project snapshot—never passwords, sessions,
    verification tokens, or database credentials.
  • AI findings are advisory and cannot mutate project data automatically.

Verification

  • go test ./... -count=1
  • go vet ./...
  • git diff --check
  • Live Groq structured-output integration test passed using a synthetic project
    snapshot.

@SaadShakeel1
SaadShakeel1 merged commit 72a8540 into main Oct 13, 2026
2 checks passed
@SaadShakeel1
SaadShakeel1 deleted the feat/ai-insights branch October 13, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant