Conversation
- Upgraded @mastra/core to version 1.4.0 and @mastra/rag to version 2.1.0 in bun.lock and package.json. - Updated mastra agent configurations by adding unique IDs for evidence-search-agent and logic-model-agent. - Refactored workflow execution in runWorkflow.ts to use createRun instead of createRunAsync. - Adjusted input handling in get-all-evidence-tool and logic-model-tool to improve clarity and consistency.
…ntation - Removed automatic setting of PROJECT_ROOT in package.json scripts and server actions. - Updated documentation to reflect changes in environment variable handling for Mastra workflows. - Cleaned up references to PROJECT_ROOT in various files to improve clarity and maintainability.
…nd evidence workflow documentation - Simplified the repository cloning instructions by removing submodule references. - Updated file location references to reflect the new structure and added links to relevant documentation.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Review: Upgrade/mastra v1This PR upgrades the Mastra AI framework from v0.x to v1.x, adapts to the updated Hypercerts API schema, and removes the git submodule approach in favor of the Code Quality & Correctness
// Before
execute: async ({ context }) => {
const { intervention, ... } = context;
// After
execute: async (inputData) => {
const { intervention, ... } = inputData;This looks correct for the Mastra v1
execute: async (_inputData) => {Renaming the unused parameter to
// Removed:
telemetry: {
serviceName: "Muse",
enabled: false,
},Was this removed because the Mastra v1 API changed, or intentionally dropped? If it was disabled before (
Adding explicit Potential Bugs / Issues
// Before
const run = await workflow.createRunAsync();
// After
const run = await workflow.createRun();
// Before
const prodGraphql = "https://api.hypercerts.org/v2/graphql";
// After
const prodGraphql = "https://api.hypercerts.org/v1/graphql";This is a downgrade from v2 → v1. The GraphQL schema changes in
// Removed from createFilter:
where.burned = { eq: burned };The Temporarily Disabled FunctionalityTwo pieces of UI have been disabled with placeholder comments:
// disabled={!isConnected || !form.formState.isValid}
disabled={true}
<DropdownMenuItem disabled={true} onClick={saveLogicModel} ...>This is reasonable for a draft PR mid-migration, but the commented-out original condition should be either restored or removed before merge. Leaving dead code as comments creates confusion about intended behavior and will likely be forgotten. Consider a Dependency ChangesThe lockfile changes are large but consistent with the major version bumps:
The removal of packages like DocumentationThe documentation updates are consistent and accurate:
One suggestion: the Summary
Since this is a draft PR, the disabled UI and pending verifications are expected. Address the Reviewed by Claude (claude-sonnet-4-5-20250929) |
Add Mastra skill system with logic model generation skill and skill loader. Fix SKILL.md frontmatter to comply with Agent Skills specification, correct text corruption, and add exact enum values for connection types to prevent tool call validation errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ction - Changed the base path in the Workspace configuration to a relative path for improved flexibility. - Deleted the load-skill.ts file as it was no longer needed, simplifying the codebase. - Updated the logic model tool description to be more concise while retaining essential information. - Refactored the logic model generation workflow to enhance error handling and logging for better debugging.
Replace loadSkillInstructions() helper with Mastra's Workspace Skills API pattern where agents dynamically activate skills via skill-activate tool. Slim down SKILL.md and extract detailed content into references/ directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add format-requirements.md and common-mistakes.md reference files that were listed in docs/mastra-agents.md but not yet created. These provide the format validation rules (field types, character limits, enum values) that were removed from the inline agent instructions during the skills refactor. Also fix duplicate line in docs and add references to SKILL.md Step 5 so agents read format requirements before calling logicModelTool. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Feat/mastra skills
- Create evidence-matching skill with chain-of-thought evaluation framework, scoring calibration examples, common mistakes, and verification checklist - Create evidence-presentation skill with Maryland SMS scale, response format template, and interaction guidelines - Slim down evidence-search-agent instructions (151 → 30 lines) - Slim down conversation-bot-agent instructions (80 → 20 lines) - Increase EVIDENCE_SEARCH_MAX_STEPS to 5 for skill activation steps - Add explicit maxSteps to evidence-search-batch agent.generate()
PR Review: Upgrade/mastra v1This is a solid upgrade from Mastra v0.24/0.18 to v1.4/2.1/1.0. The Workspace Skills API refactor is a meaningful architectural improvement — externalising domain knowledge from inline agent instructions into dedicated skill files improves maintainability and reusability. Below are my findings. What's working well
Concerns1. Relative basePath + absolute-looking skills path (potential runtime failure)// mastra/index.ts
const workspace = new Workspace({
filesystem: new LocalFilesystem({
basePath: ".", // relative to cwd at runtime
}),
skills: ["/mastra/skills"], // starts with "/" — absolute?
});The skills path Also, 2. Removed retry logic with no replacement guardThe 3. Pervasive
|
Uh oh!
There was an error while loading. Please reload this page.