A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.
The English summary is being prepared. Showing the original description.
Expert guide for mathematical formal verification, SMT solver constraints (Z3, Dafny, TLA+), invariant theorem proving for FinTech billing state machines, RBAC/ABAC authorization, and zero-violation architecture / Panduan ahli verifikasi formal matematis, SMT solver (Z3, Dafny, TLA+), pembuktian invarian state machine billing FinTech, otorisasi RBAC/ABAC, dan arsitektur zero-violation.
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
<a name="english"></a>
saas-billing, doku-payment-gateway, payment-gateway-expertauthentication-identity-expert, zero-trust-secret-vaultdatabase-orm-expert, spec-driven-development-expertproperty-mutation-testing-expert, autonomous-tdd-debugger, anti-slopbrainstorming, zero-to-prod-orchestrator, session-memory-managerProduction guide for applying formal methods, mathematical specifications, and SMT (Satisfiability Modulo Theories) solvers (Z3, Dafny, TLA+) to mission-critical software systems. Proves zero-invariant violation across double-entry ledger bookkeeping, billing subscription state machines, multi-tenant isolation boundaries, and cryptographic key lifecycle models.
Activate this skill when:
| System Domain | Mathematical Invariant | Solver Check |
|---|---|---|
| Double-Entry FinTech Ledger | $\sum \text{Debits} - \sum \text{Credits} = 0 \land \forall a, \text{balance}(a) \ge 0$ | Prove balance preservation across all concurrent transactions |
| SaaS Billing State Machine | $\text{State} \in { \text{Trial}, \text{Active}, \text{PastDue}, \text{Canceled} }$ with strict monotonic transitions | Prove unreachable illegal transition (e.g. Canceled $\to$ Active without Payment) |
| Multi-Tenant Authorization | $\forall r \in \text{Resources}, \text{TenantId}(r) = \text{Session}(\text{TenantId})$ | Prove satisfiability of data leakage equals $\emptyset$ |
export interface LedgerEntry {
accountId: string;
debit: number;
credit: number;
}
export interface VerificationResult {
isSound: boolean;
counterExample?: string;
message: string;
}
export class LedgerFormalVerifier {
public static verifyTransactionBalance(entries: LedgerEntry[]): VerificationResult {
if (entries.length < 2) {
return {
isSound: false,
message: 'A valid double-entry transaction must contain at least two entries.'
};
}
let totalDebit = 0;
let totalCredit = 0;
for (const entry of entries) {
if (entry.debit < 0 || entry.credit < 0) {
return {
isSound: false,
counterExample: JSON.stringify(entry),
message: 'Negative debit or credit amounts violate non-negative entry invariant.'
};
}
if (entry.debit > 0 && entry.credit > 0) {
return {
isSound: false,
counterExample: JSON.stringify(entry),
message: 'Single entry cannot contain both debit and credit amounts simultaneously.'
};
}
totalDebit += entry.debit;
totalCredit += entry.credit;
}
const delta = Math.abs(totalDebit - totalCredit);
if (delta > 0.0001) {
return {
isSound: false,
counterExample: `Debits: ${totalDebit}, Credits: ${totalCredit}, Discrepancy: ${delta}`,
message: 'Double-entry balance invariant violated: Debits must strictly equal Credits.'
};
}
return {
isSound: true,
message: 'Ledger invariant mathematically verified: Zero discrepancy.'
};
}
}
Before implementing database enum updates, model the allowable state graph as an adjacency matrix with strict precondition guards:
[Trial] ────────► [Active] ────────► [PastDue]
│ │ │
│ ▼ ▼
└─────────────► [Canceled] ◄──────────┘
Any edge attempting to move from Canceled directly back to Active without passing through the Checkout/Re-subscribe gate is blocked by formal proof.
prove NOT invariant) to discover edge-case input values that break assertions.CHECK constraints, foreign keys, and atomic database triggers.| Anti-Pattern | Critical Risk | Engineering Remedy |
|---|---|---|
| Floating point arithmetic for currency | Inexact decimal rounding creates ledger drift | Enforce integer cents/satoshis with strict SMT bounds |
| Unconstrained state transitions | Illegitimate subscription access without payment | Model transition matrix with formal guard preconditions |
| Relying on application-layer checks alone | Race condition during concurrent API calls bypasses check | Pair formal proof with database atomic constraints & row locks |
<a name="bahasa-indonesia"></a>
saas-billing, doku-payment-gateway, payment-gateway-expertauthentication-identity-expert, zero-trust-secret-vaultdatabase-orm-expert, spec-driven-development-expertproperty-mutation-testing-expert, autonomous-tdd-debugger, anti-slopbrainstorming, zero-to-prod-orchestrator, session-memory-managerPanduan produksi untuk menerapkan metode formal, spesifikasi matematis, dan SMT (Satisfiability Modulo Theories) solver (seperti Z3, Dafny, TLA+) pada sistem perangkat lunak misi kritis. Membuktikan ketiadaan pelanggaran invarian (zero-invariant violation) pada pembukuan entri ganda FinTech, transisi siklus langganan SaaS, batas isolasi multi-tenant, dan hierarki akses.
Aktifkan skill ini ketika:
Setiap transaksi keuangan wajib mematuhi aturan entri ganda:
Pastikan tidak ada alur ilegal dalam sistem langganan:
Canceled tidak boleh berubah menjadi Active tanpa melewati proses verifikasi pembayaran baru (Re-checkout).PastDue harus otomatis membatasi akses fitur premium sesuai aturan masa tenggang (grace period).CHECK constraint PostgreSQL dan atomic locks.| Praktik Buruk | Dampak Buruk | Solusi Rekayasa |
|---|---|---|
| Menggunakan tipe data float untuk saldo keuangan | Selisih sen akibat rounding error yang menumpuk | Gunakan tipe integer (satuan sen) dengan validasi solver |
| Mengizinkan transisi state tanpa validasi prasyarat | Pengguna mendapat akses gratis setelah membatalkan langganan | Buktikan matriks transisi dengan formal state graph |
| Validasi hanya di lapisan aplikasi | Transaksi paralel dapat menembus pengecekan (race condition) | Gabungkan bukti formal dengan kunci transaksi database (SELECT FOR UPDATE) |
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
A2A agent protocol interoperability, Agent Cards, and MCP bridging / Protokol agen A2A, Agent Cards, dan integrasi MCP.
The English summary is being prepared. Showing the original description.
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.
The English summary is being prepared. Showing the original description.
Web accessibility testing with axe-core, Playwright, and WCAG 2.2 / Pengujian aksesibilitas web axe-core, Playwright, dan WCAG 2.2.
The English summary is being prepared. Showing the original description.
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.
The English summary is being prepared. Showing the original description.
Model cascading & complexity-scored routing (Grok, Gemini, Claude) / Routing kaskade model & scoring kompleksitas (Grok, Gemini, Claude).
The English summary is being prepared. Showing the original description.
Affective computing, emotion AI, and multimodal sentiment analysis / Komputasi afektif, AI emosional, dan analisis sentimen multimodal.
The English summary is being prepared. Showing the original description.