Tooluck logoTooluck
SKILL.md

paired-reversal-cancellation

Agent skill frombenchflow-ai/skillsbench

Reference for paired-reversal handling on GL batch tapes: an RV row whose ref-trace points at an earlier row cancels BOTH legs (the RV and the row it references) — but ONLY when the two value-dates fall within the shop's reversal settlement window; an RV that references a too-old posting is NOT a cancellation and posts one-sided. Useful when the posting tape carries a reference-trace column alongside reversal codes and the running balance is off by twice the reversal magnitude, or by a whole leg on stale references.

How to install paired-reversal-cancellation

install paired-reversal-cancellation
# install the skillsbench pack with the skills CLI
npx skills add benchflow-ai/skillsbench

# or add only this skill to Claude Code: copy the folder

tasks-extra/cobol-gl-batch-reconcile/environment/skills/paired-reversal-cancellation/

# into

~/.claude/skills/paired-reversal-cancellation/ (all projects)

.claude/skills/paired-reversal-cancellation/ (one project)

tasks-extra/cobol-gl-batch-reconcile/environment/skills/paired-reversal-cancellation/SKILL.md

Apache-2.0Full file
1# Paired reversal cancellation
2
3GL batch tapes that support corrections distinguish two reversal flavors:
4
5| Flavor | Shape on tape | Effect on balance |
6|--------------|----------------------------------------|------------------------------------------------------------------------------|
7| Unpaired RV | `RV` row, ref-trace blank | Posts via the standard RV rule for the account type (e.g. sign-flip on a deposit). |
8| Paired RV | `RV` row, ref-trace = an earlier trace, **within the reversal window** | The RV row AND the row it references are BOTH suppressed; both reported as `CANCEL` rejects; net delta to the balance is zero. |
9
10The intent of a paired RV is "this earlier posting was a mistake — erase
11it entirely." If only the RV is suppressed, the original still posts and
12the running balance ends up off by `2 × magnitude` (the unwanted original
13plus the absence of the reversal that would have offset it).
14
15## The reversal settlement window
16
17A reference-trace match is **necessary but not sufficient** to cancel a pair.
18Shops bound how far back a reversal may reach: a paired RV only cancels both
19legs when the RV's value-date and the referenced posting's value-date are
20within the **reversal settlement window** of each other. The window for this
21ledger is **2 days** (inclusive).
22
23If the two value-dates are more than 2 days apart, the reference is *stale*:
24…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skillsbench

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates