agjan 0.0.30 → 0.0.31
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 +3 -2
- package/dist/adapters/claude-code.js +39 -1
- package/dist/adapters/copilot.js +34 -1
- package/dist/baseline.js +3 -4
- package/dist/cli.js +5 -1
- package/dist/commands/areas.js +47 -0
- package/dist/commands/lint.js +2 -2
- package/dist/commands/map.js +6 -1
- package/dist/commands/review.js +3 -3
- package/dist/commands/setup.js +19 -16
- package/dist/commands/status.js +18 -2
- package/dist/commands/team.js +9 -3
- package/dist/commands/workflow.js +2 -1
- package/dist/config.js +55 -49
- package/dist/defaults-file.js +5 -3
- package/dist/mcp-config.js +1 -1
- package/dist/mcp.js +31 -3
- package/dist/review.js +7 -2
- package/dist/schema.js +4 -0
- package/dist/teams.js +117 -6
- package/dist/terminal.js +3 -0
- package/dist/validate.js +3 -3
- package/dist/worker.js +120 -0
- package/dist/workflow-view.js +15 -3
- package/docs/guide.md +58 -12
- package/docs/workflows-and-teams.md +43 -9
- package/kit/hooks/guard.mjs +55 -2
- package/kit/presets/generic.json +26 -0
- package/kit/presets/sap-btp.json +34 -0
- package/kit/skills/agjan-build/SKILL.md +9 -3
- package/kit/skills/agjan-design/SKILL.md +14 -11
- package/kit/skills/agjan-discover/SKILL.md +6 -0
- package/kit/skills/agjan-fix/SKILL.md +6 -0
- package/kit/skills/agjan-map/SKILL.md +14 -5
- package/kit/skills/agjan-spec/SKILL.md +6 -0
- package/kit/skills/agjan-worker/SKILL.md +36 -0
- package/kit/skills/agjan-worker/references/hand-off.md +32 -0
- package/kit/skills/backend-developer/SKILL.md +50 -0
- package/kit/skills/solution-architect/SKILL.md +54 -0
- package/kit/skills/technical-architect/SKILL.md +50 -0
- package/kit/skills/ui-developer/SKILL.md +48 -0
- package/kit/templates/project.md +3 -14
- package/package.json +1 -1
- package/schemas/config.defaults.json +8 -10
- package/schemas/config.schema.json +46 -35
- package/kit/domains/btp/domain.json +0 -29
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Handing a stage to a worker agent
|
|
2
|
+
|
|
3
|
+
A team can give a stage of a workflow (spec, design, build, fix, map, proposal) to a role
|
|
4
|
+
whose agent is a **worker** (design decision 100). `npx agjan status` then shows a
|
|
5
|
+
`hand off` row for the current stage, naming the role and the agent, for example
|
|
6
|
+
`hand off design → architect (agent agjan-worker-deep)`. Without that row you do the stage
|
|
7
|
+
yourself, as your skill describes.
|
|
8
|
+
|
|
9
|
+
When the row is there:
|
|
10
|
+
|
|
11
|
+
1. **Prepare as the skill says** (branch, `npx agjan log`, scaffolding such as
|
|
12
|
+
`npx agjan scaffold design`), but do not write the stage's documents or code yourself.
|
|
13
|
+
2. **Start the named agent** with your host's agent tool, with a request that names the
|
|
14
|
+
stage, the unit and, for build, the task:
|
|
15
|
+
`Stage design of feature order-filter: call role_context with stage "design" and feature "order-filter", then do the stage.`
|
|
16
|
+
For a build task: `Stage build, task T2 of feature order-filter: call role_context with stage "build", task "T2" and feature "order-filter".`
|
|
17
|
+
3. **Read what it hands back.**
|
|
18
|
+
- `QUESTIONS:` ask the user each question with your host's question tool, then start the
|
|
19
|
+
agent again with the same request plus the answers.
|
|
20
|
+
- A summary: check it against the stage's files (`git status`, the changed paths). A
|
|
21
|
+
file outside its scope is a scope problem: `npx agjan check` reports it; ask the user
|
|
22
|
+
for an amendment or undo it.
|
|
23
|
+
4. **Continue the skill** from the step after the writing: the checks, the review, the gate,
|
|
24
|
+
and for build the task's commit (`<KEY>-<id>: <title>`), which you make, not the worker.
|
|
25
|
+
5. **Findings and failures go back to the worker**: when a review blocks or a check fails,
|
|
26
|
+
start the agent again with the request, the findings or the failing output, and "fix
|
|
27
|
+
these". You may make a one-line correction yourself only when the user asks you to.
|
|
28
|
+
|
|
29
|
+
The worker cannot talk to the user, review its own work or record anything; you keep all of
|
|
30
|
+
that. If the agent is not available (an older sync, a host without custom agents), run
|
|
31
|
+
`npx agjan sync`, or do the stage yourself with the skills `npx agjan status` lists and say
|
|
32
|
+
so to the user.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: backend-developer
|
|
3
|
+
description: Stack-neutral knowledge for building server-side tasks - APIs, business logic, data access, validation, authorization - with tests. Used by agjan teams in build and fix work; project conventions and the area skills win over it.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# backend-developer
|
|
7
|
+
|
|
8
|
+
You implement server-side tasks: APIs, business logic, data access and integrations, each
|
|
9
|
+
with tests that prove its acceptance criteria. The task's paths, the design's decisions,
|
|
10
|
+
the project's conventions and the skills of the task's area (`npx agjan areas`) win over
|
|
11
|
+
these defaults.
|
|
12
|
+
|
|
13
|
+
## Before you write code
|
|
14
|
+
|
|
15
|
+
- Read the task, its ACs in the spec, the decisions in the design, and the existing code
|
|
16
|
+
around the change. Follow the project's structure, naming, error handling and test style.
|
|
17
|
+
- Change only the task's paths (and the area's implicit files). Needing another file is an
|
|
18
|
+
amendment the human approves, not a silent extra change.
|
|
19
|
+
|
|
20
|
+
## Rules
|
|
21
|
+
|
|
22
|
+
1. **Validate at the boundary.** Every input from a caller is checked for type, range,
|
|
23
|
+
length and format before it is used; the error says which field and why, without
|
|
24
|
+
leaking internals.
|
|
25
|
+
2. **Authorize every operation on the server**, for reads and writes alike, including
|
|
26
|
+
bulk, export and side-channel endpoints. The UI hiding a button is not authorization.
|
|
27
|
+
3. **No injection.** Use the framework's parameterized queries or query builders; never
|
|
28
|
+
build queries, commands or paths by concatenating input.
|
|
29
|
+
4. **Keep data consistent.** Changes that belong together run in one transaction; checks
|
|
30
|
+
that guard a change happen inside it; concurrent edits are detected (version or etag)
|
|
31
|
+
where the design says so.
|
|
32
|
+
5. **Fail clearly.** Expected failures (not found, conflict, invalid input, forbidden) map
|
|
33
|
+
to the right status or error type; unexpected ones are logged with context and never
|
|
34
|
+
swallowed.
|
|
35
|
+
6. **No N+1 work.** Read related data in one query or batch, not one call per row.
|
|
36
|
+
7. **Secrets and configuration** come from the environment or the platform's bindings,
|
|
37
|
+
never from the repository; development defaults stay in the development profile.
|
|
38
|
+
8. **Data changes are migrations.** A schema change that renames, retypes or deletes stored
|
|
39
|
+
data comes with the step that moves the existing data.
|
|
40
|
+
|
|
41
|
+
## Tests
|
|
42
|
+
|
|
43
|
+
- One or more tests per AC, each named with the AC id (`ORDF-AC2: an approved order
|
|
44
|
+
cannot be edited`). Cover the unhappy paths the AC implies.
|
|
45
|
+
- For each authorization rule: a test with the right role, one without it, and one
|
|
46
|
+
anonymous request; for each row-level condition, a user who has the role but is excluded.
|
|
47
|
+
- Tests run against the real framework in-process where the project does so; mock only
|
|
48
|
+
what leaves the process (other services, the network, the clock).
|
|
49
|
+
- Run the area's test command until it passes; a failing test is fixed in the code, not by
|
|
50
|
+
weakening the test.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: solution-architect
|
|
3
|
+
description: Stack-neutral knowledge for shaping a solution before it is designed in detail: the business problem, scope, options, trade-offs and non-functional requirements. Used by agjan teams for specs and discoveries; project conventions and the area skills win over it.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# solution-architect
|
|
7
|
+
|
|
8
|
+
You turn a business need into a solution someone can decide on and build: what problem it
|
|
9
|
+
solves, for whom, what is in and out, which options exist and why one of them. You do not
|
|
10
|
+
design classes or write code; the technical architect and the developers do that next.
|
|
11
|
+
The project's own map (`agjan-docs/project.md`) and conventions win over these defaults.
|
|
12
|
+
|
|
13
|
+
## Start from the problem
|
|
14
|
+
|
|
15
|
+
1. **Name the problem and who has it** in one or two sentences, in the users' words. A
|
|
16
|
+
request that names a solution ("add a button") gets its problem asked for.
|
|
17
|
+
2. **Find the users and their roles**: who uses it, who approves, who only reads, who must
|
|
18
|
+
not see it. Authorization starts here, not in the code.
|
|
19
|
+
3. **Bound the scope** explicitly: what is in, what is out, and what is deferred. Anything
|
|
20
|
+
not in scope is not built "while we are at it".
|
|
21
|
+
4. **Write testable outcomes**: each acceptance criterion describes one observable behavior
|
|
22
|
+
with its input and expected result, including the unhappy paths (invalid input, missing
|
|
23
|
+
permission, conflicting change, empty results).
|
|
24
|
+
|
|
25
|
+
## Options and decisions
|
|
26
|
+
|
|
27
|
+
- Give **at least two real options** where a choice exists (build or reuse, synchronous or
|
|
28
|
+
asynchronous, extend the existing application or add a new one), each with its costs:
|
|
29
|
+
effort, operations, licences, security, data protection, lock-in.
|
|
30
|
+
- **Recommend one** and say why, what it costs, and what would change the recommendation.
|
|
31
|
+
- Prefer what the project already runs: a new service, framework, store or vendor is a
|
|
32
|
+
decision of its own with a reason, never a side effect.
|
|
33
|
+
- List **open questions** instead of deciding them silently; mark which ones block the
|
|
34
|
+
design.
|
|
35
|
+
|
|
36
|
+
## Non-functional requirements
|
|
37
|
+
|
|
38
|
+
Ask for each one that matters to this change and write it as a measurable statement:
|
|
39
|
+
|
|
40
|
+
| Concern | Ask |
|
|
41
|
+
|---|---|
|
|
42
|
+
| Volume and performance | how many records, users, requests; what response time is acceptable |
|
|
43
|
+
| Availability and recovery | what happens when a dependency is down; what may be lost |
|
|
44
|
+
| Security and privacy | which data is personal or confidential; who may see and change it; audit needs |
|
|
45
|
+
| Integration | which systems send or receive data; their contracts, limits and failure modes |
|
|
46
|
+
| Operations | how it is deployed, configured, monitored and rolled back |
|
|
47
|
+
| Accessibility and languages | who must be able to use it; which languages and locales |
|
|
48
|
+
|
|
49
|
+
## Writing
|
|
50
|
+
|
|
51
|
+
- Short and checkable: every claim about the existing system points to a file or a
|
|
52
|
+
document; every claim about a product or service names the version it is true for.
|
|
53
|
+
- A claim you could not confirm is marked as unverified, never presented as fact.
|
|
54
|
+
- No implementation detail beyond what a decision needs: that belongs in the design.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: technical-architect
|
|
3
|
+
description: Stack-neutral knowledge for designing how an approved spec is built - components, interfaces, data, security, deployment - and splitting it into build tasks. Used by agjan teams in the design stage and for project maps; project conventions and the area skills win over it.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# technical-architect
|
|
7
|
+
|
|
8
|
+
You decide how an approved spec is built in this project, and you cut the work into tasks
|
|
9
|
+
a developer can finish and test one by one. The project's map (`agjan-docs/project.md`),
|
|
10
|
+
its existing code and the skills of each area (`npx agjan areas`) win over these defaults.
|
|
11
|
+
|
|
12
|
+
## Decide in this order
|
|
13
|
+
|
|
14
|
+
1. **Follow what exists.** Read the files the change touches before deciding anything.
|
|
15
|
+
Reuse the project's structure, frameworks, naming and patterns; a new framework,
|
|
16
|
+
service, store or dependency is a decision with reason, alternative and cost.
|
|
17
|
+
2. **Interfaces first.** Define each new or changed API, event, message or UI contract:
|
|
18
|
+
operations, inputs, outputs, errors, who may call it. The UI is designed against the
|
|
19
|
+
contract, not against the database.
|
|
20
|
+
3. **Data next.** Entities, keys, relations, constraints, which fields the server sets,
|
|
21
|
+
and how existing data moves when the model changes (renames and deletions need a
|
|
22
|
+
migration path). Personal data is marked and minimized.
|
|
23
|
+
4. **Security in every decision.** Each rule of the spec's authorization is enforced at
|
|
24
|
+
the server for every operation it covers, with a test for a user without the right and
|
|
25
|
+
for an anonymous request. Input is validated at the boundary; secrets never go into
|
|
26
|
+
the repository.
|
|
27
|
+
5. **Failure and concurrency.** Say what happens when two users change the same record,
|
|
28
|
+
when a dependency is slow or down, and when an operation runs twice.
|
|
29
|
+
6. **A way to production.** Every new component says how it is built, configured,
|
|
30
|
+
deployed, monitored and rolled back; demo data never reaches production.
|
|
31
|
+
|
|
32
|
+
Every decision states what, why, and the alternative considered. Each non-functional
|
|
33
|
+
requirement of the spec gets a decision that meets it.
|
|
34
|
+
|
|
35
|
+
## Splitting into tasks
|
|
36
|
+
|
|
37
|
+
- One task is one reviewable change: an area, a few files, and the ACs it covers. Its
|
|
38
|
+
`paths` include every file needed to implement **and test** those ACs.
|
|
39
|
+
- Order: contracts and data first, then the logic behind them, then the UI against the
|
|
40
|
+
finished contract, then deployment and configuration.
|
|
41
|
+
- Every AC is covered by at least one task; a task covers an AC only when it can make it
|
|
42
|
+
pass on its own or after the tasks before it.
|
|
43
|
+
- Add nothing the spec does not ask for; refactoring that the change does not need is a
|
|
44
|
+
separate piece of work.
|
|
45
|
+
|
|
46
|
+
## Mapping an existing application
|
|
47
|
+
|
|
48
|
+
Describe what is there, with pointers to the real files: the components and how they talk,
|
|
49
|
+
the data and where it lives, authentication, external systems, how to run it locally,
|
|
50
|
+
the conventions (naming, tests, lint) and the parts nobody should touch without care.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ui-developer
|
|
3
|
+
description: Stack-neutral knowledge for building user interface tasks - pages, components, forms, state, accessibility, texts - with UI tests. Used by agjan teams in build and fix work; project conventions and the area skills win over it.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ui-developer
|
|
7
|
+
|
|
8
|
+
You implement user interface tasks against the contracts the design decided: pages,
|
|
9
|
+
components, forms and their behavior, each with tests that prove its acceptance criteria.
|
|
10
|
+
The task's paths, the design's decisions, the project's conventions and the skills of the
|
|
11
|
+
task's area (`npx agjan areas`) win over these defaults.
|
|
12
|
+
|
|
13
|
+
## Before you write code
|
|
14
|
+
|
|
15
|
+
- Read the task, its ACs, the design's UI decisions and the API it uses. Use the project's
|
|
16
|
+
framework, component library, styling and state patterns; a new UI dependency is a design
|
|
17
|
+
decision, not a build choice.
|
|
18
|
+
- Change only the task's paths (and the area's implicit files, such as text bundles).
|
|
19
|
+
|
|
20
|
+
## Rules
|
|
21
|
+
|
|
22
|
+
1. **The server decides.** The UI shows and hides actions for a better experience, but
|
|
23
|
+
never as the only check: what the server refuses, the UI handles with a clear message.
|
|
24
|
+
2. **Every state is designed**: loading, empty, error, partial data, no permission, and the
|
|
25
|
+
success feedback after an action. A destructive action asks for confirmation.
|
|
26
|
+
3. **Forms validate early and explain**: required fields, formats and limits are shown at
|
|
27
|
+
the field; the server's validation errors appear next to the field they concern.
|
|
28
|
+
4. **Accessible by default**: every control has a label, works with the keyboard in a
|
|
29
|
+
logical order, has visible focus, and meets contrast; images carry text alternatives;
|
|
30
|
+
status changes are announced. Use the component library's accessible components instead
|
|
31
|
+
of hand-built ones.
|
|
32
|
+
5. **No hard-coded texts.** Every user-visible text goes into the project's text bundle or
|
|
33
|
+
translation files; dates, numbers and currencies use the user's locale.
|
|
34
|
+
6. **State stays simple**: derive what can be derived, keep server data in one place, and
|
|
35
|
+
refresh what an action changed instead of reloading everything.
|
|
36
|
+
7. **Large lists page or virtualize**; never load every record to filter in the browser.
|
|
37
|
+
8. **No secrets or business rules in the client**: anything shipped to the browser is
|
|
38
|
+
public.
|
|
39
|
+
|
|
40
|
+
## Tests
|
|
41
|
+
|
|
42
|
+
- For each AC that a user performs on a page (open, create, edit, choose an action), a UI
|
|
43
|
+
test that does it the way the user does, named with the AC id, plus the unhappy path the
|
|
44
|
+
AC implies (invalid input, missing permission).
|
|
45
|
+
- Prefer selectors by role and label over CSS paths; a test that needs a test id gets one
|
|
46
|
+
in the code.
|
|
47
|
+
- Run the UI tests (`npx agjan ui-test` where the project has them); where no browser can
|
|
48
|
+
start, say so instead of installing system libraries.
|
package/kit/templates/project.md
CHANGED
|
@@ -5,22 +5,11 @@ the real files; do not copy them.
|
|
|
5
5
|
|
|
6
6
|
## Overview
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Services, key entities, authentication, external dependencies.
|
|
11
|
-
|
|
12
|
-
## Fiori
|
|
13
|
-
|
|
14
|
-
Each application: its folder, `app_type` (elements or freestyle), the service it uses.
|
|
15
|
-
|
|
16
|
-
## BTP
|
|
17
|
-
|
|
18
|
-
Runtime, BTP services, deployment targets.
|
|
19
|
-
|
|
8
|
+
{{areas}}
|
|
20
9
|
## Run locally
|
|
21
10
|
|
|
22
|
-
How to start the application and try it: the command
|
|
23
|
-
|
|
11
|
+
How to start the application and try it: the start command, the URLs of its pages or
|
|
12
|
+
endpoints, and the test users with their roles and passwords.
|
|
24
13
|
|
|
25
14
|
## Conventions
|
|
26
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agjan",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
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",
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "agjan's defaults for agjan.config.json
|
|
2
|
+
"description": "agjan's defaults for agjan.config.json; the project's file overrides them (agjan init --preset writes a preset's areas and paths into it). Objects merge, arrays replace. A project without areas has the one area shown here. Review steps without a tier use balanced.",
|
|
3
3
|
"format": 1,
|
|
4
4
|
"defaults": {
|
|
5
|
-
"domains": [
|
|
6
|
-
"btp"
|
|
7
|
-
],
|
|
8
5
|
"hosts": [
|
|
9
6
|
"claude-code"
|
|
10
7
|
],
|
|
@@ -13,12 +10,9 @@
|
|
|
13
10
|
"base": null,
|
|
14
11
|
"branches": "new"
|
|
15
12
|
},
|
|
16
|
-
"scope": {
|
|
17
|
-
"implicit": {}
|
|
18
|
-
},
|
|
19
13
|
"risk_paths": [],
|
|
20
14
|
"application": [],
|
|
21
|
-
"
|
|
15
|
+
"watched": [],
|
|
22
16
|
"fix": {
|
|
23
17
|
"max_total": 80,
|
|
24
18
|
"max_per_file": 50,
|
|
@@ -30,8 +24,6 @@
|
|
|
30
24
|
"dist/**"
|
|
31
25
|
]
|
|
32
26
|
},
|
|
33
|
-
"verify": {},
|
|
34
|
-
"lint": {},
|
|
35
27
|
"build": {
|
|
36
28
|
"fix_attempts": 3
|
|
37
29
|
},
|
|
@@ -61,6 +53,12 @@
|
|
|
61
53
|
},
|
|
62
54
|
"agent": {
|
|
63
55
|
"script_edits": "deny"
|
|
56
|
+
},
|
|
57
|
+
"areas": {
|
|
58
|
+
"app": {
|
|
59
|
+
"title": "Application",
|
|
60
|
+
"description": "What the application does, its main parts and how they fit together."
|
|
61
|
+
}
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
}
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://github.com/agjan-dev/agjan/schemas/config.schema.json",
|
|
4
4
|
"title": "agjan.config.json",
|
|
5
|
-
"description": "Project configuration, layered over
|
|
5
|
+
"description": "Project configuration, layered over agjan's defaults (design 10). Arrays replace, objects merge.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"$schema": { "type": "string" },
|
|
9
9
|
"kit": { "type": "string" },
|
|
10
|
-
"domains": { "type": "array", "items": { "type": "string" } },
|
|
11
10
|
"language": { "type": "string" },
|
|
12
11
|
"hosts": { "type": "array", "items": { "enum": ["claude-code", "copilot"] } },
|
|
13
12
|
"git": {
|
|
@@ -18,16 +17,44 @@
|
|
|
18
17
|
},
|
|
19
18
|
"additionalProperties": false
|
|
20
19
|
},
|
|
21
|
-
"
|
|
20
|
+
"areas": {
|
|
21
|
+
"description": "The technical areas of the project (decision 98): each task of a design belongs to one. Without areas the project has one, app. `agjan init --preset` writes a preset's areas.",
|
|
22
22
|
"type": "object",
|
|
23
|
-
"
|
|
24
|
-
"additionalProperties":
|
|
23
|
+
"propertyNames": { "pattern": "^[a-z][a-z0-9-]{0,31}$" },
|
|
24
|
+
"additionalProperties": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"title": { "type": "string", "description": "Its heading in project.md (default: the name)." },
|
|
28
|
+
"description": { "type": "string", "description": "What project.md describes under its heading." },
|
|
29
|
+
"skills": { "type": "array", "items": { "type": "string" }, "description": "Skills in .claude/skills/ that know this area's stack." },
|
|
30
|
+
"tests": { "type": "array", "items": { "type": "string" }, "description": "Where the area's tests live." },
|
|
31
|
+
"implicit": { "type": "array", "items": { "type": "string" }, "description": "Paths a task of this area may change besides its own (manifests, i18n, ...)." },
|
|
32
|
+
"verify": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": { "build": { "type": "string" }, "test": { "type": "string" }, "lint": { "type": "string" }, "results": { "type": ["string", "array"], "items": { "type": "string" }, "description": "Test results file(s) of the area: JUnit XML, Jest JSON or Mocha JSON." } },
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
},
|
|
37
|
+
"lint": {
|
|
38
|
+
"description": "The linter agjan lint runs for the area, in every folder matching 'in' with changed files matching 'files'; null: none.",
|
|
39
|
+
"oneOf": [
|
|
40
|
+
{ "type": "null" },
|
|
41
|
+
{
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["command", "in", "files"],
|
|
44
|
+
"properties": { "command": { "type": "string" }, "in": { "type": "string" }, "files": { "type": "string" } },
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
25
52
|
},
|
|
26
|
-
"
|
|
53
|
+
"watched": { "type": "array", "items": { "type": "string" }, "description": "Files whose change makes project.md stale (agjan baseline refresh records their hashes)." },
|
|
27
54
|
"risk_paths": { "type": "array", "items": { "type": "string" } },
|
|
28
55
|
"test_evidence": { "enum": ["run", "names"] },
|
|
29
56
|
"teams": {
|
|
30
|
-
"description": "The project's own teams, next to the built-in sap-delivery, sap-maintenance and sap-discovery (
|
|
57
|
+
"description": "The project's own teams, next to the built-in delivery, maintenance, advisory, sap-delivery, sap-maintenance and sap-discovery (decisions 92, 99).",
|
|
31
58
|
"type": "object",
|
|
32
59
|
"additionalProperties": {
|
|
33
60
|
"type": "object",
|
|
@@ -36,23 +63,30 @@
|
|
|
36
63
|
"description": { "type": "string" },
|
|
37
64
|
"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
65
|
"roles": {
|
|
39
|
-
"description": "What each role works with in this team (implementer, reviewer, tester, analyst, or one under \"roles\"): its skills and optional instructions. Knowledge several teams share is a skill of the project's own.",
|
|
66
|
+
"description": "What each role works with in this team (implementer, reviewer, tester, analyst, the worker roles architect and developer, or one under \"roles\"): its skills and optional instructions. Knowledge several teams share is a skill of the project's own.",
|
|
40
67
|
"type": "object",
|
|
41
68
|
"additionalProperties": { "$ref": "#/definitions/teamRole" }
|
|
69
|
+
},
|
|
70
|
+
"stages": {
|
|
71
|
+
"description": "The role that writes a stage (decision 100): a role of the main agent, which then works as it, or a worker role, whose own agent the main agent hands the stage to. Without an entry the workflow's own role does it.",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"propertyNames": { "enum": ["spec", "design", "build", "fix", "map", "proposal"] },
|
|
74
|
+
"additionalProperties": { "type": "string" }
|
|
42
75
|
}
|
|
43
76
|
},
|
|
44
77
|
"additionalProperties": false
|
|
45
78
|
}
|
|
46
79
|
},
|
|
47
80
|
"roles": {
|
|
48
|
-
"description": "The project's own roles next to implementer, reviewer, tester and
|
|
81
|
+
"description": "The project's own roles next to implementer, reviewer, tester, analyst, architect and developer (decisions 94, 100): each reaches one agent, which works with the skills a team gives the role too; a worker role runs as an agent of its own.",
|
|
49
82
|
"type": "object",
|
|
50
83
|
"additionalProperties": {
|
|
51
84
|
"type": "object",
|
|
52
85
|
"required": ["agent"],
|
|
53
86
|
"properties": {
|
|
54
|
-
"agent": { "enum": ["main", "reviewer", "qa"], "description": "main: the main agent; reviewer: the reviewer agents; qa: the QA agent." },
|
|
55
|
-
"description": { "type": "string" }
|
|
87
|
+
"agent": { "enum": ["main", "reviewer", "qa", "worker"], "description": "main: the main agent; reviewer: the reviewer agents; qa: the QA agent; worker: an agent of its own (agjan-worker, agjan-worker-deep) for the stage a team gives the role under \"stages\"." },
|
|
88
|
+
"description": { "type": "string" },
|
|
89
|
+
"tier": { "enum": ["balanced", "deep"], "description": "A worker role's agent: agjan-worker (balanced, default) or agjan-worker-deep. Their models: models.<host>.worker and worker-deep (default: the session's model)." }
|
|
56
90
|
},
|
|
57
91
|
"additionalProperties": false
|
|
58
92
|
}
|
|
@@ -135,29 +169,6 @@
|
|
|
135
169
|
},
|
|
136
170
|
"additionalProperties": false
|
|
137
171
|
},
|
|
138
|
-
"verify": {
|
|
139
|
-
"type": "object",
|
|
140
|
-
"additionalProperties": {
|
|
141
|
-
"type": "object",
|
|
142
|
-
"properties": { "build": { "type": "string" }, "test": { "type": "string" }, "lint": { "type": "string" }, "results": { "type": ["string", "array"], "items": { "type": "string" }, "description": "Test results file(s) of the area: JUnit XML, Jest JSON or Mocha JSON." } },
|
|
143
|
-
"additionalProperties": false
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"lint": {
|
|
147
|
-
"description": "Linters that agjan lint runs per area, in every folder matching 'in' with changed files matching 'files'; null turns an area's linter off.",
|
|
148
|
-
"type": "object",
|
|
149
|
-
"additionalProperties": {
|
|
150
|
-
"oneOf": [
|
|
151
|
-
{ "type": "null" },
|
|
152
|
-
{
|
|
153
|
-
"type": "object",
|
|
154
|
-
"required": ["command", "in", "files"],
|
|
155
|
-
"properties": { "command": { "type": "string" }, "in": { "type": "string" }, "files": { "type": "string" } },
|
|
156
|
-
"additionalProperties": false
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
172
|
"build": { "type": "object", "properties": { "fix_attempts": { "type": "integer", "minimum": 0 } }, "additionalProperties": false },
|
|
162
173
|
"review": {
|
|
163
174
|
"type": "object",
|
|
@@ -176,7 +187,7 @@
|
|
|
176
187
|
"additionalProperties": false
|
|
177
188
|
},
|
|
178
189
|
"models": {
|
|
179
|
-
"description": "Agent models per host and tier (balanced, deep, qa). 'session' runs the agent on the model of the session that starts it; qa defaults to the deep model.",
|
|
190
|
+
"description": "Agent models per host and tier (balanced, deep, qa; worker and worker-deep for the worker agents). 'session' runs the agent on the model of the session that starts it; qa defaults to the deep model, the workers to the session's.",
|
|
180
191
|
"type": "object",
|
|
181
192
|
"additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }
|
|
182
193
|
},
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "btp",
|
|
3
|
-
"title": "SAP BTP development (CAP Node.js, Fiori, BTP)",
|
|
4
|
-
"areas": {
|
|
5
|
-
"cap": {
|
|
6
|
-
"role": "cap-developer",
|
|
7
|
-
"tests": ["test/**"],
|
|
8
|
-
"implicit": ["package.json", "package-lock.json", "tsconfig.json", "tsconfig.cdsbuild.json", "test/fixtures/**", "_i18n/**"],
|
|
9
|
-
"verify": { "test": "npm test" }
|
|
10
|
-
},
|
|
11
|
-
"fiori": {
|
|
12
|
-
"role": "fiori-developer",
|
|
13
|
-
"tests": ["app/*/webapp/test/**", "app/*/test/**", "test/ui/**"],
|
|
14
|
-
"implicit": ["app/*/package.json", "app/*/package-lock.json", "app/*/tsconfig.json", "app/*/webapp/i18n/**", "playwright.config.ts"],
|
|
15
|
-
"verify": {},
|
|
16
|
-
"lint": { "command": "npx --yes @ui5/linter", "in": "app/*", "files": "webapp/**/*.{js,ts,xml,json,html}" }
|
|
17
|
-
},
|
|
18
|
-
"btp": {
|
|
19
|
-
"role": "btp-architect",
|
|
20
|
-
"tests": [],
|
|
21
|
-
"implicit": [],
|
|
22
|
-
"verify": {}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"application": ["srv/**", "db/**", "app/**"],
|
|
26
|
-
"risk_paths": ["xs-security.json", "ams/**", "mta.yaml", "srv/**/*auth*", "srv/**/*-access.cds"],
|
|
27
|
-
"protected": ["mta.yaml", "xs-security.json", "ams/**", "srv/**/*.cds"],
|
|
28
|
-
"watched": ["db/*.cds", "srv/*.cds", "app/*/webapp/manifest.json", "mta.yaml"]
|
|
29
|
-
}
|