본문으로 건너뛰기
cccskills
무료GitHub에 공개

agentic-micro-economy-architect

Expert guide for designing Machine-to-Machine (M2M) micro-economies, autonomous agent wallets, and swarm budget allocation / Panduan ahli merancang ekonomi mikro antar-agen (M2M), dompet agen otonom, dan alokasi anggaran swarm.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md9.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Agentic Micro-Economy Architect (M2M Protocols 2026)

English | Bahasa Indonesia


<a name="english"></a>

English

Description

Architectural guide for Machine-to-Machine (M2M) micro-economies, autonomous agent wallets, and swarm budget allocation. In modern multi-agent swarms, specialized subagents consume external APIs, GPU inference, and web scraping compute. This skill establishes autonomous budget envelopes, micro-escrow smart ledgers, HTTP 402 (Payment Required) headers, and cryptographic micro-settlements (Stripe Issuing virtual cards, stablecoins, or internal token ledgers) to make agent swarms financially self-regulating.

Trigger Conditions

  • Multi-agent swarm operations incurring external financial costs (paid search APIs, vector DB indexing, heavy GPU compute).
  • Setting hard financial limits (e.g., "Solve this bug within a $2.50 budget ceiling").
  • Autonomous agent-to-agent task delegation using bidding and micro-escrow contracts.
  • Integrating HTTP 402 Payment Required flows with cryptographic micro-billing.

The 4-Tier Agentic Micro-Economy Topology

┌────────────────────────────────────────────────────────┐
│ 1. SWARM TREASURY (Root Envelope: $5.00)               │
│    Director decomposes goal into budgeted subtasks     │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│ 2. MICRO-ESCROW LOCK                                   │
│    Allocate $0.15 to Subtask-A Escrow Account          │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│ 3. BIDDING & TASK EXECUTION                            │
│    Subagent A (FastScraper) executes task within caps  │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│ 4. CRITIC VERIFICATION & SETTLEMENT                    │
│    Critic passes output ──► Release $0.15 to subagent  │
│    Critic rejects       ──► Refund Escrow to Treasury  │
└────────────────────────────────────────────────────────┘

Micro-Escrow State Machine (TypeScript)

// src/services/agent-micro-economy.ts
import crypto from 'node:crypto';

export interface EscrowContract {
  id: string;
  sourceAgent: string;
  workerAgent: string;
  amountCents: number;
  status: 'PENDING' | 'RELEASED' | 'REFUNDED';
  expiresAt: number;
}

export class AgentTreasury {
  private balanceCents: number;
  private escrows: Map<string, EscrowContract> = new Map();

  constructor(initialBudgetUsd: number) {
    this.balanceCents = Math.round(initialBudgetUsd * 100);
  }

  createEscrow(workerAgent: string, costCents: number, ttlSeconds = 60): EscrowContract {
    if (this.balanceCents < costCents) {
      throw new Error(`[Treasury] Insufficient funds: balance is ${this.balanceCents}¢, needed ${costCents}¢`);
    }

    this.balanceCents -= costCents;
    const escrow: EscrowContract = {
      id: crypto.randomUUID(),
      sourceAgent: 'SwarmDirector',
      workerAgent,
      amountCents: costCents,
      status: 'PENDING',
      expiresAt: Date.now() + ttlSeconds * 1000,
    };

    this.escrows.set(escrow.id, escrow);
    return escrow;
  }

  releaseEscrow(escrowId: string, verifiedByCritic: boolean): boolean {
    const contract = this.escrows.get(escrowId);
    if (!contract || contract.status !== 'PENDING') return false;

    if (verifiedByCritic && Date.now() <= contract.expiresAt) {
      contract.status = 'RELEASED';
      console.log(`[Treasury] Released ${contract.amountCents}¢ to ${contract.workerAgent}`);
      return true;
    } else {
      // Refund back to root treasury
      contract.status = 'REFUNDED';
      this.balanceCents += contract.amountCents;
      console.warn(`[Treasury] Refunded ${contract.amountCents}¢ to Director Treasury.`);
      return false;
    }
  }

  getBalanceUsd(): string {
    return `$${(this.balanceCents / 100).toFixed(2)}`;
  }
}

