Audit Copilot¶
Path: /audit-copilot
The Audit Copilot is a guided, stepper-plus-chat workspace for running a framework audit end-to-end. It builds a plan from the real control catalog, answers questions grounded in your tenant's actual data, drafts remediation and policy text, and - unlike a chat bot - can take agentic actions against the platform's real engines, with every result labeled by source.
Guided plan¶
POST /api/v1/orgs/{org_id}/copilot/plan builds one step per control theme
(e.g. ISO 27001's Organizational / People / Physical / Technological),
bookended by a scoping step and a final audit-package step. Progress per step
is always recomputed from real control state, never taken from stored
session data. Linking an assessment enriches the plan with live
verdict-derived progress.
Two experience modes¶
The mode changes the plan itself, not just its wording:
| Mode | Who it's for | What changes |
|---|---|---|
new |
First-audit users | Guided hand-holding actions on every step, more explanation |
seasoned |
Experienced auditors | Agentic engine actions per step, plus a deterministic cross-framework delta computed from the org's existing framework work, and recommended_step_id jumps straight to the first step with real gaps |
Persisted sessions¶
Sessions store the framework, mode, linked assessment, per-step notes and done-markers, accepted drafts, and a bounded action log - so an audit engagement survives the browser tab.
POST /api/v1/orgs/{org_id}/copilot/sessions # create
GET /api/v1/orgs/{org_id}/copilot/sessions # list (newest activity first)
GET /api/v1/orgs/{org_id}/copilot/sessions/{id} # resume (stored state + fresh plan)
PATCH /api/v1/orgs/{org_id}/copilot/sessions/{id} # change mode / step / assessment
PUT /api/v1/orgs/{org_id}/copilot/sessions/{id}/steps/{step} # step notes / done-marker
POST /api/v1/orgs/{org_id}/copilot/sessions/{id}/drafts # save an accepted draft
POST /api/v1/orgs/{org_id}/copilot/sessions/{id}/act # run an agentic action
Agentic actions¶
POST .../act runs one action against the real engines - results carry a
source label and citation, and the outcome is appended to the session's
action log:
pull_finding- the tenant's latest real finding/verdict for a control. Deterministic and cited; no LLM involved.draft_and_save_remediation- AI-drafts remediation and saves it to the real finding. Gated on thefinding:updatepermission (same as the findings PATCH endpoint). If the finding belongs to a completed assessment it is locked: the action is refused with 423 (Locked) before the model is called and nothing is written - reopen the assessment first, or usePOST .../draftfor a draft that is not saved. Offline template drafts are returned but never auto-saved.run_delta- the deterministic cross-framework delta engine against the session's framework (crosswalk layer, no LLM).
Ask & draft¶
POST .../ask- grounded Q&A about the framework and your current state.POST .../draft- iterative remediation/policy drafting with a feedback-and-redraft loop.
The chat sends the last six messages of the conversation with each question
(history), so a follow-up such as "which one do I pick then?" is understood.
Earlier messages are used only to interpret the question; they are never
treated as evidence.
Questions about how to use GRCFlow ("where do I start", "how do I get my AOC?") are answered with the steps in the app. A question about card payments, PCI DSS, an SAQ or an AOC gets the PCI DSS steps: validation type, entity profile, requirement responses, then the SAQ and AOC documents.
An answer that reaches the model's length limit ends on a complete sentence and says it was shortened, so a partial answer is never mistaken for the whole one.
When practice falls short of your own policy, the copilot recommends bringing the practice up to the policy. It does not suggest weakening the policy.
A policy draft is written as your organization's own document, under its
name. If an in-force policy is already linked to the control (see
Policies), the draft revises that
policy: it keeps your structure and wording, adds what the control requires,
and ends with "What changed and why". Facts the copilot was not given appear
as placeholders in square brackets, such as [Policy owner].
What the copilot knows about a control¶
When a question, draft or evidence review concerns a specific control, the copilot is given that control's objective and its assessment steps (see Frameworks), and follows these rules:
- It answers from the listed requirements and cites the requirement number.
- If the framework data does not address the question, it says so. It does not present general knowledge as a requirement.
- General advice is labeled as guidance.
- Drafts cover each listed sub-requirement.
- An evidence review judges the evidence against each requirement separately: satisfied, not satisfied, or not evidenced in what it was shown.
A control's detail is capped at about 6,000 characters per prompt. If it is longer, it is cut at a requirement boundary and the answer states how many requirements were shown.
Limits on documents. The copilot reads up to 8,000 characters of each evidence file (about three pages) and 20,000 characters per review. It is told exactly how much it did not read and does not treat unread content as missing, but it does not search across your whole evidence library. Proof that sits deep in a long document may not be found.
Prerequisites & honest fallbacks
AI-generated answers and drafts need a configured LLM provider (see
AI Audit for the LLM_PROVIDER options). Without one, the
copilot falls back to honest deterministic templates stamped
model: "fallback" - clearly offline output, not AI, and never presented
as a model's work. The deterministic features (plan, pull_finding,
run_delta, sessions) work fully without any LLM.