Skip to content

Commit 878c77e

Browse files
authored
Merge branch 'main' into feature/instructions
2 parents 615d33a + 1020700 commit 878c77e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6096
-38
lines changed

.github/workflows/pull-request-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
permissions:
8383
pull-requests: read
8484
if: always()
85+
env:
86+
GH_TOKEN: ${{ github.token }}
8587
steps:
8688
- run: |
8789
PR_NUMBER="${{ needs.get-pr-info.outputs.pr_number }}"
@@ -92,6 +94,7 @@ jobs:
9294
echo "::debug::HALT_MERGES value: $HALT_MERGES"
9395
echo "::debug::This PR number: $PR_NUMBER"
9496
echo "::group::Open Release Pull Requests"
97+
gh pr list --state "open" --repo "${{ github.repository }}" --json "number,headRefName"
9598
OPEN_RELEASES=$(gh pr list --state "open" --repo "${{ github.repository }}" --json "number,headRefName" | \
9699
jq '[.[] | select(.headRefName | startswith("release/"))]')
97100
echo $OPEN_RELEASES

.github/workflows/release-pr.yml

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ jobs:
7070
VERSION="${MAJOR}.${MINOR}.${PATCH}"
7171
echo "WARNING: No conventional commits detected — falling back to patch bump: $VERSION"
7272
else
73-
echo "::warning::No conventional commits and no existing tags — nothing to release"
74-
exit 0
73+
echo "::error::No conventional commits and no existing tags — nothing to release"
74+
exit 1
7575
fi
7676
fi
7777
fi
@@ -109,34 +109,58 @@ jobs:
109109
110110
# Check if branch already exists (local or remote)
111111
if git ls-remote --exit-code --heads origin "$BRANCH" &>/dev/null; then
112-
echo "::warning::Branch '$BRANCH' already exists. A release PR may already be open — close it and delete the branch to re-run."
113-
exit 0
112+
echo "::error::Branch '$BRANCH' already exists. A release PR may already be open — close it and delete the branch to re-run."
113+
exit 1
114114
fi
115115
116116
git config --local user.email "github-actions[bot]@users.noreply.github.com"
117117
git config --local user.name "github-actions[bot]"
118118
119119
git add CHANGELOG.md
120120
if git diff --cached --quiet CHANGELOG.md; then
121-
echo "No changes to CHANGELOG.md"
122-
exit 0
121+
echo "::error::No releasable commits since last tag – CHANGELOG.md is already up to date. Push new conventional commits or adjust the requested version before rerunning this workflow."
122+
exit 1
123123
fi
124124
125125
git checkout -b "$BRANCH"
126126
git commit -m "docs: update changelog for $TAG"
127127
git push origin "$BRANCH"
128128
129-
LABEL_FLAG=""
130-
if gh label list --search "release" --json name --jq '.[].name' | grep -qx "release"; then
131-
LABEL_FLAG="--label release"
132-
fi
129+
label_args=()
130+
for LABEL in "release"; do
131+
if gh label list --search "$LABEL" --json name --jq '.[].name' | grep -qx "$LABEL"; then
132+
label_args+=("--label" "$LABEL")
133+
fi
134+
done
133135
136+
# Draft PR because the github-actions[bot] does not trigger a pull_request_target workflow
134137
gh pr create \
135-
--title "release: $TAG" \
138+
--title "docs: update changelog for $TAG" \
139+
--draft \
136140
--body "$(cat <<EOF
137-
## Release $TAG
141+
# Release $TAG
142+
143+
> [!WARNING]
144+
> All other pull requests are blocked until merged or closed
145+
146+
This pull request is for the $TAG release.
147+
148+
## Checklist (in order)
149+
150+
1. [ ] Mark the pull request "Ready for review" to trigger required workflows
151+
2. [ ] Inspect the CHANGELOG.md and "Approve" or "Reject" the pending [CodeBuild](https://github.com/awslabs/aidlc-workflows/actions/workflows/codebuild.yml) GitHub Action
152+
3. [ ] Evaluate the artifacts
153+
4. [ ] Review the pull request (if approved set the "Merge when ready")
154+
155+
## Post Merge
156+
157+
* [ ] Verify $TAG tag
158+
* [ ] Approve "Approve" or "Reject" the pending [CodeBuild](https://github.com/awslabs/aidlc-workflows/actions/workflows/codebuild.yml) GitHub Action
159+
* [ ] Review the drafted release artifacts for completion
160+
* [ ] Publish the release
138161
139-
This PR updates CHANGELOG.md for the $TAG release.
162+
> [!CAUTION]
163+
> Simply closing this will block a subsequent $TAG release, so delete the branch or reopen the pull request if necessary
140164
141165
**When merged**, the merge commit will be automatically tagged as \`$TAG\`, which triggers:
142166
- \`release.yml\` — creates a draft GitHub Release with the rules zip
@@ -145,4 +169,4 @@ jobs:
145169
After both workflows complete, review and publish the draft release.
146170
EOF
147171
)" \
148-
$LABEL_FLAG
172+
"${label_args[@]}"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ Here's the general flow once an extension is enabled:
529529
The workflow currently ships with a baseline security extension.
530530

531531
> [!IMPORTANT]
532-
> The security extension rules are based on the [OWASP Top 10](https://owasp.org/www-project-top-ten/) and have been tested through controlled experimentation (see [PR #80](https://github.com/awslabs/aidlc-workflows/pull/80)). They are provided as a directional reference for building effective security rules within AI-DLC workflows. Each organization should build, customize, and thoroughly test their own security rules before deploying in production workflows.
532+
> The security extension rules are provided as a directional reference for building effective security rules within AI-DLC workflows. Each organization should build, customize, and thoroughly test their own security rules before deploying in production workflows.
533533
534534
```
535535
aws-aidlc-rule-details/

aidlc-rules/aws-aidlc-rule-details/common/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
- **Solution**: Clearly mark as **HUMAN TASK**, provide instructions
131131
- **Wait**: For user confirmation before proceeding
132132

133-
### Code Planning Errors
133+
### Code Generation Planning Errors
134134

135135
**Error**: Code generation plan is incomplete
136136
- **Cause**: Missing design artifacts, unclear requirements

aidlc-rules/aws-aidlc-rule-details/common/process-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## The Three-Phase Lifecycle:
1111
**INCEPTION PHASE**: Planning and architecture (Workspace Detection + conditional phases + Workflow Planning)
12-
**CONSTRUCTION PHASE**: Design, implementation, build and test (per-unit design + Code Planning/Generation + Build & Test)
12+
**CONSTRUCTION PHASE**: Design, implementation, build and test (per-unit design + Code Generation + Build & Test)
1313
**OPERATIONS PHASE**: Placeholder for future deployment and monitoring workflows
1414

1515
## The Adaptive Workflow:

aidlc-rules/aws-aidlc-rule-details/common/terminology.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
- 🟡 **OPERATIONS PHASE** - Deployment & Monitoring (future expansion)
1111

1212
**Stage**: An individual workflow activity within a phase
13-
- Examples: Context Assessment stage, Requirements Assessment stage, Code Planning stage
13+
- Examples: Context Assessment stage, Requirements Assessment stage, Code Generation stage
1414
- Each stage has specific prerequisites, steps, and outputs
1515
- Stages can be ALWAYS-EXECUTE or CONDITIONAL
1616

1717
**Usage Examples**:
1818
- ✅ "The CONSTRUCTION phase contains 7 stages"
19-
- ✅ "The Code Planning stage is always executed"
19+
- ✅ "The Code Generation stage is always executed"
2020
- ✅ "We're in the INCEPTION phase, executing the Requirements Assessment stage"
2121
- ❌ "The Requirements Assessment phase" (should be "stage")
2222
- ❌ "The CONSTRUCTION stage" (should be "phase")
@@ -49,8 +49,7 @@
4949
- NFR Requirements (CONDITIONAL, per-unit)
5050
- NFR Design (CONDITIONAL, per-unit)
5151
- Infrastructure Design (CONDITIONAL, per-unit)
52-
- Code Planning (ALWAYS)
53-
- Code Generation (ALWAYS)
52+
- Code Generation (ALWAYS) — includes Part 1: Planning and Part 2: Generation
5453
- Build and Test (ALWAYS)
5554

5655
**Outputs**: Design artifacts, NFR implementations, code, tests
@@ -73,8 +72,7 @@
7372
- **Workspace Detection**: Initial analysis of workspace state and project type
7473
- **Requirements Analysis**: Gathering requirements (depth varies based on complexity)
7574
- **Workflow Planning**: Creating execution plan for which phases to run
76-
- **Code Planning**: Creating detailed implementation plans for code generation
77-
- **Code Generation**: Generating actual code based on plans and prior artifacts
75+
- **Code Generation**: Single stage with two parts — Part 1 (Planning) creates detailed implementation plans, Part 2 (Generation) generates actual code based on plans and prior artifacts
7876
- **Build and Test**: Building all units and executing comprehensive testing
7977

8078
### Conditional Stages
@@ -156,7 +154,7 @@ Examples:
156154
- Units Planning → Units Generation
157155
- Unit Design Planning → Unit Design Generation
158156
- NFR Planning → NFR Generation
159-
- Code Planning → Code Generation
157+
- Code Generation Part 1 (Planning) → Code Generation Part 2 (Generation)
160158

161159
### Depth Levels
162160
- **Minimal**: Quick, focused execution for simple changes

aidlc-rules/aws-aidlc-rule-details/common/workflow-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Users may request changes to the execution plan or phase execution during the wo
8585

8686
**Handling**:
8787
1. **Assess Impact**: Identify all stages that depend on the stage to be restarted
88-
2. **Warn User**: "Restarting Application Design will require redoing: Units Planning, Units Generation, per-unit design (all units), Code Planning, Code Generation. Confirm?"
88+
2. **Warn User**: "Restarting Application Design will require redoing: Units Planning, Units Generation, per-unit design (all units), Code Generation. Confirm?"
8989
3. **Get Explicit Confirmation**: User must understand full impact
9090
4. **If Confirmed**:
9191
- Archive all affected artifacts

aidlc-rules/aws-aidlc-rule-details/construction/code-generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ This stage generates code for each unit of work through two integrated parts:
8787
- [ ] Mark the approval status clearly
8888

8989
## Step 9: Update Progress
90-
- [ ] Mark Code Planning complete in `aidlc-state.md`
90+
- [ ] Mark Code Generation Part 1 (Planning) complete in `aidlc-state.md`
9191
- [ ] Update the "Current Status" section
9292
- [ ] Prepare for transition to Code Generation
9393

0 commit comments

Comments
 (0)