← Files PMCARCHIVED FILE
skills/curate-project-memory/references/code-traceability.md
859 Bytes · Oct 3, 2026 · 06:31 UTC
# Code traceability
Relate knowledge to code with stable repository IDs and relative paths:
```yaml
code_references:
- repository: service-api
path: src/auth/service.ts
relation: implemented-by
revision: optional-commit
```
Allowed relation values are `affects`, `implemented-by`, `verified-by`, `configured-by`, and `invalidated-by`. Omit revision when the knowledge applies across revisions.
For simple machine-readable retrieval, also include a flat list when code references exist:
```yaml
code_paths:
- src/auth/service.ts
```
Keep the structured references authoritative; `code_paths` is a portable search index. Update both together.
When changing a referenced file, inspect linked accepted decisions. When a change makes a decision inaccurate, add a conflict or supersession candidate instead of altering the decision silently.
SHA-256: da2d703c6b04f90f008bafe9304c7ec4ee73028310e49b99cf2d276688cb364e