teqo-backup/docs/plans/oh14-flag-cleanup.md
Cursor Agent 9b56b641a6
OH14 — remove OPS_HYBRID flag; sync always on for staff
Decision: remove compile-time OPS_HYBRID after OH11/OH13 green in CI/staging.
Staff hybrid sync is gated only by isStaffCampaignRole in the app layout;
OfflineBoundary swaps to Local when the browser is offline.

- Delete opsHybridFlag.ts and legacy formAction branches in staff controls
- E2e offline specs run in CI without OPS_HYBRID env
- Update ops-hibrido spec to implementado + offline write recipe

Closes #175

Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-02 03:47:04 +00:00

34 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# OH14 — Limpeza da flag `OPS_HYBRID` + documentação final
Status: implementado
Atualizado em: 2026-08-02
Issue: #175
Priority: P1
Model: composer-2.5
Impeccable: A — N/A (limpeza/docs)
Appetite: ~0,5–1 dia eng
Depends: OH13, OH11
Responsável: —
## Decisão (OH14)
**Opção A — remover a flag e ligar sempre para staff.** Justificativa: OH11 (e2e offline + SW) e OH13 (writes CAS por domínio) verdes em staging/CI; prod ainda em desenvolvimento; a flag compile-time só servia rollout seguro durante OH2–OH13.
## Entrega
- Apagado `resolveOpsHybridEnabled` / `OPS_HYBRID` (`next.config`, `.env.example`, Playwright).
- `CampaignOpsSyncProvider` liga por `isStaffCampaignRole` no layout; `OfflineBoundary` só verifica offline do browser.
- Ramificações legacy OFF removidas dos forms/controles staff; e2e offline corre em CI sem env.
- Spec-mãe `ops-hibrido-rsc-local-spec.md` → `Status: implementado` + receita “nova write offline”.
## Fases verificáveis
### Fase 1 — Decisão + aplicação
- [x] decisão no PR (staging verde OH11/OH13)
- [x] `knip` / cycles limpos; e2e sem `OPS_HYBRID`
### Fase 2 — Doc de referência
- [x] plano-mãe em “implementado” + receita de nova write offline
- [x] CHANGELOG-AGENTS entrada final