frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Shift from passive documentation to active enforcement

4•iamalizaidi•1h ago
Hey everyone,

If you work on a scaling codebase, you know the struggle of keeping architectural context alive. Senior engineers make important decisions about how the code should be structured, but new hires often don't know that context exists and end up accidentally breaking critical systems.

To fix this, I built Decision Guardian. It is an open-source tool (running as a GitHub Action or local CLI) that shifts teams from passive documentation to active enforcement. What it exactly does: Instead of hoping developers read an external wiki, you document your architectural decisions in a simple Markdown file in your repository (e.g., .decispher/decisions.md). You map these decisions to specific files using glob patterns or advanced JSON rules (like regex or line-ranges).

When a developer opens a Pull Request that modifies those protected files, Decision Guardian automatically drops a structured comment directly into the code review, giving them the exact context and checklist they need before they merge.

Here is a real-world example of how it works:

Let's say your team has a strict rule about not breaking public API contracts.

The Setup: In your decisions.md file, you create a decision called DECISION-API-001: Public API Contract Protection and map it to the file pattern src/api/v1/*/*.ts.

The Trigger: A new developer submits a Pull Request that modifies src/api/v1/users.ts to change how a payload is formatted.

The Action: Decision Guardian instantly detects the match and posts a "Warning" comment on the PR stating: "Changes to v1 API routes affect external clients. Before merging: Update API documentation, notify integration partners, and consider a deprecation path".

Key Features:

You can categorize decisions by severity (Info, Warning, Critical).

If a developer violates a "Critical" decision, you can configure the tool to automatically fail the PR status check, preventing them from merging without approval. It runs entirely locally or in your CI/CD pipeline, guaranteeing your source code never leaves your repository. It essentially acts as an automated guardrail, telling your developers why a piece of code is sensitive the exact moment they try to change it.

You can check out the repo here: https://github.com/DecispherHQ/decision-guardian

Comments

btrettel•1h ago
Nice work. I made a similar (but much less capable) Python script [1] for my own use before and I can say that a tool like this is useful to keep the docs in sync with the code.

My script only detects whether a checksum for a segment of code doesn't match, using directives placed in the code (not a separate file as you've done). For example:

    #tripwire$ begin 094359D3 Update docs section blah if necessary.
    [...]
    #tripwire$ end
Also, my script knows nothing about pull requests and is basically a linter. So it's definitely not as capable.

[1] https://github.com/btrettel/flt/blob/main/py/tripwire.py

***

Edit: I just checked my notes. I might have got the idea for my script from this earlier Hacker News comment: https://news.ycombinator.com/item?id=25423514

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

https://www.youtube.com/watch?v=luulTI1RKHE
1•ycnews•6m 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•15m ago•0 comments

Trapped in MS Office

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

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

https://www.openclawdiscord.ai/
3•saroyas•18m ago•2 comments

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

1•hellomarshmall•18m 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•19m ago•0 comments

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

https://github.com/yologdev/yoagent
1•liyuanhao•24m 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•26m ago•1 comments

Ollama 0.17 ships native OpenClaw integration – security implications

https://clawmoat.com/blog/ollama-openclaw-security.html
1•ildar•28m 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•29m 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•36m ago•0 comments

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

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

Skip drip emails when recipient has replied in Gmail

1•nishiohiroshi•42m 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•43m ago•0 comments

Externalizing Developers' Intuition as Code

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

Synchronized MIMD Computing [pdf]

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

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

3•thomassmith65•46m ago•1 comments

LXD 6.7 Released with AMD GPU Passthrough Support

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

Edge Case Poisoning

https://buttondown.com/hillelwayne/archive/edge-case-poisoning/
1•azhenley•47m 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•48m 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...
6•brandonb•50m ago•0 comments

Programmers on the Verge of Extinction

https://stevedylan.dev/posts/programmers-on-the-verge-of-extinction/
2•stevedsimkins•56m 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
6•randycupertino•56m 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•57m ago•1 comments

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

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

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

2•wewewedxfgdf•58m ago•1 comments

A tool to launch your OpenClaw in just 1 minute

https://clawhost.chat
1•vadimen•1h 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/
10•doener•1h ago•1 comments

Statement on the comments from Secretary of War Pete Hegseth

https://www.anthropic.com/news/statement-comments-secretary-war
238•surprisetalk•1h ago•44 comments

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

4•larryste•1h ago•0 comments