1# Dashboard Source Management Delta23## MODIFIED Requirements45### Requirement: Source listing API6The dashboard API SHALL list registered sources with live validity, repository, and OpenSpec scan information.78#### Scenario: Valid initialized source9- **GIVEN** a registered source path resolves to a repository with an `openspec/` directory10- **WHEN** the dashboard requests the source list11- **THEN** the API returns the source as valid with repo root, OpenSpec path, scanned changes, scanned ideas, scanned specs, and status counts1213#### Scenario: Existing but uninitialized source14- **GIVEN** a registered source path resolves to an existing repository without an `openspec/` directory15- **WHEN** the dashboard requests the source list16- **THEN** the API returns the source as invalid with the repo root and a `No openspec/ directory found` error1718#### Scenario: Missing path19- **GIVEN** a registered source path no longer exists20- **WHEN** the dashboard requests the source list21- **THEN** the API returns the source as invalid with an explanatory error instead of dropping the source2223#### Scenario: Tool-created idea appears in scans24- **GIVEN** an agent creates an idea through `openspec_idea_create` under a registered source25- **WHEN** the dashboard source list or source detail scan is requested26- **THEN** the created idea appears in the scanned ideas list with its slug, title, source id, and `ideas` status