Skip to content

API Reference parrot.roost.grant

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.roost.grant

View source

Caller-side inter-agent grant (FEAT-747 M4). Configuration, never model-visible.

Alias CapabilityMatch

Re-exported from parrot.roost.directory.CapabilityMatch.

Class GrantDenied

A lookup, mount or send targeted a capability outside the caller's grant.

Class GrantPolicy

Deterministic scope check over RoostAgentConfig.grant.

Parameter Type Default Description
default_deny bool True

Method GrantPolicy.allows

True iff a scope of config.grant fnmatch-es cap_id; False when config/grant is missing.

allows(config: Optional[RoostAgentConfig], cap_id: str) -> bool

Parameter Type Default Description
config Optional[RoostAgentConfig] The caller's Roost configuration (may be None).
cap_id str Capability id being looked up, mounted or called.

Returns: bool — Whether the caller's grant covers cap_id (fail-closed).

Method GrantPolicy.attenuate

Scopes the awardee may use for an awarded task (intersection, AC-14).

attenuate(requester: Optional[InterAgentGrant], awardee: Optional[InterAgentGrant]) -> InterAgentGrant

Parameter Type Default Description
requester Optional[InterAgentGrant] The grant of the agent awarding the task.
awardee Optional[InterAgentGrant] The awardee's own grant.

Returns: InterAgentGrant — A grant containing only awardee scopes covered by a requester scope.

Method GrantPolicy.filter_matches

Keep only matches the caller may call; order preserved.

filter_matches(config: Optional[RoostAgentConfig], matches: Iterable[CapabilityMatch]) -> list[CapabilityMatch]

Parameter Type Default Description
config Optional[RoostAgentConfig]
matches Iterable[CapabilityMatch]

Returns: list[CapabilityMatch]

Alias InterAgentGrant

Re-exported from parrot.roost.directory.InterAgentGrant.

Alias RoostAgentConfig

Re-exported from parrot.roost.directory.RoostAgentConfig.

Attribute logger

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally