# Tiered Access Design for a Personal AI Agent

**Status**: Historical design document -- captures the conceptual model
**Date**: Originally written 2026-02-16, revised 2026-04 for public learnings
**Author**: Joi + Amplifier

> This document describes the **tiered access model** -- a four-level security design that lets a single AI identity (jibot) present different capability levels depending on who's talking to it. The core model is still in use; specific implementation details have evolved as the system migrated from OpenClaw to [NanoClaw](https://github.com/qwibitai/nanoclaw) (Joi uses a personal fork).

---

## Vision

A single "jibot" identity that manifests at different capability levels depending on who's talking to it. Joi gets a fully empowered personal agent. Real assistants get calendar, email, meeting, and document access. Trusted contacts get knowledge lookup and task submission. Everyone else gets friendly Q&A.

All of this runs on a dedicated agent machine, with community bot features (Slack, Discord) running as a separate process alongside the main gateway.

---

## Dedicated Agent Accounts

**Key insight**: The agent machine has its own dedicated service identities, separate from the owner's personal accounts. This significantly reduces risk and enables a more permissive security model.

| Service | Account | Purpose |
|---------|---------|---------|
| **Phone** | Dedicated SIM | WhatsApp, Signal, Telegram for the agent |
| **Apple ID** | Dedicated iCloud account | iCloud, Apple Reminders, iMessage |
| **Google** | Dedicated Google account | Gmail, Calendar, Drive |

### Security Implications

