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.
- 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
- 02 of 03Decided
Tell a formatting change from a changed draft
The questionThe check tidies a draft into one standard form. If that changes the text, the version that passes isn't the one that was reviewed.
What I choseThe program takes a fingerprint of the contentWorking Memory Content Operations · The programRecord checksEach draft must pass the check and stay a Draft with no publish date. Its content fingerprint must stay the same.See it in the map above before the check and after it. A fingerprint is a short code that changes when the content changes. If the two differ, the program stops. Changes only to spacing or field order in the A technical wordJSONA common text format that programs use to send each other structured data. file, a common text format for data, don't count.
- 03 of 03Decided
Require linked projects in the same bundle
The questionA note links to a project, and that link has to be checked without a running service.
What I choseThe project file must be in the bundleWorking 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, so the check runs offline. The cost is an extra file even when the project is already on the website.
03Today
Where it stands.
The fingerprint of the checking codeWorking 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 bundleWorking 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.