Transaction trace analysis

From benchflow-ai/skillsbench · View interactive version

Transaction trace analysis is an AI agent skill from the GitHub repository benchflow-ai/skillsbench. Teaches evidence-based analysis of transaction logs and traces. Use when reconstructing transaction behavior from tables, TSV/CSV files, timestamps, counters, object histories, validation records, abort records, retries, partial logs, or when producing classified transaction outputs from trace evide

How to use this skill

Skill file

Transaction Trace Analysis

Use this skill when the task provides concrete logs, tables, counters, timestamps, or partial records and asks you to infer transaction behavior.

This skill is about reconstruction under partial evidence:

Quick Reference (pick the next file to read)

| If you need… | Read |

|---|---|

| Mapping weird columns into tx/key/op/timestamp/counter/status/reason | trace-schema-normalization.md |

| Grouping events per transaction and avoiding “attempt vs request” mixups | transaction-history-reconstruction.md |

| Reconstructing a per-key version timeline from writes/validation | object-version-history.md |

| Interpreting timestamp/counter semantics and scope correctly | timestamp-and-ordering-fields.md |

| Understanding validation failures, abort reasons, and conservative checks | validation-and-abort-records.md |

| Avoiding overclaims when the trace is incomplete | evidence-quality-and-uncertainty.md |

| Emitting deduped/sorted ids and minimal justifications | output-classification-patterns.md |

Trace Ledger (what you build first)

Build two tiny ledgers before doing any deep inference:

Transaction ledger

txn_id -> {
  seen_keys: [...],
  read-evidence: (key, observed_version_fields...),
  write-evidence: (key, installed_version_fields...),
  validation/abort-evidence: [...],
  candidate_commit_fields: ...,
}

Object ledger

key -> timeline [
  { event: write/abort/validate, txn_id, version_fields, counter_fields },
  ...
]

Only after both exist should you attempt joins like “did T’s read become stale?” or “could an aborted T have committed?”

Workflow (operational)

  1. Schema normalization: name every column; identify scope for each counter/timestamp.
  2. Per-txn reconstruction: summarize each txn’s evidence and candidate serialization point fields.
  3. Per-key reconstruction: build a timeline per key; validate what orders it (wts? counter?).
  4. Decision modeling: re-express the protocol’s decision rule in terms of trace fields.
  5. Classification: prove “must abort” vs “could commit” vs “unknown from evidence.”
  6. Output: dedupe ids, sort if required, write exact format.

Common Pitfalls

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.