{% extends "base.html" %} {% block title %}Workspace — Document Intelligence — ICDEV™{% endblock %} {% block content %} {# dwr-ws-02 — the way IN to the per-document workspace. The workspace is per-document, so it cannot itself be a nav link. This lists the documents that actually have something waiting: pending dic_suggestions, worst first. `unmeasured` is rendered as its own state and NEVER as an empty list — a picker that cannot tell "nothing to review" from "we could not look" is the reassurance this card series exists to refuse. #}
CUI // SP-CTI

🪟 Workspace — the document beside its proposals

Pick a document to review. Each row is a document with AI proposals still awaiting a human decision.

DocDrift → ← Back to DIC
What this page is for

A proposal is drafted by a docmod scan or a redline drafter and lands in dic_suggestions as pending. The workspace puts the document on the left and one card per proposal on the right — word-level diff, the rationale, the inline citations, the currency verdict, the evidence health — so a reviewer can accept, reject, edit-and-accept, or ask a question against the same text. Nothing on this page decides anything.

{% if candidates.state == "unmeasured" %}
Unmeasured — the suggestion store could not be read.

This is not a clean bill of health: it says nothing about whether proposals are waiting. Open a workspace directly at /document-intelligence/workspace/<doc_id> if you know the document.

{% elif candidates.state == "none" %}
Measured: no document has a pending proposal.

The store was read and every proposal on it has already been decided. A workspace can still be opened on any document by URL — it will render the document with an empty rail and say so.

{% else %}
{{ candidates.count }} document{{ '' if candidates.count == 1 else 's' }} with pending proposals.
{% for d in candidates.documents %} {# A document id that resolves to no catalogue row renders AS THE ID. Nothing here invents a title for a document nobody can find. #} {% endfor %}
Document Doc ID Pending Newest proposal
{% if d.title %}{{ d.title }}{% else %}untitled — no catalogue row{% endif %} {{ d.doc_id }} {{ d.pending }} {{ d.newest or '—' }} Open workspace →
{% endif %} {% set iqe_canvas = "dic" %} {% set iqe_api_route = "/document-intelligence/api/iqe-query" %} {% set iqe_title = "IQE Query — Workspace" %} {% set iqe_examples = [ {"label": "Pending proposals", "query": "foreach s in dic.suggestions where s.status == \"pending\" select s.suggestion_id, s.doc_id, s.canvas_source, s.created_at"}, {"label": "Unanchored proposals", "query": "foreach s in dic.suggestions where s.anchor_basis == \"\" select s.suggestion_id, s.doc_id, s.status"} ] %} {% include "includes/iqe_query_widget.html" %} {% endblock %}