# Review metered billing accuracy

> Prepare, sign and independently verify a fixed-line billing evidence pack across a change of tariff, collector or billing system.


Use `telco evidence` to assemble the billing team’s working papers for a time-rated fixed-line service. The German report identifies which organisation measured, transferred and rated usage during each interval. A missing supplier record stays visible after cutover. [Open the German sample report](../examples/assurance/report.html)

In Germany, § 63 TKG covers connection timing, tariff-relevant distance zones, volume measurement and checks against agreed prices. The operator records which controls apply and selects its assessment route. External assessment and submission remain with the operator and the appropriate reviewing body. [TKG § 63](https://www.gesetze-im-internet.de/tkg_2021/__63.html) · [Bundesnetzagentur guidance](https://www.bundesnetzagentur.de/DE/Fachthemen/Telekommunikation/Unternehmenspflichten/Abrechnungsgenauigkeit/artikel.html)

## Prepare the review

Download the [synthetic scope and observations](../examples/assurance/review.json) and [metered tariff models](../examples/assurance/tariffs.json), or use the copies under `samples/assurance/` in the checkout.

1. Set the review period and the effective intervals. Dates include the start and exclude the end. Split an interval when the source, responsible organisation or deployed tariff changes. Keep the organisation alias directory with the reviewer.
2. Record applicability, the relevant supplier references and the original-unit aggregates at each processing stage. Use dated references to restricted originals. Collect aggregates before traffic expires and record a gap wherever an owner cannot supply them. [Traffic retention](../docs/voice-itemisation/)
3. Record the deployed tariff revision separately from its synthetic model. Use independently expected gross cents for one-, 60- and 61-second calls. `tariff-check` returns the model fingerprint and actual prices. A dated price review ties that model to the deployed revision. Other tariff components need their own evidence.

```sh
telco evidence tariff-check tariffs.json
telco evidence prepare review.json tariffs.json --out review-pack
```

Open `review-pack/report.html` to inspect the findings. The sample leaves the legacy clock comparison open. A supplier can close it by providing a reference for the responsible measurement source and the dates it covered. Prepare revisions in a fresh directory and retain the previous manifest digest.

## Read the findings

In the example, source 11 belongs to measurement organisation 2 until 1 October 2026. Its time-standard record is missing. The report links directly to that finding and shows the replacement source separately. To revise the review, add the custodian’s original digest, issuer, issue date and actual coverage to `references`. Use the previous manifest digest in `previous_manifest_sha256` to identify the earlier issue. A receipt issued after the reporting period can cover an earlier interval when it was available by `as_of`.

| Input | What to obtain from the owner |
|---|---|
| `chain`, `source`, `owners` | Numeric aliases from 1 to 9999. Keep a separate chain for each parallel feed and cover the whole review period in each chain. |
| `aggregates` | Comparable quantities in original units before rounding, held quantities and the digests of retained measurement and transfer summaries. |
| Billed lines and journal | Expected, billed and posted cents plus supporting digests. Owners sum absolute differences across the original items before aggregation so a credit and an overcharge cannot cancel. |
| `references` | Criterion, responsible owner, source, issuer, period and original digest. For price reviews include both the deployed revision and the synthetic model fingerprint. |

The built-in model covers gross EUR fixed-voice prices per minute with 1/1, 60/1 or 60/60 pulses. A volume, zone or other unsupported basis leaves an open finding. Independently confirm the declared scope and the originals behind the hashes.

## Sign and verify offline

After reviewing the contents, sign the exact manifest with the operator’s OpenPGP key. The pack uses a binary detached signature.

```sh
gpg --local-user "$OPERATOR_SIGNING_KEY" --detach-sign \
  --output review-pack/manifest.sig review-pack/manifest.json
```

Run verification on the reviewer’s workstation with GnuPG installed. The reviewer obtains a binary public keyring and the full primary fingerprint through an independent trusted channel. Confirm the key’s current authorization, expiry and revocation status there. Supply that keyring from outside the pack. Verification uses the local `gpgv` executable, checks the complete file inventory and regenerates the report from the signed inputs. [GnuPG verification semantics](https://www.gnupg.org/documentation/manuals/gnupg/gpgv.html)

```sh
telco evidence verify review-pack --keyring reviewer.gpg --fingerprint "$APPROVED_PRIMARY_FPR"
```

| Exit | Meaning | Reviewer action |
|---:|---|---|
| 0 | Internal evidence complete | Inspect the report and the custodian’s originals. |
| 1 | Open evidence gaps or a failed tariff case | Use the German findings to assign follow-up. An authenticated pack can have gaps. |
| 2 | Input, package or verification refused | Correct the input or obtain the original files and trusted signing information. |

Preparation reports `integrity: unsigned`. For a received pack, open the HTML after verification reports `integrity: verified`. The separate `coverage` field identifies any outstanding findings. The manifest digest identifies the exact revision. Archive the verifier executable and its SHA-256 separately with the review tooling. Future reviewers need the same report and rating logic for byte-for-byte replay.
