agjan 0.0.26 → 0.0.28
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/dist/cli.js +7 -5
- package/dist/commands/check.js +14 -2
- package/dist/commands/discover.js +7 -3
- package/dist/commands/fix.js +8 -4
- package/dist/commands/gates.js +76 -3
- package/dist/commands/log.js +3 -2
- package/dist/commands/map.js +10 -5
- package/dist/commands/new.js +8 -4
- package/dist/commands/status.js +83 -9
- package/dist/commands/team.js +14 -9
- package/dist/commands/workflow.js +45 -16
- package/dist/customization.js +172 -0
- package/dist/imports.js +10 -0
- package/dist/plan.js +3 -1
- package/dist/progress-view.js +4 -2
- package/dist/review-policy.js +14 -6
- package/dist/review.js +19 -6
- package/dist/teams.js +84 -24
- package/dist/workflow-skill.js +61 -0
- package/dist/workflow-view.js +77 -15
- package/docs/guide.md +87 -1
- package/docs/workflows-and-teams.md +14 -5
- package/kit/skills/agjan-build/SKILL.md +16 -0
- package/kit/skills/agjan-design/SKILL.md +16 -0
- package/kit/skills/agjan-discover/SKILL.md +17 -1
- package/kit/skills/agjan-fix/SKILL.md +16 -0
- package/kit/skills/agjan-map/SKILL.md +16 -0
- package/kit/skills/agjan-spec/SKILL.md +16 -0
- package/kit/skills/agjan-verify/SKILL.md +16 -0
- package/package.json +1 -1
- package/schemas/approvals.schema.json +2 -1
- package/schemas/config.schema.json +84 -8
- package/schemas/reviews.schema.json +1 -1
|
@@ -8,6 +8,22 @@ description: Map an existing application for agjan. Writes the short architectur
|
|
|
8
8
|
Give later specs and designs the picture of the application: what exists and where.
|
|
9
9
|
The merge of this branch is its approval.
|
|
10
10
|
|
|
11
|
+
## Your team
|
|
12
|
+
|
|
13
|
+
Once the unit exists, `npx agjan status` shows its team: the `team` row lists the skills
|
|
14
|
+
your role works with (read them next to the ones this skill names), and each `follow` row is
|
|
15
|
+
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
16
|
+
skill or with the user, this skill and the user win.
|
|
17
|
+
|
|
18
|
+
## Your workflow's extras
|
|
19
|
+
|
|
20
|
+
The project can add review steps and gates to this workflow (`npx agjan workflow show
|
|
21
|
+
<workflow>` lists them). When `npx agjan status` names a due review step this skill does not
|
|
22
|
+
name, run it like this skill's own reviews: delegate it, on its own, to the reviewer agent
|
|
23
|
+
`status` names, with the prompt `Review step <step> of <the unit's kind> <slug>.`, and fix its
|
|
24
|
+
blockers within the round limit. A gate it names is the user's: request it (`npx agjan log
|
|
25
|
+
--gate-requested <gate>`) and ask them to run `npx agjan approve <gate>` in a terminal.
|
|
26
|
+
|
|
11
27
|
## 1. Start
|
|
12
28
|
|
|
13
29
|
On a branch of its own, without features or fixes. If you are on the base branch:
|
|
@@ -9,6 +9,22 @@ argument-hint: <what the user wants>
|
|
|
9
9
|
Turn the user's request into an approved-ready `spec.md`, then decide light or full
|
|
10
10
|
design. You write; the agjan reviewer checks; the human approves.
|
|
11
11
|
|
|
12
|
+
## Your team
|
|
13
|
+
|
|
14
|
+
Once the unit exists, `npx agjan status` shows its team: the `team` row lists the skills
|
|
15
|
+
your role works with (read them next to the ones this skill names), and each `follow` row is
|
|
16
|
+
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
17
|
+
skill or with the user, this skill and the user win.
|
|
18
|
+
|
|
19
|
+
## Your workflow's extras
|
|
20
|
+
|
|
21
|
+
The project can add review steps and gates to this workflow (`npx agjan workflow show
|
|
22
|
+
<workflow>` lists them). When `npx agjan status` names a due review step this skill does not
|
|
23
|
+
name, run it like this skill's own reviews: delegate it, on its own, to the reviewer agent
|
|
24
|
+
`status` names, with the prompt `Review step <step> of <the unit's kind> <slug>.`, and fix its
|
|
25
|
+
blockers within the round limit. A gate it names is the user's: request it (`npx agjan log
|
|
26
|
+
--gate-requested <gate>`) and ask them to run `npx agjan approve <gate>` in a terminal.
|
|
27
|
+
|
|
12
28
|
## 1. Start, continue or revise
|
|
13
29
|
|
|
14
30
|
Run `npx agjan status`. It shows the features this branch carries:
|
|
@@ -8,6 +8,22 @@ description: Verify a built agjan feature. Full build, tests and lint, the basel
|
|
|
8
8
|
Prove that the feature is complete and consistent, and hand it to the human, who
|
|
9
9
|
accepts it (Gate 3, `npx agjan approve verify`).
|
|
10
10
|
|
|
11
|
+
## Your team
|
|
12
|
+
|
|
13
|
+
Once the unit exists, `npx agjan status` shows its team: the `team` row lists the skills
|
|
14
|
+
your role works with (read them next to the ones this skill names), and each `follow` row is
|
|
15
|
+
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
16
|
+
skill or with the user, this skill and the user win.
|
|
17
|
+
|
|
18
|
+
## Your workflow's extras
|
|
19
|
+
|
|
20
|
+
The project can add review steps and gates to this workflow (`npx agjan workflow show
|
|
21
|
+
<workflow>` lists them). When `npx agjan status` names a due review step this skill does not
|
|
22
|
+
name, run it like this skill's own reviews: delegate it, on its own, to the reviewer agent
|
|
23
|
+
`status` names, with the prompt `Review step <step> of <the unit's kind> <slug>.`, and fix its
|
|
24
|
+
blockers within the round limit. A gate it names is the user's: request it (`npx agjan log
|
|
25
|
+
--gate-requested <gate>`) and ask them to run `npx agjan approve <gate>` in a terminal.
|
|
26
|
+
|
|
11
27
|
## Arriving in auto mode
|
|
12
28
|
|
|
13
29
|
In auto mode you reach this skill from the previous one within one run, through `npx agjan skill verify`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agjan",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "Agentic engineering harness for AI coding agents: role agents, human approval gates, independent review and CI-enforced checks. SAP BTP first.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentic-engineering",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"kit": { "type": "string" },
|
|
34
34
|
"created_at_utc": { "$ref": "#/$defs/utc" },
|
|
35
35
|
"kind": { "enum": ["fix", "map", "discovery"] },
|
|
36
|
+
"workflow": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,31}$", "description": "A workflow of the project's own the unit runs (decision 95)." },
|
|
36
37
|
"team": {
|
|
37
38
|
"description": "The team the unit started with, and the hash of its definition then (decision 92).",
|
|
38
39
|
"type": "object",
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"additionalProperties": false
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
|
-
"additionalProperties":
|
|
67
|
+
"additionalProperties": { "$ref": "#/$defs/stamp", "description": "An extra gate of the unit's workflow, approved by a person (decision 95)." }
|
|
67
68
|
},
|
|
68
69
|
"amendments": {
|
|
69
70
|
"type": "array",
|
|
@@ -34,27 +34,85 @@
|
|
|
34
34
|
"required": ["description", "workflows", "personas"],
|
|
35
35
|
"properties": {
|
|
36
36
|
"description": { "type": "string" },
|
|
37
|
-
"workflows": { "type": "array", "items": { "
|
|
37
|
+
"workflows": { "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,31}$" }, "minItems": 1, "description": "Built-in workflows (feature, fix, map, discovery) or ones under \"workflows\"." },
|
|
38
38
|
"personas": {
|
|
39
|
+
"description": "A persona per role (implementer, reviewer, tester, analyst, or one under \"roles\"): inline, or the name of one under \"personas\".",
|
|
39
40
|
"type": "object",
|
|
40
|
-
"propertyNames": { "enum": ["implementer", "reviewer", "tester", "analyst"] },
|
|
41
41
|
"additionalProperties": {
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
"oneOf": [
|
|
43
|
+
{ "$ref": "#/definitions/persona" },
|
|
44
|
+
{ "type": "string", "minLength": 1 }
|
|
45
|
+
]
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"additionalProperties": false
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
+
"roles": {
|
|
53
|
+
"description": "The project's own roles next to implementer, reviewer, tester and analyst (decision 94): each reaches one agent, which works with its persona too.",
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"required": ["agent"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"agent": { "enum": ["main", "reviewer", "qa"], "description": "main: the main agent; reviewer: the reviewer agents; qa: the QA agent." },
|
|
60
|
+
"description": { "type": "string" }
|
|
61
|
+
},
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"personas": {
|
|
66
|
+
"description": "Named personas teams refer to by name (decision 94).",
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": { "$ref": "#/definitions/persona" }
|
|
69
|
+
},
|
|
52
70
|
"team": {
|
|
53
|
-
"description": "The default team per workflow.",
|
|
71
|
+
"description": "The default team per workflow (built-in or under \"workflows\").",
|
|
54
72
|
"type": "object",
|
|
55
|
-
"propertyNames": { "enum": ["feature", "fix", "map", "discovery"] },
|
|
56
73
|
"additionalProperties": { "type": "string" }
|
|
57
74
|
},
|
|
75
|
+
"workflows": {
|
|
76
|
+
"description": "Extra review steps and gates for the built-in workflows (feature, fix, map, discovery), and the project's own workflows, each based on a built-in one (decision 95).",
|
|
77
|
+
"type": "object",
|
|
78
|
+
"additionalProperties": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"properties": {
|
|
81
|
+
"base": { "enum": ["feature", "fix", "map", "discovery"], "description": "A workflow of the project's own: the built-in workflow it runs on." },
|
|
82
|
+
"description": { "type": "string" },
|
|
83
|
+
"reviews": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"required": ["id", "stage", "description"],
|
|
88
|
+
"properties": {
|
|
89
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,31}$" },
|
|
90
|
+
"stage": { "enum": ["spec", "design", "build", "verify", "fix", "map", "proposal"] },
|
|
91
|
+
"description": { "type": "string", "minLength": 1 },
|
|
92
|
+
"role": { "type": "string", "description": "The role whose persona the reviewer works with: reviewer (default) or a role under \"roles\" with agent reviewer." },
|
|
93
|
+
"tier": { "enum": ["fast", "balanced", "deep"] },
|
|
94
|
+
"rounds": { "type": "integer", "minimum": 1 }
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"gates": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["id", "stage", "description"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,31}$" },
|
|
106
|
+
"stage": { "enum": ["spec", "design", "build", "verify", "fix", "map", "proposal"] },
|
|
107
|
+
"description": { "type": "string", "minLength": 1 }
|
|
108
|
+
},
|
|
109
|
+
"additionalProperties": false
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
115
|
+
},
|
|
58
116
|
"application": { "type": "array", "items": { "type": "string" } },
|
|
59
117
|
"fix": {
|
|
60
118
|
"type": "object",
|
|
@@ -96,6 +154,12 @@
|
|
|
96
154
|
"properties": {
|
|
97
155
|
"build": { "enum": ["area", "task"] },
|
|
98
156
|
"rounds": { "type": "integer", "minimum": 1 },
|
|
157
|
+
"step_rounds": {
|
|
158
|
+
"description": "The round limit of a kind of review step, over rounds.",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"propertyNames": { "enum": ["spec", "design:light", "design", "build", "qa", "verify", "fix", "map", "proposal"] },
|
|
161
|
+
"additionalProperties": { "type": "integer", "minimum": 1 }
|
|
162
|
+
},
|
|
99
163
|
"tiers": { "type": "object", "additionalProperties": { "enum": ["fast", "balanced", "deep"] } },
|
|
100
164
|
"qa": { "enum": ["on", "off"], "description": "The QA step in Verify for full-mode features (default on): the agjan-qa agent writes and runs tests from the spec alone." }
|
|
101
165
|
},
|
|
@@ -143,5 +207,17 @@
|
|
|
143
207
|
"additionalProperties": false
|
|
144
208
|
}
|
|
145
209
|
},
|
|
210
|
+
"definitions": {
|
|
211
|
+
"persona": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"required": ["skills"],
|
|
214
|
+
"properties": {
|
|
215
|
+
"skills": { "type": "array", "items": { "type": "string" } },
|
|
216
|
+
"instructions": { "type": "string" },
|
|
217
|
+
"description": { "type": "string" }
|
|
218
|
+
},
|
|
219
|
+
"additionalProperties": false
|
|
220
|
+
}
|
|
221
|
+
},
|
|
146
222
|
"additionalProperties": false
|
|
147
223
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"additionalProperties": false,
|
|
20
20
|
"properties": {
|
|
21
21
|
"id": { "type": "string", "pattern": "^[A-Z][A-Z0-9]{1,5}-R[1-9][0-9]*$" },
|
|
22
|
-
"step": { "type": "string", "pattern": "^(
|
|
22
|
+
"step": { "type": "string", "pattern": "^(design:light|build:.+|[a-z][a-z0-9-]{1,31})$", "description": "A built-in step, or an extra review step of the unit's workflow (decision 95)." },
|
|
23
23
|
"round": { "type": "integer", "minimum": 1 },
|
|
24
24
|
"at_utc": { "type": "string" },
|
|
25
25
|
"reviewer": {
|