Add the rule to pola's description and body, and split three skills out by situation: facet (what crosses a callback boundary), capability-based-design (Tribble: one object per authority distinction; narrowing only intersects), and caretaker. A/B tested with Claude Haiku 5.5 in isolated runs, graded by an explorer that plays Mallory. On a discord.js-style bot task, every failure was `post: text => channel.send(text)`, whose implicit return hands out the Message and so the client's token. Pooled pass rates: no skills 35/70; pola's old description 36/48; the rule anywhere 139/144; this set 12/12 vs 5/12 for no skills in the same batch, and 21/21 on seven other tasks. Examples use an email SDK; they fixed the chat-domain mistake anyway. The rule belongs in the description because agents opened skill bodies in only some runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
name, description
| name | description |
|---|---|
| caretaker | Caretaker: revocable access as a forwarder plus a separate revoker. Use when access must end later: when a contract, session, share, conversation, or trial ends; when someone asks for "revoke", "expire", "cancel access", or "undo sharing". |
Caretaker: revoke by cutting the forwarder
Bad: a flag on the object you hand out; the holder can read and flip it.
const share = { file, revoked: false, read() { if (!this.revoked) return this.file.read(); } };
Good: the holder gets the forwarder; only the owner gets the revoker.
const makeCaretaker = target => {
let t = target;
const forwarder = Object.freeze({ read: () => { if (!t) throw Error('revoked'); return t.read(); } });
const revoker = Object.freeze({ revoke: () => { t = null; } });
return { forwarder, revoker };
};
Rules: the forwarder exposes no way to reach the target, the revoker, or the revoked state; every method checks; revocation can't be undone by the holder.
Sources
- E in a Walnut: Capability Patterns: the caretaker as revocable forwarder.