5 — Resposta do Arguido (RESPONSE_WINDOW)
Receber, acompanhar e estruturar a resposta apresentada pelo arguido e/ou pelo seu mandatário, incluindo documentos, testemunhas e diligências requeridas.
Source: src/components/workflow/RespostaArguidoPhaseView.tsx,
RespostaArguidoFieldDrawer.tsx.
The response itself arrives through the portal (case_messages, case_attachments). This phase
is the internal treatment of it, and it is the one phase with a properly migrated table of
its own: case_response_data.
Estado da resposta — 2 actions
| Action | Effect |
|---|---|
| Marcar resposta recebida | flips response_status to received |
| Registar prazo decorrido | flips it to expired, logs response_deadline_expired |
Read-only alongside: the response deadline from case_deadlines, whether it has passed, and a
derived badge — Resposta recebida · Prazo decorrido · A aguardar resposta.
Both actions are manual. Nothing flips the state when the clock actually runs out, so a case sits in "A aguardar resposta" indefinitely until someone opens the page and presses the button.
Tratamento interno da resposta — 5 steps
All five are plain 10-row textareas in the same drawer, each a column on case_response_data.
| Step | What it asks for | Column |
|---|---|---|
| Factos contestados | Factos que o arguido contesta na sua resposta à nota de culpa | contested_facts |
| Factos admitidos | Factos que o arguido admite ou não contesta expressamente | admitted_facts |
| Testemunhas indicadas | Testemunhas indicadas pelo arguido para inquirição, com nome e relação com os factos | witnesses_indicated |
| Diligências requeridas | Diligências probatórias requeridas pelo arguido | diligences_requested |
| Observações internas | Notas internas da equipa — não visíveis ao arguido | internal_observations |
Then: Marcar tratamento completo.
Why the free text matters
Testemunhas indicadas and Diligências requeridas are the two fields the next phase has to reason over — Fase de Prova must produce a ruling per requested diligência. Both are unstructured prose, so the next phase splits the text to synthesise its decision rows, and the identity of a requested diligência is its index in a string. Editing this textarea afterwards silently re-points every ruling already recorded.
There is also no per-witness structure to check against witness limits,
and no link from a named witness to the WITNESS_HEARING diligência that should follow.
Gate
Advances to EVIDENCE_PHASE. Blocker: "Resposta por receber ou prazo por expirar" — one of the
two actions above must have been pressed.
Related
- Fase de Prova — consumes every field on this page
- String vocabulary contracts
- Phase deadlines