--- title: "From the Rule of 7 to a Self-Healing Knowledge Tree" permalink: /futureproof/rule-of-7-self-healing-knowledge-tree/ description: "This weekend's session was a breakthrough. We've moved from a vague principle—the 'Rule of 7'—to a concrete, multi-phase technical plan that feels both powerful and achievable. The key was realizing we can use vector embeddings and hierarchical clustering to *discover* the natural, nested structure of my content instead of just imposing one. I'm seeing a clear path to fixing my own website's SEO issues, but more importantly, this feels like the core engine for Pipulate's own self-organization. It's a righteous feedback loop, and I need to get this thinking embedded directly into the tool's homepage so I can live it every day." meta_description: A design dialogue on creating a self-healing information architecture using the Rule of 7, vector embeddings, and hierarchical clustering in SQLite. meta_keywords: Rule of 7, vector embedding, hierarchical clustering, information architecture, cognitive load, SQLite JSON, idempotent, data labeling, denormalization, semantic search, AI collaboration, dendrogram, small world theory, Pipulate layout: post sort_order: 5 --- ## Setting the Stage: Context for the Curious Book Reader This entry captures a live-wire moment in the development of Pipulate, a local-first automation tool designed for deep interaction with AI. The author is grappling with a foundational challenge in information architecture: how to organize a large and growing body of knowledge—be it files in a code repository or articles on a website—without overwhelming the user, whether human or AI. The exploration is guided by a core philosophy called the **"Rule of 7,"** a principle inspired by cognitive science suggesting that presenting 5 to 9 choices at any given point is optimal for decision-making. What begins as a philosophical musing quickly evolves into a sophisticated technical design session with an AI partner. This dialogue traces the journey from a simple concept to a robust system blueprint involving **vector embeddings** and hierarchical clustering. It's a transparent look at how an abstract principle can be systematically translated into a concrete, self-healing data architecture, offering a unique window into the process of co-designing intelligent systems with AI itself. --- ## The Core Principle: Avoiding Cognitive Overload with the Rule of 7 The Rule of 7 should pervade all things by virtue of how well it always fits into the "now moment" — presenting just the right amount so that you can immediately make a good choice. This is equally true for `ls`'ing the root directory of a git repo or looking at the contents of the `