2 — Inquérito Prévio (PRELIMINARY_INQUIRY)
Fase destinada ao apuramento preliminar dos factos antes da eventual emissão de Nota de Culpa. Permite recolher evidência, ouvir intervenientes e consolidar a informação factual.
Source: src/components/workflow/InqueritoPrevioPhaseView.tsx, InquiryReportDrawer.tsx.
Reached only when Abertura set has_preliminary_inquiry = true.
Informação do Inquérito — 5 steps
This phase has no field drawer of its own: it imports AperturaFieldDrawer. The labels are
new, the storage is Abertura's.
| Step | Inputs | Persisted as |
|---|---|---|
| Objecto do inquérito | opens "Descrição sumária dos factos" (textarea) | cases.description |
| Factos em análise | opens the same drawer field | cases.description |
| Fontes iniciais de informação | Fonte do conhecimento (textarea) | cases.knowledge_source |
| Instrutor responsável | Instrutor (select) | cases.instructor_id |
| Intervenientes identificados | Nome + Tipo, repeatable list | cases.intervenientes |
Objecto do inquérito and Factos em análise are two rows over one column. Filling either marks
both Preenchido, so the 5/5 counter can only ever reach 4 distinct answers. Nothing lets the
operator record what the inquiry is for separately from the facts it is about — a distinction
the eventual Relatório needs.
Deadline panel
Read-only, above the fields:
- Caducidade interrompida / Caducidade ainda não interrompida — whether the 30-day window has been stopped. See caducidade — 30 days.
- Última atividade no inquérito — the clock behind
last_evidence_act_at.
Diligências
The phase embeds InquiryActionsList with phase="PRELIMINARY_INQUIRY". Each diligência is one
of eight types, each with its own multi-step form and its own deliverable — see the
diligências catalogue.
Witness hearings are where witness limits would apply; the PoC does not enforce them here.
Deliverable — Relatório de Inquérito Prévio
| Input | Control |
|---|---|
| Template da empresa (Word) | file |
| Documento (PDF ou Word) | file |
| Conteúdo do relatório | textarea |
| Conclusão do Inquérito — Proposta do instrutor | textarea, stored in metadata.instructor_proposal |
| Aprovar relatório / Desbloquear | actions |
The instructor's proposal is the legally interesting output of the whole phase — it is what justifies moving to a Nota de Culpa or archiving. It is stored as a free-text key inside the deliverable's jsonb metadata, with no enumerated outcome. See outcomes and proposal.
Gate
Allowed transitions out of this phase are CHARGES_ISSUED or ARCHIVED — the only phase besides
Fase de Prova with a real branch. Approving the report unlocks the advance.