docs: update README and CLAUDE.md for current state (March 26)#108
Conversation
README.md: - 281K chunks (was 224K), 1,204 tests (was 1,083), 11 MCP tools (was 9) - Added real-time JSONL watcher, chunk lifecycle, Axiom telemetry, session dedup - Updated architecture diagram with watcher, Axiom, dedup flows - Updated enrichment section: Groq/Gemini primary (MLX/Ollama stale) - Added Lifecycle tools section (brain_supersede, brain_archive) - Added `brainlayer watch` to CLI reference and telemetry extra - Updated comparison table with lifecycle and watcher rows CLAUDE.md: - Fixed stale enrichment info (MLX→Groq, added rate env var) - Updated tool count from 9 to 11 - Added sections: Real-time JSONL Watcher, Chunk Lifecycle, Session Dedup - Added watcher offsets/logs/dedup files to Data & Locks Other: - .gitignore: added .claude/, .mcp.json.bak, progress trackers - enrichment_controller.py: rate_per_second configurable via BRAINLAYER_ENRICH_RATE env var Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
| rate_per_second: float = float( | ||
| os.environ.get("BRAINLAYER_ENRICH_RATE", "0.2") | ||
| ), # Default 12 RPM. Tier 1 allows 2000 RPM (~33/s) |
There was a problem hiding this comment.
🟢 Low brainlayer/enrichment_controller.py:117
The default argument float(os.environ.get("BRAINLAYER_ENRICH_RATE", "0.2")) is evaluated at module import time, so an invalid environment variable (e.g., "fast" or empty string) causes ValueError and crashes the module import before any code can handle it. Consider moving the parsing into the function body to defer validation until runtime.
rate_per_second: float = float(
- os.environ.get("BRAINLAYER_ENRICH_RATE", "0.2")
- ), # Default 12 RPM. Tier 1 allows 2000 RPM (~33/s)
+ ), # Default 12 RPM. Tier 1 allows 2000 RPM (~33/s)
max_retries: int = 12,🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file src/brainlayer/enrichment_controller.py around lines 117-119:
The default argument `float(os.environ.get("BRAINLAYER_ENRICH_RATE", "0.2"))` is evaluated at module import time, so an invalid environment variable (e.g., `"fast"` or empty string) causes `ValueError` and crashes the module import before any code can handle it. Consider moving the parsing into the function body to defer validation until runtime.
Evidence trail:
src/brainlayer/enrichment_controller.py lines 115-122 (REVIEWED_COMMIT) - shows `rate_per_second: float = float(os.environ.get("BRAINLAYER_ENRICH_RATE", "0.2"))` as a function parameter default value. Python documentation confirms default argument values are evaluated once at function definition time (import time for top-level functions): https://docs.python.org/3/reference/compound_stmts.html#function-definitions
Summary
Repo maintenance — update docs to reflect 7 PRs merged today (#102-107).
README.md
brainlayer watchCLAUDE.md
Cleanup
.gitignore: added.claude/,.mcp.json.bak, progress trackersenrichment_controller.py: rate configurable via env varRemaining uncommitted files (not in this PR)
scripts/backfill_orchestrate.sh— working backfill orchestration scriptscripts/batch_submit_paced.py— batch submission utilitytests/eval_mcp_brainlayer.json— eval fixture🤖 Generated with Claude Code
Note
Update README and CLAUDE.md to reflect current architecture and features
brainlayer watch), Axiom telemetry, chunk lifecycle fields, and session dedup coordination via/tmp/brainlayer_session_*.json.AXIOM_TOKENandBRAINLAYER_ENRICH_RATEenv vars; the latter now controls the default rate inenrich_realtime, falling back to0.2if unset..gitignoreto exclude.mcp.json.bak,.claude/, andscripts/.kg_rebuild_progress.json.📊 Macroscope summarized 7bd42a1. 2 files reviewed, 1 issue evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues