Skip to content

feat: implement Epic 7 - SPSP Settlement Negotiation#7

Merged
ALLiDoizCode merged 3 commits intomainfrom
epic-7
Feb 9, 2026
Merged

feat: implement Epic 7 - SPSP Settlement Negotiation#7
ALLiDoizCode merged 3 commits intomainfrom
epic-7

Conversation

@ALLiDoizCode
Copy link
Copy Markdown
Collaborator

Summary

  • Epic 4: ILP-Gated Relay — Nostr relay with payment verification via Business Logic Server pattern, SQLite event storage, TOON encoding, and configurable pricing
  • Epic 5: Standalone BLS Docker Package — Extracted BLS into its own package with Docker image, environment variable configuration, and volume-based persistence
  • Epic 6: Layered Peer Discovery — Genesis peer configuration, ArDrive peer registry, social graph discovery, and bootstrap service redesign
  • Epic 7: SPSP Settlement Negotiation — Settlement capability fields in ILP Peer Info events, settlement negotiation in SPSP request/response flow, server-side negotiation logic, and configurable zero-amount acceptance for bootstrap nodes

Changes

  • 177 files changed, 38,564 insertions
  • Adds @agent-society/bls and @agent-society/relay packages
  • Extends @agent-society/core with discovery, settlement negotiation, and enhanced SPSP flows
  • Full documentation: epic specs, story files, QA gates
  • 939 tests all passing

Test plan

  • All 939 unit tests pass (npx vitest run)
  • Verify ILP Peer Info events include settlement capability fields
  • Verify SPSP request/response includes settlement negotiation
  • Verify zero-amount SPSP acceptance is configurable for bootstrap nodes
  • Verify BLS Docker image builds and runs correctly

🤖 Generated with Claude Code

ALLiDoizCode and others added 3 commits February 8, 2026 00:20
Add genesis peer configuration, ArDrive peer registry, bootstrap service
redesign, social graph peer discovery, and Docker entrypoint integration
for layered peer discovery (Stories 6.1-6.5).

- GenesisPeerLoader: loads bundled genesis peers from JSON + env var overlay
- ArDrivePeerRegistry: fetches peer registry from ArDrive gateway
- BootstrapService: redesigned to use layered discovery (genesis + ArDrive + env)
- SocialPeerDiscovery: real-time NIP-02 follow list peer expansion with SPSP
- Docker entrypoint: refactored to use BootstrapService + SocialPeerDiscovery
- 855 tests passing across all packages (840 core + 15 docker)
- QA gates: all 5 stories PASS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Lead with plain-English explanation of what the project does, document
the monorepo structure, ILP-gated relay, Docker deployment, and layered
peer discovery. Remove stale API references and unused event kinds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add settlement capability negotiation to the SPSP handshake flow,
enabling peers to discover and agree on compatible settlement methods
during connection setup. Includes configurable zero-amount SPSP
acceptance for bootstrap node compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant