gmc-openspec 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -155,7 +155,11 @@ ${SHARED_GUARDRAILS}
155
155
  ## Writeback Rules
156
156
 
157
157
  - This is the only Jira intake workflow allowed to write to Jira.
158
- - Before any Jira comment, child issue creation, link update, or status change, show a concrete diff of the write.
158
+ - Child issue writeback is the default strategy for reviewed stories.
159
+ - For every non-deferred story missing \`stories.<storyId>.jiraIssueKey\` in \`mapping.yaml\`, the writeback plan MUST include a \`createJiraIssue\` operation.
160
+ - Do not create duplicate Jira child issues for stories that already have \`jiraIssueKey\`; plan only needed link, update, or status changes for those stories.
161
+ - Summary comment sync is optional. Do not include a Jira comment by default unless the user explicitly requests one, or there are no child issues to create.
162
+ - Before any child issue creation, link update, status change, field edit, or optional comment, show a concrete diff of the write.
159
163
  - Ask for explicit confirmation before each batch of writes.
160
164
  - If \`openspec/jira.yaml\` has \`writeback.enabled: false\`, ask the user to confirm this one-time sync before writing.
161
165
  - Use only the official Atlassian MCP Jira write tools needed for the confirmed diff: \`addCommentToJiraIssue\`, \`editJiraIssue\`, \`getTransitionsForJiraIssue\`, \`transitionJiraIssue\`, and \`createJiraIssue\`.
@@ -164,10 +168,15 @@ ${SHARED_GUARDRAILS}
164
168
 
165
169
  1. Run \`openspec jira validate <JIRA-ID> --stage propose --json\` when syncing proposed OpenSpec changes.
166
170
  2. Read \`mapping.yaml\`, \`stories.md\`, and current OpenSpec change status.
167
- 3. Prepare a writeback plan: comments, links, child issues, or status moves.
168
- 4. Show the diff and wait for explicit user approval.
169
- 5. Use the named Atlassian MCP write tools only after approval.
170
- 6. Update \`intake.yaml\` status to \`synced\` only after successful writeback.
171
+ 3. Identify all non-deferred reviewed stories and split them into:
172
+ - stories missing \`jiraIssueKey\`, which must be planned as Jira child issues;
173
+ - stories with \`jiraIssueKey\`, which must not be recreated.
174
+ 4. Prepare a child-issue-first writeback plan. For each \`createJiraIssue\`, show the Jira summary, issue type, parent/source issue, description or acceptance criteria, trace links, and corresponding OpenSpec change.
175
+ 5. Include an optional summary comment only when the user requested comment sync, or when there are no child issues to create.
176
+ 6. Show the full diff and wait for explicit user approval.
177
+ 7. Use the named Atlassian MCP write tools only after approval.
178
+ 8. After each successful \`createJiraIssue\`, update the matching \`stories.<storyId>.jiraIssueKey\` in \`mapping.yaml\`.
179
+ 9. Update \`intake.yaml\` status to \`synced\` only after successful writeback and local mapping updates.
171
180
 
172
181
  ## Output
173
182
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gmc-openspec",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "AI-native system for spec-driven development",
5
5
  "keywords": [
6
6
  "openspec",