feat(mcp): add deterministic output budgets#74
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
evaOS review status: completedPR: #74 - feat(mcp): add deterministic output budgets evaOS review completed for this PR head. Automation note: agents should wait for this comment to reach PR URL: #74 Review URL: #74 (review) |
CI Report✅ All checks passed Pipeline Status
Test Results
✅ All 14516 tests passed 62 test(s) skipped — expand for details
Code CoverageTests
📋 View full run · Generated by CI |
There was a problem hiding this comment.
Walkthrough
PR: #74 - feat(mcp): add deterministic output budgets
Head: f5b218c4bfb94171771bdeceb3371e94a2924484 into reconcile/r11-mcp-parameter-aliases. Review event: COMMENT.
Provider: GLM/Z.ai through ZCode (zcode-glm, zcode, model GLM-5.2).
Estimated review effort: 1/5 (~10 min)
Changed Files
| File | Status | Churn | Purpose | Risk |
|---|
Review Signal
No validated inline findings.
Dropped findings before posting: 2. High-severity findings: 0.
Risk Taxonomy
No finding categories.
Validation and Proof
1 required validation/proof recommendation(s) selected from changed files.
- required: TypeScript/web build or CI proof - Runtime TypeScript/web files or package/config files changed. Proof: npm run build; typecheck; focused Vitest; green GitHub check.
Proof status: sufficient - PR metadata mentions acceptable proof for each required validation recommendation.
Profile validation hints: Call out stale index, wrong repo identity, memory growth, and destructive analyze behavior.
Profile proof expectations: Look for focused CLI, index, query, or migration proof.
Related Context
Related issues/PRs: #51, #39.
Suggested labels: none.
Suggested reviewers: none from current metadata.
Review Settings Preview
- Profile: assertive
- Enabled sections: Review summary (inline_review); Walkthrough (inline_review); Changed-files table (walkthrough); Effort estimate (walkthrough); Related issues/PRs (walkthrough); Suggested labels (suggestion_only); Review status comment (sticky_status)
- Path instructions: none
- Label suggestions: gitnexus, code-intelligence, backend
- Reviewer suggestions: none
- Suggestion behavior: suggestions only; labels and reviewers are not auto-applied.
- Roadmap-only settings: auto-apply labels; auto-request reviewers; required status checks
Pre-merge checklist
- Inline comments target current RIGHT-side diff lines.
- No secret-like content survived into posted inline comments.
- REQUEST_CHANGES is only used when eligible P0/P1 findings survive validation.
- Required behavior proof is present or not applicable.
- Labels and reviewers are suggestions only; the bot did not auto-apply them.
Capability
Implements R12: deterministic MCP output budgets for
query,context, andimpact.maxTokensto the three bounded tools.GITNEXUS_MCP_DEFAULT_MAX_TOKENS; an explicit request wins.maxTokensfield before backend dispatch.The budget uses a documented deterministic estimate of four UTF-8 bytes per token. It is an output-envelope control, not provider-specific tokenization.
Evidence
npx tsc --noEmitpassed.npm run buildpassed, including the web bundle.git diff --check: passed.gitnexus detect-changesrefused rather than touching the registered index./Volumes/LEXAR/Codex/session-notes/2026-07-13/gitnexus-fork-upstream-reconciliation/r12-mcp-output-budgets.md.Stack And Gate
reconcile/r11-mcp-parameter-aliases.f5b218c4bfb94171771bdeceb3371e94a2924484.Closes #51 after merge.
Parent epic: #39.