Non-Negotiable Micro-Economy Constraints

  1. Hard Budget Ceilings: Once the treasury balance is exhausted, the swarm MUST gracefully pause and alert the human supervisor rather than continuing to consume API credits.
  2. Escrow TTL Deadlines: Every escrow holds a hard time-to-live (TTL). If a worker subagent hangs or crashes, funds are automatically refunded to prevent capital freeze.
  3. Critic Verification Gate: Funds are released ONLY upon successful validation by an independent auditor or test suite (quality-guardian / autonomous-tdd-debugger).

Orchestration & Integration

  • multi-agent-orchestration: Coordinates task bidding across specialized subagent pools.
  • llm-finops-router: Dynamically routes prompts to cheaper models to preserve the task's budget envelope.
  • saas-billing: Connects agent treasury ledgers to customer billing quotas.
  • agentic-m2m-settlement: Handles low-level fiat and stablecoin settlement rails.

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Integrasi Orkestrasi

Terhubung dan mengorkestrasi bersama multi-agent-orchestration, llm-finops-router, saas-billing, dan agentic-m2m-settlement.

Deskripsi

Panduan arsitektur untuk ekonomi mikro Mesin-ke-Mesin (Machine-to-Machine / M2M), dompet agen otonom, dan alokasi anggaran swarm. Dalam arsitektur multi-agen skala besar, subagen terspesialisasi mengonsumsi API eksternal, komputasi GPU, dan scraping berbayar. Skill ini merancang pagu anggaran (budget envelope), buku besar mikro-escrow cerdas, respons HTTP 402 (Payment Required), dan kliring mikro kriptografis untuk menciptakan swarm agen yang sadar biaya (cost-aware) dan mampu meregulasi keuangannya sendiri.

Kondisi Pemicu

  • Operasi swarm multi-agen yang menimbulkan biaya nyata (API pencarian berbayar, inferensi model besar).
  • Menerapkan batasan biaya keras (hard limit, misal: "Selesaikan perbaikan bug ini dengan anggaran maksimal $2.00").
  • Delegasi tugas antar agen menggunakan mekanisme lelang tawaran (bidding) dan kontrak escrow.
  • Mengintegrasikan protokol HTTP 402 untuk pembayaran otomatis antar layanan AI.

Pola Implementasi Bidding & Escrow di Backend

// Contoh eksekusi tugas bersyarat anggaran
export async function executeDelegatedSubtask(
  taskPrompt: string, 
  treasury: AgentTreasury, 
  workerCostCents = 10
) {
  // 1. Kunci dana ke dalam kontrak escrow
  const escrow = treasury.createEscrow('WebSearchAgent', workerCostCents, 30);

  try {
    // 2. Jalankan subagen pekerja
    const result = await invokeSubagentWorker(taskPrompt);
    
    // 3. Verifikasi kualitas hasil melalui test/critic
    const isQualityApproved = validateResultQuality(result);
    treasury.releaseEscrow(escrow.id, isQualityApproved);

    return result;
  } catch (error) {
    treasury.releaseEscrow(escrow.id, false); // Kembalikan dana jika gagal
    throw error;
  }
}

3 Hukum Utama Ekonomi Mikro Agen

  1. Batas Anggaran Keras: Jika sisa anggaran treasury habis, agen dilarang melanjutkan eksekusi API berbayar dan wajib meminta persetujuan manusia (Human-in-the-Loop).
  2. Batas Waktu Kontrak (TTL Escrow): Seluruh dana yang ditahan dalam escrow wajib memiliki masa kedaluwarsa agar dana tidak terkunci saat subagen mengalami kegagalan proses.
  3. Pelepasan Dana Berdasarkan Kualitas: Dana hanya dicairkan kepada agen pekerja jika hasil pekerjaan lulus audit gerbang kualitas (Critic-Validator Gate).

Integrasi Orkestrasi

  • multi-agent-orchestration: Menyelaraskan pembagian peran subagen dan delegasi tugas.
  • llm-finops-router: Mengoptimalkan pemilihan tier model agar tetap berada di bawah batas anggaran.
  • saas-billing: Menghubungkan konsumsi kredit agen dengan kuota langganan pengguna.
  • agentic-m2m-settlement: Menangani transfer nilai riil antar dompet agen AI.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

roedyrustam/vibes-plug772026년 10월 18일 업데이트

roedyrustam의 스킬 모두 보기

이 스킬의 문제 신고