← LGB home

Architecture Decision Records (ADRs)

This directory contains the Architecture Decision Records for the LGB project.

ADRs document significant technical decisions — their context, options considered, rationale, and consequences. Each ADR has a status of Proposed, Accepted, Superseded, or Deprecated. Phase 0 ADRs start as Proposed and are promoted to Accepted after team review.

For new ADRs, copy 0000-template.md and fill in each section. Number sequentially.

Index

#FileTitleStatus
00000000-template.mdTemplate—
00010001-cli-framework.mdCLI framework — Cobra v1.10.2Proposed
00020002-config-loader.mdConfig loader — koanf v2 with LGB_{SECTION}_{FIELD} env overlayProposed
00030003-logging.mdLogging — log/slog (stdlib)Proposed
00040004-plc-driver.mdPLC driver — danomagnum/gologix v0.41.0-betaProposed
00050005-opcua-library.mdOPC UA library — gopcua/opcua v0.8.0 + mandatory Phase 1 spikeProposed
00060006-mqtt-sparkplug.mdMQTT + Sparkplug B — paho.mqtt.golang v1.5.1 + project-owned internal/sparkplugProposed
00070007-historian.mdHistorian — modernc.org/sqlite v1.50.1 (pure-Go)Proposed
00080008-backups.mdBackups — restic v0.18.0 as subprocess with --jsonProposed
00090009-pure-go-no-cgo.mdPure-Go / no CGo — all direct deps must compile CGO_ENABLED=0Proposed
00100010-opcua-write-trust-model.mdOPC UA write trust model — per-tag opt-in, not session identityProposed

Adding a new ADR

  1. Copy 0000-template.md to NNNN-short-title.md (next sequential number).
  2. Fill in all sections. Leave no {placeholder} text.
  3. Set Status to Proposed.
  4. Add a row to the index table above.
  5. Open a PR and tag at least one maintainer for review.
  6. On acceptance, update the Status field and this index.