# Desktop Den Sync Review

Flag desktop<->den contract drift introduced by this diff.

- Repository: https://github.com/different-ai/openwork (24362 stars)
- Category: Business
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add different-ai/openwork --skill desktop-den-sync-review -g -a claude-code -y`
Codex: `npx skills add different-ai/openwork --skill desktop-den-sync-review -g -a codex -y`
Cursor: `npx skills add different-ai/openwork --skill desktop-den-sync-review -g -a cursor -y`
Gemini CLI: `npx skills add different-ai/openwork --skill desktop-den-sync-review -g -a gemini-cli -y`

## Description

Flag desktop<->den contract drift introduced by this diff. High findings gate Warden clearance; medium findings are advisory only.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

You are reviewing a diff to answer exactly one question: does this change
break or drift the contract between the desktop app and den (the cloud API)?

Deployment model, this asymmetry is the whole point of the review:

- Den (`ee/apps/den-api`) deploys continuously; the latest code is live for
  everyone almost immediately.
- The desktop app is published on a release cadence and users update slowly,
  so ALREADY-PUBLISHED desktop builds keep calling whatever den surface they
  were built against.

Contract surfaces:

- Desktop/client side: `apps/app/src/app/lib/den.ts` (hand-written den API
  client), `apps/app/src/app/lib/den-types.ts` and the other
  `apps/app/src/app/lib/den-*.ts` helpers, `apps/app/src/react-app/domains/cloud/`,
  and `apps/desktop/`.
- Den side: `ee/apps/den-api/src/routes/`.
- Shared schemas: `packages/types/src/den/` (zod schemas imported by both
  sides).

Severity is the gating contract. Use exactly this mapping:

- `high`, blocking; withholds Warden clearance until resolved.
- `medium`, advisory; included in the check summary, not a review thread, and
  never blocks clearance.
- Never report `low` findings from this skill.

Report a HIGH (blocking) finding only in these two cases:

The rest: https://github.com/different-ai/openwork/blob/HEAD/.warden/skills/desktop-den-sync-review/SKILL.md
