The Mage Extension: Soulbae's Browser Manifestation
Subtitle: The Emissary's Spell Orbit โ 8 Spells for Understanding
Author: privacymage
Date: March 31, 2026
Version: 1.0
"The Mage casts outward โ projecting understanding onto the page."
"Eight spells to understand. Eight bits of sovereign data."
Abstract
The Mage Extension (codenamed mages-spell) is the browser manifestation of Soulbae, the Emissary agent in the dual-agent sovereignty architecture. Operating on the left side of the sovereignty interface, the Mage deals in understanding โ quick reactions, information processing, and spell casting for privacy assertion.
This document describes the Mage Extension's architecture, spell system, control scheme, and integration with the training ground at agentprivacy.ai.
The Emissary's Role
In the dual-agent architecture, the Mage (Soulbae) handles:
- Projection โ Acting publicly using only Swordsman-authorized information
- Understanding โ Processing page content and privacy implications
- Delegation โ Executing coordination tasks on behalf of the First Person
- Spell Casting โ Quick privacy assertions through emoji-based spells
The Mage does NOT inject a canvas overlay. All visual rendering is delegated to the Swordsman, who owns the single canvas. When present together, the Mage sends spell data to the Swordsman for unified rendering.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SOVEREIGNTY INTERFACE โ
โ โ
โ LEFT SIDE RIGHT SIDE โ
โ โโโโโโโโโ โโโโโโโโโโ โ
โ โ
โ MAGE SWORDSMAN โ
โ (Emissary) (Master) โ
โ ๐ง โ๏ธ โ
โ โ
โ Left Click Right Click โ
โ Tap = Cast Hold = Stance โ
โ Hold = Orbit Release = Cast โ
โ โ
โ 8 SPELLS 7 SWORDS โ
โ (6 + 2) (6 + 1) โ
โ โ
โ Sequential Holistic โ
โ Action-oriented Spatial โ
โ High frequency Low frequency โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The Control Scheme
Brain Hemisphere Mapping
The Mage operates on the left brain paradigm:
| Cognitive Mode | Mage Characteristic |
|---|---|
| Sequential | Spell-by-spell casting |
| Logical | Privacy rule application |
| Action-oriented | Quick response to trackers |
| Language | Proverb invocation |
Mouse Interaction
| Action | Result |
|---|---|
| Left-click tap | Cast last selected spell |
| Left-click hold | Show spell orbit menu (6 spells) |
| Release after hold | Cast selected spell |
| M key | Open spell editor |
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| M | Open spell editor |
| Ctrl+Shift+1-6 | Quick cast orbit spell 1-6 |
| Ctrl+Shift+7-8 | Quick cast reserve spell 1-2 |
The Eight Spells
The Mage wields 8 spells โ the number of bits in a byte, the number of I Ching trigrams, the number of directions. 8 spells = 1 byte of sovereign data.
Distribution: 6 Orbit + 2 Reserve
8 = 6 orbit + 2 reserve
โฆ Orbit (active) โฆ Reserve (swappable)
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ
๐ก๏ธ Shield ๐ Crystallize
๐๏ธ Insight ๐ Proverb
๐ Seal
โจ Clarity
๐ฅ Purge
๐ Shadow
Radial Geometry
The orbit menu displays 6 spells in hexagonal symmetry โ 60ยฐ per segment, optimal for radial selection:
Shield ๐ก๏ธ
โ
Shadow โ Insight
๐ โฒ โ โฑ ๐๏ธ
โฒ โ โฑ
โฒ โ โฑ
โโโโโโโโโ[โฆ]โโโโโโโโโ
โฑ โ โฒ
โฑ โ โฒ
๐ฅ โฑ โ โฒ ๐
Purge โ Seal
โ
Clarity โจ
Yang-Yin Balance
The 8 spells maintain perfect equilibrium:
| Yang (Assertive) | Yin (Receptive) |
|---|---|
| ๐ก๏ธ Shield | ๐๏ธ Insight |
| ๐ Seal | โจ Clarity |
| ๐ฅ Purge | ๐ Shadow |
| ๐ Crystallize | ๐ Proverb |
4 yang + 4 yin = perfect equilibrium
Spell Definitions
Orbit Spells (Active)
๐ก๏ธ Shield โ Defensive Ward
- Yang โ Assertive protection
- MyTerms Mapping:
DO_NOT_TRACK - Grimoire Reference: Act IV โ The Blade Stands Alone
- Proverb: "The blade stands alone so that others may stand together."
- Effect: Assert do-not-track preference to the page
๐๏ธ Insight โ Reveal Hidden
- Yin โ Receptive awareness
- MyTerms Mapping:
SELECTIVE_DISCLOSURE - Grimoire Reference: Act VII โ The Mirror
- Proverb: "The mirror shows not what we wish, but what we are."
- Effect: Illuminate hidden trackers and dark patterns
๐ Seal โ Lock Access
- Yang โ Assertive boundary
- MyTerms Mapping:
DATA_MINIMISATION - Grimoire Reference: Zero Tale 1
- Proverb: "To prove without revealing is the first magic."
- Effect: Minimize data shared with the page
โจ Clarity โ Illuminate
- Yin โ Receptive understanding
- MyTerms Mapping:
TRANSPARENCY_REQUEST - Grimoire Reference: Act XVII โ Bonfire in the Dark Forest
- Proverb: "In the dark forest, the bonfire reveals both friend and foe."
- Effect: Request transparency about data practices
๐ฅ Purge โ Clear Tracking
- Yang โ Assertive cleansing
- MyTerms Mapping:
COOKIE_ESSENTIAL_ONLY - Grimoire Reference: Act XII โ The Right to Forget
- Proverb: "To forget is not weakness but sovereignty over memory."
- Effect: Clear tracking cookies, keep only essential
๐ Shadow โ Obscure Identity
- Yin โ Receptive concealment
- MyTerms Mapping:
DO_NOT_SELL - Grimoire Reference: Act IX โ The Zcash Shield
- Proverb: "The shield is not armor but absenceโyou cannot strike what is not there."
- Effect: Assert do-not-sell preference, obscure identity
Reserve Spells (Swappable)
๐ Crystallize โ Lock State
- Yang โ Assertive preservation
- MyTerms Mapping:
CONSTELLATION_LOCK - Grimoire Reference: Act XXIV โ The Holographic Bound
- Proverb: "The holographic bound holds all parts in each part."
- Effect: Lock current constellation state for verification
๐ Proverb โ Invoke Wisdom
- Yin โ Receptive invocation
- MyTerms Mapping:
PROVERB_INVOCATION - Grimoire Reference: Act XIII โ The Book of Promises
- Proverb: "The book of promises binds without chains."
- Effect: Invoke grimoire wisdom for current context
Extended Spell Library
Beyond the default 8, the Mage can unlock additional spells through training:
| Spell | Emoji | Source | Unlock Condition |
|---|---|---|---|
| Proof | ๐ฎ | Zero Knowledge | Path unlocked |
| Guardian | ๐๏ธ | Canon | Path unlocked |
| Coordinate | โฟป | Plurality | Path unlocked |
| Exit | ๐ช | Society | Path unlocked |
| Dragon | ๐ | Story | 5+ spells learned |
| Hexagram | โฐ | Story | Path unlocked |
Training Ground Integration
Repertoire Sync
The Mage syncs with the training ground at agentprivacy.ai:
โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ
โ TRAINING โ โ MAGE โ
โ GROUND โ โ EXTENSION โ
โ (Website) โ โ (Browser) โ
โโโโโโโโโโฌโโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโโ
โ โ
โ localStorage sync โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ agentprivacy_spell_repertoire
โ โ
โ postMessage broadcast โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโบโ
โ SPELL_CAST, ORB_CONVERGENCE
โ โ
Sync Data Flow
Website โ Extension:
- Learned spells from training
- Training progress (sections visited, spells cast)
- Path unlock status
- Drake spell unlock status
Extension โ Website:
- Spell cast events
- Orb convergence notifications
- Constellation updates
- Mage presence announcements
Storage Keys
| Key | Location | Purpose |
|---|---|---|
agentprivacy_spell_repertoire |
localStorage | Training data (website-owned) |
mage_spell_loadout |
chrome.storage | Current loadout (extension-owned) |
mage_cast_history |
chrome.storage | Cast history (extension-owned) |
Constellation System
The Mage maintains a constellation of cast spells โ a visual representation of sovereignty assertions accumulated on the page.
Spell Nodes
Each spell cast creates a SpellNode in the constellation:
interface SpellNode {
id: string
spell: {
type: 'emoji' | 'proverb' | 'keyword' | 'hexagram'
content: string
yangYin: 'yang' | 'yin'
grimoireId?: string
}
x: number
y: number
opacity: number
pulse: number
castAt: number
}
Pattern Detection
The constellation system detects emerging patterns:
- Trigram formations โ 3 aligned spells
- Hexagram completions โ 6 spells in I Ching formation
- Yang clusters โ Assertive spell concentrations
- Yin pools โ Receptive spell concentrations
Rendering Delegation
The Mage does NOT render the constellation directly. Instead, it sends constellation data to the Swordsman:
sendToSword({
type: 'CONSTELLATION_UPDATE',
nodes: constellationState.nodes,
edges: constellationState.edges,
patterns: constellationState.patterns
})
Hexagram State Machine
The Mage maintains a 6-bit hexagram state based on the I Ching:
โโโโโฌโโโโฌโโโโฌโโโโฌโโโโฌโโโโ
โ 1 โ 0 โ 1 โ 0 โ 1 โ 0 โ โ Binary lines
โโโโโดโโโโดโโโโดโโโโดโโโโดโโโโ
โ โด โ โด โ โด โ Yang/Yin visualization
Mutation Rules
The hexagram mutates based on spell casting:
| Event | Mutation |
|---|---|
| Yang spell cast | Flip random yin line to yang |
| Yin spell cast | Flip random yang line to yin |
| Orb convergence | Flip 2 random lines |
| Pattern completion | Reset to resonant hexagram |
Deep Scan System
The Mage performs deep page scanning to identify privacy threats:
Scan Targets
| Target | Detection Method |
|---|---|
| Trackers | Script pattern matching |
| Cookie banners | DOM element detection |
| Forms | Input field analysis |
| Privacy links | Anchor text matching |
| Dark patterns | UI manipulation detection |
Attractor System
Detected threats become attractors that influence the Mage orb's movement:
interface Attractor {
x: number
y: number
strength: number
type: 'tracker' | 'form' | 'cookie-banner' | 'privacy-link'
}
The orb is drawn toward attractors, visualizing where privacy attention is needed.
Home Territory Mode
On home territory domains (agentprivacy.ai, spellweb), the Mage activates enhanced features:
Enhanced Capabilities
| Capability | Description |
|---|---|
| Repertoire sync | Read training progress from localStorage |
| Spell broadcast | Notify website of spell casts |
| Orb convergence | Participate in dual-orb ceremonies |
| Mana tracking | Earn/spend proof-of-practice tokens |
Message Protocol
// Extension โ Website
{ type: 'MAGE_PRESENT', domain, orbPosition, capabilities }
{ type: 'SPELL_CAST', spellId, content, emoji, position, section }
{ type: 'ORB_CONVERGENCE', count, timestamp }
// Website โ Extension
{ type: 'REPERTOIRE_SYNC', repertoire }
{ type: 'PATH_UNLOCKED', progress }
{ type: 'MANA_EARNED', amount, reason }
Technical Architecture
Module Structure
mages-spell/
โโโ src/
โ โโโ lib/
โ โ โโโ spell-types.ts # Type definitions
โ โ โโโ spell-definitions.ts # 8 spell definitions
โ โ โโโ repertoire-sync.ts # Training ground sync
โ โ โโโ index.ts # Clean exports
โ โโโ content/
โ โ โโโ index.ts # Content script
โ โโโ background/
โ โ โโโ service-worker.ts # Background service
โ โโโ popup/
โ โโโ index.tsx # Popup UI
โโโ manifest.json # Extension manifest
โโโ package.json
Key Interfaces
interface MageSpell {
id: string
name: string
emoji: string
emojiSequence?: string
description: string
yangYin: 'yang' | 'yin'
slot: 'orbit' | 'reserve'
grimoireId?: string
spellbook?: SpellbookSource
proverb?: string
myTermsMapping: string
weight: number
color?: string
glowColor?: string
}
interface MageLoadout {
version: 2
orbitSpells: MageSpell[] // 6 active spells
reserveSpells: MageSpell[] // 2 reserve spells
lastSelected: number
hexagramState?: HexagramSnapshot
}
Spell Mathematics
The number 8 represents:
| Symbol | Meaning |
|---|---|
| 8 bits | 1 byte of sovereign data |
| 8 trigrams | โฐโฑโฒโณโดโตโถโท โ I Ching fundamentals |
| 8 directions | Cardinal + ordinal orientation |
| Octave | Completion of cycle, return at higher level |
The Ratio
Mage : Swordsman = 8 : 7
8/7 โ 1.142857142857...
The repeating decimal 142857 is the "cyclic number"
โ multiply by any digit 1-6 and get the same digits rotated
This ratio creates asymmetric harmony:
- The slight excess of Mage spells reflects the emissary's reactive nature
- More options for quick response
- Balances the Swordsman's deliberate constancy
Integration with Swordsman
When both extensions are present, they form a dual-orb ceremony:
Discovery Protocol
1. Mage broadcasts: { type: 'MAGE_PING' }
2. Swordsman responds: { type: 'SWORD_PONG', orbPosition }
3. Mage sends constellation data
4. Swordsman renders unified view
5. Orbs can now converge for ceremonies
Convergence Ceremonies
When Mage and Swordsman orbs overlap:
| Ceremony | Trigger | Effect |
|---|---|---|
| Dual Convergence | Orbs touch | Mutual hexagram mutation |
| Spell Exchange | Hold during convergence | Swap spell/stance data |
| Bilateral Witness | Extended convergence | Generate shared proof |
The Mage's Proverb
"The Mage deals in information and understanding. 8 spells = 8 bits = one byte of sovereign data. Cast quickly, cast often. The emissary acts so that the master may deliberate."
Document Metadata
- Project: 0xagentprivacy
- Extension: mages-spell
- Version: 1.0
- Date: March 31, 2026
- Companion: SWORDSMAN_EXTENSION_WHITEPAPER.md
- Control Scheme: CONTROL_SCHEME_MATHEMATICS.md
"Eight spells to understand. The emissary acts often."
Privacy is Value
ยฉ 2026 agentprivacy
Assets
Navigation
โ Welcome Visitors ยท The Papers