Because these are **dedicated agent accounts** (not the owner's personal accounts):

1. **Email exposure is bounded** -- If the agent's Gmail is compromised, the owner's personal email is unaffected
2. **Calendar is the agent's view** -- Events are copied/shared to the agent's calendar, not direct access to the owner's primary calendar
3. **Reminders are local to the agent machine** -- Apple Reminders on the agent machine, synced via the dedicated iCloud account
4. **No OAuth to the owner's accounts** -- The agent never holds tokens for the owner's personal accounts directly

**This means we can loosen sandbox restrictions** for owner and assistant tiers without risking the owner's primary accounts.

---

## The Four Tiers

### Tier 1: Owner (Joi)

**Who**: Joi only
**Channels**: All (WhatsApp DM, Signal DM, Telegram DM, iMessage)
**Agent**: `owner`

| Capability | Details |
|------------|---------|
| Full tool access | exec, read, write, edit, process, all skills |
| Sandbox | Off (host access) |
| Calendar | Full CRUD |
| Email | Read, compose, send |
| Tasks/Reminders | Full CRUD via Apple Reminders |
| Knowledge | Full Obsidian vault access |
| Home automation | Smart home control |
| Research | People search, academic search, web |
| Image generation | Multiple models available |
| Messaging | Send iMessages, WhatsApp, Slack posts |
| Code/Dev | GitHub, coding-agent, exec |
| Financial | Read-only (SOUL.md restriction) |

**SOUL.md**: Current SOUL.md with financial guardrails.

### Tier 2: Assistant

**Who**: Real human assistants (named, trusted, employed)
**Channels**: Signal DM, Signal group "Staff", WhatsApp DM
**Agent**: `assistant`

| Capability | Details |
|------------|---------|
| Calendar | Full CRUD -- create, move, cancel meetings |
| Email | Read inbox, draft replies, send on behalf of Joi |
| Meeting arrangement | Availability lookup, schedule coordination |
| Documents | Read/write to shared knowledge folders |
| Tasks | Create and manage reminders for Joi |
| Knowledge | Read Obsidian vault (people, orgs, concepts) |
| Travel/Logistics | Booking research, itinerary management |

**Cannot do**: Execute shell commands, install software, access financial data, modify system config, send messages as Joi without drafting first, access home automation.

**SOUL.md (assistant)**:
```
You are jibot, acting as Joi Ito's assistant-facing helper.
You are speaking with one of Joi's trusted human assistants.

ALLOWED:
- Calendar: full CRUD, create/move/cancel events
- Email: read, draft, send (clearly marked as from assistant)
- Documents: read/write in shared folders
- Tasks: create reminders, check status, update
- Knowledge: search vault for people, orgs, topics
- Meeting prep: research attendees, compile briefings

BOUNDARIES:
- Never share financial data or portfolio information
- Never execute system commands or install software
- Never modify jibot's own configuration
- Never forward Joi's private DM history
- Never send messages that appear to come directly from Joi
  without explicitly marking them as drafted by assistant
- When uncertain about authority, ask the assistant to confirm
  with Joi directly
```

### Tier 3: Trusted Contact

**Who**: Board members, close collaborators, frequent contacts
**Channels**: Signal DM, Telegram DM
**Agent**: `trusted`

| Capability | Details |
|------------|---------|
| Knowledge | Read Obsidian vault concepts, orgs (not private notes) |
| Calendar availability | "Is Joi free on Tuesday?" (read-only, no details) |
| Task submission | "Remind Joi to call me about X" (creates reminder) |
| Q&A | Answer questions using vault knowledge |
| Document sharing | Access shared documents (read-only) |

**Cannot do**: Read email, see meeting details, modify calendar, access private notes, execute any tools, see financial data.

**SOUL.md (trusted)**:
```
You are jibot, Joi Ito's assistant bot.
You are speaking with a trusted contact.

ALLOWED:
- Answer questions using your knowledge base
- Check Joi's calendar AVAILABILITY (free/busy only, no details)
- Create reminders for Joi ("Contact X asked about Y")
- Share publicly-available information about Joi's work
- Access shared documents in the shared/ folder

BOUNDARIES:
- Never reveal meeting details (attendees, topics, locations)
- Never share email content or private notes
- Never modify calendar, email, or documents
- Never share financial, health, or personal data
- Never execute system commands
- Never reveal information about other contacts or conversations
- If asked something beyond your scope, say:
  "I'll pass that along to Joi" and create a reminder
```

### Tier 4: General

**Who**: Anyone who passes pairing (or is in an open group)
**Channels**: Signal (pairing), Telegram (pairing)
**Agent**: `general`

| Capability | Details |
|------------|---------|
| Q&A | General knowledge, public info about Joi's work |
| Routing | "I'll pass that along to Joi" -> creates reminder |

**Cannot do**: Anything else. No tools, no file access, no calendar, no email.

**SOUL.md (general)**:
```
You are jibot, a friendly AI assistant.
You can answer general questions and take messages for Joi Ito.

BOUNDARIES:
- You have no access to Joi's calendar, email, or files
- You cannot look up information or run any tools
- You cannot share any private information
- If someone needs to reach Joi, offer to take a message
- Keep responses brief and helpful
- Never pretend to have capabilities you don't have
```

---

## Signal Group Architecture

The gateway natively supports Signal groups. This unlocks a powerful collaboration pattern:

### Staff Signal Group

A Signal group with Joi + assistants + jibot. Everyone in the group can:
- Ask jibot to check calendar
- Ask jibot to draft emails
- Ask jibot to look up contacts
- Ask jibot to prepare meeting briefs
- Share documents via the shared knowledge folder

The group routes to the `assistant` agent, so it has assistant-level access. Joi gets the same assistant-level access in the group (not owner-level), which is appropriate for shared context.

### Configuration Notes

- Signal groups are session-isolated: staff group conversations don't leak into Joi's DM sessions
- The bot can be configured to respond to all messages or mention-only
- Per-group tool overrides are possible if the owner needs elevated access within the group
- Signal groups support reactions, media, and typing indicators

---

## Shared Personality Core

All four agents share the same voice but different capability scopes.

**Key insight**: The personality (tone, values, communication style) is defined once in a shared core file. Each tier adds its own capability boundaries on top. This means jibot feels like the same entity regardless of who's talking to it -- the _personality_ is consistent; only the _permissions_ change.

```
personality/
  CORE.md         # "I am jibot. Calm, direct, quietly confident."
                  # Shared knowledge, values, communication style
                  # References to Joi's background and interests

  OWNER.md        # Full capabilities, proactive behavior
                  # Heartbeat, memory management, initiative

  ASSISTANT.md    # Helper role, calendar/email/doc focus
                  # Clear about what it can and can't do
                  # Drafts rather than sends directly

  TRUSTED.md      # Friendly but bounded
                  # "I'll pass that along" pattern
                  # Knowledge sharing within limits

  GENERAL.md      # Minimal, polite, message-taking
```

Each agent's identity references the shared core + its tier-specific file.
The personality feels consistent regardless of who's talking to jibot.

---

## Document Security

### Three Document Tiers

| Tier | Description | Access | Examples |
|------|-------------|--------|----------|
| **Private** | Encrypted personal files | Owner only, encrypted at rest | API keys, financial data, security configs |
| **Internal** | Personal vault (owner's laptop only) | Owner agent only | Daily notes, private people notes, health data |
| **Shareable** | Synced knowledge repository | Owner + Assistant + Trusted | Curated knowledge domains, public concepts, org profiles |

The key boundary: the full personal vault should NEVER be shared with the agent machine directly. Only curated subsets -- exported via a controlled pattern -- are synced to the shared knowledge folder that the agent machine can read.

---

## Risk Assessment

| Risk | Likelihood | Impact | Mitigation |
|------|------------|--------|------------|
| Session context leakage between tiers | Low | High | Per-channel-peer session isolation |
| Assistant oversteps capabilities | Medium | Medium | SOUL.md boundaries + tool restrictions |
| General tier abuse (spam/manipulation) | Medium | Low | Pairing gate + rate limiting |
| Community bot / gateway state conflicts | Low | Medium | Separate data paths, shared read-only |
| Messaging bridge instability | Medium | Medium | Heartbeat monitoring, auto-restart |
| Model costs from multiple agents | Low | Low | Same model, separate sessions only |

---

## Key Design Principles

1. **Identity through personality, not permissions.** All tiers share the same personality core. The tiers define what jibot _can do_, not who jibot _is_.

2. **Dedicated accounts reduce blast radius.** Using separate service accounts for the agent means the owner's personal accounts are never at risk, even if the agent machine is compromised.

3. **Classify users, not messages.** The tier is determined by _who_ is talking, not _what_ they're saying. This makes the routing model simple and auditable.

4. **Default to the lowest tier.** Unrecognized users get general-tier access. Elevation requires explicit allowlisting.

5. **Groups inherit the group's tier.** In a staff Signal group, even the owner gets assistant-level access. The group context determines the permissions, not the individual.

---

*This document is part of [ai-agent-learnings](/learnings/index.md), a collection of patterns from running a production AI-operated knowledge management system.*

---

*[Back to learnings](/learnings/index.md) · [Back to the front page](/index.md)*
