/** * ps_delegate Tool * * Handles delegation from parent agent to child agent. * Enforces inheritance rules, mode strength preservation, * and forbidden constraint propagation. */ export interface DelegateRequest { parentAgentId: string; childAgentId: string; parentFrame: string; childFrame: string; task?: { description: string; constraints?: string[]; deadline?: number; }; inheritanceMode?: 'strict' | 'relaxed' | 'custom'; customInheritance?: { inheritMode: boolean; inheritDomain: boolean; inheritConstraints: boolean; inheritPriority: boolean; }; } export interface DelegateResult { success: boolean; delegationId: string; parentAgentId: string; childAgentId: string; parentFrame: string; childFrame: string; effectiveChildFrame: string; validation: { valid: boolean; chainValid: boolean; errors: string[]; warnings: string[]; }; inheritance: { modeInherited: boolean; domainInherited: boolean; constraintsInherited: string[]; strengthPreserved: boolean; }; childCircuitState: string; } export declare function ps_delegate(request: DelegateRequest): DelegateResult; interface DelegationRecord { id: string; parentAgentId: string; childAgentId: string; parentFrame: string; childFrame: string; effectiveChildFrame: string; timestamp: number; status: 'active' | 'completed' | 'revoked'; } export interface RevokeRequest { delegationId: string; parentAgentId: string; reason?: string; } export interface RevokeResult { success: boolean; delegationId: string; childAgentId?: string; message: string; } export declare function ps_delegate_revoke(request: RevokeRequest): RevokeResult; export interface ListDelegationsRequest { agentId: string; role?: 'parent' | 'child' | 'both'; status?: 'active' | 'completed' | 'revoked' | 'all'; } export interface ListDelegationsResult { agentId: string; asParent: DelegationRecord[]; asChild: DelegationRecord[]; } export declare function ps_delegate_list(request: ListDelegationsRequest): ListDelegationsResult; export {}; //# sourceMappingURL=ps_delegate.d.ts.map