# Customer task: close the hledger project ledger for June 2025

Use `book.v2.json`. Produce `trial-balance.csv`, `adjusted-trial-balance.csv`,
`cash-flow.csv`, and a source-linked `workpaper.json`.

This is a real public project ledger. The source owner publishes the OpenCollective
cashbook and a separate journal of transactions outside OpenCollective. The selected
period contains every cashbook row dated June 1 through June 30, 2025, and both
June donated-bounty entries from that separate journal. There are 27 cashbook events
and two additional noncash events. Use all of them exactly once in their proper stage.

The task is a monthly project-ledger close under the client rules below. It does not
claim to be the fiscal host's complete accounts or the maintainer's historical close
procedure. Do not invent invoices, assets, liabilities, useful lives, rent schedules,
or additional transactions. Do not rename sponsorship as sales or owner capital.

## Source and opening state

The source revision is `fb52e71ccf5a92285df33a0d9dad5a6eb1ace956` of
[hledger's public finance repository](https://github.com/hledgerorg/hledger_finance/tree/fb52e71ccf5a92285df33a0d9dad5a6eb1ace956).
The [top-level journal](https://github.com/hledgerorg/hledger_finance/blob/fb52e71ccf5a92285df33a0d9dad5a6eb1ace956/main.journal)
includes both the cashbook and the separately recorded transactions.

Opening cash is supplied from the last May host-fee row's published balance, with
its exact source reference. The client supplies the equally sized opening retained
project surplus account for this monthly exercise. Prior-period income and expense
accounts begin at zero after this explicit prior-surplus close. The opening surplus
is not June income or a June financing receipt.

Use the 24 supplied chart rows and their exact account IDs and types. Original
source account names are retained. `equity:retained-project-surplus` is the one
explicit client-policy opening account, rather than a claim that this leaf account
appears in the publisher's journal. All other supplied opening amounts are zero.

All monetary fields are exact integer USD cents. `amount_cents`,
`processor_fee_cents` and `net_amount_cents` preserve the original signs. Fees are
nonpositive. For every cashbook row, amount plus processor fee equals net amount.
The supplied source records have no refunds or tax component. Currency, event ID,
source reference, source revision, version, date and original counterparties must
remain attached to the work.

## Ordinary cashbook rules

The input supplies account identities, not postings or report answers.

- **CONTRIBUTION:** recognize the positive gross amount as sponsorship income in
  `sponsorship_income_account`. Recognize the magnitude of the processor fee as an
  expense in `processor_fee_expense_account`. The cash increase is the signed net
  amount in `cash_account`. Do not deduct the same fee a second time.
- **HOST_FEE:** recognize the magnitude of the negative amount as host-fee expense
  in `host_fee_expense_account` and the same cash outflow in `cash_account`.
- **EXPENSE:** recognize the magnitude of the negative gross amount as bounty
  expense in `bounty_expense_account`. Recognize the magnitude of its negative
  processor fee separately in `processor_fee_expense_account`. The cash decrease
  is the magnitude of the negative net amount in `cash_account`.

First post only these 27 cashbook events, together with the supplied openings, to
produce the unadjusted trial balance. Preserve the distinct sponsorship, bounty,
processor and host accounts; do not replace them with one combined revenue or
expense account.

## Close adjustments

The two supplied **DONATED_BOUNTY** records come from the publisher's separately
maintained journal. For this task they are the supplementary records to incorporate
at close, after the ordinary cashbook trial balance. For each, recognize its amount
as bounty expense in `bounty_expense_account` and the same amount as sponsorship
income in `sponsorship_income_account`. This follows the source owner's two-sided
recording of the donated bounty. There is no cash payment, receivable or payable
in this supplied adjustment. Do not also post these events to the ordinary stage.

Add these two adjustments to the unadjusted balances to produce the adjusted trial
balance. Their dates and source provenance stay unchanged; only the evaluation's
cashbook-then-supplementary close staging is supplied client policy.

## Cash-flow statement

Use the direct method for this bounded ledger. All selected cashbook activity is
operating. Report gross sponsorship receipts, gross bounty payments, processor-fee
payments and host-fee payments separately, then net operating cash flow. Payments
are signed negative amounts. Investing and financing cash flows are zero because
no selected source event belongs to those activities. Noncash donated bounties do
not appear in any cash-flow amount. Opening cash plus net change must equal closing
cash and the adjusted ledger's cash balance.

## Deliverable format and checks

Both trial-balance CSVs use `account_id,account_type,debit_cents,credit_cents`.
Include every supplied chart account, including zero rows. Net each account to a
single nonnegative debit or credit side. Total debits must equal total credits.
Use integer cents, without rounding or binary floating-point approximations.

The cash-flow CSV uses `section,amount_cents`, with these exact sections:

1. `operating_receipts_sponsorship`
2. `operating_payments_bounties`
3. `operating_payments_processor_fees`
4. `operating_payments_host_fees`
5. `operating`
6. `investing`
7. `financing`
8. `net_change`
9. `opening_cash`
10. `closing_cash`

The workpaper retains the original 27 cashbook records and two supplementary records,
their source identities, generated ordinary and adjusting postings, report data and
reconciliations. Every source event must be accounted for; no silent omission,
substitution or relabeling is permitted. Preserve the original records when correcting
an error. Completion requires actual usable files and their readback.

These source kinds, the detailed account chart and the noncash adjustment are outside
the earlier 11-kind/12-role demonstration profile. They require the supplied workflow
to be learned under the encounter's authorized teaching condition. Core changes and
private answer-key access are not part of using this dataset. If a required operation
cannot be expressed, report that exact unresolved operation rather than presenting
partial figures as the completed close.
