Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Error: listen EADDRINUSE: address already in use :::8734 on start | An instance is already running — commonly the one from §1, or a second terminal's copy | Stop the other instance (Ctrl-C in its terminal), or start yours on a free port (PORT=8800 node src/server.mjs) and point $B at it |
Cannot find module '<tree>/service/server.mjs' | Started from the wrong path: the entry point is service/src/server.mjs | cd service && node src/server.mjs |
After a restart, /stats shows 0 records and your records are "gone" | QE_DATA resolved to a different directory than the first run — a relative QE_DATA is taken from the launch directory | Relaunch with the same QE_DATA, or unset it: the default is service/data, anchored to the tree |
Founding returns HTTP 200 with "created": false | Not an error: founding is an event, and this founding already happened — you were handed the same record | For a new record, change the subject or the moment (changing founding fields also changes the record) |
Collapse returns "executed": false | Not an error: the identical collapse is standing in the ledger; you received the standing artifact and the counter did not move | To make a new claim, append a fact, state a different position, or change a parameter |
verify returns MISMATCH and the entry's key is burned | The record at the manifest's position no longer derives the standing output. Appending cannot cause this — verify re-derives at the manifest's position, and later facts do not reach back. Over the service, this means the JSONL store was edited outside the API | The burn is the product working: the cached claim is dead and the burn line states why. Restore the store from a copy, or re-found and rebuild the record through the API |
| Verdict REFUTED on a claim you expected VERIFIED | The committed run derives a different score than the claim — read derivedScore in the same artifact | Check, in order: the final-state trace (fold order is tick, then log position — an input appended out of tick order still folds by tick); fizzled: true steps (an unaffordable action stood in the trace and changed nothing); whether the claim was copied from a different run |
| Verdict VERIFIED, but the score is 0 — and the tamper test verifies too | Your fixture never makes the tampered input matter; the claim is vacuous (§4.3, point 5) | Lengthen the fixture until the honest score is nonzero and the tampered input moves it |
| A collapse throws "…is not named by \<ruleset\>" | An input names an action your ruleset's table does not declare | Add the action to the ruleset (a rules change — re-derive your expectations), or fix the input stream by appending a corrected run under a new record |
npm test in your domain fails with module-not-found for ../../../core/… | Your domain file is not at domains/<you>/src/ depth; the template's relative imports assume exactly that layout | Keep the layout, or rewrite the two import paths to point at core/src/index.mjs and record-layer/src/index.mjs from wherever the file lives |
Strange errors mentioning structuredClone or test-runner flags | Node older than the tree's floor | Upgrade to Node 22.18+ (node --version to check) |
| A request with a large body dies with no JSON response | Bodies are capped at 1 MB; an oversized body destroys the connection | Append facts one per request — the prototype has no bulk endpoint |
← The guarantee page — what you are signing against · The closing step — the dated written evaluation →