Cotton code
1062 lines · 25.7 KB · JSONRaw
{  "_about": "The core's own unlock.card answers for invented requests (rules/unlock_tests.rs write_unlock_card_seed), drawn by the iPhone's sheet under -unlock-card-seed account|timed|groups|several. Nothing here is anyone's real request.",  "account": {    "card": {      "face": "unlock.card",      "requestId": "seed-account",      "client": "Claude (claude.ai)",      "tokenName": "Asha's Claude",      "title": "Let your Claude read your data",      "reason": "Cotton cannot read your data on its own. Your Claude can once you connect it, and it reaches your data through Cotton only when it asks.",      "tables": [        {          "table": "note",          "label": "Notes",          "on": true        },        {          "table": "note_attachment",          "label": "note_attachment",          "on": true        },        {          "table": "journal_entry",          "label": "journal_entry",          "on": true        },        {          "table": "thought",          "label": "thought",          "on": true        },        {          "table": "thought_attachment",          "label": "thought_attachment",          "on": true        },        {          "table": "mood",          "label": "mood",          "on": true        },        {          "table": "goal",          "label": "goal",          "on": true        },        {          "table": "page",          "label": "page",          "on": true        },        {          "table": "highlight",          "label": "highlight",          "on": true        },        {          "table": "comment",          "label": "comment",          "on": true        },        {          "table": "event",          "label": "event",          "on": true        },        {          "table": "event_attendee",          "label": "event_attendee",          "on": true        },        {          "table": "todo",          "label": "todo",          "on": true        },        {          "table": "todo_recurrence",          "label": "todo_recurrence",          "on": true        },        {          "table": "alarm",          "label": "alarm",          "on": true        },        {          "table": "location",          "label": "location",          "on": true        },        {          "table": "thread",          "label": "thread",          "on": true        },        {          "table": "thread_member",          "label": "thread_member",          "on": true        },        {          "table": "thread_filing",          "label": "thread_filing",          "on": true        },        {          "table": "thread_mark",          "label": "thread_mark",          "on": true        },        {          "table": "message",          "label": "Messages",          "on": true        },        {          "table": "message_contact",          "label": "message_contact",          "on": true        },        {          "table": "message_contact_handle",          "label": "message_contact_handle",          "on": true        },        {          "table": "message_reaction",          "label": "message_reaction",          "on": true        },        {          "table": "message_receipt",          "label": "message_receipt",          "on": true        },        {          "table": "message_import",          "label": "message_import",          "on": true        },        {          "table": "outbox",          "label": "outbox",          "on": true        },        {          "table": "call",          "label": "call",          "on": true        },        {          "table": "story",          "label": "story",          "on": true        },        {          "table": "post",          "label": "post",          "on": true        },        {          "table": "meetings_meeting",          "label": "meetings_meeting",          "on": true        },        {          "table": "meetings_line",          "label": "meetings_line",          "on": true        },        {          "table": "meetings_speaker",          "label": "meetings_speaker",          "on": true        },        {          "table": "meetings_action",          "label": "meetings_action",          "on": true        },        {          "table": "meeting",          "label": "meeting",          "on": true        },        {          "table": "meeting_utterance",          "label": "meeting_utterance",          "on": true        },        {          "table": "email_thread",          "label": "email_thread",          "on": true        },        {          "table": "email",          "label": "email",          "on": true        },        {          "table": "email_draft",          "label": "email_draft",          "on": true        },        {          "table": "email_participant",          "label": "email_participant",          "on": true        }      ],      "minutes": 0,      "durations": [],      "expiresAt": "9999-12-31T23:59:59.999Z",      "behind": 0,      "fields": {        "title": "Let your Claude read your data",        "asker": "Claude (claude.ai) · Asha's Claude",        "reason": "Cotton cannot read your data on its own. Your Claude can once you connect it, and it reaches your data through Cotton only when it asks.",        "toggles": [          {            "table": "note",            "label": "Notes",            "on": true          },          {            "table": "note_attachment",            "label": "note_attachment",            "on": true          },          {            "table": "journal_entry",            "label": "journal_entry",            "on": true          },          {            "table": "thought",            "label": "thought",            "on": true          },          {            "table": "thought_attachment",            "label": "thought_attachment",            "on": true          },          {            "table": "mood",            "label": "mood",            "on": true          },          {            "table": "goal",            "label": "goal",            "on": true          },          {            "table": "page",            "label": "page",            "on": true          },          {            "table": "highlight",            "label": "highlight",            "on": true          },          {            "table": "comment",            "label": "comment",            "on": true          },          {            "table": "event",            "label": "event",            "on": true          },          {            "table": "event_attendee",            "label": "event_attendee",            "on": true          },          {            "table": "todo",            "label": "todo",            "on": true          },          {            "table": "todo_recurrence",            "label": "todo_recurrence",            "on": true          },          {            "table": "alarm",            "label": "alarm",            "on": true          },          {            "table": "location",            "label": "location",            "on": true          },          {            "table": "thread",            "label": "thread",            "on": true          },          {            "table": "thread_member",            "label": "thread_member",            "on": true          },          {            "table": "thread_filing",            "label": "thread_filing",            "on": true          },          {            "table": "thread_mark",            "label": "thread_mark",            "on": true          },          {            "table": "message",            "label": "Messages",            "on": true          },          {            "table": "message_contact",            "label": "message_contact",            "on": true          },          {            "table": "message_contact_handle",            "label": "message_contact_handle",            "on": true          },          {            "table": "message_reaction",            "label": "message_reaction",            "on": true          },          {            "table": "message_receipt",            "label": "message_receipt",            "on": true          },          {            "table": "message_import",            "label": "message_import",            "on": true          },          {            "table": "outbox",            "label": "outbox",            "on": true          },          {            "table": "call",            "label": "call",            "on": true          },          {            "table": "story",            "label": "story",            "on": true          },          {            "table": "post",            "label": "post",            "on": true          },          {            "table": "meetings_meeting",            "label": "meetings_meeting",            "on": true          },          {            "table": "meetings_line",            "label": "meetings_line",            "on": true          },          {            "table": "meetings_speaker",            "label": "meetings_speaker",            "on": true          },          {            "table": "meetings_action",            "label": "meetings_action",            "on": true          },          {            "table": "meeting",            "label": "meeting",            "on": true          },          {            "table": "meeting_utterance",            "label": "meeting_utterance",            "on": true          },          {            "table": "email_thread",            "label": "email_thread",            "on": true          },          {            "table": "email",            "label": "email",            "on": true          },          {            "table": "email_draft",            "label": "email_draft",            "on": true          },          {            "table": "email_participant",            "label": "email_participant",            "on": true          }        ]      },      "acts": [        {          "id": "allow",          "label": "Allow",          "method": "unlock.allow",          "receipt": "Allowed",          "presence": true        },        {          "id": "decline",          "label": "Not now",          "method": "unlock.decline",          "receipt": "Not now",          "presence": false        }      ],      "account": true,      "ask": {        "who": "Asha's Claude · connected 3 minutes ago",        "what": "What it can read",        "everything": {          "label": "Everything you keep in Cotton",          "line": "Saved passwords are never included."        },        "choose": {          "label": "Let me choose",          "line": "Tick only the things it may read."        },        "groups": [          {            "id": "notes",            "label": "Notes",            "line": "Notes, journal, thoughts and saved articles",            "tables": [              "note",              "note_attachment",              "journal_entry",              "thought",              "thought_attachment",              "mood",              "goal",              "page",              "highlight",              "comment"            ],            "on": true          },          {            "id": "calendar",            "label": "Calendar",            "line": "Events, to-dos, alarms and saved places",            "tables": [              "event",              "event_attendee",              "todo",              "todo_recurrence",              "alarm",              "location"            ],            "on": true          },          {            "id": "messages",            "label": "Messages",            "line": "Chats, calls and posts",            "tables": [              "thread",              "thread_member",              "thread_filing",              "thread_mark",              "message",              "message_contact",              "message_contact_handle",              "message_reaction",              "message_receipt",              "message_import",              "outbox",              "call",              "story",              "post"            ],            "on": true          },          {            "id": "recordings",            "label": "Recordings",            "line": "Meetings, voice memos and call notes, with their words",            "tables": [              "meetings_meeting",              "meetings_line",              "meetings_speaker",              "meetings_action",              "meeting",              "meeting_utterance"            ],            "on": true          },          {            "id": "mail",            "label": "Mail",            "line": "Your emails and drafts",            "tables": [              "email_thread",              "email",              "email_draft",              "email_participant"            ],            "on": true          }        ],        "howLong": "For how long",        "howLongLine": "It can read whenever you ask it something, until you stop it in Settings, under Your Claude.",        "settings": "You can see or change this any time in Settings, under Your Claude."      }    },    "pollSeconds": null  },  "timed": {    "card": {      "face": "unlock.card",      "requestId": "seed-timed",      "client": "Claude (claude.ai)",      "tokenName": "Asha's Claude",      "title": "Let Claude (claude.ai) read some of what you keep?",      "reason": "To find the address Asha sent.",      "tables": [        {          "table": "note",          "label": "Notes",          "on": true        },        {          "table": "message",          "label": "Messages",          "on": true        },        {          "table": "event",          "label": "event",          "on": true        }      ],      "minutes": 15,      "durations": [        {          "minutes": 15,          "label": "15 minutes",          "on": true        },        {          "minutes": 60,          "label": "1 hour",          "on": false        },        {          "minutes": 1440,          "label": "1 day",          "on": false        },        {          "minutes": 0,          "label": "Until I turn it off",          "on": false        }      ],      "expiresAt": "2026-11-11T09:05:00Z",      "behind": 0,      "fields": {        "title": "Let Claude (claude.ai) read some of what you keep?",        "asker": "Claude (claude.ai) · Asha's Claude",        "reason": "To find the address Asha sent.",        "toggles": [          {            "table": "note",            "label": "Notes",            "on": true          },          {            "table": "message",            "label": "Messages",            "on": true          },          {            "table": "event",            "label": "event",            "on": true          }        ],        "minutes": "15 minutes",        "durations": [          {            "minutes": 15,            "label": "15 minutes",            "on": true          },          {            "minutes": 60,            "label": "1 hour",            "on": false          },          {            "minutes": 1440,            "label": "1 day",            "on": false          },          {            "minutes": 0,            "label": "Until I turn it off",            "on": false          }        ],        "expires": "Waits 5 more minutes"      },      "acts": [        {          "id": "allow",          "label": "Allow",          "method": "unlock.allow",          "receipt": "Allowed",          "presence": true        },        {          "id": "decline",          "label": "Not now",          "method": "unlock.decline",          "receipt": "Not now",          "presence": false        }      ],      "ask": {        "who": "Asha's Claude · connected 3 days ago",        "what": "What it can read",        "everything": {          "label": "Only what it asked for",          "line": "Notes, Calendar, Messages"        },        "choose": {          "label": "Let me choose",          "line": "Tick only the things it may read."        },        "groups": [          {            "id": "notes",            "label": "Notes",            "line": "Notes, journal, thoughts and saved articles",            "tables": [              "note"            ],            "on": true          },          {            "id": "calendar",            "label": "Calendar",            "line": "Events, to-dos, alarms and saved places",            "tables": [              "event"            ],            "on": true          },          {            "id": "messages",            "label": "Messages",            "line": "Chats, calls and posts",            "tables": [              "message"            ],            "on": true          }        ],        "howLong": "For how long",        "howLongLine": "When the time is up, it will ask you again.",        "settings": "You can see or change this any time in Settings, under Your Claude."      }    },    "pollSeconds": 5  },  "groups": {    "card": {      "face": "unlock.card",      "requestId": "seed-groups",      "client": "Claude (claude.ai)",      "tokenName": "Asha's Claude",      "title": "Let Claude (claude.ai) read some of what you keep?",      "reason": "To find the address Asha sent.",      "tables": [        {          "table": "note",          "label": "Notes",          "on": true        },        {          "table": "event",          "label": "event",          "on": true        },        {          "table": "message",          "label": "Messages",          "on": true        },        {          "table": "meetings_meeting",          "label": "meetings_meeting",          "on": true        },        {          "table": "photo",          "label": "photo",          "on": true        },        {          "table": "story_scene",          "label": "story_scene",          "on": true        },        {          "table": "contact",          "label": "contact",          "on": true        }      ],      "minutes": 15,      "durations": [        {          "minutes": 15,          "label": "15 minutes",          "on": true        },        {          "minutes": 60,          "label": "1 hour",          "on": false        },        {          "minutes": 1440,          "label": "1 day",          "on": false        },        {          "minutes": 0,          "label": "Until I turn it off",          "on": false        }      ],      "expiresAt": "2026-11-11T09:05:00Z",      "behind": 0,      "fields": {        "title": "Let Claude (claude.ai) read some of what you keep?",        "asker": "Claude (claude.ai) · Asha's Claude",        "reason": "To find the address Asha sent.",        "toggles": [          {            "table": "note",            "label": "Notes",            "on": true          },          {            "table": "event",            "label": "event",            "on": true          },          {            "table": "message",            "label": "Messages",            "on": true          },          {            "table": "meetings_meeting",            "label": "meetings_meeting",            "on": true          },          {            "table": "photo",            "label": "photo",            "on": true          },          {            "table": "story_scene",            "label": "story_scene",            "on": true          },          {            "table": "contact",            "label": "contact",            "on": true          }        ],        "minutes": "15 minutes",        "durations": [          {            "minutes": 15,            "label": "15 minutes",            "on": true          },          {            "minutes": 60,            "label": "1 hour",            "on": false          },          {            "minutes": 1440,            "label": "1 day",            "on": false          },          {            "minutes": 0,            "label": "Until I turn it off",            "on": false          }        ],        "expires": "Waits 5 more minutes"      },      "acts": [        {          "id": "allow",          "label": "Allow",          "method": "unlock.allow",          "receipt": "Allowed",          "presence": true        },        {          "id": "decline",          "label": "Not now",          "method": "unlock.decline",          "receipt": "Not now",          "presence": false        }      ],      "ask": {        "who": "Asha's Claude · connected 3 days ago",        "what": "What it can read",        "everything": {          "label": "Only what it asked for",          "line": "Notes, Calendar, Messages, Recordings, Photos, Scripts, Everything else"        },        "choose": {          "label": "Let me choose",          "line": "Tick only the things it may read."        },        "groups": [          {            "id": "notes",            "label": "Notes",            "line": "Notes, journal, thoughts and saved articles",            "tables": [              "note"            ],            "on": true          },          {            "id": "calendar",            "label": "Calendar",            "line": "Events, to-dos, alarms and saved places",            "tables": [              "event"            ],            "on": true          },          {            "id": "messages",            "label": "Messages",            "line": "Chats, calls and posts",            "tables": [              "message"            ],            "on": true          },          {            "id": "recordings",            "label": "Recordings",            "line": "Meetings, voice memos and call notes, with their words",            "tables": [              "meetings_meeting"            ],            "on": true          },          {            "id": "photos",            "label": "Photos",            "line": "Photos, videos, albums and faces to confirm",            "tables": [              "photo"            ],            "on": true          },          {            "id": "scripts",            "label": "Scripts",            "line": "Screenplays you write, scenes and characters",            "tables": [              "story_scene"            ],            "on": true          },          {            "id": "other",            "label": "Everything else",            "line": "Anything you keep that isn't listed above",            "tables": [              "contact"            ],            "on": true          }        ],        "howLong": "For how long",        "howLongLine": "When the time is up, it will ask you again.",        "settings": "You can see or change this any time in Settings, under Your Claude."      }    },    "pollSeconds": 5  },  "several": {    "card": {      "face": "unlock.card",      "requestId": "seed-m1",      "client": "Lane seed-lane-one",      "tokenName": "Lane seed-lane-one",      "title": "Allow Claude Code on mac-c to read Notes?",      "reason": "To find the address Asha sent.",      "tables": [        {          "table": "note",          "label": "Notes",          "on": true        }      ],      "minutes": 15,      "durations": [        {          "minutes": 15,          "label": "15 minutes",          "on": true        },        {          "minutes": 60,          "label": "1 hour",          "on": false        },        {          "minutes": 1440,          "label": "1 day",          "on": false        },        {          "minutes": 0,          "label": "Until I turn it off",          "on": false        }      ],      "expiresAt": "2026-11-11T09:05:00Z",      "behind": 2,      "fields": {        "title": "Allow Claude Code on mac-c to read Notes?",        "asker": "Claude Code on mac-c",        "reason": "To find the address Asha sent.",        "toggles": [          {            "table": "note",            "label": "Notes",            "on": true          }        ],        "minutes": "15 minutes",        "durations": [          {            "minutes": 15,            "label": "15 minutes",            "on": true          },          {            "minutes": 60,            "label": "1 hour",            "on": false          },          {            "minutes": 1440,            "label": "1 day",            "on": false          },          {            "minutes": 0,            "label": "Until I turn it off",            "on": false          }        ],        "expires": "Waits 5 more minutes",        "queue": "2 more requests wait"      },      "acts": [        {          "id": "allow",          "label": "Allow",          "method": "unlock.allow",          "receipt": "Allowed",          "presence": true        },        {          "id": "decline",          "label": "Not now",          "method": "unlock.decline",          "receipt": "Not now",          "presence": false        }      ],      "ask": {        "who": "Claude Code on mac-c",        "what": "What it can read",        "everything": {          "label": "Only what it asked for",          "line": "Notes"        },        "groups": [          {            "id": "notes",            "label": "Notes",            "line": "Notes, journal, thoughts and saved articles",            "tables": [              "note"            ],            "on": true          }        ],        "howLong": "For how long",        "howLongLine": "When the time is up, it will ask you again.",        "settings": "You can see or change this any time in Settings, under Your Claude."      },      "allowAll": {        "label": "Allow all 3",        "line": "Also waiting: Claude Code on mac-d and Claude Code on mac-a",        "requestIds": [          "seed-m1",          "seed-m2",          "seed-m3"        ]      }    },    "pollSeconds": 5  }}