Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

102 KB
Raw Blame

Report completion and late PR attachments

The inbox includes Closed reports in All statuses. The Closed filter appears when the project has closed reports, or when it is selected.

Monitoring reports show an eye icon below their priority in the inbox list, aligned with the repository and source metadata. The Monitoring option in the statuses dropdown appears when the current project has monitoring reports across any inbox scope, or when it is already selected. It filters by status=monitoring, which returns an empty result when monitoring is disabled. Review and merge continues to show reports with an open implementation PR.

A report completes after all linked implementation PRs are closed or merged. At least one merged PR completes implementation: applicable follow-up checks enter Monitoring when enabled; otherwise the report resolves directly. All closed PRs without a merge suppress it.

PR-driven resolutions emit signal_report_status_changed with resolution_reason=pr_merged, including when attaching an already-merged PR completes a report. dismissal_reason remains reserved for feedback supplied with the transition. Outcome queries should prefer resolution_reason and fall back to dismissal_reason; a missing reason alone does not imply that no PR merged.

PR-driven dismissals emit dismissal_cause=pr_closed_without_merge when all linked implementation PRs are closed without a merge. This also covers reconciliation after attaching an already-closed PR. Dismissal queries should prefer dismissal_cause and fall back to dismissal_reason, which remains the caller's feedback. The cause identifies automatic reconciliation, not who closed the PR or why they closed it.

A person can resolve a report by recording a manual implementation or a useful finding that needs no action. Feedback from the state API, Slack, PR closures, report merges, refunds, and plan rollups saves its verdict so the activity log distinguishes resolutions from dismissals even after later state changes. Feedback predating recorded verdicts uses a neutral activity label. The no_action_needed reason requires a resolved state. It leaves the report resolved, cancels its open follow-up checks, and is excluded from fixed outcomes in inbox ranking. Manual resolution closes an open implementation PR; the resulting GitHub close event preserves the resolved report status.

PR refunds require signals-pr-refunds and are unavailable to organizations with self-driving-ubp enabled. The inbox hides the refund action for those organizations, and the refund API returns HTTP 403 before changing the report or creating a refund. If the pricing flag cannot be evaluated, the API returns HTTP 503 so the caller can retry without changing the report or creating a refund. Only a confirmed disabled self-driving-ubp result permits the existing refund eligibility rules to run.

Monitoring means implementation is complete and outcome verification is pending. With Monitoring enabled, Resolved means the report is finished and runs no follow-up checks. The organization-level signals-report-monitoring gate requires explicit enablement, including in local development, and treats missing definitions or evaluation failures as disabled. With Monitoring disabled, PR merges retain legacy resolution transitions, including archived reports.

Monitoring reports are excluded from Needs decision. Selecting Monitoring includes them in the inbox list, and clearing that selection removes them unless All statuses is selected.

When Monitoring is disabled or unavailable, resolved reports retain legacy agent follow-up checks, including stored Monitoring reports whose effective status is Resolved. Resolution arms pending agent checks; the coordinator recovers missed arming and dispatches due checks through their existing scout lane, prompt, permissions, and result tool. Passes retain their recurring schedule, failures finish the check, and errors or awaiting-data outcomes retain their existing retry rules. Collection, dispatch, scout startup, and result acceptance require Monitoring to remain disabled. Deterministic metric checks remain dormant outside enabled Monitoring. Existing frontend paused labels outside Monitoring do not describe this legacy agent execution lane. Queued legacy runs recheck the exact dispatch claim, check horizon, report eligibility, and scout lane before execution. Child-environment agent checks remain deferred, including queued legacy scout runs. Legacy verdicts on unchanged frozen members record private attempt provenance so final Monitoring evaluation remains possible after re-enablement; legacy results never qualify as fixed-window Monitoring evidence. Report-derived run briefs require report-read scopes and RBAC in scout history, and conditional history responses include that permission posture in their validator.

A Monitoring period begins with an explicit, timezone-aware implementation-complete timestamp supplied by the server. Merge-driven entry uses the latest recorded merged_at among the merged implementation PRs, even when a webhook arrives later. Every merged PR must have a recorded merge time before a new Monitoring period can start; missing timestamps leave implementation open until reconciliation supplies them. For completed stacks waiting on timestamps, merged PRs from task history are persisted and queued for GitHub verification; timestamp repairs retry completion after commit. The lifecycle never substitutes receipt time for a missing implementation timestamp. Repeated entry preserves the original period; archive and restore preserve it too. Reopening implementation clears the start so a later implementation creates a new period. Resolving after verification keeps the implementation timestamp for history.

The backend complete_implementation service records a durable attempt and freezes this report's pending or active, unexpired check IDs and authored-definition versions in the same transaction as Monitoring entry. Kind, approval, missing configuration, and missing or zero soak do not remove a check from this selection. Stale checks receive expiry records before selection. No applicable checks, or a disabled Monitoring flag, resolve directly without a verification attempt. Carried-over checks lose their earlier evidence and dispatch claims while keeping their remaining runs. Duplicate completion and archive/restore retain the snapshot; reopening creates a new attempt when implementation completes again. The single and bulk state APIs, merged-PR webhooks, and reconciliation after attaching an already-merged PR share this service. Background participant sync retries completion after the repaired merge timestamp commits, including old PRs outside the inbox summary window and failed participant lookups. Monitoring entry leaves tracker completion pending; direct PR-driven resolution retains its completion notification and attribution.

save_monitoring_result(MonitoringEvaluation(...)) stores final evaluation submissions separately from interim observations and activity artefacts. Each submission identifies the environment, report, attempt, check, definition version, fixed evidence window, evaluation time, qualification status and reason, expectation match, explanation, and opaque evidence references. Evaluators supply qualification using their own evidence policy; metric evaluators can use qualify_metric_evidence. Only sufficient evidence can produce a pass or failure. Insufficient or unsupported evidence produces an inconclusive outcome; execution errors remain errors.

The save transaction locks the report before the check. Replaying an identical submission ID returns its saved row even after lifecycle changes; changing its content raises MonitoringResultConflict. New submissions require enabled Monitoring, the current attempt's membership and definition version, an unchanged check, and an explicit completed soak. Pending, active, technically errored, and expired members remain eligible for final evaluation: interim execution errors and safety expiry do not remove a frozen attempt's final obligation. Cancelled or completed checks remain ineligible. Saving a result does not reactivate an errored or expired check. The evidence window must equal [monitoring_started_at, monitoring_started_at + soak_minutes], including zero soak. New IDs preserve inconclusive and error history and allow later evaluation. Once a pass or failure exists, another submission cannot replace it. Invalidated new work raises InvalidMonitoringResult. Evaluators must retain their submission ID and payload across delivery retries and use a fresh ID for a new evaluation. This interface does not run evaluators, schedule retries, spend check runs, complete checks, or transition reports.

Monitoring keeps the researched report available for verification and new matching signals, without starting another implementation. Enabled responses expose the server-owned start time, and implementation work is done while the report itself remains unfinished. A Monitoring child keeps its parent plan open, and child rollups cannot finish a Monitoring parent. The single and bulk state APIs accept the Monitoring target. Start monitoring appears after follow-up checks load and at least one exists; the service decides whether any remain applicable when the request runs. Existing Monitoring reports can be finished manually, reopened, or archived. Manual completion records caller attribution and explicitly states that automatic verification and an evidence amendment were not performed. PR merges continue to resolve reports.

Disabled organizations treat stored Monitoring reports as Resolved across reads, filters, counts, sorting, actions, recurrence handling, work state, plan rollups, and background checks. Responses omit the Monitoring start field and the inbox offers no Monitoring controls. Monitoring entry is refused. Restoring a report archived from Monitoring returns it to Resolved while disabled. Reads preserve the stored status.

Background check processing discovers rollout decisions only for Monitoring reports with candidate checks and reuses them through each coordinator tick, including pending-check arming. Arming still rechecks the report's stored status under its row lock. Reopened-check batches and briefing details share one decision per team. Plan rollups reuse one decision across their child statuses and ancestor walk.

PR merges still resolve reports. A plan already in Monitoring waits for verification even after its steps close. Entering Monitoring with the rollout enabled arms existing, unexpired pending checks from the recorded implementation-complete timestamp. Archive pauses active checks; restoring Monitoring re-arms them from the same period. A delayed callback cannot arm checks after reopening, archiving, or entering a newer period. Coordinator ticks retry missed arming from the stored Monitoring start, including after a failed flag lookup, and preserve armed Monitoring checks. Their execution and result handling are not enabled by this arming change. If the rollout is disabled, existing Resolved check behavior applies to stored Monitoring reports; pending checks begin at the next coordinator tick, without using the Monitoring start as a measurement anchor. Expired checks stay expired. Monitoring entry, check execution, and automatic completion ship separately.

Attaching a new open, draft, or unknown PR to a resolved or Monitoring report returns it to ready. The shared PR-linking service applies this rule to task outputs and agent attachments. An existing attachment retry does not reopen a report, and importing legacy assignments preserves its status. Suppressed reports remain suppressed when another PR is attached. A report merged into another report cannot be restored, resolved, or marked Monitoring from the archive; act on the surviving report instead.

