PrERT-CNM-v4

Phase 1 Implementation Runbook

This runbook covers the implementation that was added for:

Added Components

Install

From repo root:

python -m pip install -e .

Optional dev tools:

python -m pip install -e .[dev]

Run Extraction (Phase 1)

PYTHONPATH=src python scripts/extract_phase1_controls.py \
  --chunk \
  --output-dir artifacts/phase-1

Expected outputs:

Dry-Run Chroma Migration

PYTHONPATH=src python scripts/migrate_to_chroma.py \
  --input-dir artifacts/phase-1 \
  --dry-run

This verifies collection sharding and row counts without writing to cloud.

Live Chroma Migration

PYTHONPATH=src python scripts/migrate_to_chroma.py \
  --input-dir artifacts/phase-1

Default collection shards:

Optional prefix:

PYTHONPATH=src python scripts/migrate_to_chroma.py \
  --input-dir artifacts/phase-1 \
  --collection-prefix prert_

Validation

Run tests:

PYTHONPATH=src python -m pytest tests -q

Phase 1 Visual Snapshot

pie showData
     title Phase 1 Controls by Regulation (n=237)
     "GDPR" : 103
     "ISO 27001" : 68
     "NIST PF 1.1" : 66
Figure What it shows Result
Phase 1 Extraction Composition Control distribution across source standards GDPR contributes the largest share while ISO and NIST remain balanced.

For the full multi-figure dashboard (progress + quality indicators), see 09-phase1-phase2-progress-dashboard.md.

Chroma MCP (Optional)

For improved doc search while developing, see:

Use it as a companion for docs lookup; runtime ingestion/search in this repo remains implemented via Python SDK + OpenAPI fallback.

Notes


⬅ Back Next ⮕