Skip to content

Add safe custom JSON Agent Channel runner#1652

Open
mimeding wants to merge 1 commit into
osaurus-ai:mainfrom
mimeding:codex/json-channel-runner-safety
Open

Add safe custom JSON Agent Channel runner#1652
mimeding wants to merge 1 commit into
osaurus-ai:mainfrom
mimeding:codex/json-channel-runner-safety

Conversation

@mimeding

@mimeding mimeding commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a configuration-only Custom JSON runner for Agent Channels with method, host, IP, header, body, query, redirect, and response-size safety controls.
  • Adds redaction, write gates, idempotency handling, cancellation reporting, and standard action mapping.
  • Rejects non-JSON templated bodies and percent-encodes templated query values to prevent parameter injection.

Validation

  • swift test --package-path Packages/OsaurusCore --filter CustomJSONAgentChannelRunnerTests
  • swift test --package-path Packages/OsaurusCore --filter DiscordConnectionTests
  • bash scripts/i18n/check.sh
  • swiftlint lint --quiet Packages/OsaurusCore/Services/AgentChannel/AgentChannelCustomJSONRunner.swift Packages/OsaurusCore/Tests/AgentChannel/CustomJSONAgentChannelRunnerTests.swift Packages/OsaurusCore/Tests/Discord/DiscordConnectionTests.swift
  • git diff --check
  • External review pass completed; actionable findings were incorporated before publication.
  • GitHub checks are green.

Notes

  • Ready for review as the configuration-only custom Agent Channel execution path. This branch does not change model behavior, prompts, or default tool exposure.

@mimeding mimeding force-pushed the codex/json-channel-runner-safety branch from b864c0d to 6704561 Compare June 22, 2026 22:27
@mimeding mimeding force-pushed the codex/json-channel-runner-safety branch from 6704561 to 73ca9bc Compare June 22, 2026 22:54
@mimeding mimeding marked this pull request as ready for review June 22, 2026 23:17
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