---
title: "Add a Taste Preferences Table to Your Open Brain"
type: "guide"
label: "Guide"
project: "**Your Most Valuable AI Skill Is Saying No"
---

# Add a Taste Preferences Table to Your Open Brain

# Add a Taste Preferences Table to Your Open Brain

## An Open Brain Extension Guide

You've been using your Open Brain to capture thoughts. This guide adds a second table — `taste_preferences` — built specifically to store what you've learned about your own standards and constraints.

Why a separate table? The `thoughts` table is a stream. Taste preferences are a registry. They get queried differently, updated deliberately, and should be browsable without semantic search. One clean table, purpose-built for the job.

**Before you start:** You need a working Open Brain installation. If you haven't done that yet, start with the [Complete Setup Guide](https://promptkit.natebjones.com/20260224_uq1_guide_main). This guide assumes your `thoughts` table exists and your MCP server is running.

**Time required:** About 10 minutes.

---

## What You're Adding

A `taste_preferences` table in your Supabase database with six fields:

| Field | What it stores |
|---|---|
| `id` | Auto-generated UUID |
| `preference_name` | Short label (e.g., "No hedge language") |
| `domain` | Where this applies (writing, code, strategy, etc.) |
| `reject` | The specific thing to avoid |
| `want` | What to do instead |
| `constraint_type` | domain rule / quality standard / business logic / formatting |
| `created_at` | When you added it |

---

## Step 1: Run the Migration

Open your Supabase dashboard → **SQL Editor → New query**. Paste and run:

```sql
-- Create the taste_preferences table
create table taste_preferences (
  id uuid default gen_random_uuid() primary key,
  preference_name text not null,
  domain text not null default 'general',
  reject text not null,
  want text not null,
  constraint_type text not null default 'quality standard'
    check (constraint_type in ('domain rule', 'quality standard', 'business logic', 'formatting')),
  created_at timestamptz default now()
);

-- Index for filtering by domain
create index on taste_preferences (domain);

-- Index for filtering by constraint type
create index on taste_preferences (constraint_type);

-- Lock it down (same policy as thoughts table)
alter table taste_preferences enable row level security;

create policy "Service role full access"
  on taste_preferences
  for all
  using (auth.role() = 'service_role')
  with check (auth.role() = 'service_role');
```

**Verify it worked:** Table Editor should now show `taste_preferences` alongside `thoughts`.

---

## Step 2: Add Your First Preferences

You have two options. Use whichever fits your workflow.

### Option A: Table Editor (simplest)

In the Supabase dashboard → **Table Editor → taste_preferences → Insert row**.

Fill in each field. Example row:

| Field | Example value |
|---|---|
| preference_name | No hedge language |
| domain | writing |
| reject | Phrases like "perhaps," "you might consider," "it could be argued" |
| want | Direct assertions. If uncertain, say so once clearly, then move on. |
| constraint_type | quality standard |

Repeat for each preference you've identified. Takes about 30 seconds per row.

### Option B: SQL Insert

If you have several preferences ready (e.g., from running the Mine Your Taste prompt kit), paste them all at once:

```sql
insert into taste_preferences (preference_name, domain, reject, want, constraint_type)
values
  (
    'No hedge language',
    'writing',
    'Phrases like "perhaps," "you might consider," "it could be argued"',
    'Direct assertions. If uncertain, say so once clearly, then move on.',
    'quality standard'
  ),
  (
    'Specificity over scope',
    'writing',
    'Broad claims without examples ("AI is transforming everything")',
    'One concrete example that proves the point, then the claim',
    'domain rule'
  );
-- Add more rows as needed
```

---

## Step 3: Query Your Preferences

Your preferences are now queryable directly from the Supabase dashboard or via your MCP connection.

### Browse everything

```sql
select preference_name, domain, constraint_type
from taste_preferences
order by domain, constraint_type;
```

### Filter by domain

```sql
select *
from taste_preferences
where domain = 'writing';
```

### Pull all as a system prompt block

This query formats your entire preference library as a single block you can copy and paste into any AI's system prompt:

```sql
select string_agg(
  '**' || preference_name || '**' || E'\n' ||
  'Reject: ' || reject || E'\n' ||
  'Want: ' || want,
  E'\n\n'
  order by domain, constraint_type
)
from taste_preferences;
```

Copy the single cell output, paste it into any AI's system prompt or project instructions. You now have your taste profile wired directly into your AI.

---

## Step 4: Keep It Current

Your preferences will evolve. When you catch yourself correcting AI output, take 60 seconds to add the constraint:

1. Name what you rejected (Reject field)
2. Name what you actually wanted (Want field)
3. Pick a domain and type
4. Insert the row

The Mine Your Taste prompt kit (companion to this guide) is the fastest way to do a bulk audit. Run it periodically — quarterly is probably right — and use Table Editor or SQL to add whatever surfaces.

---

## Troubleshooting

**SQL error on the check constraint:** Some older Supabase projects have a quirk with inline check constraints. If you hit an error, try this alternative syntax:

```sql
alter table taste_preferences
  add constraint valid_constraint_type
  check (constraint_type in ('domain rule', 'quality standard', 'business logic', 'formatting'));
```

**Can't find Table Editor:** In the left sidebar, look for the grid icon labeled "Table Editor" — it's near the top. If your sidebar is collapsed, click the hamburger menu first.

**RLS blocking your inserts:** Make sure you're using the service role key (not the anon/publishable key) when connecting. The policy only grants access to the service role. In the dashboard's SQL Editor, you're automatically authenticated as the service role — inserts will work fine there.

---

*This guide is an extension of the Open Brain system built by Nate B. Jones.*
*[Open Brain Setup Guide](https://promptkit.natebjones.com/20260224_uq1_guide_main) · [Mine Your Taste Prompt Kit](https://promptkit.natebjones.com/20260302_8db_promptkit_2)*
