{% extends "base.html" %} {% block title %}Doc Regeneration β€” ICDEVβ„’{% endblock %} {% block content %}
{{ (session.classification if session and session.classification) or 'CUI // SP-CTI' }}

πŸ”„ Intelligent Doc Regeneration

Upload multi-team diagrams & configs β†’ AI reconciles β†’ WriteGuard-gated document Β· HITL-approved Β· full audit trail

Tech Writer β†’ Document Canvas β†’
{% set stage_colors = ['#555','#0f3460','#1e3a6e','#e94560','#0f5132','#1a6e3a','#856404','#1a3a6e','#2d6a4f'] %} {% set stage_labels = ['Setup','Ingesting','Analyzing','⚠ Conflicts','Synthesizing','Generating','βœ” WriteGuard','πŸ‘ Review','βœ… Published'] %} {% for lbl in stage_labels %} {{ loop.index0 }}: {{ lbl }} {% endfor %}
{% if session %}

{{ session.title }}

{{ session.domain }} {{ session.doc_type }} {{ session.classification }}
Stage {{ session.stage }}: {{ session.status }}
{% set stage_labels = ['Setup', 'Ingest', 'Analyze', 'Resolve Conflicts', 'Synthesize', 'Generate', 'Quality Gate', 'Review & Publish'] %}
{% for label in stage_labels %} {% set n = loop.index %}
{% if session.stage >= n %}βœ“ {% endif %}{{ label }}
{% endfor %}
Stage {{ session.stage }} / 8 β€” {{ session.status }}
{% if session.stage <= 2 %}
πŸ“Ž Upload diagrams, configs, docs, IaC files
{% for ut in profile.get('upload_types', ['diagram','doc','config','supplement']) %} {{ ut }} {% endfor %}

{% endif %} {% if uploads %}

Uploads ({{ uploads|length }})

{% for u in uploads %}
{{ u.filename }} {{ u.upload_type }}
{{ u.status }}
{% endfor %}
{% endif %}
{% if session.stage <= 1 and uploads|length > 0 %} {% endif %} {% if session.stage == 2 %} {% endif %} {% if session.stage == 3 %} ⚠ Resolve {{ pending_conflicts|length }} Conflict{{ 's' if pending_conflicts|length != 1 else '' }} {% if pending_conflicts|length == 0 %} {% endif %} {% endif %} {% if session.stage == 4 %}
{% endif %} {% if session.stage == 7 %} πŸ‘ Review & Approve {% endif %} {% if session.stage == 8 and session.status != 'published' %} {% endif %}
{% if analyses %}

Analyses ({{ analyses|length }})

{% for a in analyses %}
{{ a.analysis_type }} {{ a.status }}
{% endfor %}
{% endif %} {% if artifacts %}

Published Artifacts

{% for art in artifacts %}
πŸ“„ {{ art.format|upper }} β€” download
{{ art.published_at or '' }}
{% endfor %}
{% endif %} {% include "includes/iqe_query_widget.html" %}
{% else %} {% if sessions %}
{% for s in sessions %}

{{ s.title }}

{{ s.status }}
{{ s.domain }} {{ s.doc_type }}
Stage {{ s.stage }}/8 Β· {{ (s.created_at | string)[:10] if s.created_at else '' }}
{% if s.get('freshness_stale') %} STALE {% endif %}
{% endfor %}
{% else %}
πŸ”„

No regeneration sessions yet

Upload multi-team diagrams, configs, and docs to generate an authoritative, AI-grounded document.

{% endif %} {% include "includes/iqe_query_widget.html" %} {% endif %} {% endblock %}