Skip to main content

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

ActionEffect
Marcar resposta recebidaflips response_status to received
Registar prazo decorridoflips 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.

StepWhat it asks forColumn
Factos contestadosFactos que o arguido contesta na sua resposta à nota de culpacontested_facts
Factos admitidosFactos que o arguido admite ou não contesta expressamenteadmitted_facts
Testemunhas indicadasTestemunhas indicadas pelo arguido para inquirição, com nome e relação com os factoswitnesses_indicated
Diligências requeridasDiligências probatórias requeridas pelo arguidodiligences_requested
Observações internasNotas internas da equipa — não visíveis ao arguidointernal_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.