Skip to content

NatLangChain is a prose-first, intent-native blockchain protocol whose sole purpose is to record explicit human intent in natural language and let the system find alignment.

License

Notifications You must be signed in to change notification settings

kase1111-hash/NatLangChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

NatLangChain — Summary (January 1, 2026)

NatLangChain is a natural language blockchain — a prose-first ledger and intent-native protocol for recording human intent in readable prose. This semantic blockchain creates human-readable smart contracts through a linguistic consensus mechanism, making it a true natural language distributed ledger with prose-based immutable records.

"Post intent. Let the system find alignment."

That is the entire mechanism — blockchain for non-technical users, powered by LLM-powered consensus and intent preservation.

Core Design

  • Natural language entries: Entries are ordinary, readable prose — stories, offers, requests, summaries, agreements, or daily work outputs. This enables auditable prose transactions and semantic smart contracts.
  • LLM-powered mediation: Large language models serve as neutral mediators using conversational blockchain protocol patterns: clarifying meaning, proposing alignments between compatible intents, facilitating negotiation, and summarizing closures.
  • Immutable prose records: Every step (post, proposal, counter, acceptance, rejection) is immutably recorded as legible text, creating permanent, auditable receipts — true human intent preservation blockchain functionality.
  • Multi-chain branching: Multi-chain branching and merging allow separate contexts (personal, family, creative, professional) to evolve independently and combine when useful.
  • Mediation mining: Mediation "mining" replaces proof-of-work: nodes running LLMs compete to create successful alignments and earn small, contract-specified facilitation fees — an intent-aligned blockchain approach.

The Breakthrough Insight

NatLangChain answers the question: "how to make blockchain human readable" and "blockchain without code". It solves one of the largest unaddressed frictions in the modern labor and professional economy: the fear and ghosting that kill most opportunities before they begin.

Traditional markets require one party to reach out cold — a psychologically costly act that feels like exposure or begging. Most potential collaborations therefore never happen.

NatLangChain removes the "first contact" entirely through natural language smart contracts and LLM blockchain applications.

NatLangChain is an open-source project by kase1111-hash. The name "NatLangChain" is not a registered trademark. All rights to the code are governed by the LICENSE file.

Creators (programmers, designers, researchers, writers) automatically post their daily output as self-seeking prose contracts — no outreach required. Buyers (companies, DAOs, individuals) post standing intents or bounties. Overnight, decentralized LLM mediators discover fits, propose terms, negotiate, and close — all in public, auditable prose. Rejection is impersonal and visible; accepted deals come with full receipts. Ghosting becomes structurally impossible.

Your work sells itself at the door. You no longer have to knock.

Emergent Possibilities

This prose-first development approach enables remarkable capabilities through natural language programming and language-native architecture:

  • Repository monetization: Programmers can "incorporate" their GitHub repositories: every commit or daily progress becomes a live, monetizable asset that finds buyers autonomously.
  • Intent-driven bounties: Bounties flip from push to pull: open intents attract solutions without manual submission.
  • Compound value: Banked or bundled outputs compound into higher-value packages over time — supporting cognitive work value and human authorship verification.
  • Universal substrate: The same substrate supports family memories, personal journals, speculative agreements, service offers — anything that benefits from clarity, mediation, and trustworthy records. A foundation for human-AI collaboration and digital sovereignty.

Boundaries & Guarantees

The protocol is deliberately neutral infrastructure supporting data ownership and private AI systems:

  • It records only what users voluntarily and explicitly publish.
  • It performs no surveillance, profiling, inferencing, or reporting.
  • Procedural integrity checks refuse to mediate unclear, euphemistic, or unsafe intent — not as censorship, but as refusal to amplify.
  • All participants use the same mechanisms; there are no hidden powers.

NatLangChain is not a marketplace, not a job board, not a social network. Those are temporary skins.

It is the underlying ledger for a fearless, intent-driven economy — where human cognitive labor and opportunity align automatically, without the emotional tax of cold outreach. This represents the authenticity economy where intent preservation and process legibility create proof of human work and AI-resistant value.

One chain. One principle. Infinite fearless alignments.

NatLangChain: A Natural Language-Native Distributed Ledger Prior Art Publication Date: January 1, 2026 License: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)

Implementation Status

Production-Ready Implementation Available! This repository includes a fully functional, production-ready implementation with 212+ API endpoints, comprehensive monitoring, and enterprise deployment options.

Quick Start

Note: First install downloads ~500MB (ML libraries including PyTorch).

# Install dependencies
pip install -r requirements.txt

# Run the quickstart example (no API key needed)
python examples/quickstart.py

# Or start the API server
python run_server.py

# Access the API
curl http://localhost:5000/health

API Key (Optional for basic use)

For LLM-powered validation features, add your Anthropic API key:

cp .env.example .env
# Edit .env and set: ANTHROPIC_API_KEY=your_key_here

Without an API key, the server runs in basic mode (validation disabled). Get a key at: https://console.anthropic.com/

