Enhance architectural grader by computing quality as a mix of semantic term matches and message length: extract full text, match against architectural keywords, compute semantic_score (capped) and length_score, then combine as 0.7*semantic + 0.3*length. Clarified final weighting comment and kept final score normalization. Add extract_json utility to robustly parse JSON from LLM outputs (handles raw JSON, fenced code blocks, and brace-based fallback), increase LLM max_tokens to 800, and use extract_json in call_llm for more reliable parsing of model responses.
fix: align inference with checklist and fix hf deployment headers
- Complete transition to CodeLens identity across all source code and documents
- Integrate high-precision SVG logo and signature red-dot favicon
- Optimize Dashboard header with minimalist monospaced typography
- Fix backend static routing in app.py to correctly serve root brand assets
- Create GET_STARTED.md with troubleshooting for venv and database initialization
- Standardize all CLI commands (migrate.py init) and Docker tags
- Resolve Tailwind CSS linting warnings and refactor app startup to lifespan pattern
Add validation and tighten action handling across the env and inference code.
- codereview_env/models.py: add a pydantic model_validator on Action to enforce required fields for FLAG_ISSUE (body, filename, line_number, category, severity) and require verdict/body for APPROVE/REQUEST_CHANGES actions.
- codereview_env/env.py: record ActionRecord before applying action (initialize reward=0.0), append it to history, compute reward delta and update running_score, then update the history record's reward (rounded to 4 decimals). Also guard history access when determining termination reason and set a default terminated_reason.
- codereview_env/scenarios.py: change required_verdict for arch_003, arch_005, and arch_008 from NEEDS_DISCUSSION to REQUEST_CHANGES.
- inference.py: normalize verdict strings to lowercase ("lgtm" and "request_changes").
These changes improve data validation, ensure accurate per-action reward recording in history, and standardize verdict values.