User- and Role-based access control for guides
Brock Lampman
"Only the owner can edit" is too limited. Guides should get the same role-based read/write access as other MotherDuck objects. They're where the knowledge behind Agent Chat lives, and the current limits cap how useful it can be.
What we ran into (higher-ed org, about 20 users, one admin maintaining org-wide Guides):
- Corrections get lost. An explorer's agent read one of our org-wide Guides and tried to update it 0.15 seconds later. It failed with Could not find guide or not authorized, and the correction never reached anyone. The person knew something the Guide didn't, and the only outcome was an error.
- The error hides the cause. "Not found or not authorized" left the agent unable to tell the user "this Guide is owned by X, ask them". Including the owner's name in that error would be a quick improvement on its own.
- Visibility is everyone or no one. We want to share Guides with a team or role (e.g. our SDDS group) without publishing them org-wide.
- Admins can't see private Guides, as far as we can tell from MD_LIST_GUIDES() and query history, so drafts and duplicates sit unseen until someone shares them.
- The workaround is building our own CI. The docs suggest a service account owning the Guides, updated from CI. That works, but every customer would have to build it themselves for something the product could provide.
What we'd like:
- Role/team-based read and write on Guides, with owner-only kept as the default
- Suggestions: when a non-owner's update is blocked, it becomes a suggestion the owner approves, not an error
- Admin visibility into all Guides
I like the governance a single owner gives, but it should be a team or role, not one person. This looks like a high-return improvement for Agent Chat.