# CP9 Topology Construction

This directory contains the product requirement, related task notes, and implementation design for building the API-level service topology used by `cp9 up`.

## Documents

- `prd-api-level-service-topology.md` - original approved PRD.
- `root-call-graph-task.md` - related root API call graph task note.
- `implementation-design.md` - proposed implementation design and delivery plan.

## Target Outputs

- `construction/cp9/artifacts/topology.json`
- `construction/cp9/artifacts/coverage-matrix.json`
- `construction/cp9/artifacts/name-map.json`
- `construction/cp9/artifacts/tiinf-edge-templates.json`

## Intended Scripts

The PRD names these construction scripts as the implementation surface:

- `build-coverage-matrix.py`
- `build-name-map.py`
- `assemble-topology.py`
- `query-topology.py`
- `detect-stale.sh`
- `rescan-stale.py`

The implementation design keeps these scripts under `construction/cp9/` unless the project later decides to promote shared utilities to the parent `construction/` directory.
