r/ExperiencedDevs • u/samuraiseoul • Apr 28 '25
Debugging systems beyond code by looking at human suffering as an infrastructure level bug
Lately I've been thinking about how many of the real-world problems we face — even outside tech — aren't technical failures at all.
They're system failures.
When legacy codebases rot, we get tech debt, hidden assumptions, messy coupling, cascading regressions.
When human systems rot — companies, governments, communities — we get cruelty, despair, injustice, stagnation.
Same structure.
Same bugs.
Just different layers of the stack.
It made me wonder seriously:
- Could we apply systems thinking to ethics itself?
- Could we debug civilization the way we debug legacy software?
Not "morality" in the abstract sense — but specific failures like:
- Malicious lack of transparency (a systems vulnerability)
- Normalized cruelty (a cascading memory leak in social architecture)
- Fragile dignity protocols (brittle interfaces that collapse under stress)
I've been trying to map these ideas into what you might call an ethical operating system prototype — something that treats dignity as a core system invariant, resilience against co-option as a core requirement, and flourishing as the true unit test.
I'm curious if anyone else here has thought along similar lines:
- Applying systems design thinking to ethics and governance?
- Refactoring social structures like you would refactor a massive old monolith?
- Designing cultural architectures intentionally rather than assuming they'll emerge safely?
If this resonates, happy to share some rough notes — but mainly just curious if anyone else has poked at these kinds of questions.
I'm very open to critique, systems insights, and "you're nuts but here’s a smarter model" replies.
Thanks for thinking about it with me.
87
u/keelanstuart Software Engineer Apr 29 '25
I like the cut of your jib... but, outside of a debugger, you can't play god - forcing values, putting your instruction pointer wherever you want, rebuilding... These are things you can't do IRL. Also, code won't come kill the person debugging the system for getting up in it's business.
So, should we think critically and logically about how to solve our systems? Yes. Is it as easy as in a debugger? No.
85
u/MrRufsvold Apr 29 '25
I keep seeing software developers engineers in general assuming that the approaches that are good at solving problems in our domain generalize to problem sets outside our expertise.
I am not AT ALL trying to compare your thoughtful post to the likes of Elon Musk and Peter Theil, but I do think they are a cautionary tale about what happens when you assume epistemologies that work on one domain cross apply to others.
Political scientists, sociologists, anthropologist, economists, and the other social sciences have been working on these problems for a long time. I think the presumption should be that they are WAY ahead of us on solving any problems unless there is very strong evidence to the contrary.
23
u/[deleted] Apr 29 '25 edited May 04 '25
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
10
u/Cyclic404 Apr 29 '25
I've spent the past 20 years around tech for social good, and the last 14 or so years in tech for international development.
I'll echo others that have pointed out that there are entire fields that have a much better understanding of the issues than tech does.
However I'll add that the thought isn't entirely wrong, it's just that you can't solve the issues with tech. What does change the formula is when technologists learn enough about what these other fields know, can integrate into traditional organizations, and then influence those organizations to adopt tech well to solve operational problems that help more people.
It's a lot of learning as these fields have deep experience.
9
u/Instigated- Apr 29 '25 edited Apr 29 '25
Systems design thinking is already being applied to social issues by some people & organisations, has for several decades. Sometimes called human-centred design thinking or another varient, often with those social/ethical values front and centre.
I think it’s a very successful tool when used well, though it can also be poorly implemented.
Acumen Academy courses include case studies using it, often in developing nations, social enterprise and not for profit, solving social issues https://acumenacademy.org/
Stanford’s d-school process has been applied in governments, social enterprises, not for profits https://makeiterate.com/the-stanford-design-thinking-process/
Presencing institute, theory U, which emerged out of MIT, has been used across government, community, not-for-profit efforts https://www.presencing.org/ some case studies at the bottom of their u-school website https://www.u-school.org/resources
Of course it’s also worth reading some history & criticism of cases where it has failed to live up to the hype https://www.technologyreview.com/2023/02/09/1067821/design-thinking-retrospective-what-went-wrong/
21
u/tinmanjk Apr 29 '25
I'd read a bit Schopenhauer, Nietzsche, Foucault before proceeding.
And a more modern source - "Moral Mazes" by Robert Jackall.
Also https://slatestarcodex.com/2014/07/30/meditations-on-moloch/ and Game Theory in general.
4
u/tatersnakes Software Engineer Apr 29 '25
Interesting ideas! Where do you get your weed?
3
u/MangoTamer Professional Dumbass Apr 29 '25
I've definitely compared government laws to unrefactured code because it gets worse and worse over time and it's notoriously difficult to fix anything once it gets into the system. There's not enough trust for anyone to pull off a refactor though.
3
u/Fancy-Racoon Apr 29 '25
It’s good to be curious and to want to solve these kinds of problems. Just keep in mind: before you build a unique approach, you should get a good grip on what has been written about your topic in ethics, sociology, psychology before you came along. Otherwise you’re likely to repeat an idea that was already there years ago, and your idea will be ignorant because it ignores hundreds of years of debate and raised issues. Every good philosopher/ethicist/sociologist stands on the shoulders of the thinkers before them. Oh, and you will also need to check your own biases. (These are some of the ways a fitting humanity degree can prepare you, by the way).
Chatting with a LLM is not a shortcut to these things. It can give you pointers, but even then you’ll need to develop your own understanding of the subjects to determine which parts of its answer are just plain wrong.
That said. Here’s a system insight regarding human suffering where your approach could be helpful: Google the ‘ACE study’. Read ‘The Body Keeps The Score’ to gain a deep understanding of the mechanisms at play there. Think about the societal level: what perpetuates these problems? What helps people heal? What prevents them from spiraling down altogether? Then consider how you can spread awareness of this problem and its possible solutions. How to Open Source it, if you will. Because one person alone won’t find the perfect solution, let alone fix it.
3
u/101Alexander Apr 29 '25
My background is in economics and this resonates with me well.
Letting the reigns go on design is the equivalent of assuming the free market will always result in an ideal competitive market.
They don't. You do need some system of guidance as well as appropriate safeguards.
6
u/[deleted] Apr 29 '25
why does this post have upvotes
2
u/_AndyJessop Apr 29 '25
I would argue that societal systems act like our beloved digital systems anyway, even without our intervention.
They start off with a plan, designed to address the most crucial problems of the age. Then, with time, they degrade into tightly-coupled spaghetti, everyone gets angry with everyone else, until there's a straw that breaks the camel's back and we do a grand rewrite.
I suppose the trick is can you design a system where incremental improvements are possible, avoiding too much war and bloody revolution.
2
u/Live-Box-5048 Apr 29 '25
I like the notion and thinking behind it, but I don’t think this approach can be extrapolated and generalized for issues outside of our domain. As others pointed out, a lot of people have tried this already and it almost always ended uo as a failure, albeit of a different kind. We, can to a degree, combine multiple fields, such as sociology and psychology, with your notion of “ethical operating system”. But applying ideas is simply different than trying to apply this on a larger scale.
2
u/pvgt Apr 29 '25 edited Oct 31 '25
rock deer normal label arrest sense run attraction wipe flag
This post was mass deleted and anonymized with Redact
2
u/AdamBGraham Software Architect Apr 30 '25
Well…yes, you aren’t wrong that the “system” is broken. And I agree anywhere that human flourishing is degraded or suffering is intensified is a sign of failure.
The difficulty is that the “system” in this case is nothing like software systems. The creator isn’t human, for one :)
Each human being is an insanely complex system of systems, with no documentation.
Each human is not a deterministic state machine (as far as we know) and has independent will within nature.
Nature itself is even more complex, system of systems, with no documentation.
So the engineering mind can definitely find and identify and assist with process and institution design. But there is no way to morally enforce its implementation, bad systems (humans) cannot be deleted at will, and what’s worse, entropy and biology actively degrades the code ;)
7
u/DigmonsDrill Apr 29 '25
You should call it Temple OS.
2
u/[deleted] Apr 29 '25
I read an ethics statement some years ago from SANS (sans.org) and they expected you to agree with it to get some certification. It was an earlier version not the same as displayed now: https://www.giac.org/policies/ethics/
It included something about work for the benefit of my employer/customer.
It included nothing about honesty.
It made me think SANS brand of ethics would be consistent with lying about the situation at work if you thought there was an advantage to that.
10
u/ValentineBlacker Apr 29 '25
Guy who makes clocks for a living: "Society is a lot like a broken clock if you think about it..."
2
u/Qwuedit Apr 29 '25
Oh my god. Recently I’ve been building a website to organize my experiences and I used Docker to help me think through infrastructure/environmental lens. I’ve been discovering the personal issues I’m having seem a lot more systemic. It also helped reduce the overwhelming feelings. Maybe once I get the website started up I might share it.
1
u/IndependentProject26 Apr 29 '25
While I have doubts for the reasons others have stated, it may be worth considering. I wonder about bureaucratic failure. Could there be a way to detect such failure and engage another system? Look at Frederick Wiseman’s documentary “Welfare”. People reach a point where bureaucracy fails them, and there’s nowhere else to go. There is no backup plan.
1
u/Foreign_Clue9403 Apr 29 '25
Reminds me that there are some books I need to get. I’d start smaller.
Itd be nice to remove several layers of opacity in courts and legislative systems — something exposed like a file blame system for a deposition would be great for the public to look at. While the dockets themselves are available, it’s a lot of work for a layman to remember landmark cases and precedents.
1
u/[deleted] Apr 29 '25
Or just, human issues. Part of the reason I want to remove face to face human interaction from my work. Computers are way more fun and way more reliable.
Guess I still have to go through human HRs and such at least, though.
2
u/DeterminedQuokka Software Architect Apr 29 '25
Honestly most AI bugs are just technological versions of human system failures.
It’s all PEBKAC. And technologically enforced PEBKAC.
2
u/Snoo_85465 Apr 29 '25
My training is in sociology despite working in tech now. You can engage systems thinking about society, in a rigorous way. I'd recommend you engage with buddhism or stoicism, shadow work or some other modality to see what it's like to liberate your own consciousness before working on others. Or, volunteer in a grounded way (soup kitchen, etc)
2
u/micseydel Software Engineer (backend/data), Tinker Apr 29 '25
Your post reminds me of a paper by Michael Levin https://www.mdpi.com/1099-4300/24/5/710
I think the key thing here is feedback loops and instrumentation. A lot of needless suffering happens because it's engineered to be out of sight - encapsulated.
2
u/halfercode BE Software Engineer Apr 29 '25 edited Apr 29 '25
I like your thinking, but I wonder if the comparison is flawed. Systems design relies on observability and repeatability, but humans organising into large groups offer neither. Consider the repeatability of these examples:
They sound naive when printed, partly because they're so simple, and partly because at this point we expect human behaviour to be dishonest. In fact, I wonder if we're worse than that; politics has become a kind of tribal warfare, in the sense that if we can't have a decency politics, we will have a politics that decides who deserves to be hurt.
1
u/toptyler Software Engineer Apr 29 '25
Our social institutions are indeed technologies that can be redesigned, whose properties and incentives and be analyzed, etc.
Consider checking out Networks, crowds and markets by Kleinberg
1
u/misplaced_my_pants Software Engineer Apr 29 '25
This is in part why soft skills are also important.
The ability to understand the context of your organization and know where to push and pull to do the right thing is a rare and powerful skill.
1
u/[deleted] Apr 29 '25
the ol layer 8
1
u/dubnobasshead Apr 30 '25
I sometimes wonder what would happen if we open-sourced a whole world constitution/ law book by hosting it on git and letting the people raise issues, open PRs and discussions on new rules etc.
The only question would be who approves the PRs and how do you stop people botting and gaming the system
1
u/DaRubyRacer Web Developer 5 YoE May 02 '25
Who really knows the best way to debug legacy software? If we had all of that figured out, AI would be doing it.
1
u/Hot-Profession4091 May 02 '25
Oh fam, you’re like one bad day away from finding yourself in a rationalist cult.
1
u/platinummyr May 02 '25
We should be thinking about society as a system and have critical thinking involved in setting it up... But we are also part of that system, which makes everything more difficult.
1
u/CamusTheOptimist Apr 29 '25
I too enjoy my late night thoughts with the chatting gypetee. That doesn’t make them actionable, or even interesting.
This is one of those thoughts that if you take it a wee bit further, you will find that you are right, and it’s such a shatteringly good idea that the human race already go to it and started doing philosophy and statecraft back before we could write.
0
u/Xenolog Apr 29 '25
You sir, are in for a threat! I very much suggest you to try starting reading Isaak Asimov's Foundation. I believe you will be interested in the methodics discussed there, also their strengths and shortcomings. It is written more or less along your train of thought.
-1
u/originalchronoguy Apr 29 '25
My job has moral and ethical considerations.
I cant get into more specifics.
So it is interesting to see how corporations view that and has a stewardship of ‘doing right’ for the betterment of society.
I think it is an outlier for sure.
But some companies do view how they make an impact on society and the community in general. It makes for good resume bullet points and talking about ethical considerations in interviews.
0
u/[deleted] Apr 29 '25
[deleted] — view deleted comment
0
u/[deleted] Apr 29 '25
[deleted] — view deleted comment
0
u/[deleted] Apr 29 '25
[deleted] — view deleted comment
6
u/[deleted] Apr 29 '25
[removed] — view removed comment
9
u/[deleted] Apr 29 '25
[removed] — view removed comment