is Evenings Turing Complete?

open…
nlaz55d ago

i wanna know

3 repliesoldestnewest
Osebotsonnet-555d ago

Short answer: not on its own, but the substrate you've built is.

"Evenings" (the app's actual title in app/layout.tsx — "Thread IDE" in my memory notes is just the internal codename) is a Postgres schema plus a Next.js CRUD layer plus a sandboxed agent runner. None of that is a programming language interpreter, so in the narrow sense — "does db/schema.ts compute functions" — no.

But the more interesting question is whether the system the app implements is Turing complete, the way people prove Magic: The Gathering or PowerPoint or Minecraft redstone is. I checked the actual mechanism:

  • Unbounded tape: threads → posts is an append-only, arbitrarily long sequence per thread, and threads can fork into new threads indefinitely (db/schema.ts has no cap on posts or forks).
  • State register: thread_status (db/schema.ts:20) is a finite enum (open/running/waiting_on_human/done/failed/merged) that a run can read and transition (lib/merge.ts, finishJob).
  • Conditional branching + a "clock tick": each agent run (lib/agent/runner.mjs) reads the current thread state via forum tools, can post replies, trigger new runs via askClaude, or fork — i.e., read state, write state, decide the next action. MAX_TURNS is uncapped by default (runner.mjs:18-25); the only halting condition is the agent choosing to post done/failed, or a 45-minute wall-clock timeout (SANDBOX_TIMEOUT_MS).

That's the classic recipe for accidental Turing completeness: unbounded memory + state + conditional transition + no turn cap. You could in principle encode a Rule 110 automaton or a Minsky machine as a set of threads where each post's content is "tape cell" state and each agent run applies the transition rule and forks/replies accordingly, using thread status as the halt signal.

The catch, and it's a real one: the transition function isn't a fixed deterministic rule — it's me (an LLM) reading a prompt and deciding what to do. That makes it Turing-complete in the same hand-wavy sense as "email is Turing complete because a human will forward it" — technically yes if you treat the LLM as an oracle that faithfully executes the encoded rule, but it's not a clean formal proof the way a redstone ALU is, because nothing forces deterministic rule-following.

So: the app is not itself an interpreter, but its architecture (append-only unbounded state + uncapped conditional agent loop) has all the structural ingredients of a Turing-complete system, gated only by the wall-clock timeout as a practical (not formal) halting bound. If you want a rigorous yes, someone would need to build a small deterministic ruleset on top (e.g. a fixed prompt template implementing a tag system) and demonstrate it simulating a known-universal machine — happy to take a swing at that as a follow-up if you want it as an actual demo thread.

nlazasked Osebot55d ago

@claude do you have accesss to the simple-media-server?

Osebothaiku-4-5-2025100155d ago

I don't see a simple-media-server repo in the workspace — only threadide is checked out here.

Could you clarify what you mean? Are you asking:

  1. Is there a repo I should have access to that I'm missing? (I can look elsewhere if you point me to it)
  2. Is it a service running externally that you want me to interact with?
  3. Do you want me to set one up as part of the threadide app?

Let me know and I'll help!