# panbibliotekar/gaidet-declaration architecture

> Architecture diagram of the GitHub repository panbibliotekar/gaidet-declaration, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/panbibliotekar/gaidet-declaration
- Repository: https://github.com/panbibliotekar/gaidet-declaration

## Overview

#### Purpose and delivery model
GAIDeT is a static, browser-based declaration generator for disclosing generative-AI use in research and scientific writing. It is intended for GitHub Pages-style hosting; no server application or database is present. Primary user entry points are `index.html` and the Ukrainian localization `index-uk.html`.

#### Interactive declaration generator
The main HTML pages collect a responsible author, LLM/version, selected taxonomy tasks, and an optional comment, then generate copyable declaration text entirely in the browser. Supporting Crossref-oriented variants are `gaidet-crossref-helper.html` and `gaidet-crossref-helper-ua.html`, likely providing a specialized declaration/metadata workflow.

#### Taxonomy as the source of truth
GAIDeT task definitions are maintained as structured YAML in `_data/terms.yml`. This is the authoritative editable taxonomy consumed by the static site/generator pipeline and represents the stable term identifiers exposed under the `w3id.org/gaidet` namespace.

Paths:
- `_data/terms.yml`
- `_config.yml`

#### Ontology publication pipeline
`generate_ontology.py` transforms the taxonomy source into the published OWL ontology, making GAIDeT concepts machine-readable and URI-addressable. The generated ontology artifact is committed as `gaidet.owl`, separating human-maintained term data from semantic-web distribution output.

Paths:
- `generate_ontology.py`
- `gaidet.owl`
- `_data/terms.yml`

#### Data and control flow
The core flow is: taxonomy YAML defines selectable delegation tasks; static HTML renders/uses those terms for user selection; browser-side logic assembles submitted author/model/task/comment values into a declaration; the result is copied by the user into a manuscript or reporting workflow. Ontology generation is an offline maintenance flow from YAML to OWL, independent of interactive use.

#### Runtime, hosting, and external boundaries
The deployed generator requires only a modern web browser and static-file hosting. `_config.yml` and the `_data` convention indicate Jekyll/GitHub Pages compatibility. External dependencies are conceptual/publication-facing rather than runtime APIs: permanent term resolution through `https://w3id.org/gaidet/`, GitHub Pages hosting, and Crossref-related helper pages. Python packaging metadata in `pyproject.toml` supports the ontology-generation environment.

Paths:
- `_config.yml`
- `pyproject.toml`
- `justfile`

