# Task 01 — Setup Workspace

## Goal
Create the working directory layout and versioned pipeline configuration.

## Input
- Path to the raw CSV root (read-only). Ask the user if unknown.

## Actions
1. Create:
```
work/
	config/          # pipeline.json, token_patterns.json, column_mappings/, anomaly_rules.json
	manifest/        # inventory, fingerprints, reports
	canonical/       # cleansed partitioned dataset
	rejects/         # quarantined anomalies
	schema/          # DDL, data dictionary, instruments repository
	exports/{json,sqlite,postgresql,rdf}/
	lineage/
	scripts/         # all Python scripts produced by tasks
```
2. Write `work/config/pipeline.json`: `SOURCE_ROOT`, sample sizes (head/tail/random rows), version stamp.
3. Write empty `work/config/token_patterns.json` and `work/config/anomaly_rules.json` skeletons.

## Intermediate Result (done when)
- Directory tree exists; `pipeline.json` valid and points to an existing `SOURCE_ROOT`.
