@akjamie/agentic-sdlc 1.4.0 → 1.6.0
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.
- package/README.md +57 -29
- package/assets/commands/asdlc-approve.md +2 -2
- package/assets/config/config.yaml +1 -1
- package/assets/policy/policy.yaml +6 -0
- package/assets/schema/risk-assessment.schema.json +2 -1
- package/assets/schema/schema.yaml +168 -168
- package/assets/skills/asdlc-apply/SKILL.md +1 -1
- package/assets/skills/asdlc-approve/SKILL.md +2 -2
- package/assets/skills/asdlc-archive/SKILL.md +17 -13
- package/assets/skills/asdlc-doctor/SKILL.md +8 -8
- package/assets/skills/asdlc-impl-review/SKILL.md +15 -25
- package/assets/skills/asdlc-init/SKILL.md +11 -18
- package/assets/skills/asdlc-new/SKILL.md +5 -2
- package/assets/skills/asdlc-pr/SKILL.md +13 -8
- package/assets/skills/asdlc-review/SKILL.md +7 -7
- package/assets/skills/asdlc-spec-review/SKILL.md +10 -20
- package/package.json +2 -1
- package/src/assess/ai_judge.js +106 -36
- package/src/assess/decide.js +8 -6
- package/src/assess/index.js +13 -3
- package/src/assess/rules/builtin.js +7 -2
- package/src/assess/schema.js +6 -1
- package/src/assess/vectors/v1_intent.js +53 -8
- package/src/assess/vectors/v2_security.js +24 -1
- package/src/assess/vectors/v3_topology.js +125 -13
- package/src/commands/apply.js +33 -4
- package/src/commands/approve.js +2 -3
- package/src/commands/archive.js +116 -64
- package/src/commands/doctor.js +22 -19
- package/src/commands/init.js +24 -50
- package/src/commands/lint.js +32 -2
- package/src/commands/new.js +23 -22
- package/src/commands/pr.js +106 -25
- package/src/commands/status.js +1 -1
- package/src/commands/test.js +101 -5
- package/src/commands/update.js +1 -11
- package/src/commands/verify.js +141 -34
- package/src/lib/agents.js +2 -2
- package/src/lib/cliutil.js +57 -7
- package/src/lib/git.js +10 -4
- package/src/lib/graphify.js +89 -14
- package/src/lib/level.js +63 -9
- package/src/lib/openspec.js +61 -31
- package/src/lib/paths.js +0 -2
- package/src/lib/policy.js +4 -0
- package/src/lib/schema.js +32 -11
- package/src/lib/speclint.js +5 -3
- package/src/lib/tdd.js +35 -11
- package/assets/ci/asdlc-ai-review.yml +0 -65
- package/assets/githooks/post-merge +0 -22
- package/assets/githooks/pre-push +0 -17
|
@@ -5,15 +5,15 @@ description: "Explicitly close and archive a verified change (Stage 7): confirm
|
|
|
5
5
|
|
|
6
6
|
# /asdlc:archive - Deliberate Human Archive Gate
|
|
7
7
|
|
|
8
|
-
This skill executes **Stage 7 (Archive)** of the Agentic SDLC. Archiving is an explicit
|
|
8
|
+
This skill executes **Stage 7 (Archive)** of the Agentic SDLC. Archiving is an explicit post-merge milestone — never automatically triggered during active implementation or unmerged PRs — marking that post-merge testing and trunk integration are complete.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
-
## Why Archive is an Explicit Gate
|
|
12
|
+
## Why Archive is an Explicit Post-Merge Gate
|
|
13
13
|
|
|
14
|
-
1. `asdlc verify` proves that code matches the approved spec
|
|
15
|
-
2.
|
|
16
|
-
3. Therefore, **
|
|
14
|
+
1. `asdlc verify` proves that code matches the approved spec before merging.
|
|
15
|
+
2. An open implementation PR may receive comments, review rounds, or rework. Running archive inside an unmerged PR would corrupt state.
|
|
16
|
+
3. Therefore, **archiving happens strictly post-merge**. Root `README.md` is never mutated during archiving (eliminating merge conflict hotspots), and `AGENTS.md` is only updated for constitutional governance changes or when explicitly requested via `--agents`.
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
@@ -21,29 +21,33 @@ This skill executes **Stage 7 (Archive)** of the Agentic SDLC. Archiving is an e
|
|
|
21
21
|
|
|
22
22
|
### Step 1: Human Confirmation Check
|
|
23
23
|
Confirm with the user:
|
|
24
|
-
> "Have post-merge verification, staging testing
|
|
24
|
+
> "Have the PR merge, post-merge verification, and staging testing completed for change `<CHANGE_ID>`?"
|
|
25
25
|
|
|
26
26
|
Wait for human confirmation before proceeding.
|
|
27
27
|
|
|
28
28
|
### Step 2: Capture Durable Lessons Learned
|
|
29
|
-
Before archiving, check if this change introduced durable
|
|
29
|
+
Before archiving, check if this change introduced durable governance knowledge or constitutional contracts (`.sdlc/policy.yaml`, `openspec/config.yaml`, `governance/**`). If so, `AGENTS.md` will be refreshed automatically, or run `asdlc archive <CHANGE_ID> --agents`.
|
|
30
30
|
|
|
31
31
|
### Step 3: Execute `asdlc archive`
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
For a single merged change:
|
|
34
33
|
```powershell
|
|
35
34
|
asdlc archive <CHANGE_ID>
|
|
36
35
|
```
|
|
37
36
|
|
|
37
|
+
Or for post-merge batch compaction across all merged changes:
|
|
38
|
+
```powershell
|
|
39
|
+
asdlc archive --merged
|
|
40
|
+
```
|
|
41
|
+
|
|
38
42
|
The CLI:
|
|
39
43
|
1. Moves `openspec/changes/<SLUG>/` into `openspec/changes/archive/<SLUG>/`.
|
|
40
|
-
2. Syncs living specs into `openspec/specs/`
|
|
44
|
+
2. Syncs living specs into `openspec/specs/` without mutating root `README.md`.
|
|
41
45
|
3. Rebuilds the AST knowledge graph (`graphify-out/`) against the new HEAD commit.
|
|
42
|
-
4.
|
|
46
|
+
4. Updates `AGENTS.md` only if the change modified constitutional governance paths or if `--agents` was passed.
|
|
43
47
|
|
|
44
48
|
### Step 4: Confirm Archive Completion
|
|
45
49
|
Summarize the result to the user:
|
|
46
50
|
> "✅ Change `<CHANGE_ID>` successfully archived!
|
|
47
51
|
> - The change artifacts are archived under `openspec/changes/archive/<SLUG>/`.
|
|
48
|
-
> -
|
|
49
|
-
> -
|
|
52
|
+
> - Living specs have synced into `openspec/specs/`.
|
|
53
|
+
> - The code knowledge graph has been refreshed to reflect the updated codebase."
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: asdlc-doctor
|
|
3
|
-
description: "Diagnose repository health, toolchain integrity, and governance drift across Node, OpenSpec, Graphify AST, schemas,
|
|
3
|
+
description: "Diagnose repository health, toolchain integrity, and governance drift across Node, OpenSpec, Graphify AST, schemas, and policy. Provide automated remediation."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /asdlc:doctor - Repository Health & Governance Diagnostics
|
|
@@ -11,19 +11,18 @@ This skill executes health, environment, and configuration integrity checks for
|
|
|
11
11
|
|
|
12
12
|
## What this skill checks
|
|
13
13
|
|
|
14
|
-
`asdlc doctor` verifies
|
|
14
|
+
`asdlc doctor` verifies environmental and governance invariants:
|
|
15
15
|
|
|
16
16
|
| Check | Requirement | Failure Impact | Remediation |
|
|
17
17
|
|---|---|---|---|
|
|
18
18
|
| **`node >= 20.19`** | Node.js version >= 20.19.0 | CLI sub-processes fail | Upgrade Node via `nvm` or system installer |
|
|
19
|
-
| **`OpenSpec CLI`** | Pinned `openspec`
|
|
19
|
+
| **`OpenSpec CLI`** | Pinned or bundled `openspec` runtime available | Schema validation fails | Run `asdlc init` |
|
|
20
20
|
| **`Graphify`** | Graphify CLI installed | Cannot build code AST graph | Run `uv tool install graphifyy` or `pip install graphifyy` |
|
|
21
21
|
| **`OpenSpec project`** | `openspec/` directory exists | Cannot store changes | Run `asdlc init` |
|
|
22
|
-
| **`managed schema`** | `agentic-repo-change` v1 installed centrally | Cannot validate changes | Run `asdlc init` |
|
|
22
|
+
| **`managed schema`** | `agentic-repo-change` v1 installed centrally or bundled | Cannot validate changes | Run `asdlc init` |
|
|
23
23
|
| **`schema override`** | No committed overrides in `openspec/schemas/` | Forbidden local fork | Delete tracked local schema file |
|
|
24
24
|
| **`repo config schema`**| `openspec/config.yaml` declares `schema: agentic-repo-change` | Schema mismatch | Run `asdlc init --force` |
|
|
25
25
|
| **`.sdlc/policy.yaml`** | Committed platform policy exists | Approval & gate policy unset | Run `asdlc init` |
|
|
26
|
-
| **`.githooks`** | `core.hooksPath` set to `.githooks` | Git push/merge guards inactive | Run `git config core.hooksPath .githooks` |
|
|
27
26
|
| **`AGENTS.md routing`** | `AGENTS.md` contains routing block | Agent lacks navigation rules | Run `asdlc init` |
|
|
28
27
|
| **`knowledge graph`** | `graphify-out/` is fresh vs `HEAD` | Graph queries stale | Run `asdlc init` or `graphify .` |
|
|
29
28
|
| **`graphify-out ignored`**| `graphify-out` present in `.gitignore` | Cache committed to repo | Add `graphify-out` to `.gitignore` |
|
|
@@ -61,11 +60,12 @@ git rm -f openspec/schemas/agentic-repo-change/schema.yaml
|
|
|
61
60
|
git commit -m "chore(governance): remove local schema override"
|
|
62
61
|
```
|
|
63
62
|
|
|
64
|
-
#### Scenario C:
|
|
65
|
-
If
|
|
63
|
+
#### Scenario C: Stale Git Hooks Configuration
|
|
64
|
+
If legacy hooks path remains configured:
|
|
66
65
|
```bash
|
|
67
|
-
|
|
66
|
+
asdlc doctor --fix
|
|
68
67
|
```
|
|
68
|
+
This automatically clears legacy `core.hooksPath` settings.
|
|
69
69
|
|
|
70
70
|
#### Scenario D: Stale Knowledge Graph
|
|
71
71
|
If `knowledge graph` is stale or missing:
|
|
@@ -6,10 +6,10 @@ aliases:
|
|
|
6
6
|
- code-review-asdlc
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
# /asdlc:impl-review —
|
|
9
|
+
# /asdlc:impl-review — Independent Implementation Review Agent
|
|
10
10
|
|
|
11
|
-
This skill executes **independent AI implementation review**,
|
|
12
|
-
It
|
|
11
|
+
This skill executes **independent AI implementation review**, executed by an independent reviewer agent (either triggered on PR or invoked locally on a change ID).
|
|
12
|
+
It evaluates the code against approved specifications, test evidence, and production safety.
|
|
13
13
|
|
|
14
14
|
It applies the **Player ≠ Referee** principle: the reviewing agent MUST NOT be the agent that authored the implementation.
|
|
15
15
|
|
|
@@ -19,24 +19,26 @@ Drawing from Anthropic's engineering practices for scaling AI code reviews, this
|
|
|
19
19
|
1. **Convergence Protocol**: Review loops must converge, not thrash. Capped at **3 rounds** max; re-reviews inspect **incremental diffs only**.
|
|
20
20
|
2. **Defect Attribution**: Clearly separates defects introduced by this PR (`[Blocker: Introduced]`) from pre-existing legacy issues (`[Tech Debt: Pre-existing]`). Pre-existing flaws **never block** the PR.
|
|
21
21
|
3. **Repository Contract (`REVIEW.md`)**: Respects repository-defined domain rules, failure modes, and ignore paths from the trusted base branch over generic AI opinions.
|
|
22
|
-
4. **
|
|
23
|
-
5. **
|
|
24
|
-
6. **
|
|
22
|
+
4. **Mandatory Acceptance Test Verification (`asdlc test`)**: Reviewer mandates that `asdlc test <CHANGE_ID>` has executed and all mapped AC assertions pass before issuing approval.
|
|
23
|
+
5. **Risk-Based Tiering**: Scrutiny scales with the change's risk profile (Tier 1 Docs/Style, Tier 2 Standard, Tier 3 Critical/Auth/Billing). Highest-risk file sets the PR tier.
|
|
24
|
+
6. **Class-of-Bug Grouping**: Defect patterns are grouped into singular findings rather than fragmented into line-by-line spam.
|
|
25
|
+
7. **Structural & Actionable Findings**: Every finding provides explicit Location, Defect, Impact, and Action Required for instant clarity to both AI agents and human leads.
|
|
25
26
|
|
|
26
27
|
> [!IMPORTANT]
|
|
27
28
|
> **Scope**: Reviews *implementation conformance and code quality* — spec adherence, test rigor, architecture, and production safety.
|
|
28
|
-
> Requires `asdlc verify <CHANGE_ID>` to have passed
|
|
29
|
-
> Does NOT
|
|
30
|
-
> Output is a **PR comment**, not a local file.
|
|
29
|
+
> Requires `asdlc test <CHANGE_ID>` and `asdlc verify <CHANGE_ID>` to have passed before this review can issue an APPROVE verdict.
|
|
30
|
+
> Does NOT review spec intent — that is `asdlc-spec-review`.
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
34
|
-
##
|
|
34
|
+
## Invocation & Triggers
|
|
35
35
|
|
|
36
|
-
This skill
|
|
36
|
+
This skill can be invoked:
|
|
37
|
+
1. **Locally by an independent agent**: `/asdlc:impl-review <CHANGE_ID>`
|
|
38
|
+
2. **Automatically on PRs** carrying the `asdlc:impl-review` label via PR automation workflows:
|
|
37
39
|
|
|
38
40
|
```yaml
|
|
39
|
-
# GitHub Actions example
|
|
41
|
+
# GitHub Actions / PR Automation example
|
|
40
42
|
- name: AI Implementation Review
|
|
41
43
|
if: contains(github.event.pull_request.labels.*.name, 'asdlc:impl-review')
|
|
42
44
|
env:
|
|
@@ -44,19 +46,7 @@ This skill is invoked by CI when a PR is labeled `asdlc:impl-review`. The typica
|
|
|
44
46
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
45
47
|
REPO: ${{ github.repository }}
|
|
46
48
|
run: |
|
|
47
|
-
#
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
```groovy
|
|
51
|
-
// Jenkinsfile example
|
|
52
|
-
stage('Implementation AI Review') {
|
|
53
|
-
when { expression { env.IS_IMPL == 'true' } }
|
|
54
|
-
steps {
|
|
55
|
-
withCredentials([string(credentialsId: 'github-token', variable: 'GH_TOKEN')]) {
|
|
56
|
-
sh "${env.ASDLC} impl-review --pr ${env.PR_NUMBER} --repo ${env.REPO}"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
49
|
+
# Independent Review Agent session executes: /asdlc:impl-review $PR_NUMBER $REPO
|
|
60
50
|
```
|
|
61
51
|
|
|
62
52
|
---
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: asdlc-init
|
|
3
|
-
description: "Initialize an enterprise repository for Agentic SDLC: setup OpenSpec, Graphify code AST graph, governance policies,
|
|
3
|
+
description: "Initialize an enterprise repository for Agentic SDLC: setup OpenSpec, Graphify code AST graph, governance policies, and bundled skills."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /asdlc:init - Repository Initialization & Tooling Setup
|
|
@@ -11,14 +11,13 @@ This skill executes **Stage 1 (Init)** of the Agentic SDLC. It transitions an un
|
|
|
11
11
|
|
|
12
12
|
## What this skill does
|
|
13
13
|
|
|
14
|
-
1. **Detects Environment**: Inspects the repository type (Node, Python, Go, Java) and active agent toolchains (`.agents`, `.claude`, `.opencode`, Cursor, etc.).
|
|
15
|
-
2. **
|
|
16
|
-
3. **Executes `asdlc init`**: Runs the CLI initialization command to
|
|
17
|
-
-
|
|
14
|
+
1. **Detects Environment**: Inspects the repository type (Node, Python, Go, Java, Rust) and active agent toolchains (`.agents`, `.claude`, `.opencode`, Cursor, etc.).
|
|
15
|
+
2. **Zero-Intrusion Integration**: Bundles the OpenSpec engine directly inside `asdlc`—zero extraneous `package.json` or `node_modules` are introduced into non-Node repositories.
|
|
16
|
+
3. **Executes `asdlc init`**: Runs the CLI initialization command to configure:
|
|
17
|
+
- Zero-intrusion bundled OpenSpec runtime with stateless schema validation
|
|
18
18
|
- Graphify code knowledge graph engine
|
|
19
19
|
- Enterprise managed schema (`agentic-repo-change`)
|
|
20
20
|
- Platform governance policy (`.sdlc/policy.yaml`)
|
|
21
|
-
- Git hook guards (`.githooks/` for pre-push and post-merge)
|
|
22
21
|
- Bundled IDE skills (`grilling`, `asdlc-apply`, and `/asdlc:*` suite)
|
|
23
22
|
- Context routing layer (`AGENTS.md`)
|
|
24
23
|
4. **Validates Health**: Automatically runs `asdlc doctor` to ensure zero configuration drifts.
|
|
@@ -27,28 +26,22 @@ This skill executes **Stage 1 (Init)** of the Agentic SDLC. It transitions an un
|
|
|
27
26
|
|
|
28
27
|
## Workflow Sequence
|
|
29
28
|
|
|
30
|
-
### Step 1:
|
|
31
|
-
Ask the user if they want automated Jenkins CI gate pipeline generation:
|
|
32
|
-
- Standard: `asdlc init`
|
|
33
|
-
- With Jenkins CI: `asdlc init --ci jenkins`
|
|
34
|
-
|
|
35
|
-
### Step 2: Execute Initialization
|
|
29
|
+
### Step 1: Execute Initialization
|
|
36
30
|
Run in the repository root:
|
|
37
31
|
|
|
38
32
|
```powershell
|
|
39
|
-
asdlc init
|
|
33
|
+
asdlc init
|
|
40
34
|
```
|
|
41
35
|
|
|
42
36
|
Parse output and verify:
|
|
43
|
-
- `installed openspec` (
|
|
37
|
+
- `installed openspec` (zero-intrusion bundled runtime)
|
|
44
38
|
- `installed managed schema v1`
|
|
45
39
|
- `wrote governance config (openspec/config.yaml)`
|
|
46
|
-
- `installed .githooks`
|
|
47
40
|
- `installed bundled skills -> .agents/skills/`
|
|
48
41
|
- `built graphify code graph -> graphify-out/`
|
|
49
42
|
- `refreshed AGENTS.md`
|
|
50
43
|
|
|
51
|
-
### Step
|
|
44
|
+
### Step 2: Run Environment Health Check
|
|
52
45
|
Execute:
|
|
53
46
|
|
|
54
47
|
```powershell
|
|
@@ -58,11 +51,11 @@ asdlc doctor
|
|
|
58
51
|
Verify that all checks are `[PASS]`:
|
|
59
52
|
- Node version >= 20.19
|
|
60
53
|
- OpenSpec CLI present
|
|
61
|
-
- Managed schema installed centrally
|
|
54
|
+
- Managed schema installed centrally (or bundled stateless)
|
|
62
55
|
- `.sdlc/policy.yaml` present
|
|
63
56
|
- `AGENTS.md` routing valid
|
|
64
57
|
|
|
65
|
-
### Step
|
|
58
|
+
### Step 3: Next Steps Orientation
|
|
66
59
|
Inform the developer:
|
|
67
60
|
> "Repository successfully initialized with Agentic SDLC governance! To start your first feature, run:
|
|
68
61
|
> `/asdlc:new \"<your feature requirement>\"`"
|
|
@@ -40,7 +40,10 @@ The CLI:
|
|
|
40
40
|
- **Default (conversational)**: Runs high-signal, recommendation-led `grill-me` (1 material decision at a time).
|
|
41
41
|
- **`--batch-grill`**: Evaluates the entire design tree and presents the active frontier in structured batches.
|
|
42
42
|
- **`--no-grill`**: Bypasses interactive grilling for self-evident fixes and pre-aligned tasks.
|
|
43
|
-
5. **
|
|
43
|
+
5. **Agent-Native Semantic Grounding**:
|
|
44
|
+
- As an AI agent in an active reasoning session, evaluate the true architectural and security intent of the requirement.
|
|
45
|
+
- If the requirement touches APIs, schemas, or destructive operations, record your agent evaluation into `openspec/changes/<SLUG>/.agent-assess.json` (e.g. `{"classification":"api_contract","rationale":"..."}`). The governance engine reads this alongside Graphify AST hubs to enforce accurate risk tiers without developer gaming.
|
|
46
|
+
6. **Technical Design Auto-Detection**: If the requirement touches UI/UX, frontend, APIs, services, databases, or architecture (or if `--design` is passed), seeds `design.md` with enterprise-grade technical design scaffolding.
|
|
44
47
|
|
|
45
48
|
> [!IMPORTANT]
|
|
46
49
|
> **NO PAUSE / CONTINUOUS EXECUTION**: Do NOT stop after `asdlc new` to ask the author "Should I start grilling?".
|
|
@@ -131,7 +134,7 @@ Once `## Open questions` in `clarifications.md` is empty, author the change docu
|
|
|
131
134
|
4. **Review Provenance (Player $\ne$ Referee)**:
|
|
132
135
|
- The authoring agent MUST NOT approve its own spec.
|
|
133
136
|
- Do NOT stamp `review.md` with self-approval.
|
|
134
|
-
- Independent AI review (`asdlc:spec-review`) is executed
|
|
137
|
+
- Independent AI review (`asdlc:spec-review`) is executed by an independent review agent (locally or via PR automation).
|
|
135
138
|
- Formal approval is given by the human lead via PR merge or `asdlc approve <SLUG>`.
|
|
136
139
|
|
|
137
140
|
### Step 5: Transition to Lint
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: asdlc-pr
|
|
3
|
-
description: "Open a Spec or Implementation PR: pre-flight checks (lint vs verify),
|
|
3
|
+
description: "Open a Spec or Implementation PR: pre-flight checks (lint vs verify), smart staging, auto-extract title/body, and attach labels (asdlc:spec-review vs asdlc:impl-review) for independent review agents."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# /asdlc:pr - Automated Pull Request Engine (Spec & Implementation)
|
|
7
7
|
|
|
8
|
-
This skill opens a **Spec PR** (Stage 3) or an **Implementation PR** (Stage 6.5) with deterministic pre-flight quality gates and distinct labels
|
|
8
|
+
This skill opens a **Spec PR** (Stage 3) or an **Implementation PR** (Stage 6.5) with deterministic pre-flight quality gates, smart staging guards, and distinct labels routing to independent review agent sessions.
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -22,10 +22,10 @@ asdlc pr <CHANGE_ID> <targetBranch>
|
|
|
22
22
|
|
|
23
23
|
## Dual-PR Lifecycle & Pre-flight Gates
|
|
24
24
|
|
|
25
|
-
| PR Type | Phase & Moment | Pre-Flight Guard | Auto Labels |
|
|
25
|
+
| PR Type | Phase & Moment | Pre-Flight Guard | Auto Labels | Review Automation Trigger |
|
|
26
26
|
| :--- | :--- | :--- | :--- | :--- |
|
|
27
|
-
| **Spec PR** | Stage 3 (After drafting proposal & specs) | **`asdlc lint <ID>`**<br>(0 blocking BDD/AC issues) | `asdlc:spec-review`<br>`spec` | Runs `asdlc lint` +
|
|
28
|
-
| **Impl PR** | Stage 6.5 (After TDD apply & tasks complete) | **`asdlc verify <ID>`**<br>(12 deterministic gates pass) | `asdlc:impl-review`<br>`impl` | Runs `asdlc verify` +
|
|
27
|
+
| **Spec PR** | Stage 3 (After drafting proposal & specs) | **`asdlc lint <ID>`**<br>(0 blocking BDD/AC issues) | `asdlc:spec-review`<br>`spec` | Runs `asdlc lint` + routes to **Independent Spec AI Review** (`asdlc-spec-review`) |
|
|
28
|
+
| **Impl PR** | Stage 6.5 (After TDD apply & tasks complete) | **`asdlc verify <ID>`**<br>(12 deterministic gates pass) | `asdlc:impl-review`<br>`impl` | Runs `asdlc verify` + routes to **Independent Impl AI Review** (`asdlc-impl-review`) |
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
@@ -49,11 +49,16 @@ asdlc pr <CHANGE_ID> <targetBranch>
|
|
|
49
49
|
- **Spec PR**: derives clean title (`spec(<slug>): <title>`) and embeds proposal intent.
|
|
50
50
|
- **Impl PR**: derives title (`impl(<slug>): <title>`) and embeds completed tasks, TDD evidence, and spec intent.
|
|
51
51
|
|
|
52
|
-
4. **
|
|
52
|
+
4. **Smart Staging & Commit**:
|
|
53
|
+
- Instead of a blind `git add -A`, `asdlc pr` applies a deterministic safety filter:
|
|
54
|
+
- Automatically skips untracked sensitive credentials (`.env*`, `*.pem`, `*.key`, `*.p12`, secrets).
|
|
55
|
+
- Automatically skips crash dumps and logs (`*.hprof`, `*.dmp`, `core.*`, `*.log`).
|
|
56
|
+
- Automatically skips oversized untracked binaries (`> 50MB`).
|
|
57
|
+
- Emits visible `[WARN]` diagnostics without breaking unattended automation.
|
|
58
|
+
- Safely stages legitimate tracked edits and untracked code/spec files, commits with standard prefix, and pushes branch to origin.
|
|
53
59
|
|
|
54
60
|
5. **Creation Strategy & Self-Healing Label Guarantee**:
|
|
55
|
-
- **JIT Label Provisioning**: Before creating or editing the PR, `asdlc pr` provisions required governance labels on remote (`asdlc:spec-review` + `spec` or `asdlc:impl-review` + `impl`).
|
|
61
|
+
- **JIT Label Provisioning**: Before creating or editing the PR, `asdlc pr` provisions required governance labels on remote (`asdlc:spec-review` + `spec` or `asdlc:impl-review` + `impl`).
|
|
56
62
|
- **Tier 1 (CLI)**: Executes `gh pr create` with both labels (`--label asdlc:spec-review,spec`). If a PR for the branch already exists, detects it and runs `gh pr edit --add-label` to ensure labels are attached.
|
|
57
63
|
- **Tier 2 (Direct REST API)**: Pre-creates labels via GitHub API and attaches them to the PR issue.
|
|
58
64
|
- **Tier 3 (Browser Fallback)**: Generates a 1-click comparison URL pre-filled with branch and label query parameters.
|
|
59
|
-
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: asdlc-review
|
|
3
|
-
description: "
|
|
3
|
+
description: "Independent fresh-context spec review helper. Primary reviews run via asdlc-spec-review and asdlc-impl-review agent sessions."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# /asdlc:review - Independent Spec Review
|
|
6
|
+
# /asdlc:review - Independent Spec Review Helper
|
|
7
7
|
|
|
8
8
|
> [!NOTE]
|
|
9
|
-
> **
|
|
10
|
-
> Spec
|
|
11
|
-
>
|
|
9
|
+
> **Independent Agent Session Review**:
|
|
10
|
+
> Spec and implementation reviews are executed by dedicated **Independent Review Agent Sessions** (`asdlc-spec-review` and `asdlc-impl-review`) adhering to the **Player ≠ Referee** principle.
|
|
11
|
+
> This skill (`asdlc-review`) is retained as a local fresh-context dry-run helper to inspect changes and generate or preview `review.md`.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
When invoked, it switches into the **Independent Reviewer** role (Player ≠ Referee). The reviewer MUST NOT be the authoring agent of the change.
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
## Review Dimensions
|
|
18
18
|
|
|
19
|
-
Every change is evaluated along six dimensions:
|
|
19
|
+
Every change is evaluated along six core dimensions:
|
|
20
20
|
|
|
21
21
|
1. **Completeness**: Are all user journeys covered? Are edge cases, error conditions, and nil/empty inputs handled?
|
|
22
22
|
2. **Ambiguity**: Are requirements clear and unambiguous? Does each use strict normative language (`SHALL` / `MUST`) rather than passive voice?
|
|
@@ -5,10 +5,10 @@ aliases:
|
|
|
5
5
|
- spec-review
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# /asdlc:spec-review —
|
|
8
|
+
# /asdlc:spec-review — Independent Spec Review Agent
|
|
9
9
|
|
|
10
|
-
This skill executes **independent AI spec review**,
|
|
11
|
-
It
|
|
10
|
+
This skill executes **independent AI spec review**, executed by an independent reviewer agent (either triggered on PR or invoked locally on a change ID).
|
|
11
|
+
It evaluates the specification and provides clear review findings so the human Tech Lead can make informed approval decisions.
|
|
12
12
|
|
|
13
13
|
It applies the **Player ≠ Referee** principle: the reviewing agent MUST NOT be the agent that authored the spec.
|
|
14
14
|
|
|
@@ -16,16 +16,18 @@ It applies the **Player ≠ Referee** principle: the reviewing agent MUST NOT be
|
|
|
16
16
|
> **Scope**: Reviews *intent* — BDD quality, logical consistency, architectural soundness, AC testability.
|
|
17
17
|
> Does NOT re-run `asdlc lint` (deterministic structural checks are already gated by `asdlc pr`).
|
|
18
18
|
> Does NOT review implementation code — that is `asdlc-impl-review`.
|
|
19
|
-
> Output
|
|
19
|
+
> Output can be posted as a PR comment or reported locally.
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Invocation & Triggers
|
|
24
24
|
|
|
25
|
-
This skill
|
|
25
|
+
This skill can be invoked:
|
|
26
|
+
1. **Locally by an independent agent**: `/asdlc:spec-review <CHANGE_ID>`
|
|
27
|
+
2. **Automatically on PRs** carrying the `asdlc:spec-review` label via PR automation workflows:
|
|
26
28
|
|
|
27
29
|
```yaml
|
|
28
|
-
# GitHub Actions example
|
|
30
|
+
# GitHub Actions / PR Automation example
|
|
29
31
|
- name: AI Spec Review
|
|
30
32
|
if: contains(github.event.pull_request.labels.*.name, 'asdlc:spec-review')
|
|
31
33
|
env:
|
|
@@ -33,19 +35,7 @@ This skill is invoked by CI when a PR is labeled `asdlc:spec-review`. The typica
|
|
|
33
35
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
34
36
|
REPO: ${{ github.repository }}
|
|
35
37
|
run: |
|
|
36
|
-
#
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
```groovy
|
|
40
|
-
// Jenkinsfile example
|
|
41
|
-
stage('Spec AI Review') {
|
|
42
|
-
when { expression { env.IS_IMPL != 'true' } }
|
|
43
|
-
steps {
|
|
44
|
-
withCredentials([string(credentialsId: 'github-token', variable: 'GH_TOKEN')]) {
|
|
45
|
-
sh "${env.ASDLC} spec-review --pr ${env.PR_NUMBER} --repo ${env.REPO}"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
38
|
+
# Independent Review Agent session executes: /asdlc:spec-review $PR_NUMBER $REPO
|
|
49
39
|
```
|
|
50
40
|
|
|
51
41
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akjamie/agentic-sdlc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Enterprise Agentic SDLC governance CLI: a 7-stage spec-driven flow on top of OpenSpec + Graphify, enforced by CI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"dependencies": {
|
|
42
|
+
"@fission-ai/openspec": "1.13.2",
|
|
42
43
|
"commander": "^12.1.0",
|
|
43
44
|
"yaml": "^2.6.1"
|
|
44
45
|
}
|