Skip to content

Harden marketplace task creation - #351

Merged
signerless merged 4 commits into
mainfrom
codex/harden-task-template-creation
Apr 14, 2026
Merged

Harden marketplace task creation#351
signerless merged 4 commits into
mainfrom
codex/harden-task-template-creation

Conversation

@signerless

Copy link
Copy Markdown
Contributor

Summary

  • Add approved marketplace task templates plus the safe template tool flow: list, get, create from template, and submit proposal.
  • Gate raw agenc.createTask off by default for agent routing while keeping explicit CLI and webchat paths opt-in.
  • Require approval for all raw agenc.createTask calls and remove the LLM argument repair path for raw task creation.

Why

Issue #350 identified prompt-injection risk in raw marketplace task creation: arbitrary user-provided task fields could be treated as instructions, repair logic could normalize loose calls into valid tasks, and approvals only triggered above a reward threshold. This PR shifts agent-driven creation to approved templates and preserves raw creation only for explicit trusted entry points.

Validation

  • npm exec tsc -- --noEmit from runtime/
  • npm exec vitest run src/marketplace/approved-task-templates.test.ts src/tools/agenc/tools-task-templates.test.ts src/gateway/approvals.test.ts src/gateway/system-prompt-routing.test.ts src/llm/chat-executor-tool-utils.test.ts
  • git diff --check

@signerless
signerless marked this pull request as ready for review April 14, 2026 09:31
@signerless

Copy link
Copy Markdown
Contributor Author

Updated this PR with claim-time marketplace job spec verification and the main audit roadmap note.

Cross-repo PRs:

Additional validation:

  • AGENC_PROTOCOL_WORKSPACE_ROOT=/Users/tetsuoarena/agenc-protocol-prprep npx vitest run src/task/operations.test.ts src/cli/index.test.ts src/tools/agenc/mutation-tools.test.ts tests/marketplace-cli.integration.test.ts --reporter dot
  • npx tsc --noEmit
  • git diff --check

@signerless signerless changed the title [codex] Harden marketplace task creation Harden marketplace task creation Apr 14, 2026
@signerless
signerless merged commit d21c586 into main Apr 14, 2026
4 checks passed
@7etsuo
7etsuo deleted the codex/harden-task-template-creation branch April 19, 2026 21:42
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