Skip to content

ref(autopilot): Remove source_root from missing SDK integration detector#108119

Merged
ArthurKnaus merged 2 commits intomasterfrom
aknaus/fix/autopilot/remove-source-root-usage
Feb 12, 2026
Merged

ref(autopilot): Remove source_root from missing SDK integration detector#108119
ArthurKnaus merged 2 commits intomasterfrom
aknaus/fix/autopilot/remove-source-root-usage

Conversation

@ArthurKnaus
Copy link
Member

@ArthurKnaus ArthurKnaus commented Feb 12, 2026

Remove source_root from RepositoryProjectPathConfig usage in the missing SDK integration detector. The source_root is no longer a reliable indicator of where a project's code lives in a repository — the Seer AI agent should discover the project directory itself using the project's platform and slug as hints.

Changes:

  • Add CODE_PATH_NOT_FOUND finish reason for when the agent cannot locate the project directory
  • Simplify parent task query to use values_list("repository__name", flat=True) instead of fetching full config dicts
  • Remove source_root parameter from child task signature and prompt
  • Replace hardcoded source_root path in prompt with discovery-based instructions using project.platform and project.slug

Co-Authored-By: Claude noreply@anthropic.com

The source_root from RepositoryProjectPathConfig is no longer a
reliable indicator of where a project's code lives in a repository.
Instead, the Seer AI agent now discovers the project directory itself
using the project's platform and slug as hints.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 12, 2026
Co-Authored-By: Claude <noreply@anthropic.com>
@ArthurKnaus ArthurKnaus marked this pull request as ready for review February 12, 2026 14:08
@ArthurKnaus ArthurKnaus requested a review from a team as a code owner February 12, 2026 14:08
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

)
def run_missing_sdk_integration_detector_for_project_task(
organization_id: int, project_id: int, repo_name: str, source_root: str
organization_id: int, project_id: int, repo_name: str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Task signature change breaks in-flight queued tasks

Medium Severity

Removing source_root from the task's positional args without a transition period causes TypeError during rolling deploys. Old producers enqueue tasks with 4 positional args (organization_id, project_id, repo_name, source_root), but new workers only accept 3. A safer approach is to first make source_root an optional parameter with a default (e.g., source_root: str = ""), deploy, then remove it in a follow-up.

Additional Locations (1)

Fix in Cursor Fix in Web

@ArthurKnaus ArthurKnaus enabled auto-merge (squash) February 12, 2026 14:14
@ArthurKnaus ArthurKnaus merged commit e1b264b into master Feb 12, 2026
76 checks passed
@ArthurKnaus ArthurKnaus deleted the aknaus/fix/autopilot/remove-source-root-usage branch February 12, 2026 14:30
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
…tor (#108119)

Remove `source_root` from `RepositoryProjectPathConfig` usage in the
missing SDK integration detector. The `source_root` is no longer a
reliable indicator of where a project's code lives in a repository — the
Seer AI agent should discover the project directory itself using the
project's platform and slug as hints.

Changes:
- Add `CODE_PATH_NOT_FOUND` finish reason for when the agent cannot
locate the project directory
- Simplify parent task query to use `values_list("repository__name",
flat=True)` instead of fetching full config dicts
- Remove `source_root` parameter from child task signature and prompt
- Replace hardcoded `source_root` path in prompt with discovery-based
instructions using `project.platform` and `project.slug`

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants