Skip to content

feat: Add workflow spec loader helper for medic#259

Closed
baccula wants to merge 6 commits intosnarktank:mainfrom
baccula:feature/medic-cron-gap-detection
Closed

feat: Add workflow spec loader helper for medic#259
baccula wants to merge 6 commits intosnarktank:mainfrom
baccula:feature/medic-cron-gap-detection

Conversation

@baccula
Copy link
Contributor

@baccula baccula commented Feb 27, 2026

Summary

Implements a loadWorkflowSpecForMedic(workflowId) helper function in src/medic/checks.ts that loads workflow specifications for the medic tool.

Changes

  • Added loadWorkflowSpecForMedic(workflowId) function that:
    • Uses resolveWorkflowDir to get the workflow directory path
    • Uses loadWorkflowSpec to parse the workflow spec file
    • Returns null when workflow directory doesn't exist
  • Added unit tests in tests/medic-workflow-loader.test.ts

Testing

  • Full test suite: 174 tests, 168 pass, 6 fail
  • The 6 failures are pre-existing issues (polling config tests expecting 'default' but workflow files have 'sonnet') - also fail on main branch
  • New tests for medic-workflow-loader: 2/2 pass

Notes

This is infrastructure for the medic cron gap detection feature. The actual cron gap detection logic will be implemented in subsequent stories.

mike and others added 6 commits February 18, 2026 08:44
- Switch all workflows from 'gh pr create' to 'git-pr create'
- Explicit flags: --title --description --head --base on all PR steps
- Treat existing PR as success (return URL, don't fail)
- Switch reviewer from gh pr to git-pr commands
…files on update, add PR_NUMBER context

- Fix git-pr GitHub create path: parse args through parse_pr_create_args to
  translate --description to --body before calling gh pr create
- Pass overwriteFiles:true during antfarm update so workspace files stay current
- Add PR_NUMBER output to shared PR agent; thread into review step template
- Update stale gh pr create references in comments to git-pr
- Added loadWorkflowSpecForMedic(workflowId) function in src/medic/checks.ts
- Uses resolveWorkflowDir and loadWorkflowSpec to load workflow by ID
- Returns null when workflow directory doesn't exist
- Added tests for both null case and valid workflow case
- Typecheck passes
@vercel
Copy link

vercel bot commented Feb 27, 2026

Someone is attempting to deploy a commit to the Ryan Team on Vercel.

A member of the Team first needs to authorize it.

@baccula baccula closed this Feb 27, 2026
@baccula baccula deleted the feature/medic-cron-gap-detection branch February 27, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant