Skip to content

fix(queryPermissions): expose aclTag aliases for permission lookups #539

@binggg

Description

@binggg

Signal

  • Attribution: issue_mns3n0at_qt4xp0
  • Duplicate signal: issue_mnoa2xj8_oz3hul
  • Representative run: atomic-js-none-describe-nosql-acl/2026-04-09T23-18-40-93s367
  • Related run: atomic-js-none-describe-storage-acl/2026-04-07T07-07-19-5yd57w
  • Failure: evaluators expected RESULT.json to include aclTag/AclTag/acl_tag, but queryPermissions(getResourcePermission) only surfaced permissions[] and buried the canonical permission tag under Permission

Why this is actionable

  • Relevant module: mcp/src/tools/permissions.ts
  • Current behavior: getResourcePermission returns permissions[] plus raw, so models often copy the array and miss the top-level permission alias that tasks/evaluators look for
  • Expected behavior: permission lookups should expose a direct acl tag summary and compatibility aliases while keeping the existing permissions payload intact

Proposed direction

  • Add top-level permission summary fields for getResourcePermission, including aclTag / AclTag / acl_tag derived from the primary permission entry
  • Expose requestId / totalCount directly for easier consumption
  • Add focused tests and update tool docs so the model sees the canonical output shape

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-processedAI automation already processed this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions