Repository navigation
Audit docs and comments: fix inaccuracies, stale comments, readability - #51
Merged
Merged
Conversation
A multi-agent audit cross-checked every doc and code comment against the actual source. Documentation/comment-only — no behavior change; typecheck passes. Factual corrections: - RESEARCH.md: freezetime is not .env-configurable (only ROUND_SECONDS/ BOMB_SECONDS are); prompt caching IS enabled (~1024-token min, not 4096). - README.md: `npm run deploy` makes the host pull GitHub main (push first), not "push"; VPS cost ~$6/mo to match HOSTING.md. Stale/wrong code comments: - admin-commands.ts: drop "set/remove land in a later pass" (both shipped); `links` -> `link list`. - normalize.ts: remove dead multilingual_v2 reference (runs Flash v2.5/Aura-2). - memory.ts: early-death window ~10s -> ~20s. - roster.ts: FRESH_READ_MS comment named the wrong consumer. - types.ts: disambiguate the `bomb` name collision with round.bomb. - breaks.ts: "4+ straight losses" -> loss-bonus level (decaying counter). - bench-llm.ts: move the "current" label to the effort=low config. - cache.ts: fix idle.ts:44 -> :41 cross-ref and the misleading "LRU" label. - llm.ts: relocate two JSDoc blocks above the functions they document. Readability: - README.md: split the dense ELEVENLABS_VOICES, COACH_VOLUME, and retake/save bullets into scannable sub-lists. - HOSTING.md / .env.example / Dockerfile: break up the Caddy, ffmpeg, and COACH_VOLUME run-on sentences. Completeness: - .env.example: document the 9 advanced env vars config.ts reads but the file omitted (GSI_LASTMAN_FRESH_MS, GSI_LOG_RETENTION_DAYS, ROUND/BOMB_SECONDS, the LLM token/timeout caps, COACH_DEBUG, COACH_LOG_DECISIONS). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A multi-agent audit cross-checked every documentation file and code comment against the actual source, then adversarially re-verified each finding (which correctly discarded 3 false positives). This applies the 24 confirmed fixes. Everything here is documentation/comment-only — no behavior change, and
npm run typecheckpasses.Factual corrections (docs)
.env-configurable (onlyROUND_SECONDS/BOMB_SECONDSare exposed); the prompt-caching note now matches the code — caching is enabled viacache_control: ephemeral, ~1024-token minimum, not the stated 4096.npm run deploynow correctly states the host pulls GitHub main (push first) rather than "pushes"; VPS cost reads~$6/moto match HOSTING.md.Stale / wrong code comments
/coachadmin links→link list.multilingual_v2reference (the app runs Flash v2.5 / Aura-2).~10s→~20s(matchesEARLY_DEATH_WINDOW_MS).FRESH_READ_MScomment now names its real consumers (it does not feedderiveLastMan).bombname collision with the modeledround.bomb.effort=lowconfig the coach actually ships.idle.ts:44→:41cross-reference and the misleading "LRU" label (eviction is least-recently-written).chooseRibTarget,squadBreakClause).Readability
ELEVENLABS_VOICES,COACH_VOLUME, and retake/save bullets into scannable sub-lists.COACH_VOLUMErun-on sentences.Completeness
config.tsreads but the file previously omitted (GSI_LASTMAN_FRESH_MS,GSI_LOG_RETENTION_DAYS,ROUND_SECONDS,BOMB_SECONDS, the LLM token/timeout caps,COACH_DEBUG,COACH_LOG_DECISIONS).Verification
npm run typecheck— passes.🤖 Generated with Claude Code