Urgent.News

What's breaking now, across thousands of outlets.

Tech

Enforcing ADRs with Deterministic Architecture Tests

TL;DR: Architecture Decision Records (ADRs) turn into dead documentation the moment a team accumulates more than thirty decisions. I stop this architectural drift by enforcing rules deterministically: automated architecture tests fail the build on broken boundaries, a one-line context index keeps rules inside human and AI context limits, and explicit anti-pattern definitions catch what static…

Architecture Decision Records (ADRs) can lose effectiveness when a team accumulates too many decisions. To combat this, enforce rules deterministically through automated architecture tests, a concise context index, and explicit anti-pattern definitions. When ADRs are merged into the codebase, they decay into passive historical records unless mechanical enforcement is in place.

The three-layer governance model includes deterministic gates (automated tests), a context index, and anti-pattern definitions. Deterministic architecture tests examine the codebase's structure, namespaces, and syntax trees to detect architectural violations early in the CI pipeline. These tests run quickly and provide clear, actionable error messages linked to the originating ADR.

Not all architectural decisions can be enforced via binary tests, so define anti-patterns for nuanced cases. By shifting ADRs from passive documentation to active governance layers, you maintain architectural integrity without overwhelming developers or AI reviewers.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Before I let an agent open PRs on strangers' repos, I made it earn it

Over the last six weeks I've had 44 bug fixes merged into other people's open-source projects, most of them MCP servers. Many came from the same loop: mcp-doctor , my static linter for MCP servers…

  • Agent must replay against merged code with ~60% match threshold
  • Agent runs full loop on unseen repositories before posting anything
  • Human sends every PR; agent handles slow parts of process

GitHub contribution graphs as pixel art: a small browser project

I built GitPixelPush to turn a GitHub contribution calendar into a drawing canvas. It is a creative experiment: the generated activity is clearly labeled artwork.

  • GitPixelPush transforms GitHub contribution calendar into pixel art canvas
  • Users can sketch patterns, stamp text, or use preset options
  • Backdated empty commits created in chosen repository for visual representation

More from Wednesday 14 October →