Commit graph

573 commits

Author SHA1 Message Date
CREDO23
67036448f9 refactor(multi-agent): add shared middleware factory per concept 2026-05-05 20:51:17 +02:00
CREDO23
91701bb49a refactor(multi-agent): split shared resilience bundle into per-concept files 2026-05-05 20:51:02 +02:00
CREDO23
a6df944247 refactor(multi-agent): introduce shared flags helper and permissions package 2026-05-05 20:49:47 +02:00
CREDO23
9a4ee5d16b chore: trim narrative comments and docstrings 2026-05-05 18:27:46 +02:00
CREDO23
309c695531 feat(multi-agent): cap subagent model and tool call counts 2026-05-05 18:16:00 +02:00
CREDO23
b394dc71c7 feat(multi-agent): extend model fallback to general-purpose subagent 2026-05-05 18:12:38 +02:00
CREDO23
1745d7dccf feat(middleware): scope model fallback to provider/network errors only 2026-05-05 18:04:47 +02:00
CREDO23
f695298d30 feat(multi-agent): wire model fallback and retry into subagent middleware 2026-05-05 17:39:27 +02:00
Rohan Verma
ce6d9233bc
Merge pull request #1335 from AnishSarkar22/fix/memory-extraction
refactor(memory): streamline memory extraction
2026-05-04 17:26:27 -07:00
CREDO23
5119915f4f Merge upstream/dev into feature/multi-agent 2026-05-05 01:44:46 +02:00
CREDO23
9e35cdaec7 Fail loud on registry subagent build error. 2026-05-05 00:38:34 +02:00
CREDO23
6a9433c8ff Apply per-card decisions in HITL bundle resume. 2026-05-05 00:22:10 +02:00
CREDO23
0af2c28a8d Stabilize HITL bundle UX and resume. 2026-05-04 23:58:53 +02:00
CREDO23
972650909c Rename package: multi_agent_chat 2026-05-04 21:57:05 +02:00
CREDO23
d675d4df3f Remove unwired multi_agent_chat package. 2026-05-04 21:45:57 +02:00
CREDO23
216a678f1a Address LLM review findings; trim comments. 2026-05-04 21:32:42 +02:00
CREDO23
65f1f8f73c Harden multi-agent for production: resume cleanup, busy-mutex race, deny propagation, disabled-tools. 2026-05-04 20:48:55 +02:00
CREDO23
7735becd02 Skip middleware gate for native body-gated tools to restore approval-card context. 2026-05-04 19:25:50 +02:00
CREDO23
277bd50f37 Harden HITL for multi-step tasks: bypass internal MCP gate, full-args dedup, and decision-envelope normalization. 2026-05-04 19:25:27 +02:00
CREDO23
4ac3f0b304 Forward HITL decisions from the streaming layer to subagents via the config side-channel. 2026-05-04 18:42:58 +02:00
CREDO23
ba2138c164 Wire SurfSenseCheckpointedSubAgentMiddleware into the multi-agent stack. 2026-05-04 18:42:46 +02:00
CREDO23
acd2fdda8a Add SurfSenseCheckpointedSubAgentMiddleware to bridge HITL into deepagents subagents. 2026-05-04 18:42:39 +02:00
Anish Sarkar
e38e20b484 fix: handle empty response in forced rewrite function
- Updated the `_forced_rewrite` function to strip whitespace from the extracted text and added a warning log if the response is empty, preventing potential issues with empty rewrites.
2026-05-04 12:18:09 +05:30
Anish Sarkar
b981b51ab1 Merge remote-tracking branch 'upstream/dev' into fix/memory-extraction 2026-05-04 12:03:44 +05:30
DESKTOP-RTLN3BA\$punk
a34f1fb25c feat: implement agent caches and fix invalid prompt cache configs
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
- Added a new function `_warm_agent_jit_caches` to pre-warm agent caches at startup, reducing cold invocation costs.
- Updated the `SurfSenseContextSchema` to include per-invocation fields for better state management during agent execution.
- Introduced caching mechanisms in various tools to ensure fresh database sessions are used, improving performance and reliability.
- Enhanced middleware to support new context features and improve error handling during connector and document type discovery.
2026-05-03 06:03:40 -07:00
DESKTOP-RTLN3BA\$punk
c938d39277 feat: moved most things behind correct feature flag 2026-05-02 23:10:48 -07:00
DESKTOP-RTLN3BA\$punk
cea8618aed fix: fixed composio issues 2026-05-02 21:16:03 -07:00
DESKTOP-RTLN3BA\$punk
47b2994ec7 feat: fixed vision/image provider specific errors and fixed podcast/video streaming
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
2026-05-02 19:18:53 -07:00
Anish Sarkar
9975e085aa refactor(memory): streamline memory extraction by utilizing extract_text_content utility 2026-05-02 16:10:30 +05:30
Rohan Verma
451a98936e
Merge pull request #1332 from AnishSarkar22/feat/model-pinnning-mode
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
feat: Auto-pin quality scoring, OpenRouter tier refactor and live usage sidebar
2026-05-01 15:57:19 -07:00
CREDO23
4fd3c4fb27 Inject dynamic registry subagents into the main prompt and simplify connector discovery. 2026-05-02 00:44:02 +02:00
CREDO23
ffed829cf8 Skip registry subagents missing connectors when assembling the stack. 2026-05-02 00:43:56 +02:00
CREDO23
06cef04e57 Gate builds via exclude list and expose registry helpers from subagents package. 2026-05-02 00:43:52 +02:00
CREDO23
eefdd1d7f0 Add connector routing entries and per-subagent connector token map. 2026-05-02 00:43:46 +02:00
CREDO23
2bce2a2f55 Remove obsolete main-agent connector permission helpers. 2026-05-02 00:43:42 +02:00
CREDO23
fbcff79a58 Export deep-agent factory and omit memory/research from task registry. 2026-05-01 23:18:17 +02:00
CREDO23
eb4b570265 Wire main-agent async factory and export create_surfsense_deep_agent. 2026-05-01 23:18:10 +02:00
CREDO23
fc540e962b Add main-agent system prompt markdown and builder. 2026-05-01 23:17:55 +02:00
CREDO23
7a6c253711 Add main-agent graph compile and middleware stack. 2026-05-01 23:17:51 +02:00
CREDO23
083a9f7946 Add main-agent tool allowlist plus permission and prune helpers. 2026-05-01 23:17:46 +02:00
Anish Sarkar
25ccc959cf feat(busy_mutex): enhance thread lock management to prevent stale middleware interference 2026-05-02 01:35:30 +05:30
CREDO23
d9c873b2e1 Adjust supervisor routing integration for delegated routes. 2026-05-01 20:30:20 +02:00
CREDO23
dcc348d72a Add registry and factory for route subagent specs. 2026-05-01 20:30:20 +02:00
CREDO23
745bcec390 Add OneDrive, Slack, and Teams connector route slices. 2026-05-01 20:30:20 +02:00
CREDO23
6e54fb00e3 Add Linear, Luma, and Notion connector route slices. 2026-05-01 20:30:20 +02:00
CREDO23
96ab91b719 Add Gmail, Google Drive, and Jira connector route slices. 2026-05-01 20:30:20 +02:00
CREDO23
f24eb3496c Add Confluence, Discord, and Dropbox connector route slices. 2026-05-01 20:30:20 +02:00
CREDO23
4f0e84c6a3 Add Airtable, Calendar, and Clickup connector route slices. 2026-05-01 20:30:20 +02:00
CREDO23
ba57eae2bb Add builtin deliverables route slice for delegated agents. 2026-05-01 20:30:20 +02:00
CREDO23
ff307dd923 Add builtin memory route slice for delegated agents. 2026-05-01 20:30:20 +02:00