Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix([issue-919]): address claude review — accurate README framing + stricter catalog guard

[._.]/ Adam Eivy339935ad1864
diff --git a/client/src/utils/README.md b/client/src/utils/README.md
index b21326fa66..74552708ec 100644
--- a/client/src/utils/README.md
+++ b/client/src/utils/README.md
@@ -1,9 +1,10 @@
# client/src/utils/ — pure formatting & compute helpers
-Pure, side-effect-free helpers used by pages, components, and hooks: formatters, time math,
-small functional utilities, and the CyberCity scene-compute functions. **Before writing a
-helper here, grep this catalog first** — many domain patterns already have one. When you add
-a new module, add it to `index.js` AND add a row here.
+Lightweight, mostly-pure helpers used by pages, components, and hooks: formatters, time math,
+small functional utilities, the CyberCity scene-compute functions, and a few thin
+browser-storage / file-read / module-loading helpers. **Before writing a helper here, grep
+this catalog first** — many domain patterns already have one. When you add a new module, add
+it to `index.js` AND add a row here.
State + lifecycle hooks live in `client/src/hooks/`. Shared client helpers with prompt/canon
logic (and server mirrors) live in `client/src/lib/`. HTTP/socket clients live in
diff --git a/client/src/utils/index.test.js b/client/src/utils/index.test.js
index 9880e3db65..38dca16ceb 100644
--- a/client/src/utils/index.test.js
+++ b/client/src/utils/index.test.js
@@ -48,10 +48,13 @@ describe('client/src/utils/ barrel', () => {
}
});
- it('every non-test .js file has a README row', () => {
+ it('every non-test .js file has a backtick-wrapped README row', () => {
+ // Require the documented-row form (`module`) rather than a bare substring,
+ // so a name appearing only in prose — or as a substring of a longer name —
+ // can't satisfy the catalog-coverage guard.
for (const f of sourceFiles) {
const base = f.replace(/\.js$/, '');
- expect(README_SRC, `missing README entry for ${f}`).toContain(base);
+ expect(README_SRC, `missing README row for ${f}`).toContain('`' + base + '`');
}
});