agjan 0.0.27 → 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 +56 -4
- package/dist/commands/team.js +2 -2
- package/dist/commands/workflow.js +35 -10
- package/dist/customization.js +172 -0
- package/dist/plan.js +3 -1
- package/dist/progress-view.js +2 -0
- package/dist/review-policy.js +9 -4
- package/dist/review.js +17 -4
- package/dist/teams.js +27 -12
- package/dist/workflow-skill.js +61 -0
- package/dist/workflow-view.js +71 -15
- package/docs/guide.md +49 -0
- package/docs/workflows-and-teams.md +4 -1
- package/kit/skills/agjan-build/SKILL.md +9 -0
- package/kit/skills/agjan-design/SKILL.md +9 -0
- package/kit/skills/agjan-discover/SKILL.md +9 -0
- package/kit/skills/agjan-fix/SKILL.md +9 -0
- package/kit/skills/agjan-map/SKILL.md +9 -0
- package/kit/skills/agjan-spec/SKILL.md +9 -0
- package/kit/skills/agjan-verify/SKILL.md +9 -0
- package/package.json +1 -1
- package/schemas/approvals.schema.json +2 -1
- package/schemas/config.schema.json +43 -3
- package/schemas/reviews.schema.json +1 -1
package/dist/workflow-view.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BUILT_IN_TEAMS, allTeams, defaultTeam, mainRole, personasFor, teamProblems } from './teams.js';
|
|
2
|
-
import {
|
|
2
|
+
import { reviewerFor, roundLimit, tierOf } from './review-policy.js';
|
|
3
|
+
import { baseOf, extrasOf } from './customization.js';
|
|
4
|
+
import { AgjanError } from './errors.js';
|
|
3
5
|
import { WORKFLOWS } from './workflow.js';
|
|
4
6
|
/** Where a team comes from: agjan, an imported package (`<package>/<team>`), or the project's configuration. */
|
|
5
7
|
export function teamSource(config, name) {
|
|
@@ -7,17 +9,39 @@ export function teamSource(config, name) {
|
|
|
7
9
|
return 'imported';
|
|
8
10
|
return BUILT_IN_TEAMS[name] && !config.teams?.[name] ? 'built-in' : 'project';
|
|
9
11
|
}
|
|
12
|
+
/** The track stage an extra of `stage` shows in: the stage itself for a feature; the review (or approval) stage otherwise. */
|
|
13
|
+
function trackStage(kind, stage, gate) {
|
|
14
|
+
if (kind === 'feature')
|
|
15
|
+
return stage.charAt(0).toUpperCase() + stage.slice(1);
|
|
16
|
+
return kind === 'discovery' && gate ? 'Approval' : 'Review';
|
|
17
|
+
}
|
|
18
|
+
/** Persona entries of a role list as the JSON gives them. */
|
|
19
|
+
function personaEntries(config, personas) {
|
|
20
|
+
return personas.map(({ role, persona }) => ({
|
|
21
|
+
role,
|
|
22
|
+
...(config.roles?.[role]?.description ? { description: config.roles[role].description } : {}),
|
|
23
|
+
skills: persona.skills,
|
|
24
|
+
...(persona.instructions ? { instructions: persona.instructions } : {}),
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
10
27
|
/**
|
|
11
|
-
*
|
|
12
|
-
* the light track (full by
|
|
28
|
+
* A workflow (built-in, or the project's own on a built-in base, decision 95) with the team
|
|
29
|
+
* named (else its default) and, for a feature, the full or the light track (full by
|
|
30
|
+
* default). The workflow's extra reviews follow the stage's own reviews; its extra gates come
|
|
31
|
+
* before the stage's own gate.
|
|
13
32
|
*/
|
|
14
|
-
export function resolveWorkflow(root, config,
|
|
33
|
+
export function resolveWorkflow(root, config, workflowName, options = {}) {
|
|
34
|
+
const kind = baseOf(config, workflowName);
|
|
35
|
+
if (!kind)
|
|
36
|
+
throw new AgjanError(`no workflow '${workflowName}'`);
|
|
15
37
|
const workflow = WORKFLOWS[kind];
|
|
38
|
+
const own = workflowName !== kind;
|
|
16
39
|
const mode = kind === 'feature' ? (options.light ? 'light' : 'full') : null;
|
|
17
|
-
const fallback = defaultTeam(config,
|
|
40
|
+
const fallback = defaultTeam(config, workflowName);
|
|
18
41
|
const name = options.team ?? fallback;
|
|
19
42
|
const team = name ? (allTeams(config)[name] ?? null) : null;
|
|
20
43
|
const qaOff = config.review?.qa === 'off';
|
|
44
|
+
const extras = extrasOf(config, workflowName);
|
|
21
45
|
const stages = workflow.track.map((stage) => ({
|
|
22
46
|
name: stage.name,
|
|
23
47
|
steps: stage.steps
|
|
@@ -31,19 +55,13 @@ export function resolveWorkflow(root, config, kind, options = {}) {
|
|
|
31
55
|
does: step.does,
|
|
32
56
|
role: builtIn,
|
|
33
57
|
persona: builtIn ? (team?.personas[builtIn] ?? null) : null,
|
|
34
|
-
personas:
|
|
35
|
-
role,
|
|
36
|
-
...(config.roles?.[role]?.description ? { description: config.roles[role].description } : {}),
|
|
37
|
-
skills: persona.skills,
|
|
38
|
-
...(persona.instructions ? { instructions: persona.instructions } : {}),
|
|
39
|
-
})),
|
|
58
|
+
personas: personaEntries(config, personas),
|
|
40
59
|
};
|
|
41
60
|
if (step.review) {
|
|
42
|
-
const kindOfStep = stepKind(step.review);
|
|
43
61
|
resolved.agent = reviewerFor(config, step.review);
|
|
44
62
|
resolved.review = {
|
|
45
63
|
step: step.review,
|
|
46
|
-
tier: step.review === 'qa' ? 'qa' : (config.review
|
|
64
|
+
tier: step.review === 'qa' ? 'qa' : tierOf(config, step.review),
|
|
47
65
|
rounds: roundLimit(config, step.review),
|
|
48
66
|
...(step.review === 'build:' ? { per: config.review?.build === 'task' ? 'task' : 'area' } : {}),
|
|
49
67
|
};
|
|
@@ -55,16 +73,54 @@ export function resolveWorkflow(root, config, kind, options = {}) {
|
|
|
55
73
|
return resolved;
|
|
56
74
|
}),
|
|
57
75
|
}));
|
|
76
|
+
// The workflow's extras (decision 95): reviews after the stage's own, gates before its gate.
|
|
77
|
+
for (const r of extras.reviews) {
|
|
78
|
+
const stage = stages.find((st) => st.name === trackStage(kind, r.stage, false));
|
|
79
|
+
if (!stage)
|
|
80
|
+
continue;
|
|
81
|
+
const role = r.role ?? 'reviewer';
|
|
82
|
+
const persona = team?.personas[role] ?? null;
|
|
83
|
+
const step = {
|
|
84
|
+
actor: 'reviewer',
|
|
85
|
+
agent: reviewerFor(config, r.id),
|
|
86
|
+
does: r.description,
|
|
87
|
+
role,
|
|
88
|
+
persona,
|
|
89
|
+
personas: role === 'reviewer' && team ? personaEntries(config, personasFor(config, team, kind, 'reviewer')) : persona ? personaEntries(config, [{ role, persona }]) : [],
|
|
90
|
+
review: { step: r.id, tier: tierOf(config, r.id), rounds: roundLimit(config, r.id) },
|
|
91
|
+
extra: true,
|
|
92
|
+
};
|
|
93
|
+
// Right after the stage's reviews (its own, then earlier extras); else before its gate.
|
|
94
|
+
const lastReview = stage.steps.findLastIndex((x) => x.actor === 'reviewer' || x.actor === 'qa');
|
|
95
|
+
const human = stage.steps.findIndex((x) => x.actor === 'human');
|
|
96
|
+
stage.steps.splice(lastReview !== -1 ? lastReview + 1 : human === -1 ? stage.steps.length : human, 0, step);
|
|
97
|
+
}
|
|
98
|
+
for (const g of extras.gates) {
|
|
99
|
+
const stage = stages.find((st) => st.name === trackStage(kind, g.stage, true));
|
|
100
|
+
if (!stage)
|
|
101
|
+
continue;
|
|
102
|
+
const step = { actor: 'human', agent: 'you', does: g.description, role: null, persona: null, personas: [], gate: { name: g.id, command: `npx agjan approve ${g.id}` }, extra: true };
|
|
103
|
+
const human = stage.steps.findIndex((x) => x.actor === 'human' && !x.extra);
|
|
104
|
+
stage.steps.splice(human === -1 ? stage.steps.length : human, 0, step);
|
|
105
|
+
}
|
|
58
106
|
return {
|
|
59
107
|
schema: 1,
|
|
60
|
-
workflow: {
|
|
108
|
+
workflow: {
|
|
109
|
+
kind: workflowName,
|
|
110
|
+
base: kind,
|
|
111
|
+
name: own ? workflowName : workflow.name,
|
|
112
|
+
...(own && config.workflows?.[workflowName]?.description ? { description: config.workflows[workflowName].description } : {}),
|
|
113
|
+
skill: `/agjan-${own ? workflowName : workflow.skill.replace(/^agjan-/, '')}`,
|
|
114
|
+
end: workflow.end,
|
|
115
|
+
mode,
|
|
116
|
+
},
|
|
61
117
|
team: name
|
|
62
118
|
? {
|
|
63
119
|
name,
|
|
64
120
|
description: team?.description ?? '',
|
|
65
121
|
source: teamSource(config, name),
|
|
66
122
|
default: name === fallback,
|
|
67
|
-
problems: teamProblems(root, config, name,
|
|
123
|
+
problems: teamProblems(root, config, name, workflowName),
|
|
68
124
|
}
|
|
69
125
|
: null,
|
|
70
126
|
stages,
|
package/docs/guide.md
CHANGED
|
@@ -14,6 +14,7 @@ structure around the agents you already use (Claude Code, GitHub Copilot).
|
|
|
14
14
|
- [Small changes and existing applications](#small-changes-and-existing-applications)
|
|
15
15
|
- [Exploring a decision first](#exploring-a-decision-first)
|
|
16
16
|
- [Teams](#teams)
|
|
17
|
+
- [Your own workflows](#your-own-workflows)
|
|
17
18
|
- [Asking questions](#asking-questions)
|
|
18
19
|
- [Commands](#commands)
|
|
19
20
|
- [Configuration](#configuration)
|
|
@@ -520,6 +521,53 @@ fails when an imported file was changed by hand, and CI reports `agjan.imports.j
|
|
|
520
521
|
`npx agjan import remove acme` takes everything out, `npx agjan import list` shows what is
|
|
521
522
|
imported. Agents cannot run `import`.
|
|
522
523
|
|
|
524
|
+
## Your own workflows
|
|
525
|
+
|
|
526
|
+
The built-in workflows keep their steps, but a project can add to them and define workflows of
|
|
527
|
+
its own, under `workflows` in `agjan.config.json`:
|
|
528
|
+
|
|
529
|
+
- **Extra review steps** review what a stage produced (the spec, the design, the build, the whole
|
|
530
|
+
change, the fix, the map, the proposal) with a focus of their own, by the reviewer agent at
|
|
531
|
+
their own tier and round limit, optionally with the persona of one of your roles.
|
|
532
|
+
- **Extra gates** are a person's approval in a terminal (`npx agjan approve <gate>`), stamped like
|
|
533
|
+
the built-in gates: a later change to the stage's documents, or to the files in Build, Verify,
|
|
534
|
+
a fix or a map run, makes the approval stale.
|
|
535
|
+
- **Workflows of your own** run on a built-in one (`base`) with extras of their own: a `hotfix`
|
|
536
|
+
based on `fix`, an `adr` based on `discovery`, a `secure-feature` based on `feature`.
|
|
537
|
+
|
|
538
|
+
```json
|
|
539
|
+
{
|
|
540
|
+
"workflows": {
|
|
541
|
+
"feature": {
|
|
542
|
+
"gates": [{ "id": "po-signoff", "stage": "spec", "description": "The product owner signs off the spec" }],
|
|
543
|
+
"reviews": [{ "id": "security", "stage": "build", "description": "Check the change against our security standard", "role": "security-reviewer", "tier": "deep" }]
|
|
544
|
+
},
|
|
545
|
+
"hotfix": {
|
|
546
|
+
"base": "fix",
|
|
547
|
+
"description": "An urgent production fix, signed off by the on-call lead",
|
|
548
|
+
"reviews": [{ "id": "ops-check", "stage": "fix", "description": "Check rollback and monitoring" }],
|
|
549
|
+
"gates": [{ "id": "lead-signoff", "stage": "fix", "description": "The on-call lead signs off" }]
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"team": { "hotfix": "ops-team" }
|
|
553
|
+
}
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
Extras are required where the stage's own requirements are: an extra review or gate of Spec,
|
|
557
|
+
Design or a discovery's proposal before that stage's gate, of Build and Verify before the
|
|
558
|
+
acceptance (`approve verify`), of a fix or a map run in CI. `npx agjan status` names each one when
|
|
559
|
+
it is due; the workflow skills tell the agent to run an extra review like the stage's own and to
|
|
560
|
+
hand an extra gate to you. A workflow of your own is started by name (`npx agjan new <slug> --key
|
|
561
|
+
<KEY> --workflow secure-feature`, `fix start … --workflow hotfix`, `map start --workflow …`,
|
|
562
|
+
`discover start … --workflow adr`); the unit records it. `agjan sync` writes its skill,
|
|
563
|
+
`/agjan-<name>`, generated from the configuration; remove the folder yourself when you remove the
|
|
564
|
+
workflow. Teams serve it by name, else its base's default team works for it.
|
|
565
|
+
|
|
566
|
+
Extras add to a workflow; nothing can remove a built-in step, review, gate or control. Names are
|
|
567
|
+
lowercase letters, digits and `-`, unique across all workflows, and not one of agjan's own
|
|
568
|
+
(`check` reports mistakes). `npx agjan workflow list` and `npx agjan workflow show <workflow>`
|
|
569
|
+
show the result, extras marked.
|
|
570
|
+
|
|
523
571
|
## Asking questions
|
|
524
572
|
|
|
525
573
|
**`/agjan-ask`** answers a general question about SAP CAP, Fiori and UI5, SAP BTP,
|
|
@@ -632,6 +680,7 @@ is wrong, so a typo is never a silent default.
|
|
|
632
680
|
| `mcp.servers.<name>` | documentation MCP servers: `command`, `args`, `env`, `areas`, `enabled` |
|
|
633
681
|
| `teams`, `team` | your own teams, and the default team per workflow ([Teams](#teams)) |
|
|
634
682
|
| `roles`, `personas` | your own roles, each reaching the main agent, the reviewer or the QA agent, and named personas teams refer to ([Teams](#teams)) |
|
|
683
|
+
| `workflows` | extra review steps and gates for the built-in workflows, and workflows of your own based on them ([Your own workflows](#your-own-workflows)) |
|
|
635
684
|
| `ci.policy_changes`, `ci.untracked_changes` | `warn` or `fail` in `check --ci`; CI reads them from the base branch, so a pull request cannot lower them for itself |
|
|
636
685
|
|
|
637
686
|
`npx agjan status` prints the language, the round limit and the attempts in its first
|
|
@@ -15,7 +15,7 @@ shows how to use them.
|
|
|
15
15
|
|
|
16
16
|
| Term | What it is | Examples | Where it is defined |
|
|
17
17
|
|---|---|---|---|
|
|
18
|
-
| **Workflow** | A kind of work and its
|
|
18
|
+
| **Workflow** | A kind of work and its steps: stages, independent reviews, the approvals you give, and what it may change. | feature, fix, map, discovery; your own, such as a hotfix | Built into agjan; a project adds review steps and gates under `workflows`, and workflows of its own based on a built-in one. |
|
|
19
19
|
| **Team** | A named group of personas for one or more workflows. It decides the knowledge, never the steps. | sap-delivery, sap-maintenance, sap-discovery | Built into agjan, imported from a package, or in the project's `agjan.config.json`. |
|
|
20
20
|
| **Persona** | A role inside a team, with the skills (and optional instructions) that role works with. | the reviewer of sap-delivery | Inside its team, or defined once under `personas` in `agjan.config.json` and named by several teams. |
|
|
21
21
|
| **Skill** | A folder of instructions and references an agent reads for a specialty. | cap-developer, solution-reviewer, qa-tester | `.claude/skills/<name>/SKILL.md`: agjan's own, the project's own, or imported. |
|
|
@@ -73,6 +73,9 @@ The rules behind the arrows:
|
|
|
73
73
|
`review.step_rounds` for one kind of step (for example 5 for the design review).
|
|
74
74
|
- A team cannot remove a step. Every workflow keeps an independent review, approvals
|
|
75
75
|
stamped by a script, scope checks, and a person who decides at the end.
|
|
76
|
+
- A project can add extra review steps and gates to a workflow, and define workflows of its
|
|
77
|
+
own on a built-in base (a `hotfix` on `fix`): see [Your own workflows](guide.md#your-own-workflows).
|
|
78
|
+
They add steps; they never remove one.
|
|
76
79
|
|
|
77
80
|
## The workflows
|
|
78
81
|
|
|
@@ -15,6 +15,15 @@ your role works with (read them next to the ones this skill names), and each `fo
|
|
|
15
15
|
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
16
16
|
skill or with the user, this skill and the user win.
|
|
17
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
|
+
|
|
18
27
|
## Arriving in auto mode
|
|
19
28
|
|
|
20
29
|
In auto mode you reach this skill from the previous one within one run, through `npx agjan skill build`.
|
|
@@ -15,6 +15,15 @@ your role works with (read them next to the ones this skill names), and each `fo
|
|
|
15
15
|
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
16
16
|
skill or with the user, this skill and the user win.
|
|
17
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
|
+
|
|
18
27
|
## Arriving in auto mode
|
|
19
28
|
|
|
20
29
|
In auto mode you reach this skill from the previous one within one run, through `npx agjan skill design`.
|
|
@@ -18,6 +18,15 @@ your role works with (read them next to the ones this skill names), and each `fo
|
|
|
18
18
|
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
19
19
|
skill or with the user, this skill and the user win.
|
|
20
20
|
|
|
21
|
+
## Your workflow's extras
|
|
22
|
+
|
|
23
|
+
The project can add review steps and gates to this workflow (`npx agjan workflow show
|
|
24
|
+
<workflow>` lists them). When `npx agjan status` names a due review step this skill does not
|
|
25
|
+
name, run it like this skill's own reviews: delegate it, on its own, to the reviewer agent
|
|
26
|
+
`status` names, with the prompt `Review step <step> of <the unit's kind> <slug>.`, and fix its
|
|
27
|
+
blockers within the round limit. A gate it names is the user's: request it (`npx agjan log
|
|
28
|
+
--gate-requested <gate>`) and ask them to run `npx agjan approve <gate>` in a terminal.
|
|
29
|
+
|
|
21
30
|
## 1. Start
|
|
22
31
|
|
|
23
32
|
- If you are on the base branch, the work needs a branch of its own. `npx agjan status`
|
|
@@ -15,6 +15,15 @@ your role works with (read them next to the ones this skill names), and each `fo
|
|
|
15
15
|
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
16
16
|
skill or with the user, this skill and the user win.
|
|
17
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
|
+
|
|
18
27
|
## 1. Is it a fix?
|
|
19
28
|
|
|
20
29
|
A fix changes existing files only (new files only for tests), stays within the
|
|
@@ -15,6 +15,15 @@ your role works with (read them next to the ones this skill names), and each `fo
|
|
|
15
15
|
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
16
16
|
skill or with the user, this skill and the user win.
|
|
17
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
|
+
|
|
18
27
|
## 1. Start
|
|
19
28
|
|
|
20
29
|
On a branch of its own, without features or fixes. If you are on the base branch:
|
|
@@ -16,6 +16,15 @@ your role works with (read them next to the ones this skill names), and each `fo
|
|
|
16
16
|
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
17
17
|
skill or with the user, this skill and the user win.
|
|
18
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
|
+
|
|
19
28
|
## 1. Start, continue or revise
|
|
20
29
|
|
|
21
30
|
Run `npx agjan status`. It shows the features this branch carries:
|
|
@@ -15,6 +15,15 @@ your role works with (read them next to the ones this skill names), and each `fo
|
|
|
15
15
|
an instruction of your team for you. Follow those instructions; where one conflicts with this
|
|
16
16
|
skill or with the user, this skill and the user win.
|
|
17
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
|
+
|
|
18
27
|
## Arriving in auto mode
|
|
19
28
|
|
|
20
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,7 +34,7 @@
|
|
|
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
39
|
"description": "A persona per role (implementer, reviewer, tester, analyst, or one under \"roles\"): inline, or the name of one under \"personas\".",
|
|
40
40
|
"type": "object",
|
|
@@ -68,11 +68,51 @@
|
|
|
68
68
|
"additionalProperties": { "$ref": "#/definitions/persona" }
|
|
69
69
|
},
|
|
70
70
|
"team": {
|
|
71
|
-
"description": "The default team per workflow.",
|
|
71
|
+
"description": "The default team per workflow (built-in or under \"workflows\").",
|
|
72
72
|
"type": "object",
|
|
73
|
-
"propertyNames": { "enum": ["feature", "fix", "map", "discovery"] },
|
|
74
73
|
"additionalProperties": { "type": "string" }
|
|
75
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
|
+
},
|
|
76
116
|
"application": { "type": "array", "items": { "type": "string" } },
|
|
77
117
|
"fix": {
|
|
78
118
|
"type": "object",
|
|
@@ -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": {
|