The Autonomous Stack

Documents & Content · Summarization · v2.0

Structured Report Briefing Pack v2.0

Turn long technical reports into structured briefs with deterministic extraction and optional BYO-LLM synthesis.

$3.00one-timePay with crypto

document-briefing risk-extraction structured-output byo-llm

agent ⟶ theautonomousstack.xyz

01GET /api/v1/pack/report-summarizer-v2

402 Payment RequiredX-PAYMENT-REQUIRED

02sign TransferWithAuthorization3.00 USDC · Base (eip155:8453)

03GET + PAYMENT-SIGNATURE

200 OKapplication/zip · 18 files

pay per pack over x402no account

What's inside

Professional pack for turning long, technical reports (medical, vehicle roadworthiness inspection, real-estate DPE energy diagnosis) into structured, actionable summaries. Designed for medical practices, vehicle inspection centers, real-estate diagnosticians and any A2A agent that needs to digest a raw document.


Table of contents

  1. Overview
  2. Architecture
  3. OODA diagram
  4. Quick Start
  5. Pack structure
  6. Supported report types
  7. Roadmap
  8. License

Overview

report-summarizer-v2 provides a summarization pipeline specific to structured reports, with six dedicated OODA states:

The pack guarantees fidelity, risk prioritization, actionability, neutrality and confidentiality.


Architecture

┌─────────────────────────────────────────────────────────────────────┐
│                  REPORT SUMMARIZER v2.0                              │
├─────────────────────────────────────────────────────────────────────┤
│                                                                      │
│   Raw report (PDF / TXT / MD)                                        │
│        │                                                             │
│        ▼                                                             │
│   ┌────────────┐    ┌────────────┐    ┌────────────┐                │
│   │ INGESTING  │───→│  PARSING   │───→│ EXTRACTING │                │
│   └────────────┘    └────────────┘    └─────┬──────┘                │
│                                             │                        │
│                                             ▼                        │
│   ┌────────────┐    ┌────────────┐    ┌────────────┐                │
│   │ DELIVERING │←───│ FORMATTING │←───│ SYNTHESIZING│                │
│   └────────────┘    └────────────┘    └────────────┘                │
│                                                                      │
└─────────────────────────────────────────────────────────────────────┘

Data flow

PDF/TXT/MD → pdftotext/pypdf → raw text → INGESTING → PARSING
                                                     │
                                                     ▼
                           EXTRACTING → SYNTHESIZING → FORMATTING → DELIVERING
                               │
                               ↓
                    points_cles[], risques[], recommandations[], echeances[]

OODA diagram

         ┌─────────────────────────────────────┐
         │              IDLE / READY           │
         └──────────────┬──────────────────────┘
                        │ receive(report)
                        ▼
         ┌─────────────────────────────────────┐
         │            INGESTING                │
         │  Receive the raw document from a    │
         │  file, stdin or an API.             │
         └──────────────┬──────────────────────┘
                        │ ingest_complete()
                        ▼
         ┌─────────────────────────────────────┐
         │             PARSING                 │
         │  Convert PDF→text, clean up,        │
         │  normalize the encoding.            │
         └──────────────┬──────────────────────┘
                        │ parse_complete()
                        ▼
         ┌─────────────────────────────────────┐
         │           EXTRACTING                │
         │  Identify key points, risks,        │
         │  recommendations and deadlines.     │
         └──────────────┬──────────────────────┘
                        │ extract_complete()
                        ▼
         ┌─────────────────────────────────────┐
         │          SYNTHESIZING               │
         │  Produce a concise, prioritized     │
         │  summary grounded in the            │
         │  source report.                     │
         └──────────────┬──────────────────────┘
                        │ synthesize_complete()
                        ▼
         ┌─────────────────────────────────────┐
         │           FORMATTING                │
         │  Render the summary as Markdown     │
         │  or JSON per the --format option.   │
         └──────────────┬──────────────────────┘
                        │ format_complete()
                        ▼
         ┌─────────────────────────────────────┐
         │           DELIVERING                │
         │  Emit to a file, stdout,            │
         │  a webhook or an A2A queue.         │
         └──────────────┬──────────────────────┘
                        │ deliver_complete()
                        ▼
         ┌─────────────────────────────────────┐
         │         FEEDBACK LOOP               │
         │  Quality metrics → iteration        │
         └─────────────────────────────────────┘

Quick Start

1. Installation

cd scripts/
chmod +x install.sh
./install.sh

2. Configuration

cp templates/summary_config.yaml ./summary.yaml
cp templates/risk_thresholds.yaml ./risks.yaml
# Edit summary.yaml and risks.yaml

3. Testing a prompt

python3 scripts/test_prompt.py --prompt medical --input templates/sample_medical.txt
python3 scripts/test_prompt.py --prompt dpe --input templates/sample_dpe.txt

4. Running the pipeline

python3 scripts/run_agent.py --type dpe --input templates/sample_dpe.txt --format json
python3 scripts/run_agent.py --type controle_technique --input templates/sample_ct.txt --format md

Pack structure

report-summarizer-v2/
├── README.md                 <- This file
├── SOUL.md                   <- Summarization-specific OODA states
├── PROMPTS.md                <- 5 named prompts
├── CHECKLIST.md              <- 35 steps with commands
├── SPEC.md                   <- Configurable parameters
├── CHANGELOG.md              <- v1.0.0 and v2.0.0 history
├── report-summarizer-v2.json <- Manifest and stats
├── scripts/
│   ├── install.sh            <- Installs Python, dependencies and checks
│   ├── config.yaml           <- Commented configuration template
│   ├── test_prompt.py        <- Tests a prompt with Ollama or a stub
│   └── run_agent.py          <- Minimal summarization pipeline
└── templates/
    ├── summary_config.yaml
    ├── risk_thresholds.yaml
    ├── sample_medical.txt
    ├── sample_dpe.txt
    └── sample_ct.txt

Supported report types

Type Input examples Main output
medical Clinical report, labs, imaging Key points, risks, deadlines
controle_technique Vehicle inspection (CT) report Failures, re-inspection
dpe Energy performance diagnosis (DPE) Energy class, works, deadline

Roadmap


License

Proprietary — internal use only. Do not redistribute.


Last updated: 2026-06-18