Repository navigation
feat: PRO-1122: governance permit and write parameters on the clients [kyle-agent] - #261
Merged
kyleking-cohere merged 2 commits intoNov 27, 2026
Merged
Conversation
kyleking-cohere
requested review from
CelineWei-cohere
and removed request for
a team
November 27, 2026 09:14
|
|
1 similar comment
|
|
Author
|
@North-Code review |
Author
|
Merged on coordinator review; no review bot runs on this repo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional governance parameters to the Compass clients (sync and async), for deployments where a governance service decides what a caller may read and how written content is labelled.
permit: GovernancePermit | None(permit_id,rule):search_documents,search_chunks,direct_searchanddirect_search_scrollsend it as the body'sgovernance;get_document,get_document_asset,get_visual_elementandget_media_clipsend it as thepermit_idandpermit_rulequery parameters.governance: GovernanceWrite | None(actor,label):insert_docs,insert_doc,upload_documentandupload_document_via_uuidsend it as the body'sgovernance.None, and the query adds nothing.Callers can now pass these instead of overriding the private
_send_request. One parametrized test covers each method, set and unset, on both clients.Part of PRO-1122.