Skip to content

feat(plugins): pass trusted caller identity to commands - #2

Merged
djgilcrease merged 1 commit into
t3/create-plugin-systemfrom
feat/project-memory-command-context
Nov 10, 2026
Merged

djgilcrease merged 1 commit into
t3/create-plugin-systemfrom
feat/project-memory-command-context

Conversation

@djgilcrease

Copy link
Copy Markdown
Owner

Project-scoped plugins cannot safely use agent-supplied project IDs: existing command handlers only receive untrusted JSON. Pass a separate optional SDK invocation context through the isolated worker protocol, with audience and authenticated environment/project/thread identity for thread MCP callers. Unscoped external MCP and peer-plugin calls carry no project identity; existing handlers remain compatible.

The host resolves identity from the credential's current thread, preserves descriptor permissions and the full-access/default write gate, and rejects stale thread callers. The external Shared Project Memory consumer lives in https://github.com/digitalxero/t3-project-memory; no memory feature or server-internal dependency is added here.

Validation: the new MCP assertion fails against the original handler (undefined context), then passes with this change. All 20 focused MCP and real worker-isolation tests pass. vp run check:changed origin/t3/create-plugin-system --concurrency 1 passes format, lint, knip, GraphQL, affected typechecks and all 45 selected tests. Only generic SDK/server boundaries changed; web/desktop/mobile use their existing plugin renderer. This does not claim native mobile or Electron runtime verification.

Implemented by gpt-6.1-sol (high) through the Codex harness on behalf of Dj Gilcrease.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 10, 2026
@djgilcrease
djgilcrease merged commit 99c9ae3 into t3/create-plugin-system Nov 10, 2026
8 of 20 checks passed
djgilcrease added a commit that referenced this pull request Nov 17, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 18, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 19, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 20, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 22, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 23, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 24, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 26, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 27, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 28, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Nov 29, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Dec 1, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
djgilcrease added a commit that referenced this pull request Dec 2, 2026
…ntext

feat(plugins): pass trusted caller identity to commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant