feat(signals): Agentic report generation (repo discovery -> signals research -> actionability -> priority -> summary)#51408
Open
sortafreel wants to merge 111 commits intomasterfrom
Open
feat(signals): Agentic report generation (repo discovery -> signals research -> actionability -> priority -> summary)#51408sortafreel wants to merge 111 commits intomasterfrom
sortafreel wants to merge 111 commits intomasterfrom
Conversation
sortafreel
commented
Mar 21, 2026
| try: | ||
| task_run = TaskRun.objects.select_related("task__created_by").get(id=input.run_id) | ||
| except TaskRun.DoesNotExist: | ||
| error_msg = "Task run not found" |
Contributor
Author
Member
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Twixes
approved these changes
Mar 27, 2026
Comment on lines
+75
to
+80
| @field_validator("explanation") | ||
| @classmethod | ||
| def explanation_must_not_be_empty(cls, v: str) -> str: | ||
| if not v.strip(): | ||
| raise ValueError("Explanation must not be empty") | ||
| return v |
Member
There was a problem hiding this comment.
Looks like a complex way of doing min_length=1
Comment on lines
+34
to
+39
| membership = ( | ||
| OrganizationMembership.objects.select_related("user") | ||
| .filter(organization=team.organization) | ||
| .order_by("id") | ||
| .first() | ||
| ) |
Member
There was a problem hiding this comment.
Well, this will be completely false, we should have a "system" user instead
Member
There was a problem hiding this comment.
Please do test commands in a stacked PR in the future, as this really inflates the mental overhead of the PR vs. just its core functionality
Comment on lines
+18
to
+19
| # Small public repo to copy into the sandbox to init. Could be removed later when it's possible to create sandboxes without repos. | ||
| REPO_SELECTION_DUMMY_REPOSITORY = "PostHog/.github" |
Member
There was a problem hiding this comment.
This is really dumb and a waste of time, but I get that that the sandbox doesn't yet allow not cloning a repo
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.

Problem
How to make it work
products/tasks/backend/temporal/process_task/SETUP_GUIDE.md)signals-agentic-report-generationFF enabled for the team (or makesignals_agentic_report_gate_activityreturn True when testing)Changes
ghCLI), and produces per-signal findings, and per-report actionability, priority, and a title/summaryreadyreports: when enough new signals accumulate, the workflow re-runs and reuses the previous repo selection + lightly validates previous findings instead of re-researching from scratchanalyze_report,select_repo,parse_sandbox_log) for exercising the flow against synthetic signals — intended to be reworked into evalsHow did you test this code?
Repo selection
Report generation
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Publish to changelog?
Docs update