# dmic7995/tempus-et-relativitas architecture

> Architecture diagram of the GitHub repository dmic7995/tempus-et-relativitas, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dmic7995/tempus-et-relativitas
- Repository: https://github.com/dmic7995/tempus-et-relativitas

## Overview

Tempus et Relativitas is a scholarly workspace and GitHub Pages site for a relativity-and-quantum treatise and a bilingual critical edition. A principal workflow is to maintain and recertify Urbano edition sections, measure remaining issues, and present coverage and quality analytics in the site. The repository also includes a distinct Mensura treatise and web-reader capability, plus a dual-model collaboration workflow. Relationships below rely on the README and excerpted source; unsampled wiring is omitted rather than inferred.

Main entry points: [`docs/app.js`](https://github.com/dmic7995/tempus-et-relativitas/blob/main/docs/app.js) (Pages application), [`tools/recert_analytics.py`](https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/recert_analytics.py) (Recertification analytics), [`tools/scan_recertify.py`](https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/scan_recertify.py) (Recertification scanner), [`tools/urbano_ledger.py`](https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/urbano_ledger.py) (Worklist and phase ledger)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site and readers"]
  node_pages["Pages application<br/>[app.js]"]
  node_site_shell["Site structure<br/>[index.html]"]
end

subgraph group_edition["Urbano edition"]
  node_edition_data[("Bilingual edition<br/>[book_data.json]")]
  node_dt_data[("Divus Thomas texts<br/>[divus_thomas.json]")]
  node_edition_status[("Edition status<br/>[urbano_status.json]")]
  node_recert_data[("Recertification records<br/>[manifest.json]")]
  node_scanner["Recertification scanner<br/>[scan_recertify.py]"]
  node_ledger["Worklist and phase ledger<br/>[urbano_ledger.py]"]
  node_analytics["Recertification analytics"]
  node_analytics_data[("Analytics report<br/>[analytics.json]")]
end

subgraph group_mensura["Mensura treatise"]
  node_treatise["Mensura treatise"]
  node_web_export["Treatise web export<br/>[web_export.py]"]
  node_regression["Regression analysis<br/>[regfit.py]"]
  node_specimens["Experiment readings<br/>[specimen.py]"]
end

subgraph group_collab["Collaboration"]
  node_handoff["Dual-model handoff"]
  node_shared_rules["Shared model rules<br/>[GEMINI.md]"]
end

node_reader(("Site reader"))

node_reader -->|"uses"| node_pages
node_pages -->|"renders in"| node_site_shell
node_pages -->|"loads reader data"| node_edition_data
node_pages -->|"tracks coverage"| node_edition_status
node_pages -->|"shows recertification"| node_recert_data
node_pages -->|"shows analytics"| node_analytics_data
node_scanner -->|"scans sections"| node_edition_data
node_ledger -->|"uses scan_article"| node_scanner
node_analytics -->|"uses measure"| node_ledger
node_analytics -.->|"writes report"| node_analytics_data
node_treatise -->|"exports reader text"| node_web_export
node_specimens -.->|"registers fit data"| node_regression
node_handoff -.->|"follows workflow"| node_shared_rules

click node_pages "https://github.com/dmic7995/tempus-et-relativitas/blob/main/docs/app.js"
click node_site_shell "https://github.com/dmic7995/tempus-et-relativitas/blob/main/docs/index.html"
click node_edition_data "https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/book_data.json"
click node_dt_data "https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/divus_thomas.json"
click node_edition_status "https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/urbano_status.json"
click node_recert_data "https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/recertification/manifest.json"
click node_scanner "https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/scan_recertify.py"
click node_ledger "https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/urbano_ledger.py"
click node_analytics "https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/recert_analytics.py"
click node_analytics_data "https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/recertification/analytics.json"
click node_treatise "https://github.com/dmic7995/tempus-et-relativitas/tree/main/treatise"
click node_web_export "https://github.com/dmic7995/tempus-et-relativitas/blob/main/treatise/web_export.py"
click node_regression "https://github.com/dmic7995/tempus-et-relativitas/blob/main/treatise/regfit.py"
click node_specimens "https://github.com/dmic7995/tempus-et-relativitas/blob/main/treatise/specimen.py"
click node_handoff "https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/parallel_handoff.py"
click node_shared_rules "https://github.com/dmic7995/tempus-et-relativitas/blob/main/GEMINI.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pages,node_site_shell toneBlue
class node_edition_data,node_dt_data,node_edition_status,node_recert_data,node_scanner,node_ledger,node_analytics,node_analytics_data toneAmber
class node_treatise,node_web_export,node_regression,node_specimens toneMint
class node_handoff,node_shared_rules toneRose
class node_reader toneIndigo
```

## Components

### Site and readers

- [Pages application](https://github.com/dmic7995/tempus-et-relativitas/blob/main/docs/app.js): `docs/app.js`
- [Site structure](https://github.com/dmic7995/tempus-et-relativitas/blob/main/docs/index.html): `docs/index.html`

### Urbano edition

- [Bilingual edition](https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/book_data.json): `data/book_data.json`
- [Divus Thomas texts](https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/divus_thomas.json): `data/divus_thomas.json`
- [Edition status](https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/urbano_status.json): `data/urbano_status.json`
- [Recertification records](https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/recertification/manifest.json): `data/recertification/manifest.json`
- [Recertification scanner](https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/scan_recertify.py): `tools/scan_recertify.py`
- [Worklist and phase ledger](https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/urbano_ledger.py): `tools/urbano_ledger.py`
- [Recertification analytics](https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/recert_analytics.py): `tools/recert_analytics.py`
- [Analytics report](https://github.com/dmic7995/tempus-et-relativitas/blob/main/data/recertification/analytics.json): `data/recertification/analytics.json`

### Mensura treatise

- [Mensura treatise](https://github.com/dmic7995/tempus-et-relativitas/tree/main/treatise): `treatise`
- [Treatise web export](https://github.com/dmic7995/tempus-et-relativitas/blob/main/treatise/web_export.py): `treatise/web_export.py`
- [Regression analysis](https://github.com/dmic7995/tempus-et-relativitas/blob/main/treatise/regfit.py): `treatise/regfit.py`
- [Experiment readings](https://github.com/dmic7995/tempus-et-relativitas/blob/main/treatise/specimen.py): `treatise/specimen.py`

### Collaboration

- [Dual-model handoff](https://github.com/dmic7995/tempus-et-relativitas/blob/main/tools/parallel_handoff.py): `tools/parallel_handoff.py`
- [Shared model rules](https://github.com/dmic7995/tempus-et-relativitas/blob/main/GEMINI.md): `GEMINI.md`

### Other components

- **Site reader**

## Connections

- Site reader → Pages application: uses (evidence: `README.md`)
- Pages application → Site structure: renders in (evidence: `README.md`)
- Pages application → Bilingual edition: loads reader data (evidence: `README.md`)
- Pages application → Edition status: tracks coverage (evidence: `README.md`)
- Pages application → Recertification records: shows recertification (evidence: `README.md`)
- Pages application → Analytics report: shows analytics (evidence: `README.md`)
- Recertification scanner → Bilingual edition: scans sections (evidence: `tools/scan_recertify.py`)
- Worklist and phase ledger → Recertification scanner: uses scan_article (evidence: `tools/urbano_ledger.py`)
- Recertification analytics → Worklist and phase ledger: uses measure (evidence: `tools/recert_analytics.py`)
- Recertification analytics → Analytics report: writes report
- Mensura treatise → Treatise web export: exports reader text (evidence: `treatise/web_export.py`)
- Experiment readings → Regression analysis: registers fit data
- Dual-model handoff → Shared model rules: follows workflow
