open-swe/agent
Adam Moussa b3fc62da80
refactor: split webapp.py into api/ + per-source webhook routes
Plan step C4 (docs/upstream-sync/domain-reorg/reorg-build-plan.md, approved
decisions 1-2): split the 2,590-line agent/webapp.py monolith into
agent/webhooks/common.py (shared verify/dispatch helpers), agent/api/app.py
(composition), agent/api/health.py (/health + /webhooks/run-complete), and
per-source {github,linear,slack,jira,confluence}_routes.py. Atlassian
Connect lifecycle + descriptor routes (/connect/*) fold into
confluence_routes.py; webapp.py becomes the upstream-shaped compatibility
shim (from .api.app import app). langgraph.json http.app stays
agent.webapp:app via the shim.

Fork content, upstream layout: linear/slack route files verified
content-identical to upstream 8356eb34 and taken verbatim; github_routes is
upstream + the fork's CI auto-fix trigger wiring; jira/confluence routes are
fork-only, transformed to the same common.X / service.X module-attribute
style. All signature verification (GitHub HMAC, Slack, Linear
timestamp-freshness, verify_jira_secret + opt-in HMAC/timestamp/IP
allowlist, Connect JWT/qsh), token-attribution gating, TID-COLLIDE-01 repo
binding, _is_repo_auto_review_enabled gates, and public-repo org gate move
unchanged.

Handlers rewired from webapp.X to common.X; test monkeypatch sites across
26 files + conftest.py + e2e/harness.py retargeted to
webhook_common/handler/route modules per upstream's pattern. Residual
agent.webapp importers: only the shim, langgraph.json http.app, Makefile
uvicorn target, and docs (doc-path updates land in C7).

Gates: ruff check + format, pytest --co, full unit (1637 passed), full
Playwright E2E vs real langgraph dev (9/9), residual-importer sweep.
2026-07-17 14:30:05 -04:00
..
api refactor: split webapp.py into api/ + per-source webhook routes 2026-07-17 14:30:05 -04:00
dashboard refactor: split webapp.py into api/ + per-source webhook routes 2026-07-17 14:30:05 -04:00
graphs refactor: adopt graphs/runtime/providers shims + retarget langgraph.json 2026-07-17 13:57:20 -04:00
integrations feat(open-swe): add E2B sandbox provider (port of upstream 48217b68, #1489) (#199) 2026-07-16 18:23:42 -04:00
middleware refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
providers refactor: adopt graphs/runtime/providers shims + retarget langgraph.json 2026-07-17 13:57:20 -04:00
resources refactor: move docs/resources/assets to domain layout 2026-07-17 13:45:39 -04:00
review refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
runtime refactor: adopt graphs/runtime/providers shims + retarget langgraph.json 2026-07-17 13:57:20 -04:00
skills feat: outcomes dataset + bootstrap/continual split via skills (#1365) 2026-06-01 13:25:12 -07:00
tools refactor: split webapp.py into api/ + per-source webhook routes 2026-07-17 14:30:05 -04:00
utils refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
webhooks refactor: split webapp.py into api/ + per-source webhook routes 2026-07-17 14:30:05 -04:00
analyzer.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
chat.py feat(open-swe): re-add Fable 5 behind an admin toggle (Bedrock) (#172) 2026-07-10 14:05:20 -04:00
ci_autofix.py refactor: split webapp.py into api/ + per-source webhook routes 2026-07-17 14:30:05 -04:00
ci_monitor.py feat: CI auto-fix and PR babysitting for agent PRs (#1530) 2026-06-15 13:53:50 -07:00
completion.py feat: Jira + Confluence integration (tools + triggers) (#182) 2026-07-13 19:45:54 -04:00
dispatch.py feat: port durable dispatch hardening and startup latency improvements (#160) 2026-07-09 17:11:25 -04:00
encryption.py feat: support TOKEN_ENCRYPTION_KEY rotation via MultiFernet [closes AB-2323] (#1275) 2026-05-08 14:29:23 -07:00
prompt.py refactor: move docs/resources/assets to domain layout 2026-07-17 13:45:39 -04:00
reconcile.py refactor: adopt modular webhook architecture (#1621) + port fork customizations (#85) 2026-06-30 18:46:46 -04:00
reviewer.py refactor: consolidate reviewer modules into agent/review/ 2026-07-17 13:52:03 -04:00
scheduler.py refactor: adopt modular webhook architecture (#1621) + port fork customizations (#85) 2026-06-30 18:46:46 -04:00
server.py feat: Jira + Confluence integration (tools + triggers) (#182) 2026-07-13 19:45:54 -04:00
webapp.py refactor: split webapp.py into api/ + per-source webhook routes 2026-07-17 14:30:05 -04:00