递归的尽头:Agent 自举
Описание и применение
Внутренняя система агентов использовала статический список разрешений, который стал бесполезным после изменений бизнес‑логики. Перейдя к динамическому управлению правами через лизинг, ограничения по глубине и правам стали контролироваться в реальном времени, устранив циклические отказы и позволив безопасно масштабировать рекурсивные вызовы.
Задача
A static allowlist for agent permissions became operationally worthless when business changes caused legitimate requests to be denied, leading to recursive denial loops and wasted developer time.
Результат
Dynamic grants eliminated denial loops, enabled safe recursive spawning, and allowed permission boundaries to evolve with business changes while keeping auditability.
Рабочий процесс
- 1. Agent attempts action denied by policy.deny.
- 2. Agent opens a scoped request against its lease for the missing capability.
- 3. On-call approver reviews request in the same channel, approves or denies.
- 4. Grant expires after 15 minutes; repeated requests trigger template review.
- 5. Orchestrator issues new lease with increased depth if needed, with owner recorded.
- 6. Capabilities for child agents are computed as intersection with parent; write scopes granted by name per lease.
- 7. Memory writes are namespaced to lease; promoted notes carry lease ID.
Доказательства
We owned the permission layer for an internal agent ecosystem — a dozen-ish agents at the time, each one wired to a handful of internal APIs.
We spent a week patching the list before admitting the model was wrong, and rebuilt it as dynamic authorization...
Now the orchestrator stamps the lease, the agent gets an opaque handle, and it never holds a writable copy of its own limits.
The child's capability set is computed as an intersection with the parent's at spawn time, write scopes are granted by name per lease rather than inherited...
Memory was the piece that actually scared us... writes are namespaced to the lease, promotion into a shared namespace is its own capability...
- Дата записи: 2026-10-17T07:41:10.481Z