aba-payway-journal
Query the local ABA PayWay transaction journal — timelines, stats, reconciliation, anomalies, and RCA for AI agents.
Skill by Ruzaid-aman
Chalk Labs
Need help deploying aba-payway-journal?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ruzaid-aman-aba-payway-journal
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Nov 2, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/aba-payway-journal
What's inside
- Skill name
aba-payway-journal- Description
- Query the local ABA PayWay transaction journal — timelines, stats, reconciliation, anomalies, and RCA for AI agents.
- License
- MIT
- Metadata
- version: 1.0.0
- Instructions
- 118 lines in SKILL.md · view on GitHub
Before installing
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (1)
- SKILL.md
SKILL.md (first lines)
# Transaction Journal
CLI default-on / SDK opt-in, append-only JSONL record of every PayWay API exchange, command, poll,
observed status, artifact, and webhook capture. This is the AI/agent query
layer over that record — read-only, never a source of payment truth.
## Quick Start
For onboarding, start with [first payment](../aba-payway-first-payment/SKILL.md).
Use the shared lifecycle: `created`, `pending`, `approved`, `failed`, `unknown`.
Creation is not approval. Verify order ID, amount, and currency before fulfilling once.
A timeout means unknown; query the existing attempt before replacing it.
Expiry and closure remain local policy, even when the gateway reads PENDING.
See [webhook production](../aba-payway-webhook-production/SKILL.md) for callback trust and recovery.
Run the installed CLI as `npm exec -- payway-sdk`.
```sh
# API commands record by default (command lifecycle + every API exchange)
payway-sdk generate-qr -a 5.00 -c USD --no-polling -y
# Reconstruct what happened to one transaction
payway-sdk journal timeline -t qrmt8onznj46fdc1 --json
# Provider latency, retry rate, error codes, creation funnel
payway-sdk journal stats
# Which creations never received a callback?
payway-sdk journal reconcile --json
```
```ts
// Library access (all exported from aba-payway-ts) — read-only queries:
import {
computeJournalStats,
detectJournalAnomalies,
explainTransaction,
reconcileTransactions,
} from 'aba-payway-ts';
const rca = explainTransaction('qrmt8onznj46fdc1'); // verdict + steps + hints
const stats = computeJournalStats(); // latency p50/p90/p99, funnel
const report = reconcileTransactions(); // without-callback bucket
```
## Retention (opt-in maintenance — destructive, separate from queries)
Pruning DELETES journal lines older than the given age. It is never part of an
investigation; run it only as a deliberate retention policy:
```ts
import { pruneJournal } from 'aba-payway-ts';
pruneJournal(new Date(Date.now() - 30 * 86_400_000)); // drop events older than 30 days
```
```sh
payway-sdk journal prune --before 30 # same, via CLI
```
## Recording defaults and location
- CLI API commands record by default. Use `--no-journal` or falsy
`PAYWAY_JOURNAL=0|false|no|off` to disable. Pure-local docs/journal/doctor
commands are exempt; `--journal` explicitly enables an invocation.
- Persistent: `PAYWAY_JOURNAL=1` (+ optional `PAYWAY_JOURNAL_DIR`,
`PAYWAY_JOURNAL_MODE=digest|full`, `PAYWAY_JOURNAL_MAX_AGE_DAYS` retention), or SDK
config `journal: true | {dir, mode, maxAgeDays}`.
- `--json` success envelopes carry `correlationId`/`traceId` — grep them in the
journal to reconstruct the exact exchange. Create commands warn when the
journal already holds the same tran_id (`--allow-duplicate-id` to suppress).
- SDK library default OFF: enable with the configuration above.
- File: `<data root>/journal.jsonl`. `PAYWAY_DATA_DIR` overrides the shared
root; otherwise it is `<APPDATA|~/.config>/aba-payway-sdk/data`.
An explicit journal directory or `PAYWAY_JOURNAL_DIR` overrides that root
for the journal. Run `payway-sdk doctor --json` to find `.dataRoot`.
- JSON files are the default backend. Optional `better-sqlite3` selects a
shared `<data root>/payway.db` through the storage facade;
`PAYWAY_FORCE_JSON_STORAGE=1` forces JSON. See `payway-sdk docs storage-service`.
- `digest` mode (default) stores allow-listed non-secret fields only — no
hash, no merchant_auth, no pwt, no QR base64, no PII. `full` mode adds
sanitizeForLog-redacted bodies, size-capped.
## Agent Tool
The agent CLI exposes a read-only `query_journal` tool (planner-listed,
never gated): `query: timeline` (requires `transactionId`; returns the
reconstructed steps + verdict + hints), `stats`, `reconcile`, `anomalies`.
Ask the agent "what happened to transaction X" and it answers from the
journal when recording was on.
## Commands
| Command | Purpose |
| --- | --- |
| `journal show` | Recent events, filter by `--kind` / `--tran`, `--last N` |
| `journal timeline -t <id>` | Chronological history of one transaction |
| `journal stats` | Latency percentiles, retry rate, top errors, funnel |
| `journal reconcile` | Creations vs webhook captures (without-callback bucket) |
| `journal explain -t <id>` | Root-cause narrative + hints |
| `journal anomalies` | Error spikes, retry bursts, latency outliers (heuristics listed in output) |
| `journal prune --before 30` | Retention (days or ISO timestamp) |
| `journal timeline --with-webhooks` | Callback steps enriched with the persisted signature verdict / matched status / replay marker |
| `agent ledger prune --before 30` | Ledger retention — FINISHED records only; unfinished are never removed |
## Error Handling
- **A missing callback is NOT proof of non-payment.** PayWay never retries
missed deliveries; re-check with `check-transaction` before acting.
- **PENDING is not alive.** Expired and closed transactions read PENDING
forever (no EXPIRED/CLOSED status exists remotely) — keep a local flag.
- **Unpaid QR-only transactions never appear in `transaction-list`** —
reconcile/poll with check-transaction per transaction instead.
- The journal only knows what was recorded while it was on; empty results
mean "not journaled", not "never happened".
- Journal write failures never break SDK calls (fail-open); malformed lines
are skipped by readers and counted in reports.
- `journal prune` never destroys lines it cannot parse.From Ruzaid-aman/ABA-Payway-SDK-unofficial, MIT.
More from Ruzaid-aman/ABA-Payway-SDK-unofficial
- 0.570score
aba-payway-integration
Ruzaid-aman
Explain how to use this skill, select a PayWay flow, or integrate, test, review and troubleshoot ABA PayWay in a merchant project.
SkillAFreshness: AClaude Code +9 - 0.567score
aba-payway-customer-qr
Ruzaid-aman
Handle Merchant Portal Customer Module static QRs (Printed QR channel) — decoded payload anatomy, callback handling, and reconciliation via…
SkillAFreshness: AClaude Code +9 - 0.565score
aba-payway-agent
Ruzaid-aman
Use when operating the agentic PayWay CLI with provider modes, the 14 tools (incl.
SkillAFreshness: AClaude Code +9 - 0.565score
aba-payway-knowledge-base
Ruzaid-aman
Use when you need PayWay integration guidance offline — the built-in knowledge base of integration and support topics (setup…
SkillAFreshness: AClaude Code +9 - 0.564score
aba-payway-hash
Ruzaid-aman
Verify ABA PayWay webhook signatures with timing-safe HMAC verification.
SkillAFreshness: AClaude Code +9 - 0.564score
aba-payway-first-payment
Ruzaid-aman
Start an ABA PayWay payment, choose QR or hosted checkout or payment link, verify it, and fulfill once.
SkillAFreshness: AClaude Code +9 - 0.554score
aba-payway-purchase
Ruzaid-aman
Create a signed ABA PayWay checkout purchase with aba-payway-ts.
SkillAFreshness: AClaude Code +9 - 0.551score
aba-payway-qr
Ruzaid-aman
Generate an online ABA PayWay KHQR payment QR code.
SkillAFreshness: AClaude Code +9 - 0.521score
aba-payway-beneficiary
Ruzaid-aman
Manage the ABA PayWay payout beneficiary whitelist — add payees, update status, and test with seeded sandbox beneficiaries.
SkillBFreshness: BClaude Code +9 - 0.521score
aba-payway-bulk-operations
Ruzaid-aman
Run one transaction operation (close, check, detail) across many ABA PayWay transaction IDs with per-item results, rate-limit pacing, and evidence reports.
SkillBFreshness: BClaude Code +9 - 0.518score
aba-payway-pre-auth
Ruzaid-aman
Complete, complete with payout, or cancel an ABA PayWay pre-authorization.
SkillBFreshness: BClaude Code +9 - 0.518score
aba-payway-payout
Ruzaid-aman
Make an ABA PayWay payout / split-payout and manage payout beneficiaries (whitelist, currency matching, error codes).
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 1, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Ruzaid-aman
- 0.570score
aba-payway-integration
Ruzaid-aman
Explain how to use this skill, select a PayWay flow, or integrate, test, review and troubleshoot ABA PayWay in a merchant project.
SkillAFreshness: AClaude Code +9 - 0.567score
aba-payway-customer-qr
Ruzaid-aman
Handle Merchant Portal Customer Module static QRs (Printed QR channel) — decoded payload anatomy, callback handling, and reconciliation via…
SkillAFreshness: AClaude Code +9 - 0.565score
aba-payway-knowledge-base
Ruzaid-aman
Use when you need PayWay integration guidance offline — the built-in knowledge base of integration and support topics (setup…
SkillAFreshness: AClaude Code +9 - 0.565score
aba-payway-agent
Ruzaid-aman
Use when operating the agentic PayWay CLI with provider modes, the 14 tools (incl.
SkillAFreshness: AClaude Code +9 - 0.564score
aba-payway-first-payment
Ruzaid-aman
Start an ABA PayWay payment, choose QR or hosted checkout or payment link, verify it, and fulfill once.
SkillAFreshness: AClaude Code +9 - 0.564score
aba-payway-hash
Ruzaid-aman
Verify ABA PayWay webhook signatures with timing-safe HMAC verification.
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get aba-payway-journal running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
aba-payway-journal skill. Agent Mart. https://agentmart.dev/skills/ruzaid-aman-aba-payway-journal (last updated 2026-10-24)