A report that is part_of another report is a step in a plan, and the plan completes from its steps. When every live step of a plan is closed, the plan takes their verdict: resolved if at least one step resolved, suppressed if they all were. A plan with any step still open is left alone, and a deleted step counts neither way. Reopening a step does not reopen a completed plan. Deleting a step also checks the plan again. A plan that becomes ready checks its own steps, in case they closed while the plan was still in research. The check locks each plan before it reads and updates its state. It continues through an already closed plan to check that plan's parent. An archived step never undoes a resolved plan. The roll-up runs on the step's own status change, so a merged PR, a manual resolve, a bulk state change, and an MCP state write all reach it. A part_of link written on a step that already closed runs the check as well, because that write changes no status. It continues up a plan of plans, and skips a plan that is waiting on a replacement. It also skips a plan that carries its own open, draft, or unknown PR, because that plan's own work decides its status.

Manual implementation-completion integration

Manual entry calls complete_implementation from SignalReportViewSet._transition_report_state, shared by single and bulk writes, after the report is locked and refund and merge-survivor restrictions have passed. The service receives the literal team_id, report_id, server-owned monitoring_started_at, caller attribution, actor_user, and close_pr_on_resolve=True. The outer report lock uses select_for_update(no_key=True) so concurrent check activity can write its report foreign key. Both APIs refresh the caller's report after the service saves its separately loaded instance and return the resulting status.

The service records stale expiries before selecting this report's pending or active, unexpired checks, independently of kind and approval. Historical terminal checks, standalone metrics, and related reports' checks do not qualify. No applicable checks resolve directly without a verified-success claim. Applicable checks enter Monitoring with the current attempt's durable membership and version snapshot. Missing Monitoring configuration or soak blocks verification; zero soak is valid. Carried-over active checks require fresh evidence.

Archive and restore preserve the attempt and original start, including expiry recovery and saved interim observations. Reopening implementation clears the period; completing implementation again creates a fresh attempt. Disabled or unavailable evaluations refuse new manual entry and use the existing Resolved fallback. Final metric evaluation records results separately from manual completion. Automatic completion, amendments, and PR-merge entry remain separate work.

Follow-up checks

With signals-report-monitoring enabled, pending check activity says the check runs during monitoring and describes the wait before final evaluation from the start of monitoring. Interim metric measurements may run during that wait. With the flag disabled, the activity retains the Resolved trigger wording.

Scout and research guidance asks for a verified live observation metric when a central quantitative claim comes from events. A count can justify a metric without a chart or a change over time. The metric must match the finding's filters, population, exclusions, window, and aggregation. When no useful supported metric can measure that claim, the summary states the specific limitation in one short sentence. Qualitative findings can omit metrics.

Research presentation drops invalid observation metrics individually and keeps the report prose and valid metrics. A snapshot series without a paired value and measurement time is cleared while its live query remains available.

Each structured research follow-up gets one JSON correction turn in the same session if its reply cannot be parsed or fails schema validation. The correction uses the same schema and validation context. A second invalid reply propagates to the caller's existing failure handling; execution failures and cancellation propagate without a JSON retry.

Observation metrics support HogQL filters that compare direct event fields or event properties with literal values. Boolean operations, arithmetic, and literal lists are supported; other function calls and subqueries remain unreadable. Report reads, research selection, and snapshot refresh use the same filter check. Snapshot refresh still requires access to both the live query and the shared measurement. A viewer with a property grant can read the live query while the team's default property restrictions keep the shared snapshot hidden.

Research writes measurable outcome goals as metric_threshold report checks and investigative goals as agent checks. A metric check stores a bounded live query, baseline, comparison, and soak window; the query and display format are copied from its report metric when it names one. Metric checks execute only during enabled Monitoring; flag-off agent checks use the legacy scout path described above. The coordinator records interim metric observations within each check's soak window; final metric evaluation records fixed-window results after each deadline. Authored agent checks run the selected scout, or its existing fallback, after their own original soak. They retain the normal scout skill, tools, credentials, runtime selection, and memory, with a per-run brief naming the original attempt, definition, environment, and fixed window. Only an assigned Monitoring scout receives the internal capability for scout-monitoring-result-submit. It submits evidence qualification, expectation match, explanation, and references through that tool while still running. The server derives the attempt, check, definition, and fixed window from its persisted assignment. Invalid submissions return field errors without storing an evaluation or consuming an evaluation retry; the scout corrects them within the same run. Accepted results are immutable and identical retries return the stored result. A normal prose close-out does not submit a verdict. Workflow finalization records a bounded technical error only when no result was accepted; retries recover the same scout run through an indexed brief binding. Authored agent checks on child environments remain deferred, including previously queued dispatches, because scout history, task artifacts, and memory are project-owned. They create no execution artifacts or extra credential grants and consume no evaluation retries. Parent-environment checks retain normal scout credentials. The Monitoring brief overrides scheduled skill routines and legacy check callbacks; full skill loading and normal tools remain available. Submission does not wait for task finalization and leaves the report in Monitoring. Dispatch attempts back off for one hour and selection prioritizes the least recently attempted due checks, so paused or busy scouts cannot monopolize the team's due-check cap even after the backoff expires. A new Monitoring attempt clears that backoff. Agent dispatch reserves half of its available slots and time for interim metric measurements, so deferred agents cannot consume the whole tick. Execution failures before a scout run exists and close-outs containing PostgreSQL-incompatible text record errored evaluations; skips remain deferred. Normal enrollment, pause, run budget, spend, and execution gates apply. Technical errors use the same bounded final-check retry delays as metrics. Aggregation, automatic completion, report-level assessment, and linked follow-up research remain separate work. With Monitoring enabled, resolving a report stops execution, including recurrence checks. Historical results remain readable. New metric checks validate count, rate, duration, baseline, and threshold values using the same rules as report metrics; existing configurations remain readable. A later research pass reviews every open check, preserves unchanged checks and their approvals, replaces changed checks, and retires omitted checks. A failed verification turn leaves existing checks alone. Verification can revise only Expected impact; other summary sections and their chart links must remain intact. The full replacement schedule, including its soak and measurement window, must finish before the 90-day horizon. The Follow-up checks sidebar shows schedules and results for both kinds. The Expected impact section uses the same metric checks to show goals and charts, behind the signals-report-monitoring flag, together with its suggestion action. A person can mark those measurements "Looks good" as a quality signal; approval does not control scheduling or execution. The "Suggest different metrics" action starts a discussion that can atomically replace relevant open metric checks while preserving unrelated checks. A failed replacement leaves the original running, and a successful replacement starts unapproved. Report observation metrics remain separate from these forward-looking checks.

Reports awaiting human input retain their generated checks for a later Monitoring period. Outside Monitoring, open checks display as paused in the Follow-up checks sidebar. Expected impact retains proposed or approved measurement labels before Monitoring, and shows paused checks on resolved or archived reports, while Monitoring is enabled. Stored schedules do not advertise future runs or active scouts. Historical verdicts and legacy schedule fields remain readable; remaining-run counts authorize post-resolution execution only for flag-off agent checks. Metric replacements require access to the query they schedule and an explicit config.monitoring definition. Callers can configure soak_minutes and run_interval_minutes. Omitted duration preserves the existing window, including zero. Replacements use one terminal evaluation: runs_remaining may be omitted or set to 1; higher counts are rejected. Legacy recurrence counts are not copied into a Monitoring replacement. Replacing during active Monitoring creates a fresh attempt containing the replacement, every other open check, and errored or expired snapshot members still awaiting final verification. It restarts their observation windows and expiry horizons. The previous attempt and its results remain historical; unrelated check definitions and approvals stay unchanged. Omitted cadence uses the current Monitoring authoring defaults, enabling interim measurements for windows longer than six hours. Shorter windows remain valid without interim samples. Creation and replacement share full schedule validation against the 90-day horizon. A replacement rejects a check moved by a concurrent report merge; reload the report and retry on the survivor. Units cannot contain null characters or unpaired Unicode surrogates. The Expected impact section shows finished verdicts and refreshes after agent tasks change checks.

Open follow-up check cards expand on hover or keyboard focus to show Cancel this check and, when signals-report-monitoring is enabled, Suggest a better metric. The cards stay compact otherwise, with available actions always visible on touch devices. The same flag controls the whole Expected impact measurement block, including Suggest different metrics, the replacement MCP tool, and the replacement API endpoint. Suggesting a metric opens the report's AI sidebar with an editable prompt referencing the selected check by ID. Opening a task for another report clears the unsent suggestion. Submitting asks AI to investigate and replace only that check, preserving unrelated checks and the report state. The existing check remains live if AI cannot establish a credible metric or the replacement is invalid. Cancellation confirms first and preserves recorded results.

The inbox-report-checks-replace MCP tool can replace an open agent or metric check with a metric check. It requires inbox:write and query:read. Query-specific event, action, and cohort permissions still apply. The signals-report-monitoring flag gates the replacement API, MCP tool, and metric suggestion actions. The legacy replacement rollout flag does not make replacement available when Monitoring is disabled.

Approval advances the check's update timestamp so older list responses cannot undo it on screen. Retries preserve the original approval and timestamp. Research captures the open checks' versions before starting. If any check changes before its result is stored, that pass leaves the checks alone. A subsequent pass that sees the current checks can revise or retire them, including approved checks. Older activity results without this snapshot preserve person-selected and approved checks.

Custom HogQL aggregations are parsed before a metric or check is authored. Invalid syntax returns a validation error; a rejected replacement keeps the original check and its activity history intact.

Protected research runs require analytics access before a person can resume or warm a successor. The successor’s bound sandbox can read the verified source history through authenticated log routes, but cannot modify the source run.

Monitoring metric definitions

The report detail action is Start monitoring, with the tooltip “PostHog watches to make sure the fix works”. It is hidden until follow-up checks have loaded and when none are set. The implementation-completion service remains responsible for selecting applicable checks and deciding whether entry creates a Monitoring attempt or resolves directly.

Resolve on a Monitoring report resolves it manually and cancels its remaining pending and active follow-up checks in the same transaction. Historical terminal checks and other reports' checks are preserved. Results already in flight cannot revive canceled checks. Its reasons are Verified manually, No action needed, Was already fixed before this report, and Something else…. The verified_manually reason is separate from fixed_outside_posthog, requires an enabled Monitoring period, and is preserved with caller attribution. A separate attributed log entry records that automatic verification and an evidence amendment were not performed, preserving the full 4,000-character limit for the user's feedback note.

Open checks on Monitoring reports expose a server-derived monitoring_timing field when signals-report-monitoring is enabled. The field separates a scheduled or due interim measurement from the end of that check's soak window, and identifies paused, archived, unarmed, expired, or incomplete timing. It is omitted for other checks and when the flag is disabled or unavailable. Timing reads do not arm checks, change their schedules, or decide outcomes.

The Follow-up checks rail and Expected impact details show the next interim measurement separately from the check's observation-window end. A closed window reads as awaiting verification, without advertising its deadline as another run. Interim measurements do not spend remaining verification runs. Agent checks and metric checks without a Monitoring definition remain paused during Monitoring. Final metric results are stored independently of this timing presentation. Automatic report completion remains separate work.

Open report details refresh check timing every minute and reload checks immediately when the report status changes, so resolution or archiving replaces cached Monitoring timing before polling stops.

Research should make every effort to complete config.monitoring for each metric check using the research evidence. If required facts remain unknown, explain what is missing in the rationale instead of inventing values. The definition records the target's reference_period_minutes, an explicit threshold_scaling policy, and baseline_period_minutes when a baseline is supplied. These reference periods are independent of the soak, which defines the Monitoring window, and of the run interval and safety expiry. No existing check receives an inferred definition.

Minimum sample requirements use config.monitoring.purpose: "minimum_evidence". They require a positive whole-number gte comparison on one unsampled raw event or action count, without a formula, and threshold_scaling: "fixed". For example, a minimum of 200 submissions remains 200 across the whole soak. Below the minimum, the final result is inconclusive with insufficient evidence and requests scout assessment once the other checks settle. The soak stays fixed. Reaching the minimum passes the evidence guard; author the implementation's success criterion separately. Ordinary success targets use purpose: "expectation", the default for existing definitions, and retain their pass/fail meaning. Written rationale does not alter executable comparisons, so existing confidence-only volume checks need an explicit definition correction.

The definition describes a measurement from Monitoring start through the observation time. A linear target scales by elapsed minutes divided by reference minutes and requires a single additive event count or property sum without a formula. Session-level sums are excluded because a session can contribute to more than one chart bucket. A fixed target keeps its bound as the observation period grows, including for percentages, averages, distinct counts, or explicitly fixed custom targets. Rolling weekly and monthly active-user queries are refused because their lookback overrides the Monitoring bounds; use a distinct user count instead. Display format alone never selects the policy. The baseline retains its own measured period and is not presented as an observation from Monitoring.

Expected impact keeps the activity chart visible and collapses the target period, scaling policy, baseline, and check timing under measurement details. Dynamic chart boundaries refresh at minute intervals so repeated views can reuse cached results. Bucket granularity follows the full displayed range and stays within the 1,000-point budget. The chart preserves date-range filters and spans one reference period on each side of Monitoring start, or now before Monitoring starts, extending through now if necessary. Start and now markers separate the surrounding activity from future dates, whose values remain empty. Compatible charts show target reference lines: additive linear targets scale to a full chart bucket, and fixed rates or property averages/quantiles retain their level. Fixed totals, distinct counts, unknown aggregations, linear calendar intervals longer than a day, and linear day buckets with unequal daylight-saving durations receive no reference line. These references do not impose per-bucket pass/fail rules. This read-time chart does not evaluate the Monitoring target or save a check result. Final metric verification uses the stored bounded query and authored comparison independently of the chart. Final Monitoring outcomes remain separate work.

During Monitoring, checks with an explicit Monitoring definition sample at their configured run interval, or every 24 hours when none is set. The first observation is due one interval after Monitoring starts. Interim observations run only before Monitoring start plus the check's soak_minutes. The full trailing query window does not delay them. Interim queries explicitly use the offline ClickHouse workload; interactive metric refreshes retain their default workload. The next interim due time is capped at that soak deadline. Final metric evaluation then uses its separate execution path; neither path concludes a report. A missing or zero soak, or a soak no longer than the sampling interval, produces no interim observations. Each query pins both bounds to Monitoring start and one captured observation cutoff, preserving the population filters. Pinned ranges include partial periods so their bounds match the scaled target. Linear comparisons scale both bounds by elapsed time divided by the reference period, without rounding; fixed comparisons stay unchanged.

Each completed attempt appends a protected check_observation log entry with its exact bounds, soak deadline, display format, unit, effective comparison, value, and match result, or a sanitized query error. The log labels it as an interim measurement, shows whether the goal is on track, and displays time remaining when the measurement was taken. It does not assign a terminal outcome. Observations do not spend runs_remaining, change the report status, or emit recurrence signals. The next sample is due one interval after the cutoff; missed intervals do not create catch-up runs. Restoring Monitoring schedules from the latest attempt in that period, preserving a failed attempt's error streak and six-hour retry across suppression. Re-enabling the flag restores the measurement origin, the next attempt from the latest run, and the expiry from the original Monitoring start. This repair precedes the expiry sweep so a fallback expiry cannot shorten or extend the Monitoring horizon. A check that cannot fit its source queries into the remaining coordinator budget stays due without an observation or an error-budget change. Query failures retain the existing six-hour retry and consecutive-error limit, and the 90-day check horizon still applies. Writes reject a changed check, Monitoring period, report state, or flag, and duplicate workers cannot save the same attempt twice. Expiry sweeps and schedule repairs retain their check-row concurrency guards after database lock waits, so they cannot overwrite a concurrent cancellation, expiry extension, or saved observation.

With Monitoring disabled, observations disappear from the artefact API and counts. No Resolved executor runs. The coordinator also leaves disabled or unavailable Monitoring periods dormant. Observation values require the same query permissions as terminal check results. The inbox follows all artefact pages within the current project before deriving task runs, reviewers, and activity so observations cannot displace older report state. Polling waits for an in-flight paginated load to finish. With the Monitoring flag enabled, scouts see metric checks with an explicit definition as scheduled or due inside their Monitoring window; metric checks without a definition remain paused in this presentation. Agent checks in the current frozen attempt show Monitoring before their window ends, Awaiting verification after the deadline, and Verifying while a live final scout runs for the current attempt and check definition. Checks added or revised after the snapshot, and checks in child environments, stay paused because the final executor cannot run them in this attempt. Settled insufficient or unsupported evidence and exhausted technical retries show Inconclusive and require assessment; accepted sufficient evidence shows Verification complete until aggregation publishes the check verdict. Only checks still eligible for another final evaluation show Awaiting verification. The API preserves the existing timing state values: these four final verification phases return state: "paused" with additive, nullable final_verification_state metadata (monitoring, verifying, assessment_required, or verification_complete). Older consumers show the coarse Paused fallback. Updated consumers prefer the metadata when present and otherwise use state; legacy window_ended remains unchanged. Queued runs, dispatch backoff, stale runs, and submitted evaluations do not imply active verification. The soak deadline bounds interim execution. Final metric results are saved separately without reopening reports or creating follow-up reports.

Disabling Monitoring stops execution without starting a post-resolution schedule or recalculating a recurring deadline. Re-enabling restores the original Monitoring horizon for active checks and leaves terminal checks unchanged. Pending checks arm only during enabled Monitoring, using the original implementation-complete timestamp. Queued legacy check-triggered scout activities skip before starting agent work, and already-running legacy scouts cannot record a result through the check-result tool. Scout check lists mark these checks paused and do not advertise them as waiting on a run.

After each metric check's soak ends, the coordinator evaluates its original Monitoring-start-to-deadline window, even if execution runs late. Final work uses the current attempt's check membership and definition versions, independently of interim observations and recurring run budgets. Candidate collection scans past stale definitions until it fills the eligible batch or reaches the tick deadline. Single-source raw event/action counts and event-property sums have supported evidence adapters; sampled values, arbitrary formulas, distinct counts, and session/property aggregates without an adapter produce explicit unsupported results. Ratios of two raw event/action counts support A / B and B / A, optionally multiplied by 100, with fixed targets. The evaluator fetches both raw counts in one Trends response and calculates the formula from those exact values. Qualification uses the denominator from that same response, preserving series filters, shared population filters, team, and fixed window. The response must be fresh through the window's end. Cached formula results cannot be combined with independently refreshed denominators, including after budget deferrals. Any positive denominator qualifies, including when the numerator is zero; a zero denominator remains insufficient even if Trends returns zero for division by zero. This policy evaluates the authored target without claiming statistical confidence. Formula encodings (formula, formulas, and formulaNodes) follow Trends precedence. Other arithmetic and aggregates remain unsupported. Session aggregation remains unsupported when a count series carries $session_duration or a session_properties property type. An average without a source-specific minimum denominator produces insufficient evidence. Positive counts and supported sums qualify as sufficient evidence; zero totals remain insufficient when no relevant activity source is defined, even if they meet the numeric target. A zero-length window cannot establish success or failure, and a cached measurement from before the deadline cannot qualify as final evidence.

