CedarCopilot wants to merge 1 commit into main from staging
Not deployed
Libra has no production signal for this change yet because it has not deployed. Libra checks hourly for 3 days after each deploy.
This change centralizes several cross-user debug reads under the authorization authority and adds focused coverage for the new access rules. One non-blocking coverage gap remains: the target-user inventory treats debugTool.ts as fully authority-gated even though its create-monitor branch still uses a separate staff-only check.
Safe to merge from a runtime-access perspective, but the regression guard should be strengthened to keep the mixed staff-gated path visible.
The reproduced issue is a non-blocking test-inventory coverage gap; no unauthorized runtime access was demonstrated.
Files Needing Attention: apps/server/src/services/auth/tests/target-user-id-reaches-the-authority.test.ts and apps/server/src/mastra/tools/debug/debugTool.ts
What T-Rex did
apps/server/src/services/auth/__tests__/target-user-id-reaches-the-authority.test.ts, line 262 (link)
This file marks an entire source file as authority-gated when any branch calls authorize(). As a result, debugTool.ts is omitted from the staff-gated inventory even though its create-monitor branch still forwards targetUserId after only a direct staff check. This is non-blocking, but the guard can no longer ensure that future edits to that branch remain explicitly accounted for. Track authorization per target-bearing path, or retain explicit inventory coverage for mixed-gating files.
Knowledge Base Used: Quality and operational automation
**[Command output from the check](https://app.greptile.com/trex/arti
Libra has not measured any production surfaces for this change yet.