@akjamie/agentic-sdlc 1.1.0 → 1.3.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/LICENSE +201 -21
- package/README.md +264 -154
- package/assets/schema/risk-assessment.schema.json +225 -0
- package/assets/schema/templates/design.md +94 -31
- package/assets/skills/api-design/SKILL.md +204 -0
- package/assets/skills/asdlc-apply/SKILL.md +43 -18
- package/assets/skills/asdlc-impl-review/SKILL.md +153 -47
- package/assets/skills/asdlc-new/SKILL.md +42 -24
- package/assets/skills/asdlc-verify/SKILL.md +16 -6
- package/assets/skills/batch-grill-me/SKILL.md +11 -7
- package/assets/skills/frontend-design/SKILL.md +84 -0
- package/assets/skills/grilling/SKILL.md +43 -17
- package/package.json +2 -2
- package/src/assess/ai_judge.js +163 -0
- package/src/assess/decide.js +164 -0
- package/src/assess/governance.js +53 -0
- package/src/assess/index.js +183 -0
- package/src/assess/render.js +71 -0
- package/src/assess/rules/builtin.js +195 -0
- package/src/assess/schema.js +148 -0
- package/src/assess/store.js +138 -0
- package/src/assess/vectors/v1_intent.js +80 -0
- package/src/assess/vectors/v2_security.js +131 -0
- package/src/assess/vectors/v3_topology.js +107 -0
- package/src/cli.js +91 -89
- package/src/commands/apply.js +103 -36
- package/src/commands/assess.js +57 -0
- package/src/commands/doctor.js +1 -14
- package/src/commands/init.js +0 -9
- package/src/commands/new.js +97 -19
- package/src/commands/pr.js +27 -3
- package/src/commands/upgrade.js +1 -1
- package/src/commands/verify.js +109 -15
- package/src/lib/agents.js +5 -4
- package/src/lib/fs.js +26 -3
- package/src/lib/level.js +118 -0
- package/src/lib/paths.js +2 -1
- package/src/lib/prtype.js +17 -4
- package/src/lib/risk.js +50 -0
- package/src/lib/schema.js +4 -0
package/README.md
CHANGED
|
@@ -1,220 +1,330 @@
|
|
|
1
1
|
# agentic-sdlc
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@akjamie/agentic-sdlc)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://nodejs.org/)
|
|
6
|
+
[](#development--verification)
|
|
7
|
+
[](#adaptive-risk-tiered-governance-l0l3)
|
|
8
|
+
|
|
9
|
+
> **The Intelligent Governance Engine for Autonomous AI Coding.**
|
|
10
|
+
> Move fast on routine tasks. Lock down APIs, schemas, and security.
|
|
11
|
+
> Never let an autonomous agent wander into production unverified.
|
|
12
|
+
>
|
|
13
|
+
> Built on [OpenSpec](https://openspec.dev) and [Graphify](https://github.com/safishamsi/graphify).
|
|
14
|
+
> The spec is the contract. The gate is the law. Humans stay in control.
|
|
7
15
|
|
|
8
16
|
---
|
|
9
17
|
|
|
10
|
-
##
|
|
18
|
+
## ⚡ The Dilemma: "Vibe Coding" vs. "Enterprise Bureaucracy"
|
|
11
19
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
20
|
+
Autonomous AI coding agents (Claude Code, Cursor, OpenCode, Codex) are transforming software delivery. But engineering leads face a frustrating dilemma:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
UNGOVERNED "VIBE CODING" RIGID "ALWAYS TWO-PR" FRAMEWORKS
|
|
24
|
+
(Chaos & Silent Drift) (Suffocating Bureaucracy)
|
|
25
|
+
┌───────────────────────────┐ ┌───────────────────────────┐
|
|
26
|
+
│ 💥 Hallucinated contracts │ │ 🐌 2 PRs for a 1-line doc │
|
|
27
|
+
│ 💥 Code shipped w/o tests │ VS │ 🐌 45-min review for typo │
|
|
28
|
+
│ 💥 Agents rewrite specs │ │ 🐌 Dev velocity tanks │
|
|
29
|
+
│ 💥 Self-grading exams │ │ 🐌 Agents circumvent tool │
|
|
30
|
+
└───────────────────────────┘ └───────────────────────────┘
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### The Solution: Adaptive Dual-Track SDLC (`asdlc`)
|
|
34
|
+
|
|
35
|
+
`agentic-sdlc` bridges this gap with an **Intelligent, Neuro-Symbolic Governance Plane**:
|
|
36
|
+
- 🚀 **Frictionless Agility for Routine Work (L0 / L1)**: Pure test additions, documentation updates, and bounded local refactors run in a streamlined **Single-PR** mode with automated validation and zero red tape.
|
|
37
|
+
- 🛡️ **Ironclad Rigor for High-Impact Changes (L2 / L3)**: Cross-boundary APIs (Spring Boot, FastAPI, Go, NestJS), database schemas, security tokens, and constitutional rules enforce **Dual-PR Spec-First** contracts with human sign-off.
|
|
38
|
+
- 🤝 **Humane In-Place Scope Escalation**: If scope unexpectedly expands during implementation, the system **never punishes the engineer** by ripping their Git branch apart. It maintains the single PR in-place, revokes auto-merge, and routes to a Tech Lead for human review.
|
|
21
39
|
|
|
22
40
|
---
|
|
23
41
|
|
|
24
|
-
##
|
|
42
|
+
## 🧭 Adaptive Risk-Tiered Governance (L0–L3)
|
|
25
43
|
|
|
26
|
-
|
|
44
|
+
Every change evaluated by `asdlc` is continuously assessed along its lifecycle across 5 orthogonal risk vectors (Intent, Architecture/API, Security/Data, AST Topology, and Test/Doc Semantics).
|
|
27
45
|
|
|
28
|
-
|
|
46
|
+
```mermaid
|
|
47
|
+
flowchart TD
|
|
48
|
+
REQ["Natural Language Intent / Code Diff"] --> ASSESS{"Neuro-Symbolic Risk Engine<br/>(AI Classifier + Invariant Guard)"}
|
|
49
|
+
|
|
50
|
+
ASSESS -->|L0: Trivial / Test / Doc| T_L0["<b>Level L0 · Trivial</b><br/>Tests, Docs, Typo Fixes"]
|
|
51
|
+
ASSESS -->|L1: Bounded Local / Tooling| T_L1["<b>Level L1 · Routine</b><br/>Internal Helpers, CI, Local Logic"]
|
|
52
|
+
ASSESS -->|L2: Cross-Boundary API / Schema| T_L2["<b>Level L2 · Structural</b><br/>FastAPI, SpringBoot, DDL, gRPC"]
|
|
53
|
+
ASSESS -->|L3: Critical Security / Architecture| T_L3["<b>Level L3 · Critical</b><br/>DROP TABLE, Auth Engines, AGENTS.md"]
|
|
54
|
+
|
|
55
|
+
subgraph FAST_TRACK ["⚡ Fast-Track: Single PR Flow"]
|
|
56
|
+
T_L0 --> SP1["Direct Implementation<br/>(Spec Delta & Code Co-Located)"]
|
|
57
|
+
T_L1 --> SP1
|
|
58
|
+
SP1 --> V_AUTO["Local asdlc verify<br/>12 Quality Gates"]
|
|
59
|
+
V_AUTO --> PR_AUTO["Single PR to main<br/>(CI + AI Review Auto-Merge)"]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
subgraph SPEC_FIRST ["🛡️ Spec-First Track: Dual-PR Flow"]
|
|
63
|
+
T_L2 --> DP1["Spec PR to main<br/>(asdlc pr spec)"]
|
|
64
|
+
T_L3 --> DP1
|
|
65
|
+
DP1 --> G_SPEC["CI Spec Review & Human TL Approval"]
|
|
66
|
+
G_SPEC --> S_LOCK["approvedSha Cryptographic Lock<br/>(asdlc approve)"]
|
|
67
|
+
S_LOCK --> DP2["Implementation Unlocked<br/>(asdlc apply)"]
|
|
68
|
+
DP2 --> DP3["Task-Level TDD Red-Green Loop<br/>(asdlc test)"]
|
|
69
|
+
DP3 --> PR_IMPL["Implementation PR to main<br/>(Human Tech Lead Final Gate)"]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
FAST_TRACK -.->|"In-Place Escalation<br/>(Touches API/DDL in Impl)"| ESCALATE["Maintain Single PR in-place<br/>Revoke Auto-Merge & Enforce Human Lead Sign-Off"]
|
|
73
|
+
ESCALATE -.-> PR_IMPL
|
|
74
|
+
|
|
75
|
+
classDef l0Style fill:#064e3b,stroke:#10b981,stroke-width:2px,color:#ffffff,rx:6px,ry:6px;
|
|
76
|
+
classDef l1Style fill:#0f766e,stroke:#14b8a6,stroke-width:2px,color:#ffffff,rx:6px,ry:6px;
|
|
77
|
+
classDef l2Style fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#ffffff,rx:6px,ry:6px;
|
|
78
|
+
classDef l3Style fill:#450a0a,stroke:#ef4444,stroke-width:2px,color:#ffffff,rx:6px,ry:6px;
|
|
79
|
+
classDef subFast fill:#022c22,stroke:#059669,stroke-width:1.5px,color:#a7f3d0;
|
|
80
|
+
classDef subSpec fill:#0f172a,stroke:#3b82f6,stroke-width:1.5px,color:#bfdbfe;
|
|
81
|
+
classDef escStyle fill:#451a03,stroke:#f59e0b,stroke-width:2px,color:#fef3c7,rx:6px,ry:6px;
|
|
82
|
+
|
|
83
|
+
class T_L0 l0Style;
|
|
84
|
+
class T_L1 l1Style;
|
|
85
|
+
class T_L2 l2Style;
|
|
86
|
+
class T_L3 l3Style;
|
|
87
|
+
class FAST_TRACK subFast;
|
|
88
|
+
class SPEC_FIRST subSpec;
|
|
89
|
+
class ESCALATE escStyle;
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Governance Tier Matrix
|
|
29
93
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
94
|
+
| Tier | Typical Scope | Workflow Mode | Spec-First Block? | Implementation Review | Auto-Merge |
|
|
95
|
+
| :---: | :--- | :---: | :---: | :---: | :---: |
|
|
96
|
+
| **L0** | Test additions, fixtures, docs, typos, comments | **Single PR** | ❌ None | None (Pass) | **Enabled** (once CI passes) |
|
|
97
|
+
| **L1** | Internal utils, CI workflows, git hooks, local refactors | **Single PR** | ❌ None | AI Review | **Enabled** (once AI passes) |
|
|
98
|
+
| **L2** | Public APIs (FastAPI/Spring/Go), schemas, shared libs | **Dual PR** | **Enforced** | AI + Human Lead | 🚫 **Denied** (Lead Approval required) |
|
|
99
|
+
| **L3** | Destructive DDL (`DROP`), auth engines, `AGENTS.md` | **Dual PR** | **Enforced** | AI + Human Lead | 🚫 **Denied** (Lead Approval required) |
|
|
35
100
|
|
|
36
101
|
---
|
|
37
102
|
|
|
38
|
-
##
|
|
103
|
+
## 🛡️ Non-Negotiable Engineering Invariants
|
|
39
104
|
|
|
40
|
-
|
|
41
|
-
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
42
|
-
│ PLANE 3: Agentic IDE Skills & Commands (.agents/skills, .claude/skills, ...)│
|
|
43
|
-
│ ● asdlc:new ● asdlc:lint ● asdlc:review ● asdlc:apply ● asdlc:verify │
|
|
44
|
-
│ ● Bundled Engines: grilling (batch-grill-me), asdlc-apply (TDD Red-Green) │
|
|
45
|
-
└──────────────────────────────────────┬──────────────────────────────────────┘
|
|
46
|
-
│ runs CLI with --json
|
|
47
|
-
┌──────────────────────────────────────▼──────────────────────────────────────┐
|
|
48
|
-
│ PLANE 2: Governance CLI & CI Gate (asdlc init/new/lint/approve/apply/verify)│
|
|
49
|
-
│ ● Path-limited approval evidence ● Deterministic BDD/AC linters │
|
|
50
|
-
│ ● Diff-based test presence gate ● Schema version pin & override guard │
|
|
51
|
-
└──────────────────────────────────────┬──────────────────────────────────────┘
|
|
52
|
-
│ calls pure functions
|
|
53
|
-
┌──────────────────────────────────────▼──────────────────────────────────────┐
|
|
54
|
-
│ PLANE 1: Core Library (src/lib/ — zero side-effects, fully unit-tested) │
|
|
55
|
-
│ ● speclint ● tdd ● prtype ● policy ● graphify ● schema ● agents │
|
|
56
|
-
└─────────────────────────────────────────────────────────────────────────────┘
|
|
57
|
-
```
|
|
105
|
+
Enterprise teams rely on deterministic code, not agent compliance or prompt enthusiasm. Every invariant is backed by cryptographic proofs or exit-coded engines:
|
|
58
106
|
|
|
59
|
-
|
|
107
|
+
| # | Enterprise Invariant | How `asdlc` Enforces It | Failure Mode |
|
|
108
|
+
| :-: | :--- | :--- | :--- |
|
|
109
|
+
| **1** | **No Apply Before Spec Approval (L2/L3)** | `asdlc apply` physically inspects path-limited Git history for `approvedSha` on `main`. | 🚫 **Hard Refusal** — Zero production code allowed without an approved spec. |
|
|
110
|
+
| **2** | **Cryptographic Anti-Tamper (`spec-tamper`)** | Implementation diffs must NOT modify locked spec files once approved on `main`. | 🚫 **Instant Rejection** — Agents cannot alter requirements to make failing tests pass. |
|
|
111
|
+
| **3** | **Anti-Gaming Hash Chain** | Every level transition is sealed in an append-only, SHA-256 hash-chained `risk-history.jsonl`. | 🚫 **Integrity Breach** — Manual downgrades (`L2 -> L1`) are detected and blocked. |
|
|
112
|
+
| **4** | **AI Classifier Invariant Defense** | AI semantic classifier output is validated against hard mathematical expectations. | 🚫 **Evasion Shield** — Prompts claiming a `DROP TABLE` is "just a test" are vetoed to L3. |
|
|
113
|
+
| **5** | **Zero Untested Code (`test-presence`)** | Any change touching production source code (`src/**`, `app/**`) requires test diffs. | 🚫 **Rejection** — Stops AI "code dumps" without corresponding test coverage. |
|
|
114
|
+
| **6** | **Deterministic AC Assertions (`asdlc test`)** | Parses `- [ ] ACn: (test: <path>)` annotations and runs native test suites. | 🚫 **Fake Claim Gate** — Unimplemented acceptance criteria immediately fail CI. |
|
|
115
|
+
| **7** | **Player ≠ Referee Isolation** | CI runs independent verification with a fresh LLM instance outside the author agent context. | 🚫 **Audit Integrity** — Authoring agents can never grade their own exam. |
|
|
116
|
+
| **8** | **Humane In-Place Scope Escalation** | If an L1 change touches an API during implementation, single PR is preserved with mandatory human sign-off. | **Safe Convergence** — No messy branch rebases; human stays in control. |
|
|
60
117
|
|
|
61
118
|
---
|
|
62
119
|
|
|
63
|
-
##
|
|
120
|
+
## 📦 Architecture: The Three Planes
|
|
64
121
|
|
|
65
|
-
`
|
|
122
|
+
`agentic-sdlc` strictly decouples interface, governance rules, and core execution:
|
|
66
123
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
124
|
+
```
|
|
125
|
+
┌────────────────────────────────────────────────────────────────────────┐
|
|
126
|
+
│ PLANE 3 · Conversational Agent Surface (.agents/skills/) │
|
|
127
|
+
│ Bundled out-of-the-box skills for Claude Code, Cursor, OpenCode, etc. │
|
|
128
|
+
│ Coordinates multi-turn flows, interviews, TDD loops, and reviews. │
|
|
129
|
+
└──────────────────────────────────┬─────────────────────────────────────┘
|
|
130
|
+
│ Invokes commands with --json
|
|
131
|
+
┌──────────────────────────────────▼─────────────────────────────────────┐
|
|
132
|
+
│ PLANE 2 · Governance CLI & Hard CI Gates (bin/asdlc.js) │
|
|
133
|
+
│ Deterministic CLI exit codes (0 = pass, 1 = fail). No LLM fuzziness. │
|
|
134
|
+
│ init · new · lint · approve · apply · test · verify · pr · archive │
|
|
135
|
+
└──────────────────────────────────┬─────────────────────────────────────┘
|
|
136
|
+
│ Pure function calls
|
|
137
|
+
┌──────────────────────────────────▼─────────────────────────────────────┐
|
|
138
|
+
│ PLANE 1 · Core Library & Engines (src/lib/, src/assess/) │
|
|
139
|
+
│ Pure functions, 100% tested, zero side-effects. │
|
|
140
|
+
│ ├─ assess/ Neuro-symbolic risk evaluation & hash-chain history │
|
|
141
|
+
│ ├─ speclint/ R0–R8 BDD/AC linting & scenario coverage traceability │
|
|
142
|
+
│ ├─ graphify/ Knowledge graph & code AST topology discovery │
|
|
143
|
+
│ └─ verify/ 12 cryptographic & structural quality gates │
|
|
144
|
+
└────────────────────────────────────────────────────────────────────────┘
|
|
145
|
+
```
|
|
80
146
|
|
|
81
147
|
---
|
|
82
148
|
|
|
83
|
-
##
|
|
149
|
+
## 🚀 Quickstart: 5-Minute Walkthrough
|
|
84
150
|
|
|
85
|
-
|
|
151
|
+
### 1. Installation
|
|
86
152
|
|
|
87
153
|
```bash
|
|
88
|
-
#
|
|
154
|
+
# Install globally via npm
|
|
89
155
|
npm install -g @akjamie/agentic-sdlc
|
|
90
156
|
|
|
91
|
-
#
|
|
92
|
-
|
|
157
|
+
# Initialize your repository with OpenSpec, Graphify, and bundled skills
|
|
158
|
+
asdlc init
|
|
159
|
+
|
|
160
|
+
# Verify environment & toolchain health
|
|
161
|
+
asdlc doctor
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### 2. Scenario A: Agile Routine Change (Level L1 · Single-PR)
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
# 1. Start a routine change (automatically inferred as L1)
|
|
168
|
+
asdlc new "add memory cache helper with TTL eviction"
|
|
93
169
|
|
|
94
|
-
#
|
|
95
|
-
|
|
170
|
+
# 2. Directly implement using the task-level TDD loop (no Spec PR needed!)
|
|
171
|
+
asdlc apply memory-cache-helper
|
|
96
172
|
|
|
97
|
-
#
|
|
98
|
-
asdlc
|
|
173
|
+
# 3. Verify locally against 12 quality gates
|
|
174
|
+
asdlc verify memory-cache-helper
|
|
175
|
+
|
|
176
|
+
# 4. Open Single PR (co-locates spec delta and code)
|
|
177
|
+
asdlc pr memory-cache-helper main
|
|
178
|
+
# → Auto-merge eligible once CI & AI checks pass!
|
|
99
179
|
```
|
|
100
180
|
|
|
101
|
-
|
|
181
|
+
### 3. Scenario B: High-Impact API Change (Level L2 · Dual-PR Spec-First)
|
|
102
182
|
|
|
103
183
|
```bash
|
|
104
|
-
|
|
184
|
+
# 1. Start an API change (automatically detected as L2 Spec-First)
|
|
185
|
+
asdlc new "create FastAPI user authentication router"
|
|
186
|
+
|
|
187
|
+
# 2. Agent runs conversational grill-me to settle design in clarifications.md
|
|
188
|
+
# Drafts proposal.md, design.md, and specs/
|
|
189
|
+
|
|
190
|
+
# 3. Open Spec PR (triggers CI AI Spec Review)
|
|
191
|
+
asdlc pr user-auth main
|
|
192
|
+
|
|
193
|
+
# 4. Human Tech Lead reviews & merges Spec PR to main.
|
|
194
|
+
# asdlc approve locks the specSha!
|
|
195
|
+
|
|
196
|
+
# 5. Implementation is now unlocked
|
|
197
|
+
asdlc apply user-auth
|
|
198
|
+
|
|
199
|
+
# 6. Execute TDD loop and verify code + test presence
|
|
200
|
+
asdlc test user-auth
|
|
201
|
+
asdlc verify user-auth
|
|
202
|
+
|
|
203
|
+
# 7. Open Implementation PR (attaches asdlc:impl-review)
|
|
204
|
+
asdlc pr user-auth main
|
|
205
|
+
# → Mandatory Human Tech Lead approval required before trunk merge!
|
|
105
206
|
```
|
|
106
207
|
|
|
107
208
|
---
|
|
108
209
|
|
|
109
|
-
##
|
|
210
|
+
## 🧰 Bundled Out-of-the-Box Skills
|
|
110
211
|
|
|
111
|
-
|
|
112
|
-
flowchart LR
|
|
113
|
-
S1["1 · init<br/>setup + skills"] --> S2["2 · new<br/>intent + grill"]
|
|
114
|
-
S2 --> S3["3 · spec pr<br/>lint + open Spec PR"]
|
|
115
|
-
S3 --> S4["4 · approve (optional)<br/>audit check"]
|
|
116
|
-
S4 --> S5["5 · apply<br/>TDD loop"]
|
|
117
|
-
S5 --> S6["6 · verify<br/>12 gates (local)"]
|
|
118
|
-
S6 --> PR2["Impl PR<br/>asdlc pr (CI AI Review)"]
|
|
119
|
-
PR2 --> S7["7 · archive<br/>sync + graph"]
|
|
120
|
-
|
|
121
|
-
style S1 fill:#e8f4fd,stroke:#2196f3
|
|
122
|
-
style S2 fill:#e8f4fd,stroke:#2196f3
|
|
123
|
-
style S3 fill:#e8f4fd,stroke:#2196f3
|
|
124
|
-
style S4 fill:#fff3e0,stroke:#ff9800
|
|
125
|
-
style S5 fill:#e8f5e9,stroke:#4caf50
|
|
126
|
-
style S6 fill:#fff3e0,stroke:#ff9800
|
|
127
|
-
style PR2 fill:#e8f5e9,stroke:#4caf50
|
|
128
|
-
style S7 fill:#f3e5f5,stroke:#9c27b0
|
|
129
|
-
```
|
|
212
|
+
`asdlc` includes production-grade agent skills installed automatically into `.agents/skills/`. Your AI assistant (Claude Code, Cursor, OpenCode, Antigravity IDE) immediately gains enterprise SDLC capabilities:
|
|
130
213
|
|
|
131
|
-
|
|
|
214
|
+
| Skill | Role in Agentic SDLC |
|
|
132
215
|
| :--- | :--- |
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
|
|
|
136
|
-
|
|
|
137
|
-
|
|
|
138
|
-
|
|
|
139
|
-
|
|
|
140
|
-
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
`asdlc
|
|
145
|
-
|
|
146
|
-
| PR Phase | Trigger Moment & Pre-flight | PR Labels | CI Automation Trigger | Human Action |
|
|
147
|
-
| :--- | :--- | :--- | :--- | :--- |
|
|
148
|
-
| **Spec PR** | After spec drafting; runs **`asdlc lint`** (0 blockers) | `asdlc:spec-review`<br>`spec` | Runs `asdlc lint` + triggers **Spec AI Review** (clarity, BDD scenarios, architecture alignment) | TL / Domain Lead approves & merges |
|
|
149
|
-
| **Impl PR** | After TDD implementation; runs **`asdlc verify`** (12 gates) | `asdlc:impl-review`<br>`impl` | Runs `asdlc verify` + triggers **Code AI Review** (diff analysis, style, edge cases) | Lead / Peer reviews code & merges |
|
|
150
|
-
|
|
151
|
-
**Navigation, Diagnostics & Workspace Maintenance:**
|
|
152
|
-
- `asdlc status <ID>`: Instant orientation on current stage and exact next command.
|
|
153
|
-
- `asdlc doctor [--fix]`: Comprehensive toolchain and policy health diagnostics with auto-remediation.
|
|
154
|
-
- `asdlc update`: Synchronizes repository SDLC state in seconds: refreshes repo-level agent skills (`.agents/skills`), rebuilds codebase AST knowledge graph (`graphify-out/` bound to `HEAD`), updates `AGENTS.md` system status & architectural hubs, and verifies git hooks. Fails fast with guidance if run outside an initialized repository.
|
|
155
|
-
- `asdlc upgrade [--global]`: Upgrades the machine toolchain (`asdlc` CLI, OpenSpec engine, Graphify, managed schema) and automatically updates the current repository if inside one, or global user skills (`~/.agents`) with `--global`.
|
|
156
|
-
- `asdlc skills list`: Lists all bundled skills available in agentic-sdlc.
|
|
157
|
-
- `asdlc skills install --global`: One-click setup on CI Linux VMs to inject skills into global agent directories (`~/.agents`, `~/.opencode`, `~/.pi`, `~/.dsh`) without polluting developer workspaces.
|
|
216
|
+
| [`asdlc-init`](assets/skills/asdlc-init/SKILL.md) | One-command bootstrapping of OpenSpec, Graphify AST, policies, and git hooks. |
|
|
217
|
+
| [`asdlc-new`](assets/skills/asdlc-new/SKILL.md) | Scaffolds change, queries AST hubs, runs conversational anti-fatigue `grill-me`. |
|
|
218
|
+
| [`asdlc-lint`](assets/skills/asdlc-lint/SKILL.md) | Enforces deterministic BDD GIVEN/WHEN/THEN and R5 scenario-to-AC coverage. |
|
|
219
|
+
| [`asdlc-pr`](assets/skills/asdlc-pr/SKILL.md) | Smart PR dispatcher: automatically handles Spec PR vs. Implementation PR. |
|
|
220
|
+
| [`asdlc-approve`](assets/skills/asdlc-approve/SKILL.md) | Stamps cryptographic `specSha` lock upon Spec PR merge. |
|
|
221
|
+
| [`asdlc-apply`](assets/skills/asdlc-apply/SKILL.md) | Strict task-level TDD engine (`Red -> Green -> Refactor -> Evidence -> Converge`). |
|
|
222
|
+
| [`asdlc-verify`](assets/skills/asdlc-verify/SKILL.md) | Pre-flight audit across 12 gates (test presence, evidence, tamper guard, schema). |
|
|
223
|
+
| [`asdlc-spec-review`](assets/skills/asdlc-spec-review/SKILL.md) | CI-triggered 6-dimensional spec review before human lead approval. |
|
|
224
|
+
| [`asdlc-impl-review`](assets/skills/asdlc-impl-review/SKILL.md) | CI-triggered Player ≠ Referee implementation reviewer with Anthropic convergence rules. |
|
|
225
|
+
| [`asdlc-archive`](assets/skills/asdlc-archive/SKILL.md) | Syncs specs to living catalog, refreshes AST graph, and updates system status. |
|
|
226
|
+
| [`asdlc-doctor`](assets/skills/asdlc-doctor/SKILL.md) | 12-invariant diagnostic engine with 1-click automated remediation (`--fix`). |
|
|
227
|
+
| [`asdlc-status`](assets/skills/asdlc-status/SKILL.md) | Real-time change lifecycle dashboard and next actionable command guidance. |
|
|
158
228
|
|
|
159
229
|
---
|
|
160
230
|
|
|
161
|
-
## What `asdlc verify` Checks
|
|
231
|
+
## 🔍 What `asdlc verify` Checks (12 Local & CI Gates)
|
|
162
232
|
|
|
163
|
-
|
|
233
|
+
Every implementation diff must pass the 12 deterministic gates in `asdlc verify`:
|
|
164
234
|
|
|
165
235
|
```mermaid
|
|
166
|
-
flowchart
|
|
167
|
-
V["asdlc verify
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
236
|
+
flowchart TD
|
|
237
|
+
V["<b>asdlc verify <ID></b><br/>Deterministic Implementation Gatekeeper"]
|
|
238
|
+
|
|
239
|
+
subgraph TIER1 ["Tier 1 · Cryptographic & Contract Integrity"]
|
|
240
|
+
G_APPROVED["<b>approved-spec</b><br/>Matches commit on main"]
|
|
241
|
+
G_TAMPER["<b>spec-tamper</b><br/>Zero spec modifications in Impl PR"]
|
|
242
|
+
G_LEVEL["<b>level-integrity</b><br/>Hash-chain tamper check"]
|
|
243
|
+
G_ARTIFACTS["<b>artifacts</b><br/>proposal, tasks, spec delta present"]
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
subgraph TIER2 ["Tier 2 · Code & Test Fidelity (TDD Invariants)"]
|
|
247
|
+
G_PRESENCE["<b>test-presence</b><br/>Code changes mandate test changes"]
|
|
248
|
+
G_TDD["<b>tdd-evidence</b><br/>Recorded test execution logs"]
|
|
249
|
+
G_BDD["<b>BDD + AC Traceability</b><br/>GIVEN/WHEN/THEN + (test: path)"]
|
|
250
|
+
G_TASKS["<b>tasks-complete</b><br/>All tasks checked off in tasks.md"]
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
subgraph TIER3 ["Tier 3 · Scope & Governance Invariants"]
|
|
254
|
+
G_ESCAPE["<b>risk-escape</b><br/>Detects unannounced API/DDL escalations"]
|
|
255
|
+
G_HUMAN["<b>human-gate</b><br/>Enforces Tech Lead sign-off for L2/L3"]
|
|
256
|
+
G_PR["<b>pr-type</b><br/>Path classification & single-PR validation"]
|
|
257
|
+
G_SCHEMA["<b>schema-managed</b><br/>Central install + pinned version"]
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
V --> TIER1
|
|
261
|
+
V --> TIER2
|
|
262
|
+
V --> TIER3
|
|
263
|
+
|
|
264
|
+
classDef rootStyle fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#ffffff,rx:8px,ry:8px;
|
|
265
|
+
classDef tierStyle fill:#020617,stroke:#334155,stroke-width:1.5px,color:#94a3b8;
|
|
266
|
+
classDef gateStyle fill:#0f172a,stroke:#0284c7,stroke-width:1px,color:#f1f5f9,rx:5px,ry:5px;
|
|
267
|
+
|
|
268
|
+
class V rootStyle;
|
|
269
|
+
class TIER1,TIER2,TIER3 tierStyle;
|
|
270
|
+
class G_APPROVED,G_TAMPER,G_LEVEL,G_ARTIFACTS,G_PRESENCE,G_TDD,G_BDD,G_TASKS,G_ESCAPE,G_HUMAN,G_PR,G_SCHEMA gateStyle;
|
|
180
271
|
```
|
|
181
272
|
|
|
182
273
|
---
|
|
183
274
|
|
|
184
|
-
##
|
|
275
|
+
## 🛠️ CLI Reference
|
|
185
276
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
277
|
+
```bash
|
|
278
|
+
asdlc init [--ci jenkins|github] # Scaffold repository with OpenSpec, Graphify, and skills
|
|
279
|
+
asdlc new "<intent>" # Scaffold change with AST explore + grill-me interview
|
|
280
|
+
asdlc lint <ID> # Validate BDD scenarios, AC rules, and coverage
|
|
281
|
+
asdlc pr <ID> <target-branch> # Smart PR creator (auto-handles Spec PR vs Impl PR)
|
|
282
|
+
asdlc approve <ID> # Record approvedSha and transition to ready_for_impl
|
|
283
|
+
asdlc apply <ID> # Guarded implementation launcher (checks approvedSha)
|
|
284
|
+
asdlc test <ID> [--json] # Execute real test runners mapped to AC annotations
|
|
285
|
+
asdlc verify <ID> # Audit diff against all 12 quality gates
|
|
286
|
+
asdlc archive <ID> # Sync delta to living specs and refresh code graph
|
|
287
|
+
asdlc doctor [--fix] # 12-point toolchain & governance health check
|
|
288
|
+
asdlc status [<ID>] # Change progress orientation or portfolio dashboard
|
|
289
|
+
asdlc upgrade [--global] # Seamless upgrade of CLI, engine, and schemas
|
|
290
|
+
```
|
|
193
291
|
|
|
194
292
|
---
|
|
195
293
|
|
|
196
|
-
##
|
|
294
|
+
## 🧪 Development & Verification
|
|
197
295
|
|
|
198
|
-
|
|
199
|
-
|---|---|
|
|
200
|
-
| [docs/usage.md](docs/usage.md) | Practical command-line and developer walkthrough. |
|
|
201
|
-
| [docs/architecture.md](docs/architecture.md) | Complete 3-Plane Architecture & IDE Skill design specification. |
|
|
202
|
-
| [docs/solution-review.md](docs/solution-review.md) | Solution review, gap analysis, and architectural evaluation. |
|
|
203
|
-
| [docs/glossary.md](docs/glossary.md) | Formally locked domain model and SDLC vocabulary. |
|
|
204
|
-
| [docs/blueprint.html](docs/blueprint.html) | Enterprise Agentic SDLC Blueprint (English). |
|
|
205
|
-
| [docs/blueprint.zh.html](docs/blueprint.zh.html) | Enterprise Agentic SDLC Blueprint (Chinese). |
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## Development & Verification
|
|
296
|
+
`agentic-sdlc` is built to enterprise testing standards. Every feature is backed by rigorous unit, integration, and simulation tests:
|
|
210
297
|
|
|
211
298
|
```bash
|
|
299
|
+
git clone https://github.com/akjamie/agentic-sdlc.git
|
|
300
|
+
cd agentic-sdlc
|
|
212
301
|
npm install
|
|
213
|
-
|
|
302
|
+
|
|
303
|
+
# Run complete test suite (128 tests passing, 100% pass rate)
|
|
304
|
+
npm test
|
|
305
|
+
|
|
306
|
+
# Run end-to-end multi-language simulation tests
|
|
307
|
+
node --test test/simulation.test.js
|
|
214
308
|
```
|
|
215
309
|
|
|
216
310
|
---
|
|
217
311
|
|
|
218
|
-
##
|
|
312
|
+
## 🤝 Community & Contributing
|
|
313
|
+
|
|
314
|
+
We welcome contributions from developers, architects, and researchers advancing the state of Agentic Software Engineering!
|
|
315
|
+
|
|
316
|
+
- **Contributing Guide**: Check out [CONTRIBUTING.md](CONTRIBUTING.md) for local setup, development conventions, and PR expectations.
|
|
317
|
+
- **Architectural Specs**: Read [docs/architecture.md](docs/architecture.md) for deep dives on the 3-plane model.
|
|
318
|
+
- **Enterprise Blueprint**: Browse [docs/blueprint.html](docs/blueprint.html) (or [Chinese version](docs/blueprint.zh.html)) for enterprise deployment patterns.
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## 📄 License & Attribution
|
|
323
|
+
|
|
324
|
+
Distributed under the **Apache-2.0 License**. See [LICENSE](LICENSE) and [NOTICE](NOTICE) for details.
|
|
219
325
|
|
|
220
|
-
|
|
326
|
+
```markdown
|
|
327
|
+
Project: agentic-sdlc (Enterprise Agentic SDLC Governance)
|
|
328
|
+
Author: Jamie Zhang (@akjamie)
|
|
329
|
+
Repository: https://github.com/akjamie/agentic-sdlc
|
|
330
|
+
```
|