SIGN IN SIGN UP

fix(core): harden legacy Team recovery policy (#1559)

## Description

Harden legacy Team recovery policy by excluding invalid local Project identities, preserving reviewed canonical mappings, and surfacing actionable repair metadata without treating peer-received state as local repair work.

## Type of Change

- [ ] ๐Ÿš€ Feature (new functionality)
- [x] ๐Ÿ› Bug fix (fixes an issue)
- [ ] ๐Ÿ“š Documentation (docs-only change)
- [ ] ๐Ÿ”ง Maintenance (refactor, chore, CI, etc.)
- [ ] ๐Ÿงช Testing (test-only changes)

## Testing

- [x] Relevant checks pass locally (`pnpm run tsc`, `pnpm run lint`, `pnpm run test`)
- [x] Added/updated tests for changes
- [x] Manually verified changes work as expected

## Checklist

- [x] Code follows project style (`pnpm run lint` passes for touched files)
- [x] Self-review completed
- [x] Documentation updated (if needed)
- [x] No new warnings introduced
A
Adam Kunicki committed
5ccd7b20bdf3b110f976e1151dcc12c333c4a6f3
Parent: fbcfc35
Committed by GitHub <noreply@github.com> on 9/1/2026, 4:32:31 PM