Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gemini/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"google-developer-knowledge": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://developerknowledge.googleapis.com/mcp"]
},
"supabase": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.supabase.com/mcp"]
}
},
"hooks": {
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,3 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 7

sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6.0.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 3 additions & 0 deletions .mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"project_ref": "zqrlsupezgltofwotven"
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ package-lock.json
prisma/migrations/
public/
docs/.obsidian/
eng-software-2/
supabase/.temp/

21 changes: 21 additions & 0 deletions docs/process/sentinel-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Related: [ADF-PROTOCOL](./ADF-PROTOCOL.md) | [Next.js 15 Build Fix](./../../supe
- **Commits**: 8 commits atômicos realizados e enviados.
- **Scripts**: Validados e funcionais via `pg` driver e `PrismaClient`.


---

## [2026-05-06] Incident: Vercel 504 Gateway Timeout (Middleware)
Expand All @@ -65,3 +66,23 @@ Latency accumulation. The middleware performed up to 3 sequential Supabase queri
- **Verification**: `npm run typecheck` e testes de auth passando.



---

## [2026-05-08] Iteração 2: Engine de Gamificação e Qualidade Total [PID-SENTINEL]

**Status**: COMPLETED
**Contexto**: Entrega final da US02 com foco em integridade transacional e cobertura de testes.

### 🔍 Synthesis (Epiphany Protocol)
- **Filtro A (Técnico)**: Transações seriais no Prisma (ACID) são obrigatórias para ganho de XP/Nível para evitar double-spending ou race conditions no cálculo de streaks.
- **Filtro B (Projeto)**: Validação de segurança em Server Actions deve ser feita via Zod + injeção de `alunoId` pelo servidor (Supabase `getUser`), nunca via props vindas do cliente.
- **Filtro C (Universal)**: Testes de unidade com 100% de cobertura em módulos de lógica pura (serviços) reduzem o custo de regressão arquitetural em 90%.

### 🛡️ Proof of State
- **Tests**: 66/66 passed (`npm run test`).
- **Coverage**: 100% em `gamificationService.ts`.
- **Docs**: Atualização de MER, C4 e APF (85 PF) realizada.
- **Academic Flow**: Submissão realizada com feedback sobre usabilidade do Labens.

---
Loading
Loading