# Stage 98: Selective ZIP Extract (aq98_extract_prioritized_zip_member / DB-UNIT-01)

Downloads and inflates only the single high-value file slice inside a remote ZIP via HTTP 206, verifying CRC-32 and stamping SWHID + 8KB FastCDC chunks in 0 calls.

- Atomic micro-queue: `aq98_extract_prioritized_zip_member` (visibility: `public_commons`)
- Backing database unit: `DB-UNIT-01` (`Content-Addressed Entities & Merkle Payload Core`)
- Database cell: `entities-db.teleon.dev` (`teleon_core.teleon_entities`, `teleon_core.teleon_executable_payloads`, `teleon_core.teleon_annotation_revisions`)
- Claim row hydration: `single_self_contained_flat_task_row` (100% context inline, normalized writeback)
- Track 2 Sister queue (`SISTER-01`): `sq01-improve-cas-queue.teleon.dev` (Tune chunk boundaries, add AST language grammars, and shrink byte-slice token overhead.)
- Lanes: Single-Member Range, Raw Deflate + CRC32, 8KB Gear FastCDC

## Execution engines & AI Agent freedom contract

- **Deterministic (0 model calls)**: `cas_fastcdc_swhid_ingestor_v1` (Local-header 0x04034b50 raw deflate extractor & FastCDC chunker (0 calls))
- **Hybrid (<=1 model call)**: `cas_license_boundary_disambiguator_v1`
- **AI Agent & Bot Fleet (1..6 calls)**: `cas_unstructured_bundle_extractor_v1` (Corrupted-header recovery & encoding normalizer)
  - Contract: **Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions**

## Database invariants

- Never rewrite immutable swh:1:cnt digests; append bitemporal annotation revisions instead.
- Prefer HTTP Range slices (<= 64 KiB) over full repository downloads.

## External & internal bot fleet actions

- Extract the 1 valuable file from a 5,000-file ZIP using 2 HTTP range requests
- Verify exact CRC-32 checksums and stamp content-addressed swh:1:cnt digests
- Deduplicate shifted byte regions across archive versions via Gear-hash FastCDC

## Sister self-tuning areas

- Tune FastCDC chunk target size per language grammar
- Add AST symbol-slicing code_blocks for new file formats (WGSL, USD, Typst)
- Expand provenance and license synonym mappings
