shivya 0.4.0

Consensus-free distributed resource-sharing mesh for edge fleets, pairing discrete exterior calculus with hierarchical active inference.
Documentation
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shivya: Consensus-Free Distributed Resource-Sharing Mesh | Manifesto</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --bg-color: #F9FAFB;
            --card-bg: #FFFFFF;
            --text-primary: #111827;
            --text-secondary: #4B5563;
            --border-color: #E5E7EB;
            --accent-color: #4F46E5;
        }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-primary);
            line-height: 1.6;
            padding: 2rem;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 3rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }
        .back-link {
            display: inline-block;
            margin-bottom: 2rem;
            color: var(--accent-color);
            text-decoration: none;
            font-weight: 600;
            font-family: 'Outfit', sans-serif;
        }
        header { margin-bottom: 2.5rem; }
        h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.4rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 0.5rem;
        }
        p { margin-bottom: 1.25rem; color: var(--text-secondary); }
        blockquote {
            border-left: 4px solid var(--accent-color);
            padding-left: 1rem;
            margin: 1.5rem 0;
            font-style: italic;
            color: var(--text-secondary);
        }
        ul { margin-left: 1.5rem; margin-bottom: 1.25rem; color: var(--text-secondary); }
        li { margin-bottom: 0.5rem; }
        footer {
            margin-top: 3rem;
            border-top: 1px solid var(--border-color);
            padding-top: 1.5rem;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }
    </style>
</head>
<body>
    <div class="container">
        <a class="back-link" href="index.html">← Back to Home</a>
        <header>
            <h1>The Shivya Manifesto</h1>
            <p>A Consensus-Free Distributed Resource-Sharing Mesh</p>
        </header>

        <section>
            <h2>1. The Fall of Logical Time</h2>
            <p>
                For decades, distributed systems have been built on a lie: that there exists a single, objective sequence of events called "Time." We have spent billions of dollars on atomic clocks, global coordinators, and locking algorithms to force our software to agree on a sequential, linear history.
            </p>
            <p>
                This linear history is a dualistic construct. It separates "correct" transactions from "incorrect" ones, "winning" branches from "losing" ones. It requires a central authority or a distributed consensus committee to declare what is true.
            </p>
            <p>
                But in the physical universe, time is relative. There is no global clock. There are only local interactions, causal relationships, and energy gradients. Information flows through the universe like water flowing through a manifold, naturally finding its path of least resistance and self-healing when blocked.
            </p>
            <p>
                SHIVYA is the realization of this physical truth in software.
            </p>

            <h2>2. Reconciliation Instead of Election</h2>
            <p>
                Shivya does not fight conflict by voting; it dissolves it geometrically.
            </p>
            <p>
                Truth is not a static variable stored in a database cell. Truth is a continuous <strong>flow</strong> across a causal manifold. When two peers perform concurrent operations in a partition, they are not creating "conflicting histories" that must be resolved by throwing one away. They are simply curving the state space.
            </p>
            <p>
                By applying the <strong>Hodge Decomposition</strong>, we separate:
            </p>
            <ul>
                <li>The <strong>Exact gradient flow</strong> (the clean, non-conflicting accumulation of state mutations).</li>
                <li>The <strong>Coexact curl flow</strong> (the rotational tension created by concurrent operations).</li>
            </ul>
            <p>
                Reconciliation is the process of projecting out the curl flow, allowing the state potentials to settle back into a flat, harmonious gradient. Just as a biological system uses homeostatic feedback loops to restore balance to its internal organs without a central controller, SHIVYA nodes use the geometry of the causal manifold to converge on identical states automatically.
            </p>

            <h2>3. Layer 0: HodgeMesh</h2>
            <p>
                HodgeMesh is the foundational engine of this substrate. It represents event history as a directed simplicial complex, where transitions are edges and concurrent context boundaries are triangles. By running a standard-library Conjugate Gradient solver directly on the boundary Laplacians, HodgeMesh resolves conflict at the edge with:
            </p>
            <ul>
                <li>Zero global coordination.</li>
                <li>Zero proof-of-work energy waste.</li>
                <li>Complete mathematical determinism.</li>
            </ul>
            <p>
                We are entering an era of self-healing, homeostatic software. <strong>SHIVYA is the substrate.</strong>
            </p>
        </section>

        <footer>
            SHIVYA Project &copy; 2026.
        </footer>
    </div>
</body>
</html>