Final metric evaluations save through save_monitoring_result and retain the definition version, exact window, explanation, measured value and time, and query fingerprint. The coordinator makes at most three technical query attempts, retrying five minutes after the first error and fifteen minutes after the second. Each retry uses the original window; competing ticks use the same submission ID for the same logical attempt. Insufficient and unsupported results settle this evaluator's work. Final queries defer until the tick can grant their full 20-second timeout; budget deferrals do not consume a retry. Interim query exhaustion and schedule expiry do not consume the final budget: frozen members remain eligible for final verification without changing their check status, window, or error history. State, flag, definition, and attempt guards apply before querying and again when saving. Final results feed report-level aggregation for the current frozen attempt. A sufficiently evidenced failed check closes the attempt immediately, even when other checks are still waiting. All frozen members passing resolves the report. Historical checks and checks added after the snapshot cannot supply or block an all-pass verdict. Missing members, canceled checks, edited definitions, missing soaks, and stale evidence never count as passes.

Each sufficient final verdict updates its check row and publishes its explanation immediately, even while other members are waiting or the report needs assessment. Repeated aggregation does not duplicate these entries.

The Closed report state (closed) means an implementation attempt ended without proving resolution. It is distinct from processing failure and from Resolved. It preserves the original Monitoring timestamp and attempt evidence. Closed reports remain readable, manually resolvable, reopenable, and archivable, but have no dedicated section in the inbox UI. Restoring an archived Closed report returns it to Closed. A Closed child does not count as successful completion of its parent plan, and child updates do not overwrite a parent's Closed outcome.

Closed reports still count as acted-on work for scout engagement and organization adoption. A new matching signal follows the existing recurrence path into a fresh linked report; the Closed attempt stays unchanged and supplies context for that report's research. That context preserves the unproven Closed outcome rather than describing the attempt as fixed. Closed reports are excluded from unclaimed-work selection, and child rollup preserves an archived parent's saved Closed outcome.

When no sufficient failure exists, aggregation waits until every frozen member has a final result or exhausts its technical evaluations. Insufficient or unsupported evidence and exhausted technical errors record one durable assessment request while the report remains Monitoring. Three errored evaluation submissions exhaust the existing metric retry budget; errors are never treated as evidence of implementation failure. A later accepted sufficient failure takes priority over a pending assessment request. Final windows are never extended.

Each attempt stores its aggregation state, explanation, considered result IDs, and assessment/research request timestamps. Closing and recording research intent commit in the same transaction. Result acceptance schedules aggregation after commit; the coordinator recovers missed callbacks by comparing persisted result counts rather than timestamps. Duplicate deliveries do not duplicate requests or activity. Every aggregation rechecks tenant, current attempt, enabled Monitoring, check definitions, and fixed windows before changing report state. Finished attempts stop their remaining open checks.

The Monitoring schema includes both outcome and tracker-delivery metadata. Nullable field additions apply atomically before the pending-completion index is created concurrently. Deploy the completion consumer only after both migrations finish.

The check coordinator dispatches one report-level assessment workflow per requested attempt. The worker uses the existing agent task machinery with read-only tools and saved final results. Each technical execution has a unique task origin key; collectors reconnect to its first run and reuse saved structured output. Up to three technical executions are allowed, each bounded to 30 minutes. A valid assessment ends the judgment loop even when it cannot establish success. Collector failures also have bounded retries and never launch a competing judgment while an earlier task may still run.

Assessment MCP sessions remain read-only. Their separate runtime credential carries server-only internal_run:write for the registered sandbox's own run: log uploads, run summaries, schema-validated structured output, and restricted lifecycle updates. It cannot edit task configuration, create child tasks, cancel runs, or write inbox state. Summary tags stay on the run instead of changing task tags. The assessment consumer retains the current-attempt and evidence guards when deciding the report outcome.

Assessment dispatch requires organization AI consent and uses at most a quarter of the coordinator's remaining budget, with a two-second connection/RPC cap per dispatch. Assessment tokens grant reads and their own run lifecycle only. The acting user's metric permissions filter the private task prompt. Tasks use that user's personal channel, which restricts commands and traces to that user. Assessment notes containing agent reasoning also require that user and their current source-data permissions, because additional evidence may come from beyond the original checks. Public task descriptions contain no metric evidence.

Protected assessment notes are excluded from shared Today figure-mark sources.

The collector completes an assessment run only after saving valid structured output. Already-completed runs get two minutes for delayed output delivery. Exhausted collector retries reconnect to existing tasks and preserve their original deadlines before recording technical exhaustion; workflow cancellation propagates without closing the report.

Before accepting a decision, the worker locks the report and repeats aggregation. Pending evaluations, changed definitions, rollout pauses, and archive pauses cannot produce a decision. Sufficient final failures take precedence. Reopening, replacing the attempt, or manually completing the report makes late assessment work obsolete. Archive/restore retains the same workflow and original windows.

Supporting evidence can establish resolution, including alternative evidence for a defective query. The worker preserves original check results and records the assessment reasoning, evidence references, result IDs, attempt, and task/run attribution in a separate activity note. Resolution requests the existing tracker/PR completion delivery. An inconclusive assessment or exhausted execution closes the report and records research intent atomically. A research request records intent; the sweep below handles delivery without claiming that a follow-up report has already been created.

Unsuccessful Monitoring records durable research intent without dispatching work from the completion path. A one-minute Celery sweep calls emit_signal as signals_check / monitoring_unresolved, with weight 1.0 and the attempt as source identity and idempotency key. A successful emitter handoff marks the request processed; normal pipeline retries, grouping, research thresholds, quotas, spend settlement and autonomy settings apply thereafter. Monitoring does not separately acknowledge research completion or restart downstream workflows. Handoff failures retry after five minutes, and repeated handoffs use the platform's stable emitter identity. The sweep reads an indexed batch of at most 100 unprocessed requests before resolving organization gates. Nullable processing and retry timestamps commit atomically before a separate migration creates the pending index concurrently. Each emission has a ten-second timeout, within the sweep's 40-second processing budget and 45/60-second task limits.

Emission and grouping recheck the original Closed state, current attempt and Monitoring flag. Obsolete requests leave the sweep's pending set. The original report and attempt outcome remain unchanged. The signal stores evidence references and a fixed outcome explanation; the normal research activity loads bounded public findings, prior attempt states, final outcome metadata and assessment notes. It omits raw aggregation reasons, result explanations, evidence references and reasons, check-result/observation artefacts and impact-measurement plans from persisted prompt text. Protected measurements remain available through the normal access-checked artefact tools. It reads at most ten rows per history category, limits fields in the database and shares a 12,000-character serialized-context budget across at most 23 of the newest Monitoring requests in a research pass. Each hydrated request receives at least 512 characters, and its actual size is deducted from the remaining budget. Additional requests retain their report and attempt references for access-checked retrieval without loading more history. Each complete hydrated signal passes the existing safety judge before research; an input that exceeds its budget fails closed. Deleted or unavailable origins return a bounded unavailable-history marker. This evidence-only check writes no report-wide safety approval. Rejected evidence fails closed without starting the research agent. Uncertainty does not establish an implementation defect. Metadata-only provenance reads retain original repository restrictions through nested Monitoring requests. Both fresh and saved repository selections enforce those restrictions; any origin with missing or unknown repository provenance requires a private destination independently of other grouped signals. An intermediate report with its own non-repository signals requires established repository provenance before it can inherit a public ancestor's destination policy. Expired visibility metadata is refreshed before reuse; failed refreshes leave visibility unknown. Data-only research preserves a saved target only while those restrictions still allow it. Automatic and explicitly requested implementation recheck source privacy before dispatch, including when resuming an existing task. New follow-up reports inherit the original billing exemption, while an existing receiving report keeps its own birth policy. Follow-up reports use the existing automatic implementation and explicit request policies.

All-pass resolution also records a durable tracker-completion request. A separate one-minute sweep consumes pending requests directly, outside the check coordinator and its time budget. It has a 45-second soft limit and 60-second hard limit. Tracker closure serializes deliveries and verifies the same attempt is still effectively resolved before contacting the provider; archiving preserves that verified outcome, while reopening or replacing the attempt makes its request obsolete. Each claimed request reserves its next attempt five minutes ahead, so failures and interrupted workers cannot monopolize every sweep. Successful tracker closing comments are recorded independently of the provider close, and Redis lock failures use the normal retry path. Completed or obsolete requests are marked processed, and a partial index orders outstanding work by its next retry.

Manual completion preserves its open-PR closure intent on the frozen attempt. After verification passes, the sweep uses the existing best-effort PR closure path with a stable comment marker, then completes the tracker issue. Open Monitoring detail panes refresh their status and explanations. Settled task snapshots are reused for up to one minute, with immediate refresh when a new linked run appears in the artefacts. Periodic refresh also discovers new runs that reuse a task without adding an artefact.

The request stays pending until every requested PR close and tracker close succeeds or is no longer needed, including reports without a tracker issue. Scheduled GitHub delivery uses the batch lane. Budget denial stops the sweep, and provider rate limits delay the request until at least the indicated retry time.

Single and bulk report-state requests share the delivery lock through their transaction commit. A request that overlaps completion is refused with a retry message. Delivery revalidates the frozen attempt before closing each PR and again after any intervening provider call. A tracker comment is recorded as delivered only when its provider reports success.

