惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
The Cloudflare Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
I
InfoQ
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
H
Help Net Security
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Replace RBAC with Chemical Compounds
Sui Gn · 2026-06-04 · via DEV Community

Sui Gn

Set-Chemistry

Permissions tables are technical debt.

The Primitive: Routes Are Compounds
Only those holding mutual .me refs + keys can derive the route.

For everyone else, the path doesn’t 403. It doesn’t exist.

Each added .me forges a fresh compound with its own resolution surface — private by construction, visible only to those holding the mutual keys.

You + Wife = New Compound
Route = A ∩ B ∩ Keys

If you’re not in the intersection: no route, no data, no attack surface.
Pure emergent, sovereign topology.

Enter fullscreen mode Exit fullscreen mode

The ciphertext is the boundary.

The Math: I = (path, ciphertext, T, A, C)
Every island of state is described by:

T = {office, iphone, backup}  // Topology: where it exists
A = {me, wife}   // Audience: who can interpret it  
C = {read, delete}   // Capability: what you can do

Enter fullscreen mode Exit fullscreen mode

The axiom: Encryption doesn’t define where the data is. It defines who can collapse its meaning.

// Replicated everywhere
T = {office, iphone, backup}
// Decryptable by two identities
A = {me, wife} 
// Result: widely distributed, narrowly perceived

Enter fullscreen mode Exit fullscreen mode

Access isn’t checked. You either intersect with A or you get nothing.

Sharing    = A  {bob}  // add bob to audience
Revocation = A \ {bob}  // remove bob  
Delegation = expand A   // all enforced by crypto

Enter fullscreen mode Exit fullscreen mode

Before RBAC vs After Set-Chemistry

*Before: * RBAC Hell

SELECT * FROM documents 
JOIN permissions ON documents.id = permissions.doc_id
JOIN user_roles ON permissions.role_id = user_roles.role_id  
WHERE user_roles.user_id = ? AND permissions.action = 'read'

-- + Redis cache
-- + Kafka invalidation  
-- + Cron job for expiry
-- + Pray

Enter fullscreen mode Exit fullscreen mode

After: Set-Chemistry

me.wallet["_"].secret = "seed"
// A = {self} by construction
// Path doesn't exist for others. No query. No check. No leak.

Enter fullscreen mode Exit fullscreen mode

Why This Kills RBAC for Agents

Agents need subspaces, not firehoses. friends[age > 18] should be resolvable only by callers in A.

In Set-Chemistry, the boundary is the data structure:

me.objects.canister7.type = "medical"
me.robots.surgeon.context["->"]("contexts.hospital")
me.robots.loader.context["->"]("contexts.warehouse")

me.robots.surgeon.canProceed // checks sterile, contaminated
me.robots.loader.canProceed  // checks weight < 50

// Same object. Different meaning. Zero if-else.

Enter fullscreen mode Exit fullscreen mode

Change sterile(true) → only hospital robots recompute. O(K), not O(N).

Benchmark: 1M node graph. 6 dependents recompute in 0.256ms. Rest untouched.

npm install this.me