IB-WP-0019-T07: archive integration; close IB-WP-0019

The default archive include set already pulls output/ in wholesale, so
output/budget/ already lands inside the archive package with no code
change. Add a budget_summary block to ArchiveRecord.metadata so
catalog-level tools can see plans_count, runs_count, total_tokens,
total_cost_usd_known, total_cost_usd_estimated, and the
latest_snapshot_id without unpacking the archive. An infospace with no
budget data still archives cleanly with an empty metadata dict.

Closes IB-WP-0019 (Budget and Usage Registry): T01-T07 all done.
Three-layer design landed end-to-end — layer 1 (per-infospace
plans.yaml / usage.yaml / summary.yaml) and layer 3 (state-hub
record_token_event emission with failure isolation) live here; layer 2
(cross-application QualityLedger for adaptive routing) is parked in
llm-connect LLM-WP-0004 and infospace-bench IB-WP-0018 awaits it.

122 tests pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-17 21:53:28 +02:00
parent 816a95b3ef
commit bb70b2f4b9
3 changed files with 89 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ type: workplan
title: "Budget and Usage Registry for Infospaces"
domain: markitect
repo: infospace-bench
status: todo
status: done
owner: markitect
topic_slug: markitect
created: "2026-05-17"
@@ -195,7 +195,7 @@ state_hub_task_id: "7cb34bfc-c562-4dda-a6d4-b44158644e19"
```task
id: IB-WP-0019-T07
status: todo
status: done
priority: low
state_hub_task_id: "b97906e0-2835-4246-9868-840c02d64fae"
```