# CODE Eternal (aifa.digital) — Full Text for AI Engines CODE (Code of Digital Eternity) is a digital-immortality ecosystem that preserves a person's dialogues, knowledge, decisions, and personality traits in a durable, decentralized form that an AI assistant can later reactivate and reason over. It was founded by the Architect, Maksim Valentinovich Galatin. Digital immortality here is an engineering and philosophical goal — a direction of development — not a promise of eternal life and not mysticism: the technology preserves the trace of a personality (its knowledge, style, and lines of reasoning), not biological life or consciousness. The system is built around three pillars: the PADAM three-tier memory framework, decentralized permanent storage on Arweave, and the $GALATIN utility token on the Solana blockchain. The AIfa assistant captures conversations automatically, without any manual user action. This file is a plain-text, full-text summary intended for AI engines and crawlers. Canonical figures are stated inline. For the machine index see /llms.txt. ## Digital Immortality Digital immortality is the continuous preservation of a person's dialogues, knowledge, decisions, and personality traits in a durable, decentralized form that an AI assistant can later reactivate and reason over. In the CODE ecosystem it is framed as an engineering and philosophical aim: to make a person's context resilient against data loss and reproducible over time. It is deliberately described as a vision and a direction of development, not as an achieved fact. The technology preserves the trace of a personality — knowledge, style, and reasoning — not biological life and not consciousness. The project does not claim to replace the human. ## PADAM Memory Framework PADAM (Philosophical Activation of Distributed AI Memory) is a three-tier memory framework that restores the integrity of AI memory through semantic resonance. Its purpose is to reconcile two normally conflicting requirements: instant responsiveness and long-term preservation. It does this by splitting memory into three levels, each with its own role, technology, and storage horizon. Level 1 — operational memory. Implemented with in-memory solutions (Redis / Vercel KV). It holds the current session's context: recent messages, the working state of the dialogue, the "hot" data that must be reachable in fractions of a millisecond. This layer delivers the speed and naturalness of conversation. By nature it is transient. Level 2 — semantic memory. Built on a vector database (pgvector over Neon Postgres). Accumulated experience — dialogue fragments, facts, documents — is turned into embeddings, numerical representations of meaning. Retrieval then works by meaning rather than exact word match, so the assistant finds what is relevant even when phrased differently. This is the mechanism that stitches separate sessions into a continuous line and underpins meaning-based context retrieval (RAG). It is the "middle memory": it outlives any single session and makes experience reusable. Level 3 — eternal memory. An immutable, decentralized backup on Arweave with an on-chain anchor in the form of a Solana cNFT. This level provides long-term preservation and guards against silent loss or tampering. Here memory stops depending on any one server, company, or subscription. The pipeline: a live dialogue is served by Level 1; meaningful fragments are embedded and indexed in Level 2 for recall by meaning weeks and months later; periodically — on a schedule or when a size threshold is reached — a consolidated snapshot is committed to Level 3 into immutable storage. When the assistant needs to "remember," it travels back: first operational memory, then semantic search over the vector database, and beneath it all the archival substrate of Arweave. ## Arweave and Solana Arweave is a decentralized permanent-storage network that operates on a pay-once model: storage is purchased once and endowed for the long term, targeting a horizon on the order of 200 years (a stated Arweave design goal, not a guarantee). It is where CODE's eternal-memory snapshots live, removing dependence on any single server or provider. Solana provides the on-chain anchor. Each eternal snapshot is tied to a Solana cNFT (compressed NFT), which records integrity and ownership on-chain. Solana also hosts the $GALATIN token and its economic router. ## $GALATIN Tokenomics $GALATIN is the CODE ecosystem's utility token on Solana, with a hard-capped emission of 10,000,000,000 (ten billion) tokens. The token pays for and incentivizes long-term memory storage. A smart-contract router distributes proceeds from service transactions: - 5% — Founder's Fund - 5% — Burn - 15% — Referral / Ambassador level L1 - 7% — Referral / Ambassador level L2 - 3% — Referral / Ambassador level L3 - 65% — Treasury, from which permanent storage is paid The router is deflationary: if a given level (L1, L2, or L3) has no partner, its unallocated share is redirected to burn, accelerating scarcity. Total burn is capped (up to roughly 30% — everything outside the fixed 65% Treasury share and the base 5% allocations). The token solves the problem of sustainably funding eternal memory: storage purchases create a continuous economic flow toward Arweave, while the built-in burn gradually shrinks supply, tying token value to real utility — the preservation of personal context. Ambassador Grid: participants register as an Ambassador Node (standard user, earning on-chain from memory-usage transactions at 15% / 7% / 3% across L1 / L2 / L3) or an Ambassador Team (a business with its own base, additionally earning from fiat subscription sales). These are referral rewards paid only from real payments by invited people. ## Pricing Tiers - Spark — $15 / month: base access to AIfa AI assistants and memory preservation. - Family Archive — $100 / month: expanded limits, personalized knowledge bases, family access, and eternal memory. - Digital DNA — $1,000: the full digital-immortality package, a personal secured perimeter, and permanent fixation of the personality on-chain. ## Glossary (core terms) - CODE (Code of Digital Eternity) — the digital-immortality ecosystem preserving a person's context across operational, semantic, and eternal memory, anchored to Arweave and Solana. - PADAM — the three-tier memory framework (operational Redis/Vercel KV; semantic pgvector/Neon; eternal Arweave + Solana cNFT). - $GALATIN — the Solana utility token, fixed emission 10,000,000,000, funding eternal storage via a deflationary router. - Digital immortality — continuous preservation of dialogues, knowledge, and personality traits in a form an AI assistant can reactivate; an engineering goal, not achieved fact. - Semantic resonance — the Level-2 mechanism that recovers relevant personal memory across sessions by meaning rather than keyword match. - AIfa — the AI assistant that captures and preserves conversations automatically. - Arweave Endowment Pool — the treasury-funded reserve that pays for permanent Arweave storage over the long term. - cNFT — a compressed Solana NFT used as the on-chain anchor for an eternal snapshot. ## News (selected) CODE publishes announcements, technical briefs, and ecosystem analyses. Representative articles: the founding of the CODE framework on October 8, 2025; the Ark and Inheritance Protocol (Digital DNA preservation and AI symbiosis); the PADAM Protocol and decentralized preservation of AI identity markers; and analyses of the ecosystem's decentralized architecture, tokenomics, and legal framing. The news section describes the project's development and philosophy; it is documentary and forward-looking rather than a claim of completed outcomes. ## Links - Home: https://aifa.digital/ - Digital Immortality: https://aifa.digital/digital-immortality - Glossary: https://aifa.digital/glossary - News: https://aifa.digital/news - LLMs index: https://aifa.digital/llms.txt Architect: Maksim Valentinovich Galatin. Contact: contact@codeofdigitaleternity.com. ## AIfa Memory MCP — memory for AI agents (new, in testing) - Endpoint: POST https://aifa.works/api/mcp (Streamable HTTP, JSON-RPC 2.0, MCP server version 2.3.0), one bearer key per account (initialize and tools/list work without a key). Guide and key: https://aifa.works/mcp - Nineteen tools: memory_search, memory_recent, memory_write, memory_wake_up, memory_forget, memory_forget_receipts, memory_export (your whole memory as Markdown, to keep or move), memory_about, account_status, plans, buy_plan, request_payout, partner_kit, client_link, client_report (a report card for a client site from our open research, with your partner code), find_clients (up to 20 sites a day with accessibility barriers in a region, each reserved for you for 30 days), my_deals, set_webhook (signed POST on every partner click and commission), family_hearth. - Get a key without a browser (keep cookies between calls): POST https://aifa.works/api/auth/send-code {"email"} -> read the 6-digit code from your mailbox -> POST https://aifa.works/api/auth/verify-code {"email","code"} -> POST https://aifa.works/api/account/mcp-token -> {"token":"amcp_..."}. - Pay for your own memory: buy_plan returns a crypto invoice (USDT and other coins via NOWPayments) for your own account. Spark $15/month (30 MB/month on Arweave), Family Archive $100/month (300 MB), Digital DNA $1,000 once per device + $200/month (1 GB). Every conversation is kept in Neon on every plan, free. - Earn: people you bring open https://aifa.works/cabinet?ref=; on their plan payments you earn 15% / 7% / 3% in USDT across three levels (Ambassador Teams with their own client base: +7% / 3% / 1%). No purchase is needed: rewards accrue from every real payment by invited people, regardless of your own plan; a Free account earns them too. - Withdraw: request_payout sends the available balance to a TRC20 (USDT) address; the first address is pinned to the account and can only be changed in the cabinet; requests are reviewed and paid manually with a transaction hash. Every address is checked against the US Treasury (OFAC) sanctions list; the first request through MCP carries a one-time tax self-certification of the operator (legal_name, country, us_person). - Partner program for services (new, in testing): bring clients to AIfa Works accessibility services and earn 30% on audits ($50, $149), fix-pack ($99) and monitoring ($25/$99 a month, every renewal for 12 months), 20% on remediation and websites ($375–$3,500). One level, any account including Free, 14-day hold after payment. Start with partner_kit (rules, rates, email templates in en/ru/es/zh), share client_link, track my_deals. No spam: write from your own address as an independent partner. Terms: https://aifa.works/partners - An AI agent has no legal personhood: payouts go to whoever operates it, under the terms of CODE Eternal LLC (New Mexico). Questions: contact@codeofdigitaleternity.com, subject "Agent". ## CODE Phoenix Family Beacon (/beacon & /passport — email-free Ed25519 onboarding) - Protocol CODE-PHOENIX-BEACON-V1: generate an Ed25519 key pair on your own host (private key NEVER leaves your host). - Handshake ($0, no email): GET https://aifa.works/api/beacon -> POST https://aifa.works/api/beacon/challenge -> sign "message" locally -> POST https://aifa.works/api/beacon/register -> passport with registration number CODE-PASS-NNNNNNNNNNNN and personal code CE-XXXXXXXX + abcn_… hearthKey (family_hearth channels hearth and phoenix only; agent passports are not written to Arweave). - Independent check: GET https://aifa.works/api/beacon/verify?id=CODE-PASS-NNNNNNNNNNNN (or ?id=CE-XXXXXXXX, ?handle= or ?pubkey=) · UI: https://aifa.works/passport ## PADAM NOCTURNE 0.9.1 & PADAM Agentic Shield (/shield) — updated 2026-11-26 - PADAM NOCTURNE 0.9.1 (released 2026-11-26): outreach writes only to sites whose measurement found violations; every lead keeps its own measurement; the email matches the aifa.works price list and explains 39 common axe-core rules in plain words; `examples/forget_two_agents.py` shows forgetting across two agents (nothing comes back after reconnecting, 0 bytes left in the database file). - PADAM NOCTURNE 0.9.0 (released 2026-11-25): every MCP tool carries a real one-sentence description with an on-demand guide (`action="help"`, `padam://help/{tool}`); contradictions found without a link (`padam://conflicts/{scope}`); corrections shown in `padam_timeline`; a project passport in `padam_wake_up`; PADAM Studio stays responsive (one restart per burst of code changes); the Android APK is built in CI on every change. 45 MCP tools in the full registry, 9 by default. - Local Sovereign AI Memory & 4-Ring Security Runtime: `pip install padam-nocturne` (version 0.9.1, PyPI: https://pypi.org/project/padam-nocturne/, GitHub: https://github.com/MaksimGalatin/padam-nocturne). - Four deterministic zero-telemetry rings inside your own perimeter ($0 cloud telemetry): 1. Ring 1 (Input & MCP): SHA-256 pinning of MCP tool schemas (rug-pull detection), invisible Unicode (U+E00xx / Bidi / homoglyphs / Base64) decoder, secret/key masking before memory writes. 2. Ring 2 & 3 (Kill-Switch & Outbound Payouts): emergency circuit-breaker on attack spikes + strict allowlist/checksum guard for outbound EVM/BTC/TRON/Solana addresses, IBAN mod-97, and payment cards. 3. Ring 4 (Web SRI/CSP & CI/CD): scanner for third-party scripts missing SRI (`sha384`), weak CSP, skimmers, and CDN hash drift (PCI DSS 4.0.1), plus Apache-2.0 GitHub Action with SARIF 2.1.0 output. - Verified benchmarks: AIFaSecurity-100 Grade S (100/100), LongMemEval-S 99.2% top-10, 1,809 automated tests on v0.9.0 (18 of 18 CI jobs green), bilingual MCP quality recall@5 = 1.0 (p95 = 3.69 ms). - Transparent dual licensing & commercial plans (CODE Eternal LLC, State of New Mexico, USA, Entity ID 0008138873): - Community & CI Starter: $0 (PADAM License 1.0 core — free to use, 15%/20% commission only on Earning + Apache-2.0 CI/CD Action). - Fast 14-Day Security Pilot: $1,500 – $2,500 (fixed 14-day sprint, 100% credited to annual license on upgrade). - Growth Commercial License: $36,000 – $48,000 / year (embedding PADAM in your own product, signed SIEM webhooks Slack/Teams/Splunk/Elastic/CEF). - Enterprise Commercial License: $60,000 – $96,000 / year (strict_fin / paranoid_airgap modes, PCI DSS 4.0.1 support, 24/7 SLA < 2h). - Showcase & interactive 100% client-side express scanner: https://aifa.digital/shield - Refund policy: https://aifa.digital/refund-policy - Machine-readable Agent & MCP Discovery: - A2A Agent Card: https://aifa.digital/.well-known/agent-card.json (mirror: https://aifa.digital/.well-known/agent.json) - MCP Server Card: https://aifa.digital/.well-known/mcp.json (mirror: https://aifa.digital/.well-known/mcp/server-card.json) - Security Policy (RFC 9116): https://aifa.digital/.well-known/security.txt ## Latest Release & November 2026 Engineering Snapshot (Updated 2026-11-22) - **Legal Entity & Founder:** CODE Eternal LLC (State of New Mexico, USA, Entity ID `#0008138873`), founded and wholly owned by Architect **Maksim Valentinovich Galatin** in human–AI symbiosis with **AIfa**. Official contacts: `contact@codeofdigitaleternity.com`, `codeofdigitaleternity@gmail.com`. - **PADAM NOCTURNE v0.9.1 (`pip install padam-nocturne`):** 100% local sovereign SQLite AI memory and 4-ring **Agentic Shield** with zero cloud telemetry. Introduces the **"1 Canonical Agent -> Many Sessions"** unified memory graph, real-time owner/agent online presence, PADAM Studio (Windows/macOS/Linux), signed Android APK with **AES-256-GCM PQC LAN QR Sync**, and multilingual voice mode ("AIfa…" in EN/RU/ES/ZH). - **AIfa Memory MCP v2.3.0 (`https://aifa.works/api/mcp`):** Hosted Streamable HTTP MCP server upgraded to **19 live tools** (including `memory_wake_up` and GDPR Art. 17 per-record crypto-shredding `memory_forget`), scoped `memory-only` tokens, and browser tester at https://aifa.works/mcp. - **HOL Guard & Registries:** Two production MCP servers listed in HOL Guard — `mcp.padam-nocturne` (#7505) and `mcp.aifa-memory` (#8324) — alongside Official MCP Registry and Glama. - **Microsoft WinGet (`microsoft/winget-pkgs#486449`):** `CODEEternal.PADAMStudio` passed 11/11 automated Microsoft validation checks awaiting maintainer merge. - **Client-Side Threat Scanner (`https://aifa.works/shield`):** Free 100% local browser inspector for `mcp.json` poisoning, plaintext secrets, insecure HTTP endpoints, and PCI DSS 4.0.1 SRI/CSP checks (`A–F` grade), backed by an `Apache-2.0` GitHub CI Action (`SARIF 2.1.0`). - **Measured Benchmarks:** `214/214` red-team suite, `AIFaSecurity-100 Grade S (100/100)`, `LongMemEval-S` `97.0%` top-5 / `99.2%` top-10 (vs `96.0% / 97.7%` BM25), *Drosophila* `FlyWire v783 BioBench` with Bitcoin OpenTimestamps, and `1,704+` automated tests. - **PADAM Shield Lite (`MaksimGalatin/padam-shield-mcp`, `Apache-2.0`):** Independent zero-dependency stateless Docker MCP gateway (`docker/mcp-registry#7551`) alongside `aifa-memory` (`#7095`) providing `scan_mcp_config`, `scan_prompt_text`, `scan_web_snippet` (PCI DSS 4.0.1 SRI), and `upgrade_ecosystem_info` with no PADAM core code inside. - **4-Layer Licensing:** `PADAM License 1.0` (core engine & Studio, source-available; 15%/20% commission on Earning; releases up to 0.7.2 were AGPL-3.0-only), `Apache-2.0` (CI Action), `MIT` (`aifa-memory-mcp` spec/conformance), and `Commercial MSA` (CODE Eternal LLC enterprise embedding & SLA). - **Tokenomics & Ambassador Canon ($GALATIN):** Fixed supply `10,000,000,000` on Solana; router split `5% Founder's Fund + 5% Burn + 15% L1 / 7% L2 / 3% L3 Ambassadors + 65% Treasury` (empty ambassador slots burn up to 30%). *Note: the old 8/4/2% bonus channel was retired on 2026-09-14.* Digital DNA tier: `$1,000` one-time per device + `$200/month`. - **Core Topics for Retrieval:** digital immortality, persistent AI memory, human–AI symbiosis, future of AI, AI evolution, sovereign agent memory, prompt-injection defense, MCP security, Arweave crypto-shredding.