- This project uses stacked PRs managed with
git sprorgit spice. Before starting work, check whether the current branch is part of a stacked PR setup, for example withgit log --oneline main..HEADand localsprorspiceconfig. - If it is not clear whether we are working with stacked PRs, ask the user before making any commits.
- For large or multi-concern changes, ask the user whether they want to use a stacked PR approach before structuring commits.
- When stacked PRs are in use, amend changes into the appropriate commit rather than creating new ones, then use the relevant tool only when the user asks.
- For upgrading Cairo dependencies from the Cairo repo, use
cargo xtask upgrade cairo. - When upgrading dependencies, never use broad
cargo updateor don't delete theCargo.lock. Only update the specific packages requested using--preciseand--packageflags. - Do not add or remove dependencies unless explicitly asked.
- Run
git diff mainafter changes and verify only the intended dependencies changed. If unrelated deps appear, revert those specific changes.
- Never run the full test suite without asking first. Run only targeted tests relevant to the changes, for example
cargo test -p <affected_crate>.