Manufacturing

Quality Investigation Assistant

Designed for Quality engineer

Drive a quality deviation from detection to closed corrective action by linking inspection data, batch genealogy, and specifications into an evidence-backed root cause that a quality engineer approves before CAPA release.

Contract MAN-02 · primary aggregate QualityInvestigation · mode loading

Decision brief

Approve CAPA and release the lot decision: evidence ready for review

This brief starts with the decision, evidence, and accountable owner. The guided workflow then shows how the recommendation was produced.

Decision signals

The evidence and control points that shape this recommendation.

Decision owner

Quality manager

The named role remains accountable for the consequential decision.

Governed evidence

6 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.

Business problem

A viscosity result falls below specification on a coating lot; the assistant traces genealogy to a single resin input lot shared by six downstream batches, shows the same root cause closed nine months earlier without an effectiveness check, proposes a supplier re-qualification CAPA, and the quality manager approves containment of all six lots..

Decision to make

Drive a quality deviation from detection to closed corrective action by linking inspection data, batch genealogy, and specifications into an evidence-backed root cause that a quality engineer approves before CAPA release.

Outcome to show

Approved CAPA and documented lot disposition gives Quality manager the evidence needed to begin the final governed business outcome, with the decision trail retained for review.

  1. 1Log the deviation and classify risk
  2. 2Bound impact through batch genealogy
  3. 3Assemble inspection and specification evidence
  4. 4Propose root cause and corrective actions
  5. 5Approve CAPA and release the lot decision

Step 1 of 5

Ready: Start with the business question, then use the single button above.

The output appears here immediately. More technical evidence remains available below.

System logic, GenAI, and human accountability

The demonstration keeps deterministic controls, AI assistance, and approval separate.

System logic

Source systems enforce identity, workflow order, policy filters, and record updates.

GenAI contribution

Retrieval and generation assemble relevant evidence into a cited recommendation or draft.

Human accountability

Quality manager verifies material claims and approves the consequential action.

Workflow stages

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.

Seeded record
Loading
Document type
Loading
Container
Loading
Partition key
Loading
Current stage
Loading

API demonstration guidance

Run a stage to see its explanation, evidence, full request, and full response.

Grounded chat

Ask a question and receive an answer grounded in retrieved QualityInvestigation evidence.

Answer and evidence

Select a starter question or enter your own.

Evidence

Domain implementation workspace

Loaded live from /api/config, /api/domain/model, and /api/domain/sample.

Domain objective
Drive a quality deviation from detection to closed corrective action by linking inspection data, batch genealogy, and specifications into an evidence-backed root cause that a quality engineer approves before CAPA release.
Primary aggregate
QualityInvestigation
Primary container
qualityInvestigations
Hierarchical key
/tenantId + /investigationId
Schema version
1

Sample scenario

A viscosity result falls below specification on a coating lot; the assistant traces genealogy to a single resin input lot shared by six downstream batches, shows the same root cause closed nine months earlier without an effectiveness check, proposes a supplier re-qualification CAPA, and the quality manager approves containment of all six lots.

Physical Cosmos DB containers

Every container provisioned for this accelerator with its hierarchical partition key.
Container Role Hierarchical partition key Document types
qualityInvestigations Primary /tenantId + /investigationId QualityInvestigation, InspectionResult, CorrectiveActionItem
batchGenealogy Reference /tenantId + /lotId BatchGenealogyNode
qualitySpecificationLibrary Reference /tenantId + /specificationId SpecificationClause
investigationPrecedentIndex Reference /tenantId + /rootCauseCode PriorInvestigationSummary

Document types

Contract document types, their owning container, and their identifier pattern.
Type Container Partition key Identifier pattern Embedding fields
QualityInvestigation qualityInvestigations /tenantId + /investigationId investigation::{investigationId} deviationVector
InspectionResult qualityInvestigations /tenantId + /investigationId inspection::{investigationId}::{resultId} None
BatchGenealogyNode batchGenealogy /tenantId + /lotId genealogy::{lotId} None
SpecificationClause qualitySpecificationLibrary /tenantId + /specificationId specification::{specificationId}::{clauseRef} clauseVector
CorrectiveActionItem qualityInvestigations /tenantId + /investigationId capa::{investigationId}::{actionId} actionVector
PriorInvestigationSummary investigationPrecedentIndex /tenantId + /rootCauseCode priorinvestigation::{rootCauseCode}::{priorInvestigationId} summaryVector

Query patterns