You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(register): caller-supplied agent id for identity binding
Adds an optional `id` field to AgentRegistration so callers can bind a
new dashboard record to a framework's canonical agent id (e.g. Lua's
`agent.agentId` from `lua.skill.yaml`) instead of letting register()
generate a UUID. Solves the "first runtime enforce() call creates a
duplicate agent" problem by making the dashboard record use the same
id the runtime will send.
Three coordinated pieces:
- AgentRegistration.id (optional) — register() honors it when set,
falls back to crypto.randomUUID() otherwise
- GovernanceProcessorConfig.agentId (optional) — Mastra processor
plugin passes it through to register() so framework integrations
(lua-core etc.) can wire the canonical id from their config
- ScannerPlugin.extractMetadata hook — scanner plugins surface
framework-specific structured data (canonical ids, manifest fields)
alongside the generic scan result via RepoScanResult.metadata.
Convention key `externalId` is what consumers map to the
register-time `id` field.
Bumps governance-sdk to 0.8.2.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments