fix(mcp): read agent checklist and verification from activation.* path (#1253)#1256
Merged
Conversation
#1253) agent-prompt.builder.ts was reading mandatory_checklist and verification_guide from top-level agent JSON paths, but the data lives under activation.*. Now reads from activation.mandatory_checklist (object with {rule:...} items), activation.verification_guide, and activation.execution_order. Keeps backward compat for top-level array format.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
JeremyDev87
commented
Apr 4, 2026
JeremyDev87
left a comment
Owner
Author
There was a problem hiding this comment.
Review: ✅ APPROVE
CI Status: ALL PASS
Code Review
agent-prompt.builder.ts — Activation path fix:
- Reads
activation.mandatory_checklist(object with{rule:...}items) — matches actual agent JSON structure - Falls back to top-level array format for backward compat
activation.verification_guiderendered as key-value pairs (not raw JSON dump)activation.execution_ordersupports both object (phase→steps) and array formatsactivation.*preferred over top-level when both exist
agent-prompt.builder.spec.ts — 7 new/updated tests:
- activation.mandatory_checklist object format
- Top-level array backward compat
- Activation preferred over top-level (precedence)
- activation.verification_guide
- activation.execution_order (object and array formats)
- Graceful handling without activation field
Issues Found: None
Recommendation: APPROVE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agent-prompt.builder.tswas readingmandatory_checklist,verification_guidefrom top-level agent JSON paths, but the actual data lives underactivation.*activation.mandatory_checklist(object with{rule:...}items),activation.verification_guide, andactivation.execution_ordermandatory_checklistandverification_guideTest plan
Closes #1253