Skip to content

fix(external-integrations): bound and sanitize streamed and rendered provider content — prevent memory growth and untrusted-output exposure - #775

Closed
unohee wants to merge 7 commits into
mainfrom
swarm/AGT-3465-fix-external-integrations-bound-and-sani
Closed

unohee wants to merge 7 commits into
mainfrom
swarm/AGT-3465-fix-external-integrations-bound-and-sani

Conversation

@unohee

@unohee unohee commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Published because this run stopped and needs a human: autonomous execution failed 4 times

It has not been reviewed and is very likely incomplete — this PR is a draft on purpose. It exists so the work is reviewable instead of sitting on a branch that was never pushed.

Change shape

430 file(s): 213 source · 191 test · 4 docs · 22 other

Base freshness

Branch base is 175 commit(s) behind main at publication.

⚠ Conflicts with main in: src/adapters/codexResponses.ts
GitHub runs no pull_request workflows on a PR it cannot merge, so any green checks here are not the verification gate. Opened as a draft; rebase before review.

⚠️ File overlap with in-flight work

This branch changes files that other open PRs / active branches also touch. Coordinate before merging to avoid divergent parallel edits (INT-2388 #3):

Linear

Closes AGT-3465


🤖 Generated with OpenSwarm

unohee added a commit that referenced this pull request Sep 28, 2026
…gents (#787)

Salvaged from draft PRs #758, #775, #782 (all abandoned mid-loop).

- support/outputBudget.ts: destination-specific field/message/aggregate limits
  plus truncate/capArray/paginateEmbedFields/genericUserError helpers.
- discord/embedUtils.ts: EMBED_LIMITS + safeAddField/safeSetTitle/
  safeSetDescription/safeSetFooter/enforceAggregateBudget/truncateField.
- tui/sanitize.ts: sanitizeAndBoundTerminalText, sanitizeAndNeutralize,
  clampAndSanitize, escapeHtml, formatMonitorError.
- codexResponses: incremental createResponsesReducer (no event-history
  retention) + MAX_FRAME_LENGTH/MAX_REASONING_BUF stream bounds.
- discordCore: allowedMentions parse:[] on every reply/send.
- Wired: discordHandlers, discordPair, cliRunner, pipelineFormat, tester,
  reviewer, skillDocumenter, workerAuditLog, workflowLinear, AuditBoard,
  DataTable, ChatLog, MonitorPanel, en/ko prompts.

Co-authored-by: OpenSwarm <openswarm@local>
@unohee

unohee commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator Author

Closing: superseded — the salvageable work in this draft was rebased onto current main, verified, and re-published as a reviewed PR: absorbed into #787. Closing the stale draft instead of merging it, because it was 170-250 commits behind, carried scratch files, and (in several cases) reverted main's later hardening.

@unohee unohee closed this Sep 28, 2026
@unohee
unohee deleted the swarm/AGT-3465-fix-external-integrations-bound-and-sani branch September 28, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant