# NFT-LIM-03 + NFT-LIM-05 — Aggregate storage budget + thumbnail-log budget

**Task**: AZ-442_nft_lim_03_05_storage_budget
**Name**: Aggregate on-disk storage + thumbnail-log budget (AC-7.4 / AC-NEW-12 / RESTRICT-STORAGE)
**Description**: Combined coverage for two storage-budget scenarios that share the same volume measurement: NFT-LIM-03 (aggregate `tile-cache + tile-cache-write + fdr-output ≤ 100 GB`) and NFT-LIM-05 (thumbnail-log size component < 1 GB / 8 h).
**Complexity**: 2 points
**Dependencies**: AZ-406, AZ-407
**Component**: Blackbox Tests / Resource Limit (epic AZ-262)
**Tracker**: AZ-442
**Epic**: AZ-262 (E-BBT)

## Problem

The aggregate storage budget bounds how much disk the SUT may consume on the companion. Two related scenarios share this measurement and are combined to avoid duplication.

## Outcome

- pytest scenario at `e2e/tests/resource_limit/test_nft_lim_03_05_storage_budget.py`. Tier-1 OR Tier-2.
- 30 min Derkachi replay; per-minute `du -sh` of `tile-cache`, `tile-cache-write`, `fdr-output`, and the thumbnail-log subdirectory.
- NFT-LIM-03: assert `aggregate(tile-cache + tile-cache-write + fdr-output) ≤ 100 GB`.
- NFT-LIM-05: extrapolate thumbnail-log subdirectory to 8 h; assert `extrapolated_thumbnail_log < 1 GB`.

## Scope

### Included
- 30 min replay (shareable with NFT-LIM-02 if combined in CI orchestration).
- Per-volume size sampling.
- Both budget assertions.

### Excluded
- FDR-only size — owned by NFT-LIM-02.
- Mid-flight tile generation rate — owned by FT-P-17 (AZ-422).

## Acceptance Criteria

**AC-1: aggregate budget**
Given a 30 min replay
Then `du -sh tile-cache + tile-cache-write + fdr-output ≤ 100 GB` at the end of the run.

**AC-2: thumbnail-log 8 h budget**
Given the per-minute samples of the thumbnail-log subdirectory
Then `(size_at_30min_thumb / 30) × 480 < 1 GB`.

**AC-3: parameterization**
Given conftest parameterization
Then the scenario runs per `(fc_adapter, vio_strategy)`.

## System Under Test Boundary

Same as NFT-LIM-02.

## Document Dependencies

- `_docs/02_document/tests/resource-limit-tests.md` § NFT-LIM-03, § NFT-LIM-05
- `_docs/02_document/tests/test-data.md` § Resource Limits
