Skip to content

docs: staleness pass after this session's engine and UX fixes#37

Merged
zntznt merged 1 commit into
mainfrom
docs/staleness-pass
Jul 4, 2026
Merged

docs: staleness pass after this session's engine and UX fixes#37
zntznt merged 1 commit into
mainfrom
docs/staleness-pass

Conversation

@zntznt

@zntznt zntznt commented Jul 4, 2026

Copy link
Copy Markdown
Owner

A full documentation audit: five parallel auditors checked README, CLAUDE.md, docs/CONCEPTS.md, ROADMAP.md, and the in-app knowledge base (js/kb.js + help/welcome text) against the current code, and every high-impact finding was independently cross-checked before applying. 14 discrepancies fixed.

The one that mattered most

This session's PR#36 added a "Conditions are synchronous" subsection to CONCEPTS.md but left §8's older "one-step lag" paragraph claiming conditions read the previous step's value. That was now false for source-value conditions (they read the tick-start snapshot via _condValueOf). Fixed precisely: rate formulas and variable-based conditions still lag; source-value conditions use the tick-start snapshot. Verified against engine.js:1259-1261.

Everything else

  • README: "Examples menu" > "Library" (no Examples menu exists); dependency claim scoped (Font Awesome is also vendored); architecture table now shows js/kb.js and the app-*.js mixin split instead of a monolithic app.js; added the missing Trader node; testing section notes CI
  • CLAUDE.md: documents that CI exists (and why it uses npm install not npm ci), plus the two new engine invariants agents should preserve (synchronous conditions, reproducible/checkpointable RNG)
  • CONCEPTS.md: also added the order-sensitive _applyPushProposals phase to the §7 tick list
  • ROADMAP: CI note on the test bullet; RNG position added to the checkpoint snapshot list; corrected a drifted renderer.js line reference
  • In-app KB: "saving" article no longer describes a nonexistent restore banner (autosave restores silently); "sharing" article names the real "Copy share link" menu item; de-en-dashed one user-facing string

No false claims were left as-is; a few imprecise/nit items were applied too since they were cheap and correct. Docs-only except js/kb.js (in-app copy), which the smoke test exercises.

Verification

197 unit tests green, smoke test green (loads the edited knowledge base).

Audited all four docs (README, CLAUDE.md, CONCEPTS.md, ROADMAP) plus the in-app
knowledge base against current code and fixed 14 discrepancies.

README:
- "Examples menu" corrected to "Library" (no Examples menu exists)
- dependency claim scoped: math.js is the only runtime CODE dep; Font Awesome
  is also vendored
- architecture table now names js/kb.js and the app-*.js prototype-mixin split
  instead of implying app.js is monolithic
- added the missing Trader node to the Nodes list and the intro
- testing section notes CI now runs both suites on push/PR

CLAUDE.md:
- documented that CI exists (npm install not npm ci, since the lockfile is
  gitignored; test/export.js is manual-run, not in CI)
- documented the two new engine invariants: synchronous snapshot-based
  conditions (_tickSnap/_condValueOf) and reproducible/checkpointable RNG
  (SimRandom getState/setState)

CONCEPTS.md:
- resolved the internal contradiction the new "Conditions are synchronous"
  subsection created: SS8's one-step-lag paragraph over-generalized. Rate
  formulas and variable-based conditions still lag; source-value conditions
  read the tick-start snapshot. Now stated precisely with a cross-reference.
- SS7 tick list now includes the order-sensitive _applyPushProposals phase

ROADMAP:
- test bullet notes automatic CI; checkpoint snapshot list now includes RNG
  position; corrected a drifted renderer.js line reference

In-app KB (js/kb.js):
- "saving" article no longer describes a nonexistent restore banner (autosave
  restores silently and unconditionally)
- "sharing" article names the real menu item "Copy share link", not "Share"
- de-en-dashed a user-facing string

Verification: 197 unit tests green, smoke test green (loads the edited KB).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@zntznt
zntznt merged commit 650fa41 into main Jul 4, 2026
1 check passed
@zntznt
zntznt deleted the docs/staleness-pass branch July 4, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant