frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Decision Guardian – Auto-surface architectural context on PRs and CLI

2•iamalizaidi•1h ago
Hey HN, I’m Ali.

I built Decision Guardian to solve a problem I call "institutional amnesia." Senior engineers build complex systems (like highly-tuned DB connection pools or sensitive auth middleware) and document the "why" in wikis or ADRs. But inevitably, a new developer modifies that code without reading the docs, and things break. While tools like CODEOWNERS are great for telling you who needs to review a file, I needed something that automatically tells the developer why the review matters before they even ask.

What it is: Decision Guardian is an open-source tool that shifts teams from passive documentation to active enforcement. You write your architectural decisions in a standard Markdown file (e.g., .decispher/decisions.md) and map them to file paths using glob patterns or advanced JSON rules. When a developer modifies those protected files, it automatically analyzes the diff and drops a structured comment into the Pull Request explaining the context, warnings, and checklists.

I just released v1.1, which includes a major internal SOLID refactor. The core engine is now 100% decoupled from GitHub (using ISCMProvider and ILogger interfaces), allowing it to ship as a standalone 430KB CLI (npx decision-guardian check) that works locally, in pre-commit hooks, or on GitLab/Jenkins.

Under the hood (How it works): I wanted this to be fast and secure enough to run on massive enterprise repositories, which required a few fun technical implementations:

O(1) Pattern Matching: Naively matching N decisions against M files in a 3,000+ file PR is painfully slow. The core engine compiles all file patterns into a Prefix Trie (an Aho-Corasick variant), turning candidate lookup into an O(1) operation relative to the number of decisions.

ReDoS-Protected VM Sandbox: For complex rules, you can use Regex to scan diff contents (e.g., detecting hardcoded credentials). Because user-supplied regex can cause catastrophic backtracking, all regex evaluation runs inside an isolated Node VM sandbox with a hard 5-second timeout and pre-flight safe-regex checks.

Progressive Comment Truncation: GitHub limits PR comments to 65,536 characters. To prevent failures on massive PRs, the tool uses a 6-layer progressive truncation algorithm that intelligently summarizes details before falling back to a hard truncation.

Privacy & Telemetry: I know HN cares deeply about telemetry. v1.1 introduces anonymous usage metrics to help me understand performance (e.g., node version, duration, match counts). However, I designed it with strict privacy constraints:

Zero PII: It never collects source code, file contents, repo names, branches, or paths.

Runtime Blocklist: The privacy module physically validates every payload against a blocklist before sending. If any blocked field is detected, it throws an error and rejects the payload.

Open Source Backend: It is fire-and-forget (never slows down the tool), entirely opt-out (DG_TELEMETRY=0), and the Cloudflare Worker backend code is fully open-source in the repo.

Links:

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

Docs/Architecture: https://decision-guardian.decispher.com

I also included 5 production-ready templates (security, database, api, etc.) to help teams get started instantly.

I’d love to hear your thoughts on the architecture, the Trie implementation, or how your teams currently handle enforcing ADRs during code reviews!

DIY Ion-Exchange Membranes from Hardware Store Items [video]

https://www.youtube.com/watch?v=luulTI1RKHE
1•ycnews•53s ago•0 comments

Show HN: AxKeyStore – Zero-trust CLI secrets manager using your own GitHub repo

https://github.com/basilgregory/axkeystore
1•robin_a_p•9m ago•0 comments

Trapped in MS Office

https://ia.net/topics/trapped-in-ms-office
1•DASD•11m ago•0 comments

Show HN: Meet Alfonso: My OpenClaw Put on Public Discord

https://www.openclawdiscord.ai/
3•saroyas•12m ago•1 comments

Show HN: Adversarial AI agents that debate and verify travel itineraries

1•hellomarshmall•13m ago•0 comments

CISA replaces acting director after a bumbling year on the job

https://techcrunch.com/2026/02/27/cisa-replaces-acting-director-gottumukkala-after-a-bumbling-yea...
2•jnord•14m ago•0 comments

Show HN: Yoagent – Build a coding agent CLI in 260 lines of Rust

https://github.com/yologdev/yoagent
1•liyuanhao•18m ago•1 comments

How I Built a 'Journalist' AI Agent in VS Code to Replace Me

https://visualstudiomagazine.com/articles/2026/02/27/how-i-built-a-journalist-agent-in-vs-code-to...
1•daram•20m ago•1 comments

Ollama 0.17 ships native OpenClaw integration – security implications

https://clawmoat.com/blog/ollama-openclaw-security.html
1•ildar•22m ago•0 comments

The Air Force's new ICBM is nearly ready to fly, but there's nowhere to put it

https://arstechnica.com/space/2026/02/the-air-forces-new-icbm-is-nearly-ready-to-fly-but-theres-n...
3•duxup•24m ago•0 comments

Why Tehran's Two-Tiered Internet Is So Dangerous

https://www.schneier.com/blog/archives/2026/02/why-tehrans-two-tiered-internet-is-so-dangerous.html
1•pabs3•30m ago•0 comments

Show HN: DiskFree – Find what's blocking your macOS disk and eject it

https://getdiskfree.github.io/diskfree/
1•ofc-tahaabbasi•35m ago•1 comments

Skip drip emails when recipient has replied in Gmail

1•nishiohiroshi•36m ago•0 comments

California vet clinic warns of AI scam targeting lost dogs

https://ktla.com/news/california/lost-dog-ai-scam-fresno/
2•Bender•38m ago•0 comments

Externalizing Developers' Intuition as Code

https://github.com/elbanic/dev-sentinel
2•elbanic•38m ago•1 comments

Synchronized MIMD Computing [pdf]

https://people.csail.mit.edu/bradley/papers/Kuszmaul94.pdf
1•luu•41m ago•0 comments

Ask HN: Which nickname will President Trump choose for Claude?

2•thomassmith65•41m ago•1 comments

LXD 6.7 Released with AMD GPU Passthrough Support

https://www.phoronix.com/news/LXD-6.7-Released
3•Bender•41m ago•0 comments

Edge Case Poisoning

https://buttondown.com/hillelwayne/archive/edge-case-poisoning/
1•azhenley•42m ago•0 comments

Gnome GitLab Redirecting Some Git Traffic to GitHub for Reducing Costs

https://www.phoronix.com/news/GNOME-GitHub-GitLab-Redirect
2•Bender•43m ago•0 comments

Federal panel behind cancer screening recommendations hasn't met in one year

https://www.nbcnews.com/health/health-news/federal-panel-cancer-screening-recommendations-hasnt-m...
5•brandonb•44m ago•0 comments

Programmers on the Verge of Extinction

https://stevedylan.dev/posts/programmers-on-the-verge-of-extinction/
2•stevedsimkins•50m ago•0 comments

$500K exit approved for Bay Area CEO days before harassment findings surface

https://www.sfgate.com/bayarea/article/exit-bay-area-ceo-harassment-21943048.php
5•randycupertino•50m ago•2 comments

Heart attack deaths are rising in young adults. Here's why

https://www.empirical.health/blog/heart-attacks-rising-young-people/
3•brandonb•52m ago•1 comments

Show HN: Lneto – IEEE802.3/IP/TCP/HTTP in 8kB of RAM in Go

https://github.com/soypat/lan8720
2•soypat•52m ago•0 comments

Ask HN: 2026, where is the best place in the world to create a startup?

2•wewewedxfgdf•52m ago•1 comments

A tool to launch your OpenClaw in just 1 minute

https://clawhost.chat
1•vadimen•55m ago•1 comments

OpenAI is negotiating a deal with The Pentagon

https://fortune.com/2026/02/27/openai-in-talks-with-pentagon-after-anthropic-blowup/
9•doener•56m ago•1 comments

Statement on the comments from Secretary of War Pete Hegseth

https://www.anthropic.com/news/statement-comments-secretary-war
207•surprisetalk•56m ago•36 comments

Super Editor – Atomic file editor with automatic backups (Python and Go)

4•larryste•57m ago•0 comments