Skip to content

feat: restrict task invocation by caller - #220

Merged
swedishborgie merged 4 commits into
kitproj:mainfrom
superironpanda:acap-4052-task-invocation-allowlists
Sep 28, 2026
Merged

swedishborgie merged 4 commits into
kitproj:mainfrom
superironpanda:acap-4052-task-invocation-allowlists

Conversation

@superironpanda

@superironpanda superironpanda commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add optional allowed_surfaces and allowed_requesters task frontmatter
  • add WithSurface and structured WithCaller invocation options
  • reject disallowed invocations before task content is assembled
  • add -surface, -caller, and -caller-email CLI flags
  • keep linting caller-independent while still parsing the new fields

Behavior

  • omitted or empty allowlists preserve existing unrestricted behavior
  • values within each allowlist use case-insensitive OR matching
  • when both allowlists are configured, both restrictions must match
  • requester matching accepts either username or email
  • authorization failures return ErrCallerNotAllowed, including for lenient search paths

Documentation

Updates the specification, task-authoring guide, and CLI reference.

Co-authored-by: Cursor <cursoragent@cursor.com>
Branch-Creation-Time: 2026-09-23T23:12:07+0000
@superironpanda superironpanda changed the title feat: restrict task invocation by caller. feat: restrict task invocation by caller Sep 23, 2026
llin2 and others added 2 commits September 24, 2026 01:14
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@superironpanda
superironpanda marked this pull request as ready for review September 24, 2026 16:54
@swedishborgie
swedishborgie merged commit c772470 into kitproj:main Sep 28, 2026
1 check passed
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.

2 participants