Decision owner
Resident and intake clerk
The named role remains accountable for the consequential decision.
Government & Public Sector
Designed for Citizen
Help a resident understand which public benefit or licensing programs they qualify for, what evidence each program requires, and where their submitted application currently stands, using only published program rules and the resident's own case record.
Contract GOV-01 · primary aggregate ResidentServiceCase · mode loading
Decision brief
This brief starts with the decision, evidence, and accountable owner. The guided workflow then shows how the recommendation was produced.
The evidence and control points that shape this recommendation.
Decision owner
Resident and intake clerk
The named role remains accountable for the consequential decision.
Governed evidence
5 record types
Structured records and cited text ground the recommendation.
Workflow
5 controlled stages
Each transition records its input, output, status, and audit context.
Human controls
2 approval gates
Approval gates prevent the copilot from making consequential decisions.
A resident who lost part-time hours asks what help is available for rent and utilities.
Help a resident understand which public benefit or licensing programs they qualify for, what evidence each program requires, and where their submitted application currently stands, using only published program rules and the resident's own case record.
determinationNotice gives Eligibility caseworker the evidence needed to begin the final governed business outcome, with the decision trail retained for review.
Step 1 of 5
| Field | Value |
|---|
| Field | Value |
|---|
The output appears here immediately. More technical evidence remains available below.
The demonstration keeps deterministic controls, AI assistance, and approval separate.
Source systems enforce identity, workflow order, policy filters, and record updates.
Retrieval and generation assemble relevant evidence into a cited recommendation or draft.
Resident and intake clerk verifies material claims and approves the consequential action.
Run the stages in order before using the Copilot. Every stage explains what happens, why it matters, the evidence it uses, and the complete API request and response.
Automated stage
What happens: Resident with citizen services navigator performs plain-language needs intake using residentQuestion and produces ServiceCase. The transition is deterministic and does not require autonomous model approval.
Why it matters: ServiceCase gives Retrieval orchestrator the evidence needed to begin Program rule retrieval, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/plain-language-needs-intake
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Retrieval orchestrator performs program rule retrieval using ServiceCase and produces EligibilityRuleChunk. The transition is deterministic and does not require autonomous model approval.
Why it matters: EligibilityRuleChunk gives Citizen services navigator the evidence needed to begin Advisory eligibility screening, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/program-rule-retrieval
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Citizen services navigator performs advisory eligibility screening using EligibilityRuleChunk and produces EligibilityAssessment. The transition is deterministic and does not require autonomous model approval.
Why it matters: EligibilityAssessment gives Resident and intake clerk the evidence needed to begin Evidence collection and verification, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/advisory-eligibility-screening
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Human approval required
What happens: Resident and intake clerk performs evidence collection and verification using EligibilityAssessment and produces EvidenceItem. A named human approver must review the evidence before the transition completes.
Why it matters: EvidenceItem gives Eligibility caseworker the evidence needed to begin Caseworker determination and notice, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/evidence-collection-and-verification
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Human approval required
What happens: Eligibility caseworker performs caseworker determination and notice using EvidenceItem and produces determinationNotice. A named human approver must review the evidence before the transition completes.
Why it matters: determinationNotice gives Eligibility caseworker the evidence needed to begin the final governed business outcome, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/caseworker-determination-and-notice
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Run a stage to see its explanation, evidence, full request, and full response.
Ask a question and receive an answer grounded in retrieved ResidentServiceCase evidence.
Select a starter question or enter your own.
Loaded live from /api/config, /api/domain/model, and
/api/domain/sample.
residentServiceCases/tenantId + /caseIdA resident who lost part-time hours asks what help is available for rent and utilities. The navigator screens three programs, reports likely eligibility for the emergency rental assistance program and the utility hardship credit, and cites the administrative code sections that set the 60 percent area-median-income threshold and the 30-day arrears requirement. It flags that proof of arrears and the most recent two pay stubs are missing. The resident uploads both; verification clears the checklist, and a caseworker issues a determination that references the same cited clauses in the notice sent to the resident.
| Container | Role | Hierarchical partition key | Document types |
|---|---|---|---|
residentServiceCases |
Primary | /tenantId + /caseId |
ServiceCase, EvidenceItem, EligibilityAssessment, CaseNote |
benefitPolicyLibrary |
Reference | /tenantId + /programCode |
EligibilityRuleChunk |
| Type | Container | Partition key | Identifier pattern | Embedding fields |
|---|---|---|---|---|
ServiceCase |
residentServiceCases |
/tenantId + /caseId |
case::{caseId} |
None |
EligibilityRuleChunk |
benefitPolicyLibrary |
/tenantId + /programCode |
program::{programCode}::rule::{ruleDocId}::{chunkOrdinal} |
chunkVector |
EvidenceItem |
residentServiceCases |
/tenantId + /caseId |
case::{caseId}::evidence::{evidenceId} |
None |
EligibilityAssessment |
residentServiceCases |
/tenantId + /caseId |
case::{caseId}::assessment::{assessmentId} |
rationaleVector |
CaseNote |
residentServiceCases |
/tenantId + /caseId |
case::{caseId}::note::{noteTimestampUtc}::{noteId} |
None |
Return the resident's current case state and next required action for the status page.
residentServiceCases
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.caseId = @caseId AND c.type = 'ServiceCase' ORDER BY c.openedAtUtc DESC
List documents the resident still owes before determination can proceed.
residentServiceCases
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.caseId = @caseId AND c.type = 'EvidenceItem' AND c.submissionState IN ('missing','rejected') ORDER BY c.evidenceCategory ASC
Retrieve only the program rule text in force on the application date, in plain language where available.
benefitPolicyLibrary
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.programCode = @programCode AND c.type = 'EligibilityRuleChunk' AND c.effectiveFromUtc <= @applicationDateUtc AND c.effectiveToUtc >= @applicationDateUtc ORDER BY RANK RRF(VectorDistance(c.chunkVector, @queryVector), FullTextScore(c.chunkText, @queryTerms))
Reconstruct the full cited interaction history for an appeal or a public records request.
residentServiceCases
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.caseId = @caseId AND c.type = 'CaseNote' AND c.noteTimestampUtc >= @fromUtc ORDER BY c.noteTimestampUtc ASC