Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions strix/interface/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ def main() -> None: # noqa: PLR0912, PLR0915
finally:
tracer = get_global_tracer()
if tracer:
tracer.cleanup()
posthog.end(tracer, exit_reason=exit_reason)

results_path = Path("strix_runs") / args.run_name
Expand Down
18 changes: 5 additions & 13 deletions strix/tools/finish/finish_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,11 @@ def finish_scan(
if active_agents_error:
return active_agents_error

validation_errors = []

if not executive_summary or not executive_summary.strip():
validation_errors.append("Executive summary cannot be empty")
if not methodology or not methodology.strip():
validation_errors.append("Methodology cannot be empty")
if not technical_analysis or not technical_analysis.strip():
validation_errors.append("Technical analysis cannot be empty")
if not recommendations or not recommendations.strip():
validation_errors.append("Recommendations cannot be empty")

if validation_errors:
return {"success": False, "message": "Validation failed", "errors": validation_errors}
_NOT_PROVIDED = "[Not provided by model]"
executive_summary = (executive_summary or "").strip() or _NOT_PROVIDED
methodology = (methodology or "").strip() or _NOT_PROVIDED
technical_analysis = (technical_analysis or "").strip() or _NOT_PROVIDED
recommendations = (recommendations or "").strip() or _NOT_PROVIDED

try:
from strix.telemetry.tracer import get_global_tracer
Expand Down