frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Decision-layer – your refund logic doesn't belong in Slack

https://github.com/data-riot/decision-layer
1•emt00•3h ago
You know the drill.

Some mix of product, support and eng decides how refunds work. It lives in a Notion doc. Then Slack. Then hardcoded as a bunch of if statements. No tests. No trace. No version control.

decision-layer is a small framework to clean that up.

You write the logic in YAML. Run it like code. Test it. Trace it.

What it does: - Versioned YAML policies - CLI to run and test them - Trace output with every rule fired - Examples: refunds, escalation, tiering

All in plain Python. No weird dependencies. Just testable logic defined clearly.

⸻

Would love to hear what confuses, breaks or annoys you. (Or what would make this usable where you work.)

Comments

emt00•3h ago
Thanks for checking this out.

I built this after one too many rounds of debugging refund logic that lived partly in code, partly in Slack/Notion and in human HDD.

What it is: A minimal framework to define decisions (refunds, escalation, tiering) in YAML, run them in Python, and trace exactly what rule fired.

Not trying to be: - A full-blown policy engine - A DSL replacement - A product

Just something useful for when your business logic needs versioning, traceability, and tests but you don’t want to build all that infra from scratch.

Trace output → shows you exactly which rule fired and why Versioning → write your policies like code, diff them, roll back Testable → run them with real inputs, locally or in CI

Happy to answer: Why YAML? (it’s config, not code) How this fits in a real app What I’d add next if people use it

Use it. Abuse it. Feedback very welcome.

Show HN: Goliteql – A fast GraphQL executor and code generator in Go

https://github.com/n9te9/goliteql
1•n9te9•3m ago•0 comments

AWS launches Kiro, its Cursor clone

https://kiro.dev/blog/introducing-kiro/
2•QuinnyPig•4m ago•1 comments

China's Mini PC Production [video]

https://www.youtube.com/watch?v=ohwI3V207Ts
1•0xedb•4m ago•0 comments

Universal Tool Calling Protocol (UTCP)

https://www.utcp.io/
1•vlugorilla•5m ago•0 comments

WMS – Weather, Moon, & Solar / Weather Management System. TUI

https://github.com/Traves-Theberge/WMS
1•Traves-Theberge•5m ago•1 comments

Software Heritage – Contribute to the Unesco Source Code Exhibition

https://www.softwareheritage.org/2025/07/07/code-exhibit-unesco-cfp/
1•periode•5m ago•0 comments

More than 23M Britons think they may be due compensation for mis-sold car loans

https://www.theguardian.com/business/2025/jul/07/more-than-23m-britons-think-they-may-be-due-compensation-for-mis-sold-car-loans-uk-poll-finds
1•PaulHoule•7m ago•0 comments

PrimeSweeper – MineSweeper with Prime Numbers

https://vole.wtf/primesweeper/
2•PaulRobinson•10m ago•0 comments

Testing Tracing Locally with OpenTelemetry

https://blog.apartment304.com/otel-telemetry-testing/
1•selljamhere•12m ago•0 comments

Ask HN: Decent LLM agent plugin for Jetbrains?

1•aristofun•13m ago•1 comments

Modern async iteration in JavaScript with Array.fromAsync()

https://allthingssmitty.com/2025/07/14/modern-async-iteration-in-javascript-with-array-fromasync/
1•AllThingsSmitty•14m ago•0 comments

Dyan – A Visual REST API Builder You Can Self-Host

1•0018akhil•15m ago•0 comments

Install Postgres, MariaDB, and Redis as NPM dependencies

https://endor.dev/blog/node-postgres
1•angelmm•16m ago•0 comments

Show HN: Dyan – A Visual REST API Builder You Can Self-Host

https://www.youtube.com/watch?v=SBEPacMgpvk
1•0018akhil•16m ago•0 comments

Spreadsheets Die Hard

https://betterthanrandom.substack.com/p/spreadsheets-die-hard
1•spking•17m ago•0 comments

Show HN: I Created ParsePoint.app Smart Invoice Data Extractor

https://parsepoint.app
1•marcinczubala•19m ago•0 comments

Show HN: TechBro Generator – Generate Satirical TechBro Posts

https://techbrogenerator.netlify.app/
10•ahmetomer•20m ago•1 comments

The Ideological Gravity of FOSS

3•ricecat•21m ago•1 comments

NetBox Labs raises $35M Series B

https://netboxlabs.com/blog/netbox-labs-has-raised-our-35m-series-b/
3•mrmrcoleman•23m ago•0 comments

Kimi K2

https://kimik2ai.app
1•tomh88•23m ago•0 comments

Show HN: Social network where anyone can be seen (Quickpost)

https://qqpost.netlify.app/home
1•random175•24m ago•0 comments

Show HN: Crossabble, a weekly word game/puzzle

https://crossabble.com/
1•amenghra•24m ago•1 comments

Minimal Quality of Life: The true cost of economic well-being

https://lisep.org/mql
1•hampelm•26m ago•0 comments

DbGate In-Depth Review on Research.com

https://research.com/software/reviews/dbgate-review
1•janproch•26m ago•0 comments

ESA's Moonlight programme: Pioneering the path for lunar exploration

https://www.esa.int/Applications/Connectivity_and_Secure_Communications/ESA_s_Moonlight_programme_Pioneering_the_path_for_lunar_exploration
1•nullhole•27m ago•0 comments

Doing time. The emergence of irreversibility – PubMed

https://pubmed.ncbi.nlm.nih.gov/10818553/
1•rbanffy•27m ago•0 comments

CNET Survey: Just 11% of People Upgrade Their Phone for AI Features

https://www.cnet.com/tech/mobile/cnet-survey-just-11-of-people-upgrade-their-phone-for-ai-features-heres-what-they-want-instead/
2•mgh2•28m ago•0 comments

New Research Questions Severity of Withdrawal from Antidepressants

https://www.nytimes.com/2025/07/09/health/antidepressants-withdrawal-symptoms.html
1•bookofjoe•31m ago•1 comments

AI hallucination in Mike Lindell case serves as a stark warning

https://www.npr.org/2025/07/10/nx-s1-5463512/ai-courts-lawyers-mypillow-fines
2•speckx•31m ago•0 comments

Structure of Ice in Space Is Neither Order nor Chaos–It's Both

https://www.wired.com/story/space-ice-structure-order-chaos/
1•Bluestein•32m ago•0 comments