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
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 file1# Paired reversal cancellation23GL batch tapes that support corrections distinguish two reversal flavors:45| 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. |910The intent of a paired RV is "this earlier posting was a mistake — erase11it entirely." If only the RV is suppressed, the original still posts and12the running balance ends up off by `2 × magnitude` (the unwanted original13plus the absence of the reversal that would have offset it).1415## The reversal settlement window1617A 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 both19legs when the RV's value-date and the referenced posting's value-date are20within the **reversal settlement window** of each other. The window for this21ledger is **2 days** (inclusive).2223If 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.
