Building an Enterprise Knowledge Platform — Because "Just Check the Code" Is Not an Answer

The problem nobody talks about

You start at a new company. Everyone else has been there 7-8 years. They know which Jira project holds what, which wiki section has the real answer vs the abandoned draft, which Confluence page to ignore. They have muscle memory for the whole system. You don't.

So every task becomes a scavenger hunt. Where does this rule live? Is it in the code? In Jira? In OneNote? In someone's head? You find one doc that says "max LTV is 120%." Another says "110% for vehicles older than 5 years." The code says "125%." Three different answers. Which one is right?

The default fallback is always "just check the code." Hindi ko ma-trust ang code. The code might have bugs. The code might not even have the rule in it. Code is evidence, not truth.

What I'm building

A platform where you can ask "what's the rule for X?" and get an answer that pulls from everywhere — Jira tickets, wiki pages, local docs, code, tests — with sources, so you can see where each piece of the answer came from.

But here's the part I haven't seen anyone else do:

When sources disagree, the system doesn't pick one. It surfaces all of them, says "these conflict," and asks a human to resolve it. No confident wrong answers. No silent guesses. If the policy doc says max LTV is 120% and the code enforces 125%, the answer is "these disagree — here's both, with sources."

And once a human resolves the conflict, that resolution becomes a permanent rule. Every future query answers from it first. The original sources become references, not the truth anymore. The AI can draft, but only a human can approve.

The hierarchy that drives everything

I built it around an idea I call the Knowledge Authority Hierarchy:

1. Business Rules — this is the truth
2. Workflow Definitions — how things should move
3. Tests — what was actually validated
4. Code — might have bugs, NOT the truth
5. Production Telemetry — what is actually happening

Most tools treat code as the source of truth. This one doesn't. Code is near the bottom. The platform answers from the rule first and shows code as supporting evidence, not the other way around. That's the thing that bites new developers most — we default to reading code, and then we accidentally code to whatever bug already exists.

Where it stands

It works. From zero to a working chat in one day. Running locally with open-weight models on my laptop CPU — no API calls, no data leaves the network. Answers questions about my actual codebase with source citations. Streams token by token.

Then I kept building. Knowledge graph, code review mode, business rules extraction, conflict detection. Each day added a real capability, not just polish.

It's not ready to show yet. But the architecture is sound, the retrieval actually works, and the conflict detection is the part I'm proudest of. Name reveal coming when it's ready.

Want the detailed build log?

Day-by-day entries, war stories, architecture decisions, the README bug, the tiktoken crash, and the bug that hid the entire answer.

Or just say hi — I like talking about engineering.