## Lesson — Derive metadata from resolved diff sources

**Tags:** cli, git
**Scope:** packages/cli/src/**/*.ts, !**/*.test.*

Pass the 'staged' status derived from the resolved diff result to downstream engines rather than the raw CLI flag. This ensures metadata accuracy if the diff resolver falls back to a different source than the one explicitly requested.
