feat: add line-level creed diff preview (COD-384) - #41
Conversation
🤖 Automated Review PanelGPT-5.5 (openai/gpt-5.5)Finding (fixed before PR): The reviewer otherwise confirmed the direct Go gates and CLI behavior passed. Gemini 3 Flash (google/gemini-3-flash-preview)Finding (fixed before PR): a symlinked The reviewer approved unified-diff coordinate/newline behavior, CLI exit semantics, dry-run preservation, and safe non-adoption of arbitrary user output after this correction. |
05e358c to
7ec4ec1
Compare
7ec4ec1 to
e3b0a44
Compare
Summary
Implements
creed diff [--target <target>]as a generated service operation. It renders the same candidate files as sync and reports deterministic, line-level unified diffs for changed, created, and safely tracked stale/deleted outputs.internal/service.Servicesync --dry-runbehavior.creed/.outputs/<target>.jsononly to discover stale Creed-owned outputs; arbitrary user files are never adoptedVerification
All passed locally.
Review panel
Both reviewers identified correctness/security issues before handoff:
.creed/.outputsdirectory could redirect ownership metadata outside the project. Fixed by validating ownership-directory components and adding regression coverage.The PR is intentionally draft for human review; it must not be auto-merged.
Closes COD-384.