Skip to content

feat: adopt codex batch tool (safe code-mode core) - #225

Merged
Patel230 merged 1 commit into
mainfrom
feat/codex-batch
Aug 22, 2026
Merged

feat: adopt codex batch tool (safe code-mode core)#225
Patel230 merged 1 commit into
mainfrom
feat/codex-batch

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the codex adoption audit (#224). Implements the safe, high-value core of codex's Code Mode without an embedded script runtime:

  • Batch tool: runs a list of read-only tool calls in a single turn, cutting agent round-trips for fan-out research.
  • Security by construction: only read-only tools (reuses tool.IsReadOnly) are accepted; every inner call resolves through the session registry, schema-validates, and executes individually. No mutation can bypass the normal tool pipeline.
  • Registered in the optional (lazy) tool set so it is promoted on demand.
  • Updated docs/plans/codex-adoption-plan.md: marks Batch as the adopted safe core of Code Mode; keeps full arbitrary-script Code Mode, agent-identity signing, and cloud-tasks as explicitly deferred RFCs (already covered by internal/identity + HMAC-chained internal/securitylog / Hawk Cloud respectively).

Test plan

  • New unit tests: read-only execution, non-read-only rejection, empty/unknown rejection
  • Full go test ./... green (twice — locally and via pre-push hook)
  • make vet, make lint, hawk verify green
  • Boundary guards, submodule drift, govulncheck passed in pre-push hooks
  • markdownlint-cli2 clean on updated doc

@Patel230
Patel230 merged commit 665d50b into main Aug 22, 2026
26 checks passed
@Patel230
Patel230 deleted the feat/codex-batch branch August 22, 2026 04:01
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