With signals-report-metrics enabled, research gathers short-window baselines before verification and prefers metric-based follow-up checks. It aims for practical 70-80% confidence in improvement, without claiming a calculated confidence score. Observed volume, recurrence, ingestion delay, and deployment timing justify the shortest useful query and wait. Frequent or high-volume checks can use 4-8 hours, allowing for several hours of deployment delay before the fix reaches users. Around 24 hours or several days require the corresponding activity or rollout evidence. Agent checks remain available when interpretation or unsupported measurements prevent a useful metric check. Missing activity is not success. These prompt preferences do not change execution, schema defaults, or final outcomes.

The server refuses new Monitoring definitions when signals-report-monitoring is disabled or unavailable and omits the definition from check responses. Stored definitions remain intact. Research carries its definition-visibility decision into reconciliation, so flag recovery during a run does not replace an unchanged check or reset its approval and schedule. Existing definitions, charts, check schedules, and Resolved outcomes otherwise follow their current behavior.

Enabled research can author run_interval_minutes for a metric check with a Monitoring definition. The interval must be at least six hours and strictly shorter than the check's observation window. A new check without an interval defaults to a quarter of that window, bounded to six hours through one day. A 24-hour window therefore stores a six-hour cadence, allowing interim measurements at hours 6, 12, and 18 when interim execution is available. Windows of six hours or less retain their evidence-backed duration and have no interim samples. Cadence is independent of query bucket size and the target reference period. Omitted intervals preserve existing checks' schedules; explicit cadence revisions replace the check and clear approval. Revised windows must still accommodate inherited intervals. This authoring policy does not change existing null-interval checks, execution, or final outcomes.

Evidence qualification contract

report_check_evidence.qualify_metric_evidence is the pure qualification contract used by final Monitoring metric evaluation. It changes neither scheduling nor interim observations. Qualification is independent of the target comparison: sufficient evidence can demonstrate a failed expectation, while a matching value with insufficient evidence cannot establish success.

The input MetricEvidence carries explicit aggregation semantics, a measured value, and optional activity or denominator counts. Every measurement has an EvidenceScope naming the team, relevant population, and the check's existing fixed window. Supporting counts used for qualification must match all three. For property sums, relevant activity counts valid property contributions. A trusted source adapter establishes the population key and relevance; an arbitrary metric label does not. This module neither derives relevance from query text nor executes queries.

Source Sufficient evidence Unqualified evidence
Raw event/action count or supported property sum A positive total supplies its own evidence. A zero total qualifies with any positive relevant activity count. Missing or zero activity cannot qualify a zero total. Negative sums remain unsupported pending source policy.
Rate The actual eligible-opportunity denominator meets an explicitly supplied positive minimum. Missing, zero, or below-minimum denominator; missing minimum policy. Activity does not substitute for the denominator.
Average The count of valid contributing property values meets an explicitly supplied positive minimum. Missing, zero, or below-minimum contributing count; missing minimum policy. Total event volume does not substitute for valid values.
Other aggregation or agent evidence Requires a separate supported adapter/policy. A scalar, formatting, or interim match cannot establish support.

EvidenceQualification returns status (sufficient, insufficient, unsupported, or errored) and a machine-readable reason. Missing measurements, supporting-count scope mismatches, and empty windows remain insufficient. Query errors return errored/query_error; malformed numeric inputs raise ValueError rather than becoming evidence. No qualification result is a passed or failed check verdict.

No interim samples are required. A short, nonempty window can qualify from its final measurement. Historical baselines and interim observations are not inputs. The count-ratio adapter explicitly supplies a minimum denominator of one; this does not establish a minimum for averages or other adapters. There is no confidence claim, ingestion-lag allowance, or deployment-readiness rule.

Final evaluator integration must enforce the organization-level signals-report-monitoring gate and its fail-closed Resolved fallback. Source adapters must validate aggregation semantics, preserve the population and fixed window, collect required supporting counts, and establish data readiness. Supported property sums exclude formulas and session-level aggregations. Arbitrary formulas, distinct counts, and quantiles need their own adapter/policy. MetricMeasurement supplies neither activity counts nor denominators, and report-metric minimum_data_points/eligibility_query fields are not inferred as check policy. Final evaluators must bind evidence to the current attempt/check version, compare only sufficient measurements, and separately handle insufficient evidence, unsupported measurements, and query errors. Scheduling, retries, persistence, and report transitions remain outside this contract.

Inbox value summary

The signals-inbox-value-summary flag shows project-wide counts above the web inbox in both layouts. It is disabled by default. The rolling seven-day window uses GitHub merge time and includes only PRs verified as output from Self-driving implementation tasks. Manual attachments and research or discussion tasks do not count. Personal inbox filters do not change the totals.

The people count deduplicates human GitHub IDs across mergers and non-dismissed approvals submitted before merge. Approvals can predate the seven-day window. Bots do not count. A missing participant snapshot leaves the people count unknown, not zero. The response includes the merged PR links and the GitHub logins stored in the participant snapshot. GitHub reads run in a background task; opening the inbox only reads the database.

The panel stays hidden when there are no qualifying merges. Dismissal lasts seven days and is stored per user and project in that browser. On return, the client refreshes a result older than five minutes. Before rollout, apply the migrations, run backfill_inbox_summary --team-id <id> in bounded batches, and check the counts against the linked GitHub PRs. The flag does not enable this backfill itself.

Follow-up measurement timing

Reopening implementation clears the measurement anchor so a later Monitoring period starts fresh. Archiving parks active checks; restoring the same enabled Monitoring period preserves its original start and retry history. Delayed arming callbacks validate the current Monitoring period and never arm a Resolved report. Interim queries recheck the current report and flag before measuring, and saved observations reject stale report states or periods.

New metric checks validate numeric goals and baselines against their metric kind, format, unit, and query. Existing check configurations remain readable.

Pending research refreshes

When a source refresh arrives during research, finishing the current pass schedules another pass even if the next signal-count bucket has not been reached. A pending marker already included in the fetched snapshot does not force redundant research. New workflow histories retain the marker while waiting up to ten minutes for the triggering signal to become visible, before any paid research. The bounded 100-signal snapshot prioritizes the triggering and pending signals, including refreshes beyond the oldest rows. A successful fetch consumes only its own visible marker, retaining newer pending refreshes and allowing later bucket crossings to reserve their owner. Retries still require the original trigger after its marker is consumed. A visibility timeout reports a technical failure instead of researching an incomplete snapshot. A later source refresh replaces the marker so it cannot be hidden by an earlier bucket crossing. Replacing a pending signal settles its handed-off spend unless it still owns the active research pass. Ordinary new signals continue to follow the existing bucket thresholds.

Research without code

Research without a repository retains the writing rules, attached-image inspection, remediation guidance, report history, intent checks, work-in-flight checks, and per-signal tool budget. The opening prompt states once that no repository is checked out. It uses project data and connected sources to find a concrete engineering starting point. Code-specific instructions are omitted, findings allow empty code and commit evidence, and the output omits pull request planning. Later turns use the same evidence-based verification guidance without repeating access warnings.

With signals-research-reviewer-selection enabled, project context, report evidence, and scoped human corrections can identify reviewers without GitHub. Research verifies their project membership with scout-members-list and suggests nobody when evidence is insufficient. A GitHub identity is not required to receive a report.

With signals-default-owner-fallback enabled, a report that still has no reviewers when its inbox notification settles goes to a default owner. It runs only where Self-driving cannot read the team's code, meaning no GitHub installation, none that still reaches a repository, or none healthy enough to use. Where a repository is in reach, commit history names a relevant reviewer often enough that a report with no reviewers is left unassigned instead. The candidates are, in order: the configured owners of the scout that authored the report, then whoever enabled or created that scout, the person who activated Self-Driving, the people who enabled a signal source, and finally the organization's owner and admins. Each candidate must be an active member with project access when the fallback runs. The entry carries is_default_owner and shows as "Default owner". It never selects the autostart task identity. The fallback does not run on a report whose reviewers a person already edited, on a report that already had a default owner, or on a report that its scout keeps out of the inbox. When a person removes a default owner, no scout correction note is sent and the reviewer-corrections profile does not show the removal.

Repository selection

For reports built from GitHub issues, the issue repository is a default when it is an eligible candidate. With multiple permitted candidates, selection can choose another repository based on code ownership, applicable routing rules, or past wrong-repository corrections. Matching paths can be vendored, generated, or mirrored copies; ownership evidence takes precedence over the source default. If the evidence otherwise leaves candidates equally plausible, selection prefers the issue repository. Selection sandboxes use read-only GitHub credentials and read-only PostHog scopes to inspect repositories and query the cache.

The selector checks cached source visibility before the single-candidate shortcut or the agent runs, including when the source is not eligible. If the source is not confirmed public, the permitted destinations are the eligible source itself and eligible repositories confirmed private. Missing or non-boolean visibility metadata is unconfirmed. If no permitted destination remains, selection returns no repository. A confirmed public source does not restrict destination visibility, so an unavailable public source can still route to another eligible repository. The restricted candidate list governs both the prompt and validation of the agent's result. A single permitted repository is selected without running the agent, and re-research reuses a stored non-null repository selection.

The shared repository selection prompt also asks the agent to check other sources in the supplied context before choosing a repository. For information from a private repository or another explicitly private source, it prefers a relevant private candidate and returns no repository if none is suitable or its visibility cannot be confirmed. Each candidate carries a private, public, or unknown label from the cached GitHub repository list, so the agent does not query GitHub for visibility. These broader context checks remain prompt guidance; the source-repository restriction does not validate selections made outside the shared selector.

