Skip to content

feat: smarter repo analysis, pre-breakdown ambiguity check, rescan button - #35

Merged
suyog19 merged 1 commit into
mainfrom
dev
Apr 25, 2026
Merged

feat: smarter repo analysis, pre-breakdown ambiguity check, rescan button#35
suyog19 merged 1 commit into
mainfrom
dev

Conversation

@suyog19

@suyog19 suyog19 commented Apr 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Smarter repo analysis (app/repo_profiler.py, app/claude_client.py): Monorepo detection by scanning top-level subdirs when root is generic_unknown; adds is_monorepo + monorepo_components to capability profile. Architecture snapshot now includes a file_landmark_map (files by change type) injected into story prompts so Claude knows which file to edit.
  • Pre-breakdown ambiguity check (app/workflows.py, app/claude_client.py): Before generating Stories from an Epic, a fast Haiku call detects missing specifics (tech stack, acceptance criteria, scope) and asks the admin via Telegram before assuming. Well-specified epics pass through without interruption.
  • Re-run Analysis button (app/ui.py, app/templates/admin/project_detail.html): "Re-run Analysis" button on /admin/ui/projects/{repo_slug} triggers a new onboarding run (clone → profile → commands → structure → architecture → conventions → deployment) and redirects to the live status page. Useful after the analyzer improves or the repo evolves.

Test plan

  • Monorepo simulation on dev EC2 (suyogjoshi-com root = generic_unknown, frontend/ detected as node_react)
  • Ambiguity check on dev EC2: vague epic gets questions, well-specified epic passes silently
  • Rescan button validation: button visible on project detail, CSRF token present, POST /rescan returns 200 and enqueues job

🤖 Generated with Claude Code

Adds POST /admin/ui/projects/{repo_slug}/rescan route that creates a
new onboarding run and enqueues it, then redirects to the live status
page — same flow as the wizard but without touching the Jira mapping.
Adds CSRF-protected button in the project detail page header.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@suyog19
suyog19 merged commit 016a1f0 into main Apr 25, 2026
1 check passed
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