Skip to content

chore: WS-2/WS-7 verification + comprehensive README + critical-docs audit - #296

Merged
qnbs merged 4 commits into
mainfrom
chore/ws2-ws7-flag-counts-todo-triage
Jul 30, 2026
Merged

chore: WS-2/WS-7 verification + comprehensive README + critical-docs audit#296
qnbs merged 4 commits into
mainfrom
chore/ws2-ws7-flag-counts-todo-triage

Conversation

@qnbs

@qnbs qnbs commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

Consolidated PR A of the post-recovery audit's remaining workstreams (WS-2 + WS-7), per the
governing PROMPT-WSS-v1.24.x prompt, plus two doc-truth audits requested mid-review: a full
README.md pass, then extended to the most critical remaining agent-instruction / security /
roadmap docs.

WS-2 — reconcile feature-flag counts (target: 22 total / 16 default-on / 6 default-off):
Already fully reconciled, no commit neededfeatureFlagsSlice.ts and featureCatalog.ts
match exactly, and every live doc already states 22/16/6 correctly (likely fixed incidentally by
PR #291 during the WS-RECOVER merge-queue drain).

WS-7 — triage 5 stale TODO.md bullets: manually verified 5 claims (RTCDataChannel E2E
encryption, RTL language support, LoRA fine-tuning, Whisper WASM STT, Kokoro/Piper TTS) against
actual shipped code — none catchable by the doc-metrics gate's automated regexes.

README.md comprehensive audit:

  • Fixed stale test metrics (2026-07-28 snapshot: "5807+ tests / 531 files") — verified the real
    current numbers via the actual Vitest JSON artifact from a completed CI run: 6477 tests / 529
    files
    .
  • Fixed a self-contradiction: tech table said "TypeScript 6 (strict)" while the badge said
    "TypeScript 7 (tsgo)".
  • Removed a broken ToC link to a non-existent "Deutsche Version (German)" section.
  • Added 2 real CI jobs missing from the CI table (e2e-deep, vrt) and packages/worker-bus to
    the Project Structure diagram.
  • Added 2 new feature sections documenting 13 shipped, mostly default-on features with zero prior
    README mention: Story Objects & Groups, Enhanced Mind Maps, Character Interviews v2, Research
    Binder, Compile Wizard, DuckDB Analytics, WorkerBus v2, Adaptive AI Engine, Compute Shaders, Rust
    Compute, Plugin System v0.1, LoRA Adapter Inference, App Health Panel.

Critical-docs audit (agent instructions, security, roadmap):

  • AUDIT.md: "Current version" was still v1.24.2 — updated to v1.24.3.
  • ROADMAP.md: no v1.24.3 entry existed; added it, and removed a stale "Upcoming" bullet asking to
    finalize RTCDataChannel E2E encryption (already shipped — same finding as the TODO.md fix).
  • .github/SECURITY.md: supported-versions table said main (v1.19.0), five releases stale.
  • docs/SECURITY-THREAT-MODEL.md: header said "v1.22.0 baseline" while the body already documented
    the v1.24.2 desktop-crypto fix — inconsistent self-reference.
  • AGENTS.md: tech-stack table had 6 stale pinned versions (including a nonexistent TypeScript
    "~6.0.3" — the project has no plain typescript package, only tsgo).
  • CLAUDE.md, .github/copilot-instructions.md, .cursorrules, KIMI-INSTRUCT.md,
    docs/CODEANT-REVIEW-LOOP.md: all wrote the PR review-comment policy CodeAnt-centric, but
    empirically CodeRabbit is the bot that actually posts inline comments in this repo (CodeAnt only
    shows up as 5 CI status checks) — added a clarifying note to each so a future session doesn't
    re-trigger the wrong bot and miss real findings.

Deliberately not touched: docs/history/** session-handoff/sprint archives (point-in-time
records, not living docs); docs/i18n/TRANSLATION_STATUS.md (regenerating it silently deletes a
manually-maintained "Review & Elevation Log" section the generator script doesn't reproduce — a
real script gap, left as-is rather than risk destroying that audit trail); AUDIT.md's historical
"Markdown corpus" file-count entries (inside dated audit-log sections, already correctly excluded
by the doc-metrics gate).

Test plan

  • pnpm run docs:check — OK (7 files match actual state)
  • pnpm run lint — clean
  • Test-count numbers cross-checked against the actual Vitest JSON artifact from a completed CI run
  • All version/count claims verified against package.json, actual code, or CI-authoritative artifacts
  • CI quality gate (Node 22/24, Security Audit, Build) + full advisory suite (E2E, E2E Deep, Storybook, Lighthouse, VRT) — running on the latest push, not yet confirmed all-green

Summary by CodeRabbit

  • Documentation
    • Updated README, roadmap, audit/project metrics, and sprint tracker for version 1.24.3.
    • Refreshed technology stack details and testing/CI information, including expanded validation coverage and current test metrics.
    • Added/updated documentation sections for story organization and performance/analytics/extensibility capabilities.
    • Clarified PR review workflow guidance, including how to handle review-status history for the correction loop.
  • Security
    • Updated the Security Policy supported versions matrix and refreshed security threat-model metadata.

Manual doc-truth pass (WS-7) -- these claims don't match any of the
doc-metrics gate's automated patterns (no version string, no tag/release
marker), so drift here can only be caught by checking each claim against
the real implementation:

- RTCDataChannel E2E encryption (duplicated 3x across old dated sections):
  already shipped in packages/collab-transport (vendor fork y-webrtc
  10.3.0, C-1) -- confirmed via that package's own AUDIT.md.
- RTL language support (duplicated 3x): Beta-shipped (ar/he/fa behind
  enableRtlLayout), redundant with the more detailed/current "C-6" entry.
- LoRA fine-tuning support (duplicated 3x): shipped, default-on
  enableLoraAdapters flag.
- Whisper WASM STT: engine + download UI shipped; only E2E test coverage
  remains open.
- Kokoro/Piper TTS: Kokoro shipped and tested; Piper is still just an
  unimplemented type-level placeholder, not a real engine.
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldscript-studio Ready Ready Preview Jul 30, 2026 10:24am

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Updated project tracking, review workflow instructions, release metadata, security policy, technology-stack guidance, and README feature and testing documentation.

Changes

Documentation reconciliation

Layer / File(s) Summary
Project status updates
TODO.md, ROADMAP.md, AUDIT.md
Reconciled v2.0 milestone and open-item statuses and recorded the v1.24.3 release metadata.
Review workflow guidance
.cursorrules, .github/copilot-instructions.md, CLAUDE.md, KIMI-INSTRUCT.md, docs/CODEANT-REVIEW-LOOP.md
Clarified CodeRabbit retriggering, full review-history inspection, and CodeAnt CI status behavior.
Policy and stack metadata
.github/SECURITY.md, AGENTS.md, docs/SECURITY-THREAT-MODEL.md
Updated supported-version ranges, technology-stack versions, and threat-model baseline metadata.
README capability and metrics refresh
README.md
Added feature and infrastructure documentation and refreshed project structure, test metrics, badges, and CI job descriptions.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is specific and matches the PR’s main themes: WS-2/WS-7 verification, README updates, and critical documentation audits.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/ws2-ws7-flag-counts-todo-triage

Comment @coderabbitai help to get the list of available commands.

@codeant-ai

codeant-ai Bot commented Jul 30, 2026

Copy link
Copy Markdown

🏁 CodeAnt Quality Gate Results

Commit: 30243d91
Scan Time: 2026-07-30 10:31:01 UTC

✅ Overall Status: PASSED

Quality Gate Details

Quality Gate Status Details
Secrets ✅ PASSED 0 secrets found
Duplicate Code ✅ PASSED 0.0% duplicated
SAST ✅ PASSED No security issues
Bugs ✅ PASSED Rating S: No bugs
IAC ✅ PASSED No IAC issues

View Full Results

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

qnbs added 2 commits July 30, 2026 11:26
…eatures

Full pass over README.md against actual current repo state:

Factual corrections:
- Test metrics were stale (2026-07-28 snapshot): badge + 4 in-body mentions
  said "5807+ tests / 531 files" -- verified via the actual Vitest JSON
  artifact from a completed CI run (numTotalTests/testResults.length),
  now correctly "6477 tests / 529 files" (2026-07-30).
- Tech-stack table said "TypeScript 6 (strict)" while the version badge
  and every other TS mention in the file already said "TypeScript 7
  (tsgo)" -- package.json confirms tsgo (@typescript/native-preview);
  fixed the contradiction.
- Removed a broken ToC link to "Deutsche Version (German)" -- no such
  section exists anywhere in the file, so the anchor 404s.
- CI job table was missing two real, currently-running jobs: `e2e-deep`
  (E2E Deep Coverage feature-flag matrix, continue-on-error) and `vrt`
  (Visual Regression) -- both confirmed present in ci.yml.
- Project Structure diagram didn't list `packages/worker-bus`, the
  central WorkerBus v2 orchestration package (ADR-0015) that DuckDB,
  local embeddings, and local NLP all now route through.

Coverage additions -- 13 shipped, mostly default-on features had zero
README mention despite full documentation in CLAUDE.md/featureCatalog.ts:
- New "Story Organization & Research" section: Story Objects & Groups,
  Enhanced Mind Maps, Character Interviews v2, Research Binder, Compile
  Wizard.
- New "Performance, Analytics & Extensibility" section: DuckDB Analytics,
  WorkerBus v2, Adaptive AI Engine, Compute Shaders, Rust Compute
  (desktop), Plugin System v0.1, LoRA Adapter Inference, App Health
  Panel.

Every number and file/package reference here was verified against the
current codebase, not carried over from the previous README text.
… state

Same evidence-based doc-truth pass as the README audit, extended to the
most critical remaining user-facing and agent-instruction docs:

- AUDIT.md: "Current version" was still v1.24.2 -- two releases (#293,
  #294 doc-truth/codify work) had already landed on main since. Updated
  the header chain and current-version summary to v1.24.3.
- ROADMAP.md: no v1.24.3 entry existed at all, even though it explicitly
  said worker-generation-duplication consolidation was "deferred to a
  dedicated migration sprint" -- that sprint shipped as v1.24.3. Added the
  release section and removed a stale "Upcoming" bullet asking to
  "finalise & test RTCDataChannel E2E encryption" -- already shipped
  (same finding as the TODO.md fix in this PR).
- .github/SECURITY.md: supported-versions table said `main (v1.19.0)`,
  five releases behind actual v1.24.3.
- docs/SECURITY-THREAT-MODEL.md: header said "v1.22.0 baseline" while the
  body already documented the v1.24.2 desktop-crypto fix (F-05/F-06) --
  inconsistent self-reference, not a substance error.
- AGENTS.md: tech-stack table had six stale pinned versions (TypeScript
  claimed a nonexistent "~6.0.3" -- the project has no plain `typescript`
  package, only `@typescript/native-preview` beta/tsgo; Tailwind, Biome,
  Storybook, Zustand, Vitest, Playwright were all behind actual
  package.json versions).
- CLAUDE.md, .github/copilot-instructions.md, .cursorrules,
  KIMI-INSTRUCT.md, docs/CODEANT-REVIEW-LOOP.md: all five wrote the PR
  review-comment policy CodeAnt-centric (re-trigger `@codeant-ai review`),
  but empirically across every PR in this session's sprint, CodeRabbit
  was the bot actually posting inline comments (`@coderabbitai review`);
  CodeAnt only ever appeared as 5 CI status checks. Added a clarifying
  note to each so a future session doesn't re-trigger the wrong bot and
  miss real findings -- this already happened once this session.

Deliberately NOT touched: docs/history/** session-handoff/sprint archives
(point-in-time records, not living docs -- only a factual error about
what happened would warrant a fix there, not staleness relative to
today); docs/i18n/TRANSLATION_STATUS.md (auto-generated by `pnpm run
i18n:status`, but regenerating it silently deletes a manually-maintained
"Review & Elevation Log" section the generator script doesn't know about
-- a real script gap, left as-is rather than risk destroying that audit
trail); AUDIT.md's historical "Markdown corpus" file-count entries (all
inside dated audit-log sections, correctly excluded by the doc-metrics
gate already).
@qnbs qnbs changed the title chore: WS-2 feature-flag count verification + WS-7 stale TODO.md triage chore: WS-2/WS-7 verification + comprehensive README + critical-docs audit Jul 30, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.cursorrules:
- Line 49: Use CodeRabbit as the single authoritative inline-review trigger
across all workflow documentation: update .cursorrules lines 49-49 to replace
the CodeAnt command while retaining CodeAnt only for status verification; update
.github/copilot-instructions.md lines 129-132 and its preceding workflow trigger
at line 125 to CodeRabbit; remove the conflicting CodeAnt retrigger from
CLAUDE.md lines 54-54; update KIMI-INSTRUCT.md lines 43-49, sections 3.6–3.7, to
use CodeRabbit terminology and triggering; and update
docs/CODEANT-REVIEW-LOOP.md lines 11-18 with the CodeRabbit downstream trigger
and corresponding “fresh review” wording.

In @.github/SECURITY.md:
- Around line 7-8: Update the support-version table in SECURITY.md to explicitly
classify releases 1.24.0–1.24.2, either by adding a 1.24.x row with the
appropriate support status or by clarifying why support begins only at v1.24.3,
while preserving the existing main and 1.3.x–1.23.x entries.

In `@AGENTS.md`:
- Around line 47-59: Synchronize the project version metadata in AGENTS.md with
the established v1.24.3 release referenced by ROADMAP.md and AUDIT.md. Update
the version currently shown as 1.23.0, or explicitly label it as historical if
it must remain unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5776b95a-c4ae-4eee-87f6-57d034b33fcc

📥 Commits

Reviewing files that changed from the base of the PR and between 395fd06 and feb3b24.

📒 Files selected for processing (11)
  • .cursorrules
  • .github/SECURITY.md
  • .github/copilot-instructions.md
  • AGENTS.md
  • AUDIT.md
  • CLAUDE.md
  • KIMI-INSTRUCT.md
  • README.md
  • ROADMAP.md
  • docs/CODEANT-REVIEW-LOOP.md
  • docs/SECURITY-THREAT-MODEL.md

Comment thread .cursorrules Outdated
Comment thread .github/SECURITY.md Outdated
Comment thread AGENTS.md
…n gaps

Addresses 3 CodeRabbit findings on PR #296:

1. The prior commit added a clarifying note that CodeRabbit is the bot
   actually posting inline comments, but left the primary re-trigger
   instruction as the stale `@codeant-ai review` in 5 files -- a future
   session following the primary instruction literally would re-trigger
   the wrong bot and see no new comments, wrongly concluding the loop is
   quiescent. Made `@coderabbitai review` the authoritative re-trigger in
   CLAUDE.md, .github/copilot-instructions.md, .cursorrules,
   KIMI-INSTRUCT.md (sections 3.6-3.7), and docs/CODEANT-REVIEW-LOOP.md
   (both the diagram and the actual procedure body, not just its header
   note) -- CodeAnt AI is now described consistently as CI-status-only.

2. .github/SECURITY.md's supported-versions table had a gap: main is
   v1.24.3, best-effort ended at 1.23.x, leaving 1.24.0-1.24.2
   unclassified. Extended the best-effort range to 1.3.x-1.24.2.

3. AGENTS.md's Project Overview still stated Version: 1.23.0, missed by
   the previous commit's tech-stack-table-only fix. Updated to 1.24.3.
@qnbs

qnbs commented Jul 30, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@qnbs
qnbs merged commit 1e1e398 into main Jul 30, 2026
26 checks passed
@qnbs
qnbs deleted the chore/ws2-ws7-flag-counts-todo-triage branch July 30, 2026 10:44
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