feat(agent): observable agent execution + durable runs

Analysed against 763ae85c9 files changedby 1012839419a-alt
Open PR on GitHub

Change-risk score

9.3out of 10Elevated
Repository health
6.3to5.8base against this head

This change sits in the top third of this repository's own risk distribution, the band worth reviewing closely. It is riskier than 78% of this repository's own commits.

The largest health movement is in global-agent-dock.tsx, down 3.3. Nothing outside this PR depends on a contract it changed.

Files changed
9
in this diff
Contracts changed
0
removed or signature
Outside callers
0
not in this diff
Findings added
6
3 resolved

Blast radius on the repo map

Every file in the repository, grouped into its own directories and sized by lines. The ones this PR changes are lit, and everything that imports them is marked.

backendchromecompatdocsfrontendiiiopenspecscriptstestsapibrowser_act_packsschemasservicesskillsworkflowdify_gra…appcomponentslibchangesintegrationunitecommercelead-generationsocial-listeningintellige…(app)flowrecordsuiunlumen-uiflowworkflowapichannelscontrolpipeline
changed, health fellchanged, health rosechanged, health heldimports a changed fileuntouchedchanged by this PR

Drawing 1,488 of 1,631 files at a readable size, grouped by directory and sized by lines of code. 9 changed here reach 8 more by import. 143 are too small to see at this width, which is what the frame below is for.

Inside tests

integrationunitagent_ru…apichannelscontrolpipelineplan_irsecuritytest…test…test…test…test_…test_…test_…test_…test_…tes…tes…tes…tes…tes…tes…tes…tes…te…te…te…te…te…te…te…te…test_sources_…test_s…test_trig…test_weib…test_work…test_work…test_…test_workf…test…test…test…test…test…test…test…test_work…test_workflow…test_workflow_p…test…test…test…tes…test…test…te…test…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…te…test_ws_…test_…test…test_op…test_…test_…test…test_cli…test_api_channel.…te…te…test_cr…test_…te…test_…test_ag…te…tes…tes…test…te…test…test…te…test…test…te…te…te…te…te…test_pip…te…te…tes…te…te…test…

283 files, 3 changed by this PR and 0 that import one. This PR changes 7 files in total, spread across more than one top-level directory. Click any directory above to frame it instead.

Changed

What this PR added, and what it took away

Introduced findings are the ones inside the lines this PR added, not the file's existing ones. The resolved column is the only place in the product that lists them.

Introduced (6)
  • criticalnested complexity
    frontend/components/shell/global-agent-dock.tsx:104

    sendMessage nests 7 levels deep

  • mediumlarge method
    backend/api/v1/chat.py:456

    chat is 108 lines long

  • mediumlarge method
    frontend/components/shell/global-agent-dock.tsx:104

    sendMessage is 110 lines long

  • lowerror handling
    backend/api/v1/chat.py:645

    broad `except Exception` catches unrelated errors and can hide bugs

  • lowdry violation
    backend/migrations/versions/a8b9c0d1e2f3_add_durable_agent_runs.py:30

    18% of file duplicated; worst clone shares 6 lines with backend/migrations/versions/a8b9c0d1e2f3_add_durable_agent_runs.py

  • lowerror handling
    frontend/components/shell/global-agent-dock.tsx:203

    caught exception is swallowed without any handling

Resolved (3)
  • dry violation
    tests/integration/test_legacy_native_intelligence_migration.py
  • function hotspot
    backend/api/v1/chat.py
  • io in loop
    backend/api/v1/chat.py

Who else knows this code

The primary author of each changed file by share of its recent commits, mined from git history. Advisory: it says who has context, not who must review.

  • frontend/app/(app)/operations-agents/page.tsx2233admin 100% of 2 commits
  • tests/integration/test_legacy_native_intelligence_migration.py2233admin 100% of 7 commits
  • tests/integration/test_legacy_plugin_migration.py2233admin 100% of 8 commits
  • tests/unit/test_migration_heads.py2233admin 100% of 9 commits
  • backend/models/__init__.py2233admin 54% of 23 commits

Tests that cover this change

Test files that import a file this PR changes. Not a coverage measurement: it is the import graph, so it says which tests are worth running, not which lines they reach.

  • tests/integration/test_chat_api.py
  • tests/skills/test_loop.py
  • tests/unit/llm/test_pr_e_consumers.py
  • tests/integration/test_image_studio_api.py
  • tests/unit/test_identity_models.py
  • tests/unit/api/test_workspaces.py

6 changed files have no test importing them.

Get this on your own pull requests

This page came from an index of 2233admin/opencli-Razormind. No model calls, no configuration, and it refreshes on every push. Install the bot and every pull request gets one of these.