Map Project Intelligence
Default to read-only discovery. Exclude sensitive files before inventory, hashing, parsing, or retrieval. Never store secret values. Reject symlink traversal, bound every walk, archive previous maps, and promote a new map only after validation.
Procedure
- Resolve the project root and confirm scope.
- Run
scripts/build_project_map.py <project-root>. For audit custody outside the source tree, add--output-dir <audit-map-dir>. - Validate the promoted map with
scripts/validate_project_map.py <project-root> --fresh. - Read
project-manifest.json,risk-and-gap-map.json, andmap-summary.mdfirst. - Query
retrieval-index.jsonbefore opening arbitrary source files. - Hydrate only source ranges returned by the query plan.
- Treat unresolved edges and low-confidence facts as gaps, not truths.
- Refresh incrementally after material source changes and compare revisions.
- Require the native impact operation before symbol edits; do not rely on a stale external code-intelligence index.
Required outputs
The canonical map lives at .engineering-bootstrap/project-map/ and must include all files listed in references/project-map-contract.md.
Boundary
The mapper may infer structural relationships but must label inference confidence. It must not infer secrets, hidden production topology, or ownership unsupported by repository evidence.