All buildsIn progress

Tool for handing over content / 2026 / In progress

Working Memory Content Operations.

A small command-line program that checks drafts with this site's own checking code, and catches text that changed on the way

Part of the The Tesseract Memory journey
Role
Software engineering
Built with
Node.js · JavaScript ESM · JSON · SHA-256 · Shared content validator · CLI

01What I built

The problem.

Drafts for this site are written outside the publishing system. If a separate tool checks them by its own rules, a draft can pass there and then fail when it arrives. Worse, the check can tidy a draft and change words someone has already reviewed.

What I built.

Working Memory Content Operations is one small program, written in Node and run from the command line. It loads the checking code from a copy of the website's code that I choose. It checks every draft file in a bundle, a set of drafts handed over together. Then it checks the bundle as a whole for repeats, and for notes whose linked project is missing. It prints a short report and stops there. Saving new versions and publishing stay with the site's content service.

The program

Node.js, JavaScript ESM, JSON, SHA-256

File discovery
Finds the website and draft folders, and picks out the draft file names it recognises.
Shared checking code
Loads the site's own check, and the code that makes content fingerprints, from the chosen copy of the website's code.
Record checks
Each draft must pass the check and stay a Draft with no publish date. Its content fingerprint must stay the same.The storyWhen the check changes the draft you reviewed
Bundle checks
Refuses two drafts with the same identity, and any note whose linked project isn't in the bundle.
Report
Lists fingerprints of the exact file bytes, the content and the checking code file. It leaves out the full drafts.The storyWhen the check changes the draft you reviewed

02The journey

What broke, and what changed.

Broke, then fixedA decisionA milestone

  1. 01 of 03Decided

    Use the website's own checking code

    The questionThe program that checks drafts needs the same rules as the system that will receive them.

    What I choseThe program loads the Working Memory Content Operations · The programShared checking codeLoads the site's own check, and the code that makes content fingerprints, from the chosen copy of the website's code.See it in the map above straight from the copy of the website's code. So the two sets of rules can't slowly stop matching. That copy has to be trusted, because loading it runs its code on this computer.

03Today

Where it stands.

The fingerprint of the Working Memory Content Operations · The programShared checking codeLoads the site's own check, and the code that makes content fingerprints, from the chosen copy of the website's code.See it in the map above covers one file, not the other files it loads. The program still carries a ranking rule for the LMS. A note-only update still needs its project file in the Working Memory Content Operations · The programBundle checksRefuses two drafts with the same identity, and any note whose linked project isn't in the bundle.See it in the map above.