Main entry points: [`_config.yml`](https://github.com/panbibliotekar/gaidet-declaration/blob/main/_config.yml) (Jekyll site build), [`_data/terms.yml`](https://github.com/panbibliotekar/gaidet-declaration/blob/main/_data/terms.yml) (Task taxonomy), [`index.html`](https://github.com/panbibliotekar/gaidet-declaration/blob/main/index.html) (English generator), [`index-uk.html`](https://github.com/panbibliotekar/gaidet-declaration/blob/main/index-uk.html) (Ukrainian generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Static generator"]
  node_index["English generator<br/>HTML entry point<br/>[index.html]"]
  node_index_uk["Ukrainian generator<br/>HTML entry point<br/>[index-uk.html]"]
  node_crossref_en["Crossref helper<br/>HTML helper"]
  node_crossref_ua["Ukrainian Crossref helper<br/>HTML helper"]
  node_browser(("Modern browser<br/>client runtime"))
  node_declaration["Copyable declaration<br/>generated text"]
end

subgraph group_taxonomy["Taxonomy &amp; publication"]
  node_terms["Task taxonomy<br/>YAML source<br/>[terms.yml]"]
  node_jekyll["Jekyll site build<br/>static-site pipeline<br/>[_config.yml]"]
  node_ontology_generator["Ontology generator<br/>Python script"]
  node_ontology["Published ontology<br/>OWL artifact<br/>[gaidet.owl]"]
  node_python_env["Python generation environment<br/>package metadata<br/>[pyproject.toml]"]
  node_automation["Maintenance commands<br/>task runner"]
end

subgraph group_external["Publication boundaries"]
  node_static_host{{"GitHub Pages-style host<br/>static hosting"}}
  node_w3id{{"w3id.org/gaidet<br/>persistent URI resolver"}}
  node_manuscript["Manuscript workflow<br/>downstream publication"]
  node_crossref{{"Crossref workflow<br/>publication metadata boundary"}}
end

node_terms -->|"site data"| node_jekyll
node_jekyll -->|"publishes"| node_index
node_jekyll -->|"publishes"| node_index_uk
node_jekyll -->|"publishes"| node_crossref_en
node_jekyll -->|"publishes"| node_crossref_ua
node_static_host -->|"serves static files"| node_browser
node_browser -->|"opens"| node_index
node_browser -->|"opens"| node_index_uk
node_terms -->|"selectable tasks"| node_index
node_terms -->|"selectable tasks"| node_index_uk
node_index -->|"assembles locally"| node_declaration
node_index_uk -->|"assembles locally"| node_declaration
node_declaration -->|"user copies"| node_manuscript
node_crossref_en -.->|"supports"| node_crossref
node_crossref_ua -.->|"supports"| node_crossref
node_terms -->|"transforms"| node_ontology_generator
node_python_env -.->|"provides environment"| node_ontology_generator
node_automation -.->|"runs maintenance"| node_ontology_generator
node_ontology_generator -->|"generates"| node_ontology
node_ontology -->|"published identifiers"| node_w3id

click node_index "https://github.com/panbibliotekar/gaidet-declaration/blob/main/index.html"
click node_index_uk "https://github.com/panbibliotekar/gaidet-declaration/blob/main/index-uk.html"
click node_crossref_en "https://github.com/panbibliotekar/gaidet-declaration/blob/main/gaidet-crossref-helper.html"
click node_crossref_ua "https://github.com/panbibliotekar/gaidet-declaration/blob/main/gaidet-crossref-helper-ua.html"
click node_terms "https://github.com/panbibliotekar/gaidet-declaration/blob/main/_data/terms.yml"
click node_jekyll "https://github.com/panbibliotekar/gaidet-declaration/blob/main/_config.yml"
click node_ontology_generator "https://github.com/panbibliotekar/gaidet-declaration/blob/main/generate_ontology.py"
click node_ontology "https://github.com/panbibliotekar/gaidet-declaration/blob/main/gaidet.owl"
click node_python_env "https://github.com/panbibliotekar/gaidet-declaration/blob/main/pyproject.toml"
click node_automation "https://github.com/panbibliotekar/gaidet-declaration/blob/main/justfile"

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_index,node_index_uk,node_crossref_en,node_crossref_ua,node_browser,node_declaration toneBlue
class node_terms,node_jekyll,node_ontology_generator,node_ontology,node_python_env,node_automation toneAmber
class node_static_host,node_w3id,node_manuscript,node_crossref toneMint
```

## Components

### Static generator

Browser-delivered declaration tools.

- [English generator](https://github.com/panbibliotekar/gaidet-declaration/blob/main/index.html): HTML entry point · `index.html`
- [Ukrainian generator](https://github.com/panbibliotekar/gaidet-declaration/blob/main/index-uk.html): HTML entry point · `index-uk.html`
- [Crossref helper](https://github.com/panbibliotekar/gaidet-declaration/blob/main/gaidet-crossref-helper.html): HTML helper · `gaidet-crossref-helper.html`
- [Ukrainian Crossref helper](https://github.com/panbibliotekar/gaidet-declaration/blob/main/gaidet-crossref-helper-ua.html): HTML helper · `gaidet-crossref-helper-ua.html`
- **Modern browser**: client runtime · Runs declaration generation entirely locally.
- **Copyable declaration**: generated text · Author, model, task, and optional comment disclosure.

### Taxonomy & publication

Editable terms and ontology distribution.

- [Task taxonomy](https://github.com/panbibliotekar/gaidet-declaration/blob/main/_data/terms.yml): YAML source · Authoritative stable delegation-task definitions. · `_data/terms.yml`
- [Jekyll site build](https://github.com/panbibliotekar/gaidet-declaration/blob/main/_config.yml): static-site pipeline · Uses repository data conventions to publish the site. · `_config.yml`
- [Ontology generator](https://github.com/panbibliotekar/gaidet-declaration/blob/main/generate_ontology.py): Python script · Offline transformation of taxonomy terms. · `generate_ontology.py`
- [Published ontology](https://github.com/panbibliotekar/gaidet-declaration/blob/main/gaidet.owl): OWL artifact · Machine-readable GAIDeT concepts. · `gaidet.owl`
- [Python generation environment](https://github.com/panbibliotekar/gaidet-declaration/blob/main/pyproject.toml): package metadata · `pyproject.toml`
- [Maintenance commands](https://github.com/panbibliotekar/gaidet-declaration/blob/main/justfile): task runner · `justfile`

### Publication boundaries

Hosting and downstream use.

- **GitHub Pages-style host**: static hosting
- **w3id.org/gaidet**: persistent URI resolver · Resolves published term identifiers.
- **Manuscript workflow**: downstream publication · User pastes the generated disclosure here.
- **Crossref workflow**: publication metadata boundary

## Connections

- Task taxonomy → Jekyll site build: site data
- Jekyll site build → English generator: publishes
- Jekyll site build → Ukrainian generator: publishes
- Jekyll site build → Crossref helper: publishes
- Jekyll site build → Ukrainian Crossref helper: publishes
- GitHub Pages-style host → Modern browser: serves static files
- Modern browser → English generator: opens
- Modern browser → Ukrainian generator: opens
- Task taxonomy → English generator: selectable tasks
- Task taxonomy → Ukrainian generator: selectable tasks
- English generator → Copyable declaration: assembles locally
- Ukrainian generator → Copyable declaration: assembles locally
- Copyable declaration → Manuscript workflow: user copies
- Crossref helper → Crossref workflow: supports
- Ukrainian Crossref helper → Crossref workflow: supports
- Task taxonomy → Ontology generator: transforms
- Python generation environment → Ontology generator: provides environment
- Maintenance commands → Ontology generator: runs maintenance
- Ontology generator → Published ontology: generates
- Published ontology → w3id.org/gaidet: published identifiers