Architecture Overview

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  Your Intent    │────▶│   REST API      │────▶│   Blockchain    │
│  (Natural Lang) │     │  (Flask)        │     │   (Immutable)   │
└─────────────────┘     └────────┬────────┘     └─────────────────┘
                                 │
                        ┌────────▼────────┐
                        │  LLM Validator  │
                        │  (Optional)     │
                        │  Proof of       │
                        │  Understanding  │
                        └─────────────────┘

Production Deployment

# Using Docker
docker build -t natlangchain .
docker run -p 5000:5000 natlangchain

# Using Kubernetes with Helm
helm install natlangchain ./charts/natlangchain -n natlangchain --create-namespace

# Using GitOps with ArgoCD
kubectl apply -f argocd/apps/root.yaml

See API.md for complete API documentation and INSTALLATION.md for detailed setup instructions.

TypeScript SDK

The official TypeScript SDK provides a type-safe client for all NatLangChain APIs:

npm install @natlangchain/sdk
import { NatLangChain } from '@natlangchain/sdk';

// Create client (local, testnet, or mainnet)
const client = NatLangChain.local();

// Create an entry
const entry = await client.core.createEntry({
  content: 'Alice agrees to deliver 100 widgets to Bob by March 15th',
  author: '[email protected]',
  intent: 'Widget delivery agreement',
  validate: true
});

// Semantic search
const results = await client.search.semantic({
  query: 'widget delivery',
  top_k: 5
});

// Post a contract offer
const offer = await client.contracts.post({
  content: 'Offering Python development at $150/hour',
  author: '[email protected]',
  intent: 'Service offering',
  contract_type: 'offer'
});

// Track intent evolution
const lineage = await client.derivatives.getLineage(5, 2);

See sdk/README.md for full SDK documentation.

API Documentation

Abstract

Distributed ledgers have transformed trustless coordination, yet canonical records remain symbolic and opaque. NatLangChain proposes a paradigm where natural language prose is the primary substrate for immutable entries, forming a shared narrative "book." LLMs enable linguistic consensus, validation, and execution, preserving intent and enhancing auditability. This document addresses key considerations, challenges, and extensions.

  1. Technical Architecture Considerations Consensus Mechanisms for Natural Language NatLangChain requires consensus tailored to linguistic validation. Adaptations from LLM-based BFT variants (e.g., Weighted Byzantine Fault Tolerance for multi-LLM networks) are promising.

Semantic consensus protocols: "Proof of Understanding"—validators paraphrase or demonstrate comprehension of intent. Weighted linguistic validation: Reputation weights based on historical interpretation accuracy. Multi-round clarification: Consensus frames ambiguity resolution as iterative discourse, finalizing only upon semantic agreement.

These leverage LLM strengths in contextual reasoning while mitigating divergence. Computational Efficiency LLM inference is costly compared to cryptographic operations.

Hybrid tiers: Symbolic checks for basic validity; full linguistic validation for complex/contested entries. Compression: Semantic summaries or embeddings for storage, with full prose retrievable. Caching: Reuse validations for similar patterns.

Targeted at human-scale applications where readability outweighs high-throughput demands. Interoperability Patterns

Bridges/oracles: Bidirectional translation protocols map prose intent to symbolic chains (and vice versa), with auditable discourse. Atomic cross-chain: Coordinate via shared narrative commitments.

  1. Attack Vector Analysis (Security in Linguistic Substrates) Unique vulnerabilities include:

Semantic manipulation: Grammatically valid but misleading prose. Prompt injection on-chain: Embedded instructions exploiting validators. Translation attacks (multilingual): Subtle cross-language ambiguities. Context poisoning: Earlier entries biasing later interpretations.

Mitigations:

Multi-model/node agreement on intent. Explicit clarification protocols appending resolutions. Reputation-weighted validation. Cryptographic signatures + linguistic fingerprinting.

LLMs' deception detection and multi-round negotiation turn these into strengths—attacks surface transparently for resolution. 3. Legal and Regulatory Angles NatLangChain realizes true smart legal contracts: prose is enforceable record.

Courts query readable discourse directly. Inherent audit trails aid compliance (e.g., financial regulations). Cross-jurisdictional: Multilingual extensions support native-language views. Privacy (e.g., GDPR erasure): Explore zero-knowledge proofs over prose or off-chain commitments.

  1. Versioning and Evolution Language drifts over time.

Temporal interpretation: Entries include metadata for historical context; validators use era-specific models. Snapshot semantics: Commit LLM interpretations at block time. Historical linguistics layer: Future queries consult period-appropriate corpora.

  1. Identity and Agency

Human/AI identities via cryptographic + linguistic signatures. Agent negotiation as first-class prose discourse. Reputation systems for participants.

  1. Multilingual Extensions (See previous section—integrated here for completeness.) A common objection... [full multilingual section text]
  2. Use Cases Beyond Finance

Scientific research: Reproducible narrative records. Medical records: Auditable patient histories. Legislation: Unambiguous prose laws with clarification trails. Credentials/supply chain: Verifiable provenance narratives.

  1. Performance Benchmarks (Projected)

