intelligence-radar/workplans/IR-WP-0006-billing-reconciliation.md
tegwick a72bc873b5 Close IR-WP-0004 and separate credential billing and research follow-ups
Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a09cbc-910e-77a0-b336-3130194350b3
2026-09-14 15:56:57 +02:00

2.2 KiB

id type title domain repo status flavor owner topic_slug origin origin_ref created updated
IR-WP-0006 workplan Reconcile trial billing and establish campaign accounting infotech intelligence-radar ready implementation codex custodian residual IR-WP-0004 2026-09-14 2026-09-14

Created before closure of IR-WP-0004 at the user's request to separate credential delivery from billing. Source files own the work; cross-repository owner plans retain authority over native changes. Review baseline: docs/evidence/2026-09-14-ir-wp-0004-review.md.

Specify independent billing evidence and reconciliation contract

id: IR-WP-0006-T01
status: todo
priority: high

Inventory the append-only events for ir-openrouter-pilot-20260913. Preserve the USD 0.023712 pending reservation and USD 10 total authorization. Define how provider billing evidence matches the failed request, what is unknown, who reviews a settlement, and how discrepancies are retained. HTTP 401 alone is not zero-charge proof. Accounting design can proceed independently of credential delivery; provider evidence retrieval may require an admitted read-only path.

Implement and verify auditable reconciliation

id: IR-WP-0006-T02
status: todo
priority: high

Provide a reviewed append-only settlement procedure or command. Preserve original reservations; reject duplicate/conflicting settlement, unknown reservation, invalid amount, cross-campaign references and budget overrun. Retain source billing evidence and reviewer attribution without credentials. Test uncertain/partial evidence and restart behavior. Do not fabricate a completed model trial to settle a failed request.

Reconcile the outstanding reservation and hand off budget readiness

id: IR-WP-0006-T03
status: wait
priority: high

Depends on T01/T02 and authoritative provider evidence. Resolve the USD 0.023712 reservation only to the supported actual amount, retaining any unresolved discrepancy explicitly. Rerender pilot/full plans for the same campaign and report spent, pending and remaining authorized budget. No campaign reset, additional authorization, or paid inference is implied. Completion requires reconciled evidence and a usable accounting handoff, not merely implementation tests.