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

transaction-concurrency-control-foundations

Provides database transaction concurrency-control background. Use when reasoning about transactions, commits and aborts, serializability, isolation anomalies, conflicts, dependencies, and protocol families such as locking, timestamp ordering, OCC, MVCC, SSI, TicToc, hybrid protocols.

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

설치 방법 보기

포함된 파일(7)

  • SKILL.md4.8 KB
  • references/anomaly-and-isolation-taxonomy.md1.6 KB
  • references/concurrency-control-problems.md1.9 KB
  • references/conflict-taxonomy.md1.8 KB
  • references/protocol-family-overview.md2.0 KB
  • references/representative-protocols.md10.0 KB
  • references/transaction-concepts.md2.2 KB

SKILL.md(원문)

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

Transaction Concurrency-Control Foundations

Use this skill when you need shared vocabulary + decision lenses for transaction concurrency control before analyzing a specific protocol or trace.

This skill is most useful when you catch yourself asking:

  • “What exactly is the anomaly / conflict here?”
  • “What does the protocol need to prevent, and what metadata would prove it?”
  • “Is this abort required for correctness or just conservative?”

Quick Reference (pick the next file to read)

If you need…Read
Core terms and what “commit/abort” means in historiestransaction-concepts.md
A crisp definition of the bug pattern (lost update, dirty read, write skew, phantoms)concurrency-control-problems.md
A guarantee taxonomy (serializable vs SI vs strict serializable; opacity if relevant)anomaly-and-isolation-taxonomy.md
Dependency/conflict edge types (rw/wr/ww; anti-deps; visibility)conflict-taxonomy.md
Where a mechanism fits (locking vs TO vs OCC vs MVCC vs SSI vs hybrid)protocol-family-overview.md
Concrete protocol mini-specs (2PL/TO/OCC/MVCC/SSI/TicToc)representative-protocols.md

Router: from “protocol cues” to what to read

When you have a protocol description or trace fields but don’t know what family it is, route by cues.

A. Is the protocol primarily blocking or aborting?

  • Blocking on conflicts, lock modes (S/X), deadlocks mentioned → go to 2PL in representative-protocols.md
  • Nonblocking execution + commit-time validation → go to OCC (and often TicToc/SSI live here too)

B. Does it assign a fixed transaction timestamp early?

  • Per-txn fixed TS(T), and objects store RTS/WTS → go to Basic Timestamp Ordering
  • Per-txn snapshot/start_ts + multiple versions → go to MVCC / Snapshot Isolation

C. Do reads choose a version from a version chain?

  • Yes (visibility rule, begin/end timestamps, “as of snapshot”) → go to MVCC
  • No, single current version plus per-key metadata → go to TO / OCC / TicToc-like

D. Do you see read timestamp extension or “valid-through” metadata?

  • Fields like rts (read-valid-through), extension checks, or “extend rts if unchanged” → go to TicToc

E. Do you see dependency / anti-dependency tracking?

  • Explicit rw anti-deps, “dangerous structure”, serialization-graph edges → go to SSI

F. What’s the proof object?

  • Locks prove exclusion → 2PL
  • Per-key RTS/WTS prove timestamp order → TO
  • Read-set version check proves stability → OCC
  • Visibility from snapshot + version chain proves consistent reads → MVCC/SI
  • Anti-dep edges / dangerous structure prove no cycles → SSI
  • Per-key wts/rts interval + extend-if-unchanged proves read validity at chosen commit_ts → TicToc

Minimal Working Vocabulary (keep this tiny)

When analyzing a trace or protocol, keep a running record with these nouns and edges:

transactions: T1, T2, ...
objects/keys: x, y, ...
versions: x@wts=..., x@ver=...
operations: R(x@...), W(x@...), commit(T), abort(T)
dependencies:
  T_i ->wr T_j   (T_j read from T_i's write)
  T_i ->rw T_j   (T_i read a version that T_j later overwrote; anti-dep)
  T_i ->ww T_j   (T_j overwrote T_i on same object)

If you can’t name the version read/written, you’re still in “story mode,” not “proof mode.”

Checklist: classify a protocol decision

Use this checklist before labeling an abort “unnecessary” or a commit “unsafe”:

  • Claimed guarantee: serializable? strict? SI? opacity?
  • What the transaction read: object + which version/timestamp evidence.
  • What changed by validation time: overwrite? timestamp extension? dependency edge?
  • What order would make it safe: a serial order or a timestamp assignment.
  • What evidence is missing: did the protocol lack history/versions to prove safety?

Common Pitfalls

  • Mixing scopes: per-key counters and timestamps often cannot order different keys.
  • Equating “row order” with “happened-before”: log order can be buffered/merged.
  • Assuming abort == anomaly: aborts can be conservative proof failures, not unsafe histories.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Perform various data analysis on SEC 13-F and obtain some insights of fund activities such as number of holdings, AUM, and change of holdings between two quarters.

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

benchflow-ai/skillsbench1.9천2026년 10월 13일 업데이트

AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching `acopf-math-model.md` and MATPOWER branch fields. Use when computing branch flows in either direction, aggregating bus injections for nodal balance, checking MVA (rateA) limits, computing branch loading %, or debugging sign/units issues in AC power flow.

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

benchflow-ai/skillsbench1.9천2026년 10월 13일 업데이트

Redact text from PDF documents for blind review anonymization

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

benchflow-ai/skillsbench1.9천2026년 10월 13일 업데이트

Use when checking simplified ADA-derived plan-view bathroom accessibility constraints such as turning space, door clear width, toilet centerline, grab bars, and lavatory knee/toe clearance.

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

benchflow-ai/skillsbench1.9천2026년 10월 13일 업데이트

Analyze failed GitHub Action jobs for a pull request.

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

benchflow-ai/skillsbench1.9천2026년 10월 13일 업데이트

Use when extracting plan-view architectural geometry from DXF files with semantic CAD layers, especially when outputs must normalize rooms, doors, fixtures, clearances, and grab bars into machine-checkable JSON.

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

benchflow-ai/skillsbench1.9천2026년 10월 13일 업데이트

benchflow-ai의 스킬 모두 보기

이 스킬의 문제 신고