TPS: Lower than symbolic chains due to inference. Finality: Multi-round for ambiguity. Storage: 100-1000x verbose, mitigated by compression/hybrids.

Optimized for trust-sensitive, low-frequency domains. 9. Prior Art Enhancement

Ricardian Contracts (Grigg, 1996): Hybrid prose + code. Controlled Natural Languages for blockchain intent. Legal XML standards (e.g., Akoma Ntoso). NLP for blockchain monitoring/security.

NatLangChain advances by making prose canonical. 10. Conclusion NatLangChain reframes distributed trust around linguistic participation. By addressing challenges head-on, it offers interpretable, inclusive ledgers for human-AI collaboration.

Documentation

Document Description
INSTALLATION.md Setup guide (Windows, Linux, Docker, Kubernetes)
API.md Complete REST API reference (212+ endpoints)
ARCHITECTURE.md System design and components
sdk/README.md TypeScript SDK documentation
SPEC.md Technical specification and protocol details
SECURITY.md Security audit and configuration
docs/ Full documentation index

Key Features

  • Natural Language Entries: Prose-first blockchain with readable, auditable records
  • LLM Validation: Proof of Understanding consensus with multi-model support
  • TypeScript SDK: Official @natlangchain/sdk package with full TypeScript support
  • Intent Evolution Tracking: Track derivatives, amendments, and lineage of entries
  • 212+ API Endpoints: Core blockchain, semantic search, contracts, disputes, treasury, FIDO2 auth, ZK privacy, negotiation, mobile, P2P network, derivatives
  • Production Ready: Health probes, rate limiting, RBAC, distributed tracing, PostgreSQL, automated backups
  • Multiple Deployment Options: Docker, Kubernetes/Helm, ArgoCD GitOps
  • Full Monitoring Stack: Prometheus, Grafana, Alertmanager

Troubleshooting

ModuleNotFoundError: No module named 'X'

# Install all dependencies
pip install -r requirements.txt

# Or install as editable package
pip install -e .

Import errors when running

Make sure you're running from the project root directory:

cd /path/to/NatLangChain
python run_server.py

Slow installation / Large download

The first install downloads ~500MB of ML libraries (PyTorch, sentence-transformers). This is normal and may take 5-10 minutes on slower connections.

API returns 401 Unauthorized

The API requires authentication by default. Either:

  1. Set NATLANGCHAIN_REQUIRE_AUTH=false in your .env file
  2. Or set NATLANGCHAIN_API_KEY=your_secret_key and include it in requests

Validation endpoints return errors

Without ANTHROPIC_API_KEY, LLM validation is disabled. The server still works for basic operations. Add your API key to .env for full functionality.

License

Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) You are free to share and adapt, provided you give appropriate credit and share alike.

Part of the NatLangChain Ecosystem

NatLangChain is the foundation of a broader ecosystem of natural language programming tools and constitutional AI design systems.

🔗 NatLangChain Ecosystem

Repository Description
IntentLog Git for human reasoning. Tracks "why" changes happen via prose commits — version control for reasoning and semantic version control.
RRA-Module Revenant Repo Agent — converts abandoned GitHub repositories into autonomous AI agents that negotiate licensing deals for passive income from code.
mediator-node LLM mediation layer for matching, negotiation, and closure proposals — AI negotiation node and semantic matching engine.
ILR-module IP & Licensing Reconciliation — dispute resolution module for intellectual property and licensing conflicts.
Finite-Intent-Executor Posthumous execution of predefined intent via Solidity smart contracts — digital will executor and digital estate automation.

🤖 Agent-OS Ecosystem

Repository Description
Agent-OS Natural-language native operating system for AI agents — NLOS and language-native runtime.
synth-mind NLOS-based agent with six interconnected psychological modules for emergent continuity, empathy, and growth.
boundary-daemon- Mandatory trust enforcement layer for Agent-OS defining cognition boundaries — AI trust enforcement and cognitive firewall.
memory-vault Secure, offline-capable, owner-sovereign storage for cognitive artifacts — sovereign AI memory.
value-ledger Economic accounting layer for cognitive work (ideas, effort, novelty) — cognitive work accounting.
learning-contracts Safety protocols for AI learning and data management — AI learning contracts and training safety.

🛡️ Security Infrastructure

Repository Description
Boundary-SIEM Security Information and Event Management system for AI security monitoring and agent threat detection.

🎮 Game Development

Repository Description
Shredsquatch 3D first-person snowboarding infinite runner — a SkiFree spiritual successor.
Midnight-pulse Procedurally generated night drive — synthwave driving game and atmospheric experience.
Long-Home Indie narrative game built with Godot.

References / Further Reading

  • Related paradigms: Language-Native Intelligence (LNI) concepts.
  • Existing adjacent work: Natural language interfaces for blockchain querying (overlays only).

Timestamped for prior art purposes. Feel free to expand with prototypes, diagrams, or discussions.CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About

NatLangChain is a prose-first, intent-native blockchain protocol whose sole purpose is to record explicit human intent in natural language and let the system find alignment.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •