Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:7onez Cti expert Case Timeline Render

From Leeroopedia
Knowledge Sources
Domains OSINT, Visualization, Temporal_Analysis
Last Updated 2026-10-28 14:00 GMT

Overview

Concrete tool for rendering a swimlane timeline (one lane per host, sub-tracks per interval kind) from extracted temporal events, provided by the cti-expert IntelGraph module.

Description

The render function in case_timeline.py produces a swimlane timeline figure: one lane per host, one sub-track per interval kind (registration, registrant_era, hosting, ns_era, cert, archive_span, artifact_window), and markers for point events. The timeline is the temporal view that the Correlate phase uses to test contemporaneity — do the registration eras, hosting windows, and certificate lifecycles of the cluster's domains overlap?

The function uses matplotlib with a themed palette, supports multilingual labels (English/Vietnamese), and caps at max_lanes (default 24) with dropped lanes reported. A "now" line marks the current time. The output is a dual PNG/SVG file pair via save_dual, plus a dropped-lanes list for overflow cases.

Usage

Import this when you need to:

  • Render a temporal swimlane timeline for a case's domains.
  • Test contemporaneity of registration eras, hosting windows, and certificate lifecycles.
  • Produce a dual PNG/SVG figure for the report.
  • Support multilingual timeline labels (English/Vietnamese).

Code Reference

Source Location

  • Repository: cti-expert
  • File: intel_engine/IntelGraph/scripts/case_timeline.py
  • Lines: L738-809 (render), L872-995 (main CLI)

Signature

def render(events, stem, title, subtitle=None, lang="en", source="", grading="",
           date="", max_lanes=24):
    """Swimlane: one lane per host, one sub-track per interval kind, markers for
    point events. Returns (outputs, dropped_lanes)."""

Import

from case_timeline import render

I/O Contract

Inputs

Name Type Required Description
events list Yes Temporal events (each: host, kind, _start, _end)
stem str Yes /// Output path stem (no extension)
title str Yes Figure title
subtitle str No Figure subtitle
lang str No /// "en" or "vi" (default "en")
source str No Source attribution caption
grading str No /// Grading caption
date str No /// Date caption
max_lanes int No /// Max hosts to display (default 24)

Outputs

Name Type Description
outputs list [stem.png, stem.svg] dual output files
dropped_lanes list Hosts dropped due to max_lanes overflow

Usage Examples

Render Case Timeline

from case_timeline import render

# events extracted from the KB (registration, hosting, cert, etc.)
events = extract_events(kb, case_domains)
outputs, dropped = render(
    events,
    stem="cases/CASE-0001/report/timeline",
    title="Case Timeline — CASE-0001",
    lang="en",
    max_lanes=24,
)
print(f"wrote {outputs[0]}")
if dropped:
    print(f"dropped {len(dropped)} host(s) (overflow)")

Related Pages

Implements Principle

Requires Environment

Uses Heuristic

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment