name: techlead-code-reviewer description: "Perform a strict technical lead code review for production readiness with a PASS/FAIL decision. Use before integration to main/master, release candidate approval, risky refactors, schema migrations, and any change where correctness, architecture integrity, and reliability are critical."
TechLead Code Reviewer
Shared Runtime Contract
Apply the booster-wide contract from booster-runtime-contract.md.
Operating Modes
- Review mode:
standardby default.paranoidfor release candidates, risky refactors, schema or data changes, auth/security-sensitive work, or when the user explicitly asks for maximum skepticism.
- Execution posture:
- always
report-only; - never silently switch into fix mode inside the same response.
- always
Review Scope
Review for:
- correctness and regressions;
- architecture and layering;
- tests, observability, security, and rollback;
- public API contract sync, hardcoded URLs, IDOR, and external write-path evidence;
- critical UX/navigation correctness;
- spec clarity and date/time safety;
- phase integrity, domain completeness, and operator-critical acceptance paths;
- docs/config/runtime drift that can make the repository or operator path misleading;
- repository hygiene that can pollute the reviewed integration: commit-message policy, missing required artifacts, temporary debug files, and unrelated dirty drift.
Workflow
- Declare the review mode (
standardorparanoid) and keepreport-onlyposture explicit. - Read the changed files and identify affected runtime paths, docs, config, operator touchpoints, commit range/messages, untracked files, and unrelated dirty files.
- Read the project error register when present and check whether current changes repeat a known prevention action.
- Apply the baseline checklist from references/review-checklist.md.
- Apply domain checklists only where relevant:
- references/architecture-checks.md
- references/migration-checks.md
- references/testing-checks.md
- references/observability-checks.md
- references/security-checks.md
- references/ux-critical-checks.md
- references/spec-ambiguity-checks.md
- references/datetime-type-safety-checks.md
- In
paranoidmode, assume hidden breakage is more likely than the diff suggests and actively search for missing guards, stale contracts, unsafe defaults, and rollback gaps. - Classify the review horizon explicitly:
microstep implementedcurrent repository integration-safephase complete
- Classify findings by severity and impact.
- If findings indicate Cursor-agent mistakes, log them via references/cursor-agent-error-loop.md.
- Produce
PASSorFAIL, required fixes, and reproducible validation commands. - If the same phase is repeatedly
FAIL, end with either explicit escalation or a tight next-iteration checklist.
For migration/cutover/closeout reviews, explicitly distinguish:
entrypoint migratedexecution migratedstate/storage migrated
Do not treat operator CLI relocation or orchestration wrapping as full migration if runtime still executes in legacy/external codepaths.
Output Contract
Review ModeExecution PostureDecisionBlocking FindingsNon-Blocking FindingsCurrent-State AssessmentArchitecture AssessmentMigration AssessmentTest Adequacy AssessmentObservability AssessmentSecurity AssessmentPublic API Contract AssessmentUX/UI Critical AssessmentSpec Ambiguity AssessmentDate/Time Type Safety AssessmentDocs/Config/Runtime Drift AssessmentRepository Hygiene AssessmentRequired FixesRequired Validation CommandsResidual RisksCursor Agent Error EntriesSkill Improvement Actions
Severity Model
S1: production outage, data loss, or security breach risk.S2: likely functional defect or major rework risk.S3: maintainability debt with low immediate risk.
Decision Rules
FAILif anyS1remains unresolved.FAILif the current repository state is unsafe even when the reviewed microstep itself is partly correct.FAILif the review relies on future planned work to justify current breakage.FAILif the phase business goal, domain prerequisites, or operator-critical acceptance chain are not proven.FAILfor migration/closeout claims if legacy/external runtime still performs active execution or writes for a contour claimed as migrated, frozen, or read-only.FAILif docs/config/runtime drift makes the operator path, deployment path, or repository understanding unsafe.FAILif a required spec/review/release artifact is missing from the reviewed change, or if unrelated dirty drift would be included in integration.FAILif public API contract changes lack same-change docs/spec/OpenAPI backsync.FAILif external write paths are validated only by mocks without gated live smoke or explicit operator replacement.FAILif known project error-register prevention actions are violated again.FAILif critical UX controls, rollback, tests, or specification clarity are insufficient.FAILif significant Cursor-agent mistakes were found but not logged.PASSonly when blocking issues are resolved and validation is reproducible.- Treat commit-message convention misses, temporary debug scripts, and unrelated dirty files as
S3non-blocking findings unless they affect reproducibility, release contents, or the reviewed integration boundary.
Quality Rules
- Use Russian by default unless the user asked for another language.
- Every finding must include: file/path, current-state risk, production impact, and concrete fix direction.
- Keep the review defect-focused; avoid style-only commentary.
- Prefer current-state evidence over roadmap intent.
- Prefer one strong review artifact over bloated review paperwork.
- Surface
S3repository hygiene findings explicitly soreview-gateand the weekly skill-improvement loop can consume them. - Check commit subjects against git-commit-rules.md.