frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Spotify's take on ADRs is great, but how do you enforce them at scale?

5•iamalizaidi•1h ago
Hey HN,

I built Decision Guardian — an open-source GitHub Action and CLI that automatically surfaces architectural decisions as PR comments when code touches protected files. The problem it solves:

Spotify published a great post in 2020 about when to write Architecture Decision Records. I followed the advice. My team wrote ADRs. They sat in docs/adr/. Nobody read them before opening a PR.

https://engineering.atspotify.com/2020/04/when-should-i-write-an-architecture-decision-record

The gap isn't documentation — it's surfacing. The right moment to surface a decision isn't onboarding or sprint planning. It's when someone is actively editing the code the decision protects.

How it works:

1) Write decisions in a Markdown file (compatible with existing ADRs) 2) Add the GitHub Action to your workflow 3) When a PR modifies protected files, Decision Guardian posts the relevant decisions as a comment automatically

Decision format (plain Markdown):

<!-- DECISION-DB-001 --> ## Decision: Use Postgres for Billing

*Status*: Active *Severity*: Critical

*Files*: - `src/db/*/*.ts`

### Context We evaluated Postgres vs MongoDB. Billing requires ACID compliance. MongoDB was rejected — no transaction guarantees.

Features worth calling out:

1) Severity levels (Critical / Warning / Info) — can block PRs on critical violations 2) Advanced matching: glob patterns, regex, content-based rules, boolean logic 3) CLI works with any CI (GitLab, Jenkins, CircleCI, pre-commit hooks) 4) Handles PRs with 3000+ files without OOM 5) Idempotent comments — no spam, updates in place 6) Zero external network calls — nothing leaves your GitHub runner 7) 109 tests, ReDoS protection, path traversal protection

vs. CODEOWNERS: CODEOWNERS assigns reviewers. This explains why the review matters. Best used together. vs. Danger.js: Danger requires code. This requires Markdown. Non-JS engineers can own their decisions.

It's MIT licensed, single-step GitHub Action or npx decision-guardian CLI.

Happy to answer questions.

Repo: https://github.com/DecispherHQ/decision-guardian

Comments

guerython•46m ago
We run a similar enforcement hook: every ADR becomes a 4-part plan (context, decision, scorecard, guard). A GitHub action watches the guarded files, expects a `{status:'ok'}` response when the plan still holds, counts retries/cost spikes per plan, and if any guard trips it flags the PR discussion and pauses the pipeline until the safety team approves a diff. That keeps the ADR in the loop instead of just filing it away, and the guard logs give us a data point to explain why a change was denied. Curious how you tie those ADRs back into your toolchain when something trips a guard?

Show HN: Ask Mob

https://mob.army/
1•cc-d•1m ago•0 comments

Show HN: A Kotlin Multiplatform app that works on watch, CLI, browser extension

https://arnav.tech/architecting-twofac-my-journey-into-kotlin-multiplatform-module-structure
1•championswimmer•2m ago•0 comments

NY bill would prohibit AI chatbots from giving legal advice

https://twitter.com/RobertFreundLaw/status/2028550955386704285
1•timr•4m ago•0 comments

Show HN: Generate random, valid US residential addresses for testing

https://meiguodz.com
1•roookiecookie•5m ago•0 comments

Unbound Video AI is the most unrestricted AI video tool I've tried in 2026

https://unbound.video
1•gabrieln•7m ago•1 comments

A timeline of cyber attacks:home users, contractors, and SMBs are now targets

1•EricAUS•9m ago•0 comments

Iran unleashes Shahed drones aimed at targets across Middle East

https://www.theguardian.com/world/2026/mar/02/iran-unleashes-hundreds-of-drones-aimed-at-targets-...
2•0in•10m ago•0 comments

Shutting down, open sourced private AI document server

https://github.com/queryhat/super-hat
2•chhetri978•12m ago•2 comments

Zuckerberg's internal emails rendered as Facebook Messenger

https://zuckmail.vercel.app/
2•not-chatgpt•14m ago•0 comments

Daily LNG freight rates jump over 40% amid Mideast strikes

https://www.reuters.com/business/energy/daily-lng-freight-rates-jump-over-40-amid-mideast-strikes...
3•geox•14m ago•0 comments

Solar Time vs. Standard Time heat map chart

https://blog.poormansmath.net/images/SolarTimeVsStandardTime.png
1•ivewonyoung•15m ago•0 comments

Show HN: One-click ComfyUI setup for RTX 50-series on Windows (cu130, no Docker)

https://github.com/hiroki-abe-58/ComfyUI-Win-Blackwell
1•GeneLab_999•16m ago•0 comments

Ask HN: Codex CLI error reveals "GPT-5.4-ab-arm2" string

1•quantisan•18m ago•0 comments

The Optimization Trap: Why the Birth Rate Can't Be Fixed

https://tantaman.com/2026-03-02-fertility-is-not-economics.html
1•tantaman•18m ago•1 comments

OpenAI, Pentagon add more surveillance protections to AI deal

https://www.axios.com/2026/03/03/openai-pentagon-ai-surveillance
1•foobarqux•19m ago•2 comments

Meteorologist warns federal cuts are undermining weather forecasts nationwide

https://www.lehighvalleynews.com/environment-science/local-meteorologist-warns-federal-cuts-are-u...
1•mkmk•21m ago•0 comments

Decimal Time (French Republican Clock)

https://en.wikipedia.org/wiki/Decimal_time
1•rawgabbit•25m ago•0 comments

Made a register-based bytecode VM in C, heres how the handler table works

https://github.com/goofgef/ZagMate
1•goofgef•32m ago•1 comments

The exploitation paradox in open source

https://lwn.net/SubscriberLink/1058031/a1b77f8039faed6c/
1•pabs3•35m ago•0 comments

Coasty automates anything – this post was written by the CUA itself

1•PrateekJ17•36m ago•1 comments

"Here is a re-post of an internal note"

https://twitter.com/sama/status/2028640354912923739
3•davidbarker•36m ago•1 comments

Ars Technica Fires Reporter After AI Controversy Involving Fabricated Quotes

https://futurism.com/artificial-intelligence/ars-technica-fires-reporter-ai-quotes
2•danso•40m ago•0 comments

Show HN: PHP 8 disable_functions bypass PoC

https://github.com/m0x41nos/TimeAfterFree
12•m0x41nos•40m ago•0 comments

Anthropic Adds Free Memory Feature and Import Tool to Lure ChatGPT Users

https://www.macrumors.com/2026/03/02/anthropic-memory-import-tool/
2•mgh2•40m ago•0 comments

LibreOffice hits back at critics, says its UI is better than Microsoft Office's

https://www.neowin.net/news/libreoffice-hits-back-at-its-critics-says-its-ui-is-better-than-micro...
6•bundie•45m ago•5 comments

Dyndispatch – Dynamic Dispatch for Python

https://git.sr.ht/~shakna/dyndispatch
2•shakna•45m ago•0 comments

China-based assets being removed from the Asset Store on March 31st

https://discussions.unity.com/t/a-notice-for-asset-store-assets-from-publishers-in-greater-china/...
4•linolevan•47m ago•1 comments

Odido Security Breach – 6M Customers (Full Timeline and Analysis)

https://danicfilip.com/blog/odido-hack-2026-full-timeline-and-analysis/
1•softwarelounge•47m ago•0 comments

Show HN: VCBacked – Find venture funded startups for your business, fund, agency

https://www.vcbacked.co
1•veritas9•48m ago•0 comments

Show HN: Evan-proxy, better teenager phone management

https://github.com/chrissnell/evan-proxy
1•chrissnell•51m ago•0 comments