Decision owner
Policy analyst
The named role remains accountable for the consequential decision.
Government & Public Sector
Designed for Policy analyst
Give the policy analyst a grounded workbench for tracking a bill from introduction through amendment, comparing its text against existing statute and regulation, weighing public consultation input, and drafting a cited impact brief for decision makers.
Contract GOV-02 · primary aggregate LegislativeItem · 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
Policy analyst
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
1 approval gate
Approval gates prevent the copilot from making consequential decisions.
A bill regulating short-term rental platforms is amended in committee, adding a section that requires platforms to verify local registration numbers.
Give the policy analyst a grounded workbench for tracking a bill from introduction through amendment, comparing its text against existing statute and regulation, weighing public consultation input, and drafting a cited impact brief for decision makers.
publishedBrief gives Policy analyst 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.
Policy analyst 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: Ingestion connector performs legislative feed monitoring using legislativeFeedRecord and produces BillTextVersion. The transition is deterministic and does not require autonomous model approval.
Why it matters: BillTextVersion gives Version comparison service the evidence needed to begin Amendment diff and change classification, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/legislative-feed-monitoring
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Version comparison service performs amendment diff and change classification using BillTextVersion and produces sectionDiffSet. The transition is deterministic and does not require autonomous model approval.
Why it matters: sectionDiffSet gives Policy and legislative analyst copilot the evidence needed to begin Statutory conflict retrieval, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/amendment-diff-and-change-classification
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Policy and legislative analyst copilot performs statutory conflict retrieval using sectionDiffSet and produces conflictFindingSet. The transition is deterministic and does not require autonomous model approval.
Why it matters: conflictFindingSet gives Policy and legislative analyst copilot the evidence needed to begin Consultation theme synthesis, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/statutory-conflict-retrieval
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Policy and legislative analyst copilot performs consultation theme synthesis using ConsultationSubmission and produces stanceSummary. The transition is deterministic and does not require autonomous model approval.
Why it matters: stanceSummary gives Policy analyst the evidence needed to begin Analyst validation and brief publication, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/consultation-theme-synthesis
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Human approval required
What happens: Policy analyst performs analyst validation and brief publication using ImpactBrief and produces publishedBrief. A named human approver must review the evidence before the transition completes.
Why it matters: publishedBrief gives Policy analyst 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/analyst-validation-and-brief-publication
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 LegislativeItem evidence.
Select a starter question or enter your own.
Loaded live from /api/config, /api/domain/model, and
/api/domain/sample.
legislativeItems/tenantId + /billIdA bill regulating short-term rental platforms is amended in committee, adding a section that requires platforms to verify local registration numbers. The copilot diffs the engrossed text against the introduced version, flags that the new section conflicts with an existing municipal-preemption clause administered by the housing agency, and summarizes 412 consultation submissions showing platform operators opposed and neighborhood associations supportive. The analyst validates the conflict finding, corrects one mischaracterized stance, and publishes a cited impact brief naming the preemption clause and the fiscal note assumption it undermines.
| Container | Role | Hierarchical partition key | Document types |
|---|---|---|---|
legislativeItems |
Primary | /tenantId + /billId |
Bill, BillTextVersion, ConsultationSubmission, ImpactBrief |
statuteCorpus |
Reference | /tenantId + /statuteCitation |
StatuteChunk |
| Type | Container | Partition key | Identifier pattern | Embedding fields |
|---|---|---|---|---|
Bill |
legislativeItems |
/tenantId + /billId |
bill::{billId} |
None |
BillTextVersion |
legislativeItems |
/tenantId + /billId |
bill::{billId}::version::{versionLabel}::section::{sectionNumber} |
sectionVector |
StatuteChunk |
statuteCorpus |
/tenantId + /statuteCitation |
statute::{statuteCitation}::{statuteDocId}::{chunkOrdinal} |
chunkVector |
ConsultationSubmission |
legislativeItems |
/tenantId + /billId |
bill::{billId}::submission::{submissionId} |
submissionVector |
ImpactBrief |
legislativeItems |
/tenantId + /billId |
bill::{billId}::brief::{briefId} |
briefVector |
Show the analyst's high-priority bills that moved stage since the last review. Application-side partition-key fan-out legislative watchlist: bounded by the tenantId prefix, one session year, high watch priority and activity since the last review.
legislativeItems
partition-key-fan-out
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.type = 'Bill' AND c.sessionYear = @sessionYear AND c.watchPriority IN ('high','critical') AND c.latestActionAtUtc >= @lastReviewUtc ORDER BY c.latestActionAtUtc DESC
Pull the same section across all published versions of a bill for amendment tracking.
legislativeItems
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.billId = @billId AND c.type = 'BillTextVersion' AND c.sectionNumber = @sectionNumber ORDER BY c.publishedAtUtc ASC
Find statute text likely in conflict with an amended section using hybrid semantic and citation matching.
statuteCorpus
partition-key-fan-out
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.statuteCitation IN (@referencedCitations) AND c.type = 'StatuteChunk' ORDER BY RANK RRF(VectorDistance(c.chunkVector, @sectionVector), FullTextScore(c.chunkText, @queryTerms))
Aggregate public submissions by sector and stance to weight the consultation summary.
legislativeItems
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.billId = @billId AND c.type = 'ConsultationSubmission' AND c.receivedAtUtc BETWEEN @windowOpenUtc AND @windowCloseUtc ORDER BY c.receivedAtUtc DESC