feat(cortex): add trust visibility to cortex agents (#275 slice A)#312
Merged
hurttlocker merged 1 commit intomainfrom Mar 10, 2026
Merged
feat(cortex): add trust visibility to cortex agents (#275 slice A)#312hurttlocker merged 1 commit intomainfrom
hurttlocker merged 1 commit intomainfrom
Conversation
This was referenced Mar 11, 2026
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.
What this does
Implements a bounded #275 slice A for trust-boundary groundwork by making trust config visible in read-only operator surfaces.
agents.<id>.trustin~/.cortex/config.yamltrust_level+trust_scopeincortex agents --jsoncortex agentstable output with TRUST/SCOPE columnsProblem / Context
Issue #275 needs scoped multi-agent trust boundaries, but the full system is too large for one PR. We needed the smallest safe first slice that:
How it works
Files touched
internal/config/resolver.goAgentTrustRule+AgentTrustEntryResolveAgentTrustConfig(configPath)AgentTrustScope(trustLevel)with allowed values:owner->read:all write:allcollaborator->read:all write:ownreader->read:all write:noneagents:mapcmd/cortex/main.gorunAgentsnow loads/validates trust config before rendering outputagentSummarynow includes trust visibility fieldsinternal/config/resolver_test.gocmd/cortex/main_test.goTesting done
Screenshots / before-after
CLI surface change only (no UI). Example
cortex agentsoutput now includes TRUST/SCOPE columns and a read-only visibility note.Breaking changes / risks
None.
Primary risk:
cortex agentsnow fails fast whenagents.<id>.trustis invalid in config. This is intentional validation behavior, but operators with malformed trust config will need to fix it.Merge notes