Skip to content

feat(mcp-server): preserve planning agent question-first guidance at standard verbosity (#1419)#1429

Merged
JeremyDev87 merged 1 commit into
masterfrom
feat/planning-contract-1419
Apr 7, 2026
Merged

feat(mcp-server): preserve planning agent question-first guidance at standard verbosity (#1419)#1429
JeremyDev87 merged 1 commit into
masterfrom
feat/planning-contract-1419

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Added planningContract field to IncludedAgent that survives all verbosity levels
  • Created pure planning-contract.ts module with resolvePlanningContract() function
  • Planning agents (technical-planner, solution-architect, plan-mode, auto-mode) in PLAN/AUTO modes get core question-first rules
  • ~50 tokens overhead, no breaking changes (additive optional field)

Closes #1419

Test plan

  • Unit tests for resolvePlanningContract() (mode/agent filtering) — 14 tests
  • Integration: keyword.service tests pass (271 tests)
  • Standard verbosity preserves contract
  • Full verbosity also includes contract
  • ACT/EVAL modes do not include contract
  • Full test suite passes (6204 tests, 245 files)
  • ESLint clean
  • Prettier clean

@JeremyDev87 JeremyDev87 added feat sub-issue 상위 이슈의 하위 작업 mcp-server apps/mcp-server P2 Priority 2: During Work labels Apr 7, 2026
@vercel

vercel Bot commented Apr 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 7, 2026 10:34am

…standard verbosity (#1419)

Add planningContract field to IncludedAgent that survives all verbosity
levels. Planning agents (technical-planner, solution-architect, plan-mode,
auto-mode) in PLAN/AUTO modes receive core question-first rules regardless
of whether systemPrompt is truncated to a summary.

- Create pure planning-contract.ts module with resolvePlanningContract()
- Add planningContract optional field to IncludedAgent interface
- Wire into addIncludedAgentToResult after both full and standard paths
- 14 unit tests covering mode/agent filtering and edge cases

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: APPROVE

CI Status: ALL PASS ✅

Code Review Summary

  • Critical: 0 | High: 0 | Medium: 2 (non-blocking) | Low: 1

Changes Verified

  1. planning-contract.ts — pure module, resolvePlanningContract()
  2. IncludedAgent.planningContract?: string[] — additive, backward-compat ✅
  3. keyword.service.ts — wired after both verbosity paths ✅
  4. 14 unit tests — mode/agent combinations, edge cases ✅

Fixed in Review

  • Prettier formatting on keyword.service.ts

Non-blocking Suggestions

  • [MEDIUM] Consider moving planning-contract.ts to shared/ (cross-module import direction)
  • [MEDIUM] Add integration test in keyword.service.spec.ts for end-to-end verification
  • [LOW] agentId case-sensitivity asymmetry (currently all callers pass lowercase)

Recommendation: APPROVE

@JeremyDev87 JeremyDev87 self-assigned this Apr 7, 2026
@JeremyDev87 JeremyDev87 merged commit 2fe5457 into master Apr 7, 2026
26 checks passed
@JeremyDev87 JeremyDev87 deleted the feat/planning-contract-1419 branch April 7, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat mcp-server apps/mcp-server P2 Priority 2: During Work sub-issue 상위 이슈의 하위 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(mcp-server): preserve planning agent question-first guidance at standard verbosity

1 participant