-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
Description
Objective
Modify the workflow compiler to emit a step that locks the issue when lock-for-agent: true is set in the frontmatter.
Context
Depends on #6202, #aw_def456ghi789 being completed. The compiler needs to check the frontmatter and conditionally add the locking step to the activation job.
Approach
- In
pkg/workflow/compiler.goor the activation job builder, check ifon.issue.lock-for-agentis true - If enabled, emit a step in the activation job that runs
lock-issue.cjsscript - Position the step early in the activation job (before the agent runs)
- Use the bundled script reference (similar to how other embedded scripts are used)
- If reactions are enabled, update the reaction message to indicate the issue is locked
- Test by compiling a workflow with
lock-for-agent: trueand verify the generated YAML
Files to Modify
pkg/workflow/compiler.goor related activation job builder files- Reaction message logic (if exists separately)
- Test compilation with sample workflow
Acceptance Criteria
- Compiler checks
on.issue.lock-for-agentfield from frontmatter - When true, activation job includes lock-issue step
- Step executes before agent processing begins
- Reaction message includes lock notification when both features enabled
- Compiled workflow YAML includes the correct step structure
Related to Locking of issues #6201
AI generated by Plan Command for #6201
Copilot