Agent Chain Anchor

January 12, 2026 ยท View on GitHub

๐Ÿ›‘ ARCHITECTURAL ANCHOR

This project is part of the Berlin AI Automation Studio. It is governed by the global rules in RULES.md.


Agent Chain Anchor

Chain-agnostic blockchain anchoring for ZK-SLA proofs, trust scores, and decision audit logs.

๐ŸŽฏ What This Does

The Chain Anchor service provides cryptographic proof anchoring for the AgentOps Suite:

  • ZK-SLA Proofs โ€” Anchor proof hashes proving agents met/missed deadlines
  • Trust Score Snapshots โ€” Immutable reputation checkpoints
  • Decision Audit Logs โ€” Tamper-proof evidence for regulators

The service is chain-agnostic by design, supporting multiple blockchain backends:

  • Mock (for testing/development)
  • Solana (planned)
  • zkSync (planned)
  • Starknet (planned)

๐Ÿ“ก API Endpoints

MethodEndpointDescription
GET/api/healthHealth check with current chain status
GET/api/openapi.jsonOpenAPI 3.0 specification
GET/api/docsSwagger UI documentation
POST/api/anchorAnchor a proof hash on-chain
GET/api/verify/:txIdVerify an existing anchor

๐Ÿ—๏ธ Architecture

src/
โ”œโ”€โ”€ lib/chain-anchor/
โ”‚   โ”œโ”€โ”€ domain/           # AnchorResult entity, IBlockchainAnchorPort interface
โ”‚   โ”œโ”€โ”€ application/      # AnchorProof, VerifyAnchor use cases
โ”‚   โ””โ”€โ”€ infrastructure/   # Chain-specific adapters (Mock, Solana, etc.)
โ””โ”€โ”€ app/                  # Next.js App Router (API routes and Dashboard)

๐Ÿš€ Quick Start

# Install dependencies
npm install

# Start development server
npm run dev

# Run tests
npm run test

# Quality gate (lint + duplication + coverage)
npm run quality

๐Ÿ”— Dependencies

ServicePurpose
None requiredMock adapter uses in-memory storage

๐Ÿ“Š Status

  • Deployment: Railway
  • Production URL: https://agent-chain-anchor-production.up.railway.app
  • Catalog Entry: Microservices_Catalog.md
  • OpenAPI: โœ… Agent-Ready

๐Ÿ“œ License

MIT