GitHub-optional pilot

The boolean self-driving-github-optional flag targets the canonical project group (project UUID, with its numeric id as a group property). It defaults to off, including in development.

Pilot activation stores activation_mode: github_optional in the existing onboarding draft and completes through the existing activation API. It leaves autostart_enabled false regardless of pricing flags. Completed pilot activation also admits the project to scout discovery and dispatch while the flag is enabled, respecting fleet exclusions, withheld skills, permissions, and budgets. Fleet admission uses loaded local flag definitions and retries admission on later ticks when definitions are unavailable. Enabling the flag alone never creates scouts or enables sources. Already-active projects keep their settings.

An explicit guaranteed_team_ids: [] in the signals-scout payload drains pilot teams too, blocking both scheduled and manual scout runs.

Activation in a child environment requires task editor access on the parent project and disables automatic implementation there. Scout-authored reports record code availability from the run's saved repository, GitHub posture, and pilot eligibility at dispatch. Repository checks distinguish missing access from temporary GitHub failures: automatic work can retry temporary failures, and manual requests return a retryable 503.

Flagged research continues without code when no repository is selected or GitHub is unavailable. Its repo_selection artefact records research_context.mode (code or data_only) and repository_status. Recognized repository authentication and clone failures can retry once without a checkout or GitHub credentials. Other failures keep their normal handling. Findings remain code-focused; missing code access alone is not a product decision requiring human input.

Research without a repository preserves structured agent startup failures and clears their health issues after a successful startup, using the same provider and runtime scope as research with code.

A saved repository is reused before checking GitHub availability. A data-only fallback leaves that selection and its recorded context unchanged, so a transient failure cannot replace a reviewer's pinned target.

The report remains readable and supports discussion, assignment, resolution, and eligible monitoring. Implement offers prompts for the customer's own agents even without GitHub access, including while access checks are pending or have failed. Choosing Implement with PostHog requires usable repository access and opens the GitHub connection flow when access is missing. Both report details and triage use these choices, with retry available after temporary failures. The access check probes GitHub directly, and any installation that confirms access enables PostHog implementation without waiting for other installations. Report controls use the server's canonical project eligibility. Authorization returns to the report; existing installations can be linked without leaving it. Recovery tracking records the report, surface, retry, and outcome. GitHub access improves research by connecting project data to code; opening pull requests is optional. Connecting or repairing GitHub does not enable automatic implementation; the user must opt in separately. Previous blocked reports are not automatically rerun.

Report access checks share pending and recent results by project, installation, and repository for up to 30 seconds. Explicit retries invalidate the project cache. A pending request is canceled when its last report reader leaves or after 30 seconds, allowing stalled checks to be retried; temporary failures are not cached. The backend still checks live access before creating an implementation task.

Client-side access controls apply only after the server confirms pilot eligibility. Unknown eligibility, including a pending or failed onboarding request, leaves the existing implementation action available; the backend remains responsible for checking repository access.

Disable the flag to remove pilot activation and restore legacy behavior on subsequent research passes. Running passes finish with their recorded decision. Reports and saved source/scout settings remain intact; fleet dispatch still applies its ordinary enrollment and exclusion gates.

Without a repository, legacy ownership lookup is skipped. Existing human assignments remain intact.

Reviewer notifications

With signals-research-reviewer-selection enabled, the research agent chooses report recipients in relevance order. Ownership files, CODEOWNERS, code history, report findings, and human corrections supply evidence for that choice. They cannot replace it with an ownership-first or commit-count selection. Research first reads recent human corrections from the project profile, which is available on every plan. It also reads relevant notes, older activity logs when available, and reviewer: scratchpad entries. Corrections apply only to the affected area. Research does not save its own choices as reviewer memory. Research and scouts check each candidate against the affected behavior or entity. For code reports, they inspect specific ownership rules and substantive implementation or review work. Broad directory activity, commit counts, mechanical changes, and team roster order alone do not establish responsibility. Each reason names the affected behavior and cites its source. Responsibility and review expertise are distinct reasons to include someone. Recipients are ordered by relevance, with at most three. Agents can return fewer recipients or none when evidence is insufficient.

A missing, malformed, or entirely ineligible decision retains valid existing recipients and records a failed selection. An explicit empty decision clears automatic recipients while preserving pins and confirmed lists. The artefact write path rechecks project access before saving; if all proposed candidates have become ineligible, it retains valid existing recipients. Report recipients need project access, but do not need GitHub accounts. Scout and custom-agent reports also preserve the agent's selected order through the existing artefact path. The saved list drives both the Inbox index and notification recipients; no later ownership selector reranks it.

With research selection disabled, research uses the legacy ownership-and-commit selector. That rollback does not release corrections or bypass the artefact rules. The legacy resolver also remains an independent task-runner permission check; selecting a report recipient does not authorize a task.

The pipeline skips a reviewer row when the accepted content is unchanged. Human corrections retain precedence. A real selection change after the first Slack notification can still leave that notification out of date. Automatic reviewer changes do not send additional Slack notifications.

During the internal trial, check correction relevance and assignment quality in report samples. Use after_inbox_notification on signals_suggested_reviewers_resolved to inspect pipeline changes after notification. Use runner_source=team_fallback on signals_autostart_steering_attached and skip_reason=no_runner on signals_autostart_skipped to inspect task outcomes. Compare report state, not raw event totals: skipped unchanged writes reduce the event count. Keep the selection flag disabled until the trial confirms suitable assignments and expected autostart behavior.

When a project member adds a reviewer, the report shows "Added by" and that member's name as the reason above the reviewer. The name comes from the authenticated author of the artefact that added the reviewer, not from the editable reason. If the author is unavailable, the report shows the generic "Added by teammate" badge instead.

Slack notifications for a ready report include only reviewers who have access to the report's project when delivery starts. The same access rule applies when a reviewer is added later. The team channel shows eligible suggested owners within Slack's text limit. When the labels exceed that limit, the notification shows complete labels and a count of the remaining owners. It pings only owners routed to that channel, so owners with a personal notification target appear as plain text. Slack keeps plain-text owner names literal instead of converting them into mentions. Report text also escapes incomplete mention prefixes and nested tokens while it keeps valid HTTP links. If no suggested reviewer has access, the ready report still goes to the configured team channel without an owner label. If the latest actionability judgment marks the report as already addressed, the system does not assign a fallback owner or send a reviewer push notification. Slack still sends the report to the configured team channel without reviewer mentions. The notification activity retries transient ClickHouse reads before it claims the report for delivery.

When an implementation pull request has one assignee, the worker requests that person's review, even when another person or team request exists. This makes the owner's work visible in both GitHub assignment and review-request lists. Without a single owner, it requests the highest-ranked eligible report reviewer only when no person or team request exists. Each attempt requests at most one person. It never removes existing requests. The worker skips the author, pending recipients, completed reviewers, and people whose review request was removed. Incomplete review or removal history prevents a new request. Personal assignment settings control ownership; they do not disable review requests.

Assignment decisions

All reviewer producers use SignalReportArtefact.append_status() (directly or through append()). It applies ReviewerRules in the same transaction as the existing reviewer write, under the report lock. The latest suggested_reviewers artefact remains the recipient list; SignalReportSuggestedReviewer remains its derived index. Both use (created_at, id) to select the latest row. There is no separate assignment table, operation ledger, or writer service.

Assignment feedback loop

The product goal is for human feedback to improve the next relevant assignment, including when another research or scout producer makes it. The shared write rules protect corrections on the current report. Existing notes, activity, and reviewer memory provide evidence for later selections. Research reads recent corrections. Eligible reviewer edits also send notes to the scouts that touched the report or hold the affected routing memory. The notes include members without GitHub accounts, identified by their PostHog user UUID. Repeat delivery is suppressed only for the same report and the latest action for that identity. A correction on another report, or a reversal, remains separate evidence. Scouts search relevant notes across producers before selection, through scout-notes-list without a skill_name filter. Research uses the same searchable notes. Both can inspect the source report and use the shared reviewer: memory. Forwarding is best effort; permissions, retrieval, and agent judgment can each limit its effect. Saving feedback alone does not establish that the next selection uses it.

The first milestone is to correct an assignment, explain the intended ownership, and run selection on a new, related report through another producer. Confirm that the agent uses the feedback and explains its effect, while an unrelated case stays unaffected. The original report must retain the correction. Repeat in both research-to-scout and scout-to-research directions, including members without GitHub accounts. Each correction should work through existing controls and steering tools, without a code change or separate edits to every scout. Selection guidance and scoped memory should remain inspectable and tunable; access and correction protection remain enforced in code.

A current-report correction is binding. On another report, it is scoped evidence with its source, date, and reason where available. Self-removal alone does not establish an ownership change or a global exclusion. Agents must not turn their own repeated selections into ownership evidence.

Compare selection before and after prompt changes with the same saved inputs and model. The invented cases in products/signals/backend/report_generation/fixtures/reviewer_selection_cases.json cover specific ownership, team members, weak evidence, multiple roles, and scoped corrections. The cases with and without feedback differ only in the available correction. An unrelated correction must not change the selection. Check both the selected people and the sources cited in their reasons. Do not expose expected results to the model. A comparison with supplied evidence tests selection judgment, not whether an agent can find that evidence through tools. Live report samples must check retrieval and recipient suitability separately.

The complete-loop trial remains pending. Measure feedback availability before selection, retrieval, use, the applied result, and repeated assignment errors. Distinguish unavailable feedback from feedback the agent considered but did not apply. Recipient review supplies the suitability judgment. Existing notes do not guarantee an immediate rerun. Triggered reassessment remains separate work. The feedback-loop milestone tracks the trial and any missing links before broader identity, team, preference, or reassessment work.

Human corrections

An add pins that person. A removal excludes that person. Agents can still change people the user did not edit. Adding an excluded person reverses that exclusion; removing a pinned person reverses that pin. Only an explicit API confirm action protects the complete list, including an empty list. The existing Inbox controls only add or remove people; they have no confirmation control. Removing the last person does not confirm an empty list. A person can still edit a confirmed list; agents cannot. Current project access always applies, including to pins and confirmed lists. A reviewer edit is not a work claim or permission to execute a task.

The same artefact table stores reviewer_corrections, with pins, exclusions, confirmation, and a history-review marker. Corrections and membership are saved atomically with the existing actor and process attribution. The first protected reviewer write recovers old corrections from reviewer deltas matched to activity records, under the report lock. It saves the result once. Reads use saved corrections; before recovery, they mark reports with old human edits as needing review. During rollout, automatic task start and PR assignment wait for that recovery. A human-authored snapshot alone does not prove approval of the complete list. Incomplete history stops automatic changes until a person confirms the current list through the API.

Write contract

Automatic callers read reviewer_assignment.state from the report detail response before selection. This is the only API response that includes correction state. The web app does not need it for targeted add/remove requests. Send both reviewers_id and corrections_id as expected_reviewers. The write rejects an old state under the report lock. These IDs cover assignment state, not changes to research evidence.

Human add/remove requests name only the people changed. They apply to current membership so unrelated concurrent edits survive. Replacement and confirmation require the state the person saw. Read the reviewer artefact named by that state when preparing either operation. Clients can send explicit targets with an add/remove action while retaining a full content list for older servers. Protected reports reject full replacements without state; older Desktop/mobile clients must update before rollout.

Automatic results distinguish selected, no_suitable_owner, and lookup_failed. Generated clients omit reviewer_outcome unless the caller supplies it; the backend treats an omitted outcome as selected only while processing reviewer state. This keeps unrelated report edits compatible while the MCP server and API deploy separately. A deliberate empty result clears automatic recipients but retains pins and confirmed lists. Failed lookup or wholly invalid selection retains valid current recipients. Accepted recipients must be active members with project access. An unchanged retry creates no reviewer row or delivery work. A retry with old state can return a conflict. Research changes to explanations or display names alone also create no reviewer row or delivery work. Generic artefact PATCH and DELETE cannot change reviewer history, and clients cannot write correction records directly. If stored reviewer data is invalid, a person can replace the list with matching state, even with the writer flag off. The repair keeps the old rows and existing corrections. It does not confirm the list or clear the history-review marker.

Shared report and PR assignment

With signals-research-reviewer-selection and signals-assignment-writer enabled, the saved report assignment supplies candidates for one PR owner. signals-assignment-side-effects must allow delivery. The legacy DRI flag does not change this rule.

flowchart LR
    A{{Research or scout reads feedback}} --> B[Choose assignees]
    B --> C[Check access and human corrections]
    C --> D[(suggested_reviewers)]
    D --> E[Inbox report]
    D --> F[Check personal settings, accounts, and GitHub access]
    F --> G[Assign or replace one PR owner]
    E --> H[Human edit and reason]
    H --> I[(Existing corrections and notes)]
    I --> A
    classDef phBlue fill:#1d4aff,stroke:#1d4aff,color:#fff;
    classDef phRed fill:#f54e00,stroke:#f54e00,color:#fff;
    classDef phYellow fill:#f9bd2b,stroke:#f9bd2b,color:#000;
    classDef phGray fill:#e5e7eb,stroke:#c7ccd1,color:#000;
    class A phBlue;
    class G phRed;
    class E,H phYellow;
    class B,C,D,F,I phGray;

The worker maps selected project members to their current personal GitHub accounts and checks repository assignability. Each attempt checks at most ten eligible candidates, in the saved order. It assigns the first eligible person whose Assign me on GitHub setting is on, then stops. A missing settings row, a missing GitHub account, or lost access skips that person. The worker can choose the next saved recipient, but nobody outside the report. If no saved recipient qualifies, the PR remains unassigned. The personal setting does not remove anyone from the report. Claims and owning teams do not change the selected list or its order. The report remains the source of the assignment. Logs record unavailable accounts, permission failures, and GitHub delivery failures.

A transient GitHub failure during first assignment, or a first write whose outcome is unknown, retries up to five times. The normal delays are 1, 2, 4, 8, and 15 minutes. A longer GitHub rate-limit delay takes precedence. Every attempt rechecks the report state, personal settings, account links, project access, GitHub state, and delivery controls. An uncertain write that reached GitHub appears as an assignment with an unknown source, so the worker does not repeat it. Successful first assignments record owner provenance for later reassessment. A permanent GitHub response, a closed pull request, a manual or unknown-source assignment, and a disabled flag end the attempt without retry. Permission checks follow the same rule: a non-rate-limit 403 stops recovery; network failures, 429 responses, and server errors permit retries. Safe assignment skips still allow review requests under the current review policy. Review requests, later owner reassessment, and legacy assignment policies remain best effort. Enabling a flag later does not replay suppressed work; the next pull request event queues a fresh attempt.

Queued work and retries use the current personal setting. Each successful automatic assignment records its owner and origin. A later reviewer edit, claim, or verified PR refresh can reassess that owner. The worker replaces owners only when GitHub's current assignees exactly match its latest record; extra assignees, manual removal, and unknown-origin assignments remain authoritative. It adds the replacement before removing the previous automatic owner and stops if GitHub reports a concurrent assignee change. Each GitHub write rechecks the delivery control, including owner removal and rollback after a partial reassignment. If no report recipient qualifies, it clears only its recorded automatic assignment. A failed eligibility lookup leaves the assignment unchanged. Incomplete human-edit history blocks automatic assignment. The legacy DRI path also respects report exclusions and rechecks human choices before assignment. Claimants and suggested reviewers must be active project members to receive assignments or review requests.

GitHub's final read and write are not atomic, so a small external race remains.

There is no separate PR model call, evidence collector, or decision cache. The internal pr_owner_assignment artefact stores delivery provenance and is not writable through the generic API. The existing task permission checks remain separate. Report assignment does not authorize an agent to run under that person's account. GitHub review requests still use the current report list, subject to the existing request policy.

The first loop trial uses one correction with a reason, a new related report, and an unrelated control case. Inspect the existing research trace and selection reason, then check the saved report list and PR assignment. Confirm that feedback changes the relevant choice and leaves the unrelated case unchanged. Confirm that selected people with the GitHub setting off remain on the report but receive no automatic GitHub assignment. The live trial remains pending; automated delivery tests do not establish research selection quality.

Identity and organization changes

resolve_reviewers.py maps linked PostHog and GitHub identities in both directions. The existing scout-members-list tool exposes project members and known GitHub accounts to agents. Personal GitHub integrations and GitHub OAuth provide identity links; some existing lookup paths also use the GitHub App installer identity. Report recipients can use PostHog user UUIDs without GitHub accounts.

The PR worker uses current personal GitHub integrations and OAuth links. Before assigning a linked account, it verifies the stable GitHub user ID against the repository collaborator record. The provenance record stores the link source, verification time, and a 30-day expiry. An expired proof is refreshed on the next reassessment trigger. It does not use the team installer identity as a personal link or discover new accounts. Similar names alone do not prove an identity.

Access loss removes an ineligible report recipient on the next protected reviewer write. A team move with access retained changes selection evidence; it does not cancel a human pin. No general process currently finds and reassesses all old reports after organization changes. Such a process remains future work and must use the same correction rules. Existing manual GitHub choices remain authoritative.

Rollout and rollback

Control Allows
signals-assignment-writer Reviewer corrections and state checks on existing writes.
signals-assignment-side-effects Existing Slack delivery, automatic task start, GitHub assignment, review requests, and ready-state changes for enrolled reports.

Both flags support organization targeting and require explicit enablement. The existing signals-research-reviewer-selection flag controls research selection and, with the writer enabled, shared report and PR assignment. PR delivery also requires the side-effect flag, including before a report enters the writer. Disabling research selection restores the legacy PR policies. Saved report corrections remain protected. They use local evaluation, so a report lock never waits for the flag service. Missing flag definitions keep the new behavior disabled. Enable the writer with side effects disabled to test real assignment changes without external delivery or task start. This changes the real Inbox list and index; it is not a shadow write. Local activity records, scoped correction notes, and existing measurements remain active. A corrections artefact marks enrollment, so delivery remains gated after writer rollback and for queued work. Disable side effects and the writer to stop a trial. Automatic replacement stops on enrolled reports; human corrections still work. Reports that never enrolled keep their existing behavior. A flag change cannot retract a sent message or stop an external call that already passed its check. After-commit scheduling is best effort. Suppressed actions are not queued for later delivery.

Before rollout, test self-removal, self-addition, concurrent edits, explicit empty confirmation, stale results, retries, access loss, and failed selection. Also test the assignment feedback loop above. Preserving a correction does not establish that later selections improve. The system design describes selection, later roles, and delivery work.

Report links

Only scouts and the signals pipeline create and manage typed, directed report links. Scouts attach them through the links list on scout-edit-report. Public callers can read report_link artefacts, but cannot create, edit, or delete them through the artefact API. Typed links cannot yet be removed through a supported operation. Issue #102776 tracks the unlink API and MCP tool. The Implement button overrides an automatic start check; it does not remove a link or change plan membership. Links must name a different live report in the same project and cannot form a cycle among links of the same kind.

Research reads a report's outgoing follow_up_of, depends_on, and part_of links and starts from the linked reports' findings and pull requests. A linked report must have an explicit safe verdict in its latest safety judgment. Research uses the latest finding for each signal and removes repeated links. It loads at most ten distinct relationships it can use and limits the rendered context to 12,000 characters. All linked fields are escaped and marked as untrusted evidence. A follow-up can refer to a manual fix or a regression; it must not invent a missing pull request.

Three link gates hold back automatic implementation, and each one records why on the report:

  • A report that duplicates another one does not start its own work when any report on that duplicate chain is resolved or already carries a pull request.
  • A report that depends on another one does not start until that dependency carries a pull request.
  • A report that other reports are part_of never starts its own work, because its steps do the work.

Link readers use the writer database so a new link takes effect without replica delay. The implementation path checks the gates again under the report lock before it creates a task. The gates apply to automatic implementation only. Pressing Implement in the inbox starts a run whatever the links say. Nothing re-evaluates a held-back report when its dependency's pull request opens, so it starts on the report's next pipeline evaluation or by hand.

Recurrence after a fixed verdict or wrong repository

A report dismissed as already_fixed, fixed_outside_posthog, or pr_merged can create a new report when the issue returns. A report dismissed as wrong_repo also creates a fresh report when a new matching signal arrives, even without a corrected repository. The original stays dismissed, and the new report uses the normal research promotion threshold. Its repository selection runs afresh with the project's saved correction feedback, without reusing the rejected selection. If selection picks the repository rejected by the parent's latest dismissal, the new report waits for repository input before research. This also covers projects with only one eligible repository and does not block unrelated reports from using it. The parent's corrected repository remains selection feedback rather than a selection copied onto the successor, so normal eligibility and source-visibility checks still apply. Research does not treat a wrong-repository dismissal as evidence of a previous fix. The pipeline records the new report's parent with a typed recurrence_of report link. A report created because a follow-up check failed on a resolved report also gets a typed follow_up_of link to that report, carrying the verdict as the link's reason. Generic related_to links do not control signal assignment. Later signals follow the recurrence chain, even if an older parent is restored. Matching selects the current successor before the specificity check, so the check uses its signals and title. Traversal passes through deleted intermediate reports without assigning signals to them. A successor dismissed for a preference reason keeps absorbing signals, including signals that match an older parent. Repeated fixed feedback does not create another successor. A new dismissal without feedback clears the fixed claim from an earlier dismissal cycle. Automatic suppression after an unmerged PR closes also records an empty dismissal. The state API rejects fixed reasons with potential; use suppressed or resolved for a fixed claim.

This change does not recover historical signals automatically. Older dismissal records cannot reliably identify the active dismissal cycle. Historical recovery needs a verified transition history before it can create new reports. Research context excludes parent reports whose latest safety judgment rejects their content. New reports do not copy the title or summary from these unsafe parents. Legacy related_to links supply context only for resolved parents. Fixed-dismissed parents require a typed recurrence link.

The state API also accepts resolution from failed. The web inbox offers Resolve for failed reports. The Needs decision section includes failed reports, even without an actionability judgment. Its needs_decision API view also includes actionable ready or pending-input reports without an implementation PR. Triage warns before a verdict closes an open implementation PR. New failed reports consume a daily inbox slot when they first become visible. Existing failed reports without a visibility timestamp remain historical backlog; they do not consume the rollout day's slots. The desktop eligibility change must ship separately after this backend transition is deployed. A suppressed report can resolve if its prior status was ready, pending_input, failed, or resolved.

Scout revisions

Scout edits increment the content revision count only when the title or summary changes. Notes, evidence, routing updates, and unchanged text do not spend a revision. The edit response always includes the report's running revision total.

The revision and corroboration counters are nullable, with no database or model default. Reads treat NULL as zero, so existing reports and reports created by older workers need no backfill. The migration adds nullable columns without rewriting rows or validating a NOT NULL constraint. PostgreSQL still needs a brief exclusive table lock to add the columns.

A scout can request a replacement when its rewrite changes the fix. The server binds that decision to verified automated predecessor PRs and the exact research pass and content revision. It starts at most one replacement per version, within the scout revision cap, and stops automatic closure if another edit changes the report while the replacement runs. Free-form scout notes always remain individual activity entries. Only notes explicitly marked corroboration_only count towards the four-confirmation cap; later confirmations increase the collapsed count shown by both the web and desktop inboxes.

Autostart binds task content to the report title, summary, research pass, and scout revision captured before external lookups. It checks that snapshot under the report lock before stamping a version as implemented, and retries from current content if the report changed.

Supersession verifies predecessors only for a real rewrite within the revision cap. Missing or stale verification rejects the edit before commit so the same request can be retried. GitHub calls happen outside the report lock.

An accepted scout replacement decision commits a protected implementation_dispatch artefact with the edit. A Celery worker resumes repository preparation, retains the editing scout's owner exclusion, and rechecks the exact decision before creating a task. Technical failures retry with exponential backoff from one minute to fifteen minutes. A five-minute sweep recovers lost queue messages and expired worker leases in bounded pages. The dispatch state records pending, processing, retrying, blocked, started, or canceled work; it is available through the existing artefact API. A policy block waits for a new edit or research trigger, rather than starting automatically when a setting or quota changes.

Only the first four content revisions can request a scout replacement, including revisions that did not request one. An over-cap request preserves the rewrite and records the revision-limit reason without claiming that the old fix is still correct. Reports under active research cannot accept a supersede claim. The current revision count is read inside the edit transaction, so a failed read cannot report a failed edit after committing a note or evidence.

Verification plans

After research completes, actionable reports can include a Verification plan note for the implementation agent. This final request is optional: if generation or note conversion fails, research still completes without the note. The findings, actionability, priority, title, and summary remain available. Core research failures and cancellation still fail the run and trigger session cleanup.

With Monitoring enabled, research authoring uses the fixed observation window for titles, verification prose, agent instructions, comparisons, and minimum sample requirements. soak_hours covers the entire interval from the recorded Monitoring start through start + soak_hours. PR completion uses the latest implementation PR merge timestamp; manual entry uses the time Monitoring starts. Deployment uncertainty does not create an excluded buffer or a shorter trailing query. Baseline and target reference periods retain their independently measured durations.

Verification proposals can name existing_check_id to revise an open check while preserving its remaining recurrence. An unchanged rounded soak_hours preserves the original minute precision; an explicitly changed wait replaces it. Equivalent default-valued config fields do not reset approval. Invalid stored configs do not prevent a valid proposal from replacing them. Presentation receives current checks as untrusted evidence, and verification can align the final Expected impact prose with its proposed metric goals.

Research traces that contain existing metric-check context require the same analytics permissions as the check query and baseline, including for resumed runs, Max task tools, trace analysis, task summaries, and run details. A sandbox token’s exception covers only the run on which the server records its token ID; task-wide reads and other runs still require analytics access. Checks without a stored query contribute neither a query marker nor an unproven baseline to the research trace. Authorized readers retain summaries and run details; direct storage links remain withheld. Query provenance is private server-owned run state inherited on resume, so ordinary task reads do not scan ancestors. Legacy checks inherit missing display formats only from a report metric with the same stored query. When a suggestion task finishes, the selected report refreshes its prose as well as its checks.

Metric suggestions and the Expected impact measurement block are available only when signals-report-monitoring is enabled.

The note names proposed follow-up checks without claiming they were scheduled. The Follow-up checks sidebar shows the stored checks. Verification permits five submissions: the initial proposal and up to four correction turns on the same research session. Each correction receives the latest failing fields and validation rules. Only verification output is retried; completed research is retained, and existing execution deadlines still apply. Exhausted correction or failed check persistence preserves existing checks and the presentation summary, records a server-owned check_authoring failure, and adds a visible work-log note. With Monitoring enabled, implementation completion and plan roll-up read the authoring outcome from the locked report’s writer connection and cannot automatically resolve without checks while that failure is current. Existing applicable checks can still enter Monitoring. A later successfully saved plan clears the blocker, including an explicitly empty plan; manual resolution remains available. An explicitly empty, valid check list still retires omitted checks. Legacy activity payloads preserve approved, person-authored, and nonpending checks. Referenced checks inherit their existing wait when the proposal omits it. Verification’s revised summary is saved only after its check reconciliation succeeds.

The plan separates Confirm the current state guidance from Confirm the outcome guidance. Each section says what evidence to collect, which result supports a conclusion, and which result is inconclusive. The guidance can use a query, test, log search, replay, code review, or manual check, and does not prescribe a resolution. Report retrieval directs any agent to the work log, where verification guidance applies regardless of how the agent started. The agent checks that the note matches the current findings and confirms the current state before it starts work. It confirms the outcome after the chosen resolution. If current evidence shows the issue is gone, it records that result and stops; if no note applies, it verifies the issue from the report's evidence. Missing data, failed checks, and inconclusive results do not establish that the issue is fixed.

Opening a report task

The web report's Runs section lists linked tasks newest first, regardless of their purpose, using each task's first association with the report. Repository-selection tasks remain hidden.

When a report has a linked task run, the View task button opens it in the PostHog AI sidebar. The button fits its label, including when it appears below the Solution section.