# Stage 59: Flat Task Variant Row (aq59_emit_flat_task_variant_row / DB-UNIT-01)

Appends every task variation (raw, non_enriched, enriched, guided, mutated, remixed, subdivided, arbiter_resolved) as its own self-contained flat row.

- Atomic micro-queue: `aq59_emit_flat_task_variant_row` (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: Zero-Merge Append-Only, Raw vs Enriched vs Guided, Lineage Diff

## Execution engines & AI Agent freedom contract

- **Deterministic (0 model calls)**: `cas_fastcdc_swhid_ingestor_v1` (Zero-merge flat variant stamper, SWHID hasher & depth-1 guard)
- **Hybrid (<=1 model call)**: `cas_license_boundary_disambiguator_v1`
- **AI Agent & Bot Fleet (1..6 calls)**: `cas_unstructured_bundle_extractor_v1` (Controlled ablation & counterfactual variant designer)
  - 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

- Write every task enrichment, advisory binding, or mutation as a new immutable flat row
- Keep the verbatim raw bare_baseline row untouched for clean A/B lift measurement
- Compare sibling variant rows directly in SQL without multi-table joins or overwrite loss

## 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
