create-agdf 0.2.2 → 0.2.4
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 +6 -0
- package/bin/create-agdf.js +522 -36
- package/generated/.agdf/control/README.md +17 -1
- package/generated/.agdf/control/templates/AGDF_RUN.md +23 -1
- package/generated/.agdf/control/templates/MASTER_BACKLOG.md +16 -11
- package/generated/.agdf/control/templates/artefacts/OR.md +86 -0
- package/generated/.agdf/control/templates/artefacts/PRD.md +42 -0
- package/generated/.agdf/control/templates/artefacts/QA_REPORT.md +38 -0
- package/generated/.agdf/control/templates/artefacts/SD.md +42 -0
- package/generated/.agdf/control/templates/artefacts/TP.md +36 -0
- package/generated/.agdf/control/templates/artefacts/UR.md +41 -0
- package/generated/.github/copilot-instructions.md +3 -0
- package/generated/.github/instructions/agdf-governance.instructions.md +1 -0
- package/generated/.github/skills/agdf-brownfield-analysis/SKILL.md +24 -17
- package/generated/.github/skills/agdf-gate-check/SKILL.md +53 -5
- package/generated/.github/skills/agdf-release-or/SKILL.md +13 -9
- package/generated/.github/skills/agdf-runtime-contract.md +60 -2
- package/generated/AGENTS.md +15 -2
- package/generated/plugins/agdf/.codex-plugin/plugin.json +1 -1
- package/generated/plugins/agdf/control/README.md +17 -1
- package/generated/plugins/agdf/control/templates/AGDF_RUN.md +23 -1
- package/generated/plugins/agdf/control/templates/MASTER_BACKLOG.md +16 -11
- package/generated/plugins/agdf/control/templates/artefacts/OR.md +86 -0
- package/generated/plugins/agdf/control/templates/artefacts/PRD.md +42 -0
- package/generated/plugins/agdf/control/templates/artefacts/QA_REPORT.md +38 -0
- package/generated/plugins/agdf/control/templates/artefacts/SD.md +42 -0
- package/generated/plugins/agdf/control/templates/artefacts/TP.md +36 -0
- package/generated/plugins/agdf/control/templates/artefacts/UR.md +41 -0
- package/generated/plugins/agdf/meta/agdf-agent-router.md +15 -2
- package/generated/plugins/agdf/meta/agdf-constitution.md +22 -5
- package/generated/plugins/agdf/meta/agdf-plugin.definition.json +4 -4
- package/generated/plugins/agdf/meta/agdf-runtime-contract.md +60 -2
- package/generated/plugins/agdf/skills/brownfield-analysis/SKILL.md +24 -17
- package/generated/plugins/agdf/skills/gate-check/SKILL.md +53 -5
- package/generated/plugins/agdf/skills/release-or/SKILL.md +13 -9
- package/package.json +1 -1
|
@@ -9,7 +9,13 @@ Use this scaffold when a target repository should keep AGDF state outside chat h
|
|
|
9
9
|
| File | Purpose |
|
|
10
10
|
|---|---|
|
|
11
11
|
| `templates/AGDF_RUN.md` | Template for current run state: mode, gate, approvals, evidence, risks, next allowed action |
|
|
12
|
-
| `templates/MASTER_BACKLOG.md` | Template for the living backlog pointer: active initiatives and current UR/PRD/SD/TP artefacts |
|
|
12
|
+
| `templates/MASTER_BACKLOG.md` | Template for the living backlog pointer: active initiatives and current UR/PRD/SD/TP/QA/OR artefacts |
|
|
13
|
+
| `templates/artefacts/UR.md` | Template for the durable user requirement artefact of a work item |
|
|
14
|
+
| `templates/artefacts/PRD.md` | Template for the durable product requirements artefact |
|
|
15
|
+
| `templates/artefacts/SD.md` | Template for the durable solution design artefact |
|
|
16
|
+
| `templates/artefacts/TP.md` | Template for the durable task and test plan artefact |
|
|
17
|
+
| `templates/artefacts/QA_REPORT.md` | Template for the durable QA decision report |
|
|
18
|
+
| `templates/artefacts/OR.md` | Template for the durable Orchestration Report closeout |
|
|
13
19
|
| `templates/SOT_REGISTRY.md` | Template for the source-of-truth registry: one primary owner per domain |
|
|
14
20
|
| `templates/CONTEXT_GRAPH.md` | Template for project memory: durable decisions, Brownfield findings, risks, evidence and exit criteria |
|
|
15
21
|
| `templates/AGENT_QUALITY_CONTRACTS.json` | Template for machine-readable warning, revise and block contracts for review and QA |
|
|
@@ -21,6 +27,14 @@ Use this scaffold when a target repository should keep AGDF state outside chat h
|
|
|
21
27
|
control/
|
|
22
28
|
AGDF_RUN.md
|
|
23
29
|
MASTER_BACKLOG.md
|
|
30
|
+
artefacts/
|
|
31
|
+
<work-item>/
|
|
32
|
+
UR.md
|
|
33
|
+
PRD.md
|
|
34
|
+
SD.md
|
|
35
|
+
TP.md
|
|
36
|
+
QA_REPORT.md
|
|
37
|
+
OR.md
|
|
24
38
|
SOT_REGISTRY.md
|
|
25
39
|
CONTEXT_GRAPH.md
|
|
26
40
|
AGENT_QUALITY_CONTRACTS.json
|
|
@@ -49,6 +63,8 @@ npm create agdf@latest gate-check --json
|
|
|
49
63
|
|
|
50
64
|
- `AGDF_RUN.md` is the current run dashboard.
|
|
51
65
|
- `MASTER_BACKLOG.md` points to active delivery work; detailed artefacts live beside the work item.
|
|
66
|
+
- UR, PRD, SD, TP and QA decisions require durable artefacts or links to the authoritative repository source of truth before the next gate can open.
|
|
67
|
+
- OR records the run closeout and next permissible step; it does not approve later gates.
|
|
52
68
|
- `SOT_REGISTRY.md` decides which document owns which domain.
|
|
53
69
|
- `CONTEXT_GRAPH.md` records durable project knowledge only when it has evidence and an exit criterion.
|
|
54
70
|
- `AGENT_QUALITY_CONTRACTS.json` names reusable block, revise and warning conditions.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
- run_id:
|
|
6
6
|
- started_at:
|
|
7
7
|
- mode: `quick_task | structured_delivery`
|
|
8
|
-
- current_gate: `none | UR | PRD | SD | TP | CD+Tests | CR | QA | UAT | OR`
|
|
8
|
+
- current_gate: `none | UR | Brownfield Review | Mode/Slice Decision | PRD | SD | TP | Quick Task Execution | Brownfield Analysis | CD+Tests | CR | QA | UAT | OR`
|
|
9
9
|
- decision: `pass | revise | block | in_progress`
|
|
10
10
|
- owner:
|
|
11
11
|
|
|
@@ -44,10 +44,32 @@ Valid approval format for new runs: `Approval: <GateName>`.
|
|
|
44
44
|
| PRD | | `draft | approved | superseded | not_applicable` | |
|
|
45
45
|
| SD | | `draft | approved | superseded | not_applicable` | |
|
|
46
46
|
| TP | | `draft | approved | superseded | not_applicable` | |
|
|
47
|
+
| Brownfield Review | | `missing | done | not_applicable` | |
|
|
47
48
|
| Review | | `missing | done | not_applicable` | |
|
|
48
49
|
| QA | | `missing | pass | revise | block | not_applicable` | |
|
|
49
50
|
| OR | | `missing | done | not_applicable` | |
|
|
50
51
|
|
|
52
|
+
## Mode / Slice Decision
|
|
53
|
+
|
|
54
|
+
Set this after Brownfield Review. Do not assume the full gate chain before the existing-system impact is understood.
|
|
55
|
+
|
|
56
|
+
- decision: `undecided | quick_task | structured_slice | structured_delivery | block`
|
|
57
|
+
- required_next_gate: `none | PRD | SD | TP | Brownfield Analysis`
|
|
58
|
+
- scope_reason:
|
|
59
|
+
- evidence:
|
|
60
|
+
|
|
61
|
+
## Artefact Chain
|
|
62
|
+
|
|
63
|
+
Keep the active work item traceable. A gate may open only when the previous gate has both exact approval and a durable or linked artefact.
|
|
64
|
+
|
|
65
|
+
| From | Relationship | To | Evidence |
|
|
66
|
+
|---|---|---|---|
|
|
67
|
+
| UR | `approved_by` | `Approval: UR` | |
|
|
68
|
+
| PRD | `derived_from` | UR | |
|
|
69
|
+
| SD | `derived_from` | PRD | |
|
|
70
|
+
| TP | `derived_from` | SD | |
|
|
71
|
+
| QA_REPORT | `tests` | TP | |
|
|
72
|
+
|
|
51
73
|
## Evidence
|
|
52
74
|
|
|
53
75
|
| Evidence | Source | Covers | Strength |
|
|
@@ -4,23 +4,28 @@ This file is the living control pointer for active AGDF delivery work. Detailed
|
|
|
4
4
|
|
|
5
5
|
## Rules
|
|
6
6
|
|
|
7
|
-
1.
|
|
8
|
-
2.
|
|
9
|
-
3.
|
|
10
|
-
4.
|
|
11
|
-
5.
|
|
7
|
+
1. New product semantics, functional change or user-visible behaviour change starts as a new UR draft in a stable local artefact path, for example `.agdf/control/artefacts/<key>/UR.md`, unless an authoritative repository SoT already exists and is linked here.
|
|
8
|
+
2. `Approval: UR` adds or updates exactly one steering row with a link to the UR.
|
|
9
|
+
3. PRD, SD, TP and QA report artefacts are created for the same work item after the previous gate is approved and persisted or linked.
|
|
10
|
+
4. `Approval: PRD`, `Approval: SD`, `Approval: TP` and `Approval: QA` require the corresponding durable artefact or linked repository SoT before the next gate can open.
|
|
11
|
+
5. Generic consent such as "ok", "go ahead", "do it", "continue", "leg los" or "approved" does not update a gate. Only `Approval: <GateName>` does.
|
|
12
|
+
6. Keep only steering-relevant work in `Active Backlog`.
|
|
13
|
+
7. Every active item has exactly one current spec pointer and a visible artefact chain.
|
|
14
|
+
8. Historical artefacts remain linkable but do not override the current pointer.
|
|
15
|
+
9. If an item is superseded, mark the replacement.
|
|
16
|
+
10. If active work grows beyond roughly ten items, triage the backlog.
|
|
12
17
|
|
|
13
18
|
## Active Backlog
|
|
14
19
|
|
|
15
|
-
| Prio | Key | Title | Status | Current Spec | Notes |
|
|
16
|
-
|
|
17
|
-
| P1 | | | `in_progress | blocked` | | |
|
|
20
|
+
| Prio | Key | Title | Status | UR | PRD | SD | TP | QA | OR | Current Spec | Notes |
|
|
21
|
+
|---:|---|---|---|---|---|---|---|---|---|---|---|
|
|
22
|
+
| P1 | | | `in_progress | blocked` | | | | | | | | |
|
|
18
23
|
|
|
19
24
|
## Planned / Parking Lot
|
|
20
25
|
|
|
21
|
-
| Prio | Key | Title | Status | Current Spec | Notes |
|
|
22
|
-
|
|
23
|
-
| P2 | | | `planned | review_needed` | | |
|
|
26
|
+
| Prio | Key | Title | Status | UR | PRD | SD | TP | QA | OR | Current Spec | Notes |
|
|
27
|
+
|---:|---|---|---|---|---|---|---|---|---|---|---|
|
|
28
|
+
| P2 | | | `planned | review_needed` | | | | | | | | |
|
|
24
29
|
|
|
25
30
|
## Completed / Superseded Pointers
|
|
26
31
|
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# OR: <Title>
|
|
2
|
+
|
|
3
|
+
Gate: OR
|
|
4
|
+
Type: Orchestration Report
|
|
5
|
+
Report mode: `OR-lite | OR-full`
|
|
6
|
+
Status: `draft | done | superseded`
|
|
7
|
+
|
|
8
|
+
## Run
|
|
9
|
+
|
|
10
|
+
- run_id:
|
|
11
|
+
- related_ur:
|
|
12
|
+
- related_prd:
|
|
13
|
+
- related_sd:
|
|
14
|
+
- related_tp:
|
|
15
|
+
- related_qa_report:
|
|
16
|
+
- mode_slice_decision:
|
|
17
|
+
- current_gate:
|
|
18
|
+
- decision: `pass | revise | block | in_progress`
|
|
19
|
+
|
|
20
|
+
## Gate State
|
|
21
|
+
|
|
22
|
+
| Gate or step | Status | Evidence |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| UR | | |
|
|
25
|
+
| Brownfield Review | | |
|
|
26
|
+
| Mode/Slice Decision | | |
|
|
27
|
+
| PRD | | |
|
|
28
|
+
| SD | | |
|
|
29
|
+
| TP | | |
|
|
30
|
+
| Brownfield Analysis | | |
|
|
31
|
+
| CD+Tests | | |
|
|
32
|
+
| CR | | |
|
|
33
|
+
| QA | | |
|
|
34
|
+
| UAT | | |
|
|
35
|
+
|
|
36
|
+
## Delivered
|
|
37
|
+
|
|
38
|
+
| Item | Evidence |
|
|
39
|
+
|---|---|
|
|
40
|
+
| | |
|
|
41
|
+
|
|
42
|
+
## Not Delivered / Intentionally Deferred
|
|
43
|
+
|
|
44
|
+
| Item | Reason | Next owner or gate |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| | | |
|
|
47
|
+
|
|
48
|
+
## Evidence
|
|
49
|
+
|
|
50
|
+
| Evidence | Source | Covers | Strength |
|
|
51
|
+
|---|---|---|---|
|
|
52
|
+
| | | | `direct | indirect | weak` |
|
|
53
|
+
|
|
54
|
+
## Missing Evidence
|
|
55
|
+
|
|
56
|
+
| Missing evidence | Impact | Required next step |
|
|
57
|
+
|---|---|---|
|
|
58
|
+
| | `warn | revise | block` | |
|
|
59
|
+
|
|
60
|
+
## Risks And Open Items
|
|
61
|
+
|
|
62
|
+
| Risk or open item | Impact | Owner or mitigation |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| | `warn | revise | block` | |
|
|
65
|
+
|
|
66
|
+
## Context Graph Impact
|
|
67
|
+
|
|
68
|
+
- context_graph_impact: `none | link_only | update_existing_node | new_node_required | sot_drift`
|
|
69
|
+
- context_graph_refs:
|
|
70
|
+
- context_graph_required_action: `none | link | update | create | resolve_drift`
|
|
71
|
+
- context_graph_gate_effect: `none | warning | revise | block`
|
|
72
|
+
- context_graph_evidence:
|
|
73
|
+
|
|
74
|
+
## Next Permissible Step
|
|
75
|
+
|
|
76
|
+
- next_allowed_action:
|
|
77
|
+
- required_approval:
|
|
78
|
+
- forbidden_until_then:
|
|
79
|
+
|
|
80
|
+
## Quality Outlook
|
|
81
|
+
|
|
82
|
+
- quality_outlook:
|
|
83
|
+
|
|
84
|
+
## Approval
|
|
85
|
+
|
|
86
|
+
OR does not approve later gates. It records the next permissible step.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# PRD: <Title>
|
|
2
|
+
|
|
3
|
+
Status: draft
|
|
4
|
+
Gate: PRD
|
|
5
|
+
Gate approval: open
|
|
6
|
+
Based on: UR
|
|
7
|
+
Date:
|
|
8
|
+
Owner:
|
|
9
|
+
|
|
10
|
+
## 1. Product Scope
|
|
11
|
+
|
|
12
|
+
What exactly must be delivered?
|
|
13
|
+
|
|
14
|
+
## 2. Acceptance Criteria
|
|
15
|
+
|
|
16
|
+
Which observable outcomes must be true?
|
|
17
|
+
|
|
18
|
+
## 3. Non-Goals
|
|
19
|
+
|
|
20
|
+
What remains out of scope?
|
|
21
|
+
|
|
22
|
+
## 4. Users And Roles
|
|
23
|
+
|
|
24
|
+
Who is affected and who decides?
|
|
25
|
+
|
|
26
|
+
## 5. Constraints
|
|
27
|
+
|
|
28
|
+
Which business, operational, legal, security or compatibility constraints apply?
|
|
29
|
+
|
|
30
|
+
## 6. Evidence Requirements
|
|
31
|
+
|
|
32
|
+
Which evidence must later support QA?
|
|
33
|
+
|
|
34
|
+
## 7. Risks And Open Questions
|
|
35
|
+
|
|
36
|
+
Which questions must SD, TP or Brownfield Analysis clarify later?
|
|
37
|
+
|
|
38
|
+
## 8. Next Step
|
|
39
|
+
|
|
40
|
+
Review this PRD and approve only with:
|
|
41
|
+
|
|
42
|
+
`Approval: PRD`
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# QA Report: <Title>
|
|
2
|
+
|
|
3
|
+
Status: draft
|
|
4
|
+
Gate: QA
|
|
5
|
+
Gate approval: open
|
|
6
|
+
Based on: TP, implementation evidence, task-plan review
|
|
7
|
+
Date:
|
|
8
|
+
Owner:
|
|
9
|
+
|
|
10
|
+
## 1. QA Decision
|
|
11
|
+
|
|
12
|
+
Decision: `pass | revise | block`
|
|
13
|
+
|
|
14
|
+
## 2. TP Coverage
|
|
15
|
+
|
|
16
|
+
Which TP tasks are fully done, partially done or not done?
|
|
17
|
+
|
|
18
|
+
## 3. Evidence
|
|
19
|
+
|
|
20
|
+
Which tests, logs, diffs, reviews or observations support the decision?
|
|
21
|
+
|
|
22
|
+
## 4. Missing Evidence
|
|
23
|
+
|
|
24
|
+
What remains unverified?
|
|
25
|
+
|
|
26
|
+
## 5. Risks
|
|
27
|
+
|
|
28
|
+
Which risks remain and what is their impact?
|
|
29
|
+
|
|
30
|
+
## 6. Required Next Step
|
|
31
|
+
|
|
32
|
+
What is the next permitted action?
|
|
33
|
+
|
|
34
|
+
## 7. Gate Approval
|
|
35
|
+
|
|
36
|
+
Approve this QA decision only with:
|
|
37
|
+
|
|
38
|
+
`Approval: QA`
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# SD: <Title>
|
|
2
|
+
|
|
3
|
+
Status: draft
|
|
4
|
+
Gate: SD
|
|
5
|
+
Gate approval: open
|
|
6
|
+
Based on: PRD
|
|
7
|
+
Date:
|
|
8
|
+
Owner:
|
|
9
|
+
|
|
10
|
+
## 1. Solution Overview
|
|
11
|
+
|
|
12
|
+
How will the approved PRD be solved?
|
|
13
|
+
|
|
14
|
+
## 2. Ownership And Source Of Truth
|
|
15
|
+
|
|
16
|
+
Which existing modules, documents, services or owners remain authoritative?
|
|
17
|
+
|
|
18
|
+
## 3. Architecture Decisions
|
|
19
|
+
|
|
20
|
+
Which design decisions are binding for implementation?
|
|
21
|
+
|
|
22
|
+
## 4. Integration Points
|
|
23
|
+
|
|
24
|
+
Which APIs, data flows, UI surfaces, jobs, queues or external systems are affected?
|
|
25
|
+
|
|
26
|
+
## 5. Constraints And Compatibility
|
|
27
|
+
|
|
28
|
+
Which constraints must implementation preserve?
|
|
29
|
+
|
|
30
|
+
## 6. Test And Evidence Strategy
|
|
31
|
+
|
|
32
|
+
Which evidence must TP and QA later collect?
|
|
33
|
+
|
|
34
|
+
## 7. Risks And Open Questions
|
|
35
|
+
|
|
36
|
+
Which risks remain before task planning?
|
|
37
|
+
|
|
38
|
+
## 8. Next Step
|
|
39
|
+
|
|
40
|
+
Review this solution design and approve only with:
|
|
41
|
+
|
|
42
|
+
`Approval: SD`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# TP: <Title>
|
|
2
|
+
|
|
3
|
+
Status: draft
|
|
4
|
+
Gate: TP
|
|
5
|
+
Gate approval: open
|
|
6
|
+
Based on: SD
|
|
7
|
+
Date:
|
|
8
|
+
Owner:
|
|
9
|
+
|
|
10
|
+
## 1. Task List
|
|
11
|
+
|
|
12
|
+
| task_id | Task | Acceptance mapping | Evidence required |
|
|
13
|
+
|---|---|---|---|
|
|
14
|
+
| T1 | | | |
|
|
15
|
+
|
|
16
|
+
## 2. Test Plan
|
|
17
|
+
|
|
18
|
+
Which automated, manual or inspection checks must run?
|
|
19
|
+
|
|
20
|
+
## 3. Brownfield Scope
|
|
21
|
+
|
|
22
|
+
Which existing owners, modules or artefacts must be inspected before implementation?
|
|
23
|
+
|
|
24
|
+
## 4. Out Of Scope
|
|
25
|
+
|
|
26
|
+
Which implementation work is explicitly not part of this TP?
|
|
27
|
+
|
|
28
|
+
## 5. Risks And Blockers
|
|
29
|
+
|
|
30
|
+
Which risks must block, revise or warn later QA?
|
|
31
|
+
|
|
32
|
+
## 6. Next Step
|
|
33
|
+
|
|
34
|
+
Review this task and test plan and approve only with:
|
|
35
|
+
|
|
36
|
+
`Approval: TP`
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# UR: <Title>
|
|
2
|
+
|
|
3
|
+
Status: draft
|
|
4
|
+
Gate: UR
|
|
5
|
+
Gate approval: open
|
|
6
|
+
Date:
|
|
7
|
+
Owner:
|
|
8
|
+
|
|
9
|
+
## 1. Problem
|
|
10
|
+
|
|
11
|
+
What user, business or operational problem should be solved?
|
|
12
|
+
|
|
13
|
+
## 2. Goal
|
|
14
|
+
|
|
15
|
+
What outcome should become possible?
|
|
16
|
+
|
|
17
|
+
## 3. Scope
|
|
18
|
+
|
|
19
|
+
What is included in this first slice?
|
|
20
|
+
|
|
21
|
+
## 4. Non-Goals
|
|
22
|
+
|
|
23
|
+
What is explicitly not part of this UR?
|
|
24
|
+
|
|
25
|
+
## 5. Acceptance Signals
|
|
26
|
+
|
|
27
|
+
How will we know the need is clear enough for PRD?
|
|
28
|
+
|
|
29
|
+
## 6. Existing Source Of Truth
|
|
30
|
+
|
|
31
|
+
Which existing repository artefacts, docs, code paths or decisions must be respected?
|
|
32
|
+
|
|
33
|
+
## 7. Risks And Unknowns
|
|
34
|
+
|
|
35
|
+
Which questions must Brownfield Review, PRD, SD or later implementation-preparation Brownfield Analysis clarify?
|
|
36
|
+
|
|
37
|
+
## 8. Next Step
|
|
38
|
+
|
|
39
|
+
Review this UR and approve only with:
|
|
40
|
+
|
|
41
|
+
`Approval: UR`
|
|
@@ -5,6 +5,9 @@ AGDF is active in this repository.
|
|
|
5
5
|
- Treat `AGENTS.md` as the primary repository instruction source.
|
|
6
6
|
- Use `.github/skills/` for AGDF task workflows instead of inventing parallel process rules.
|
|
7
7
|
- Use `.agdf/control/` for durable run state, backlog pointers, source-of-truth ownership, Context Graph knowledge and quality contracts.
|
|
8
|
+
- Apply AGDF natively from `AGENTS.md`, repository skills and live `.agdf/control/` state before reaching for helper commands.
|
|
8
9
|
- Before non-trivial implementation or formal delivery work, determine whether the request is a Quick Task or Structured Delivery.
|
|
9
10
|
- If approval, evidence, ownership or the next allowed action is unclear, run the AGDF gate-check workflow before creating later artefacts or code.
|
|
11
|
+
- Use machine-readable checks such as `doctor --json`, `gate-check --json` or `delivery-map --json` as validators, not as the primary workflow.
|
|
12
|
+
- Do not infer gate approval from generic consent such as "ok", "go ahead", "do it", "continue", "leg los" or "approved".
|
|
10
13
|
- Do not treat chat history as the source of truth for gate state, approvals, evidence or delivery status.
|
|
@@ -10,4 +10,5 @@ These files are control artefacts, not general documentation.
|
|
|
10
10
|
- Do not duplicate the full gate model, Quality Contract table or Context Graph relationship language in new files.
|
|
11
11
|
- Keep generated AGDF files small, reviewable and linked to the owning source of truth.
|
|
12
12
|
- Preserve the rule that missing approval, missing evidence or unclear ownership blocks later delivery steps.
|
|
13
|
+
- Preserve the rule that gates cannot be skipped by generic consent, urgency or a request to start.
|
|
13
14
|
- If changing AGDF bootstrap behaviour, update the generated files, smoke test and affected setup documentation together.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agdf-brownfield-analysis
|
|
3
|
-
description: Use this skill after gate-check or live AGDF control state confirms that implementation preparation is allowed
|
|
3
|
+
description: Use this skill after gate-check or live AGDF control state confirms that Brownfield Review or implementation preparation is allowed. Use it after Approval: UR as the lightweight Brownfield Review after G-00 before PRD when existing systems may be affected, and again before non-trivial implementation after TP. Do not use it as the first AGDF skill for a fresh "I want to build/change X" prompt when approval, scope, or next allowed action is unclear.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# brownfield-analysis
|
|
7
7
|
|
|
8
8
|
## Purpose
|
|
9
|
-
Ensure
|
|
9
|
+
Ensure delivery in an existing system is Brownfield-oriented, not Greenfield-style.
|
|
10
10
|
|
|
11
11
|
The skill answers:
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ The skill answers:
|
|
|
15
15
|
- what can be reused, extended, or refactored
|
|
16
16
|
- whether new artefacts are really needed
|
|
17
17
|
- architecture, compatibility, migration, and regression impact
|
|
18
|
-
- the minimal clean
|
|
18
|
+
- the minimal clean next step
|
|
19
19
|
- whether Context Graph impact exists without automatically creating a node
|
|
20
20
|
|
|
21
21
|
## Runtime Contract
|
|
@@ -24,21 +24,24 @@ Use `../agdf-runtime-contract.md` for Quality Contract output, Context Graph fie
|
|
|
24
24
|
Brownfield-specific output must make evidence, missing existing-system view, parallel-structure risk, reuse strategy, and the minimal next step visible.
|
|
25
25
|
|
|
26
26
|
## Rules
|
|
27
|
-
1. Brownfield first: understand the existing codebase before implementation.
|
|
28
|
-
2.
|
|
29
|
-
3.
|
|
30
|
-
4.
|
|
31
|
-
5.
|
|
32
|
-
6.
|
|
33
|
-
7.
|
|
34
|
-
8.
|
|
35
|
-
9.
|
|
36
|
-
10.
|
|
37
|
-
11.
|
|
38
|
-
12.
|
|
27
|
+
1. Brownfield first: understand the existing codebase before PRD/SD decisions when existing-system impact is possible, and again before implementation.
|
|
28
|
+
2. Brownfield Review after `Approval: UR` is a sizing and routing step. It must decide `quick_task`, `structured_slice`, `structured_delivery`, or `block` before PRD depth or implementation is chosen.
|
|
29
|
+
3. Reuse-before-create: prefer existing modules, services, components, tables, endpoints, tests, and configuration.
|
|
30
|
+
4. Minimal clean slice: choose the smallest durable intervention, not merely the smallest technical diff.
|
|
31
|
+
5. No silent parallel structures.
|
|
32
|
+
6. Existing architecture, naming, error handling, logging, security, and test conventions are binding unless deviation is justified.
|
|
33
|
+
7. What is not visibly evidenced does not count as existing.
|
|
34
|
+
8. Async execute paths must not become a second product-policy decision point.
|
|
35
|
+
9. Visible state ownership must be checked for chat, rendering, scrolling, recovery, and status problems.
|
|
36
|
+
10. SoT/runtime/product-semantics drift must be named; if official behaviour must be decided first, recommend UR or equivalent product direction.
|
|
37
|
+
11. Large UI surfaces and state hooks must be checked for mixed render, view-model, derived state, orchestration, persistence, and recovery ownership.
|
|
38
|
+
12. Context Graph impact must be curated; it is not a review log or version index.
|
|
39
|
+
13. Specification archive migrations must follow the archive index if present.
|
|
39
40
|
|
|
40
41
|
## When To Use
|
|
42
|
+
- after `agdf-gate-check` permits `Brownfield Review` or live `.agdf/control/AGDF_RUN.md` names Brownfield Review as the next allowed action
|
|
41
43
|
- after `agdf-gate-check` permits implementation preparation or live `.agdf/control/AGDF_RUN.md` already names Brownfield Analysis as the next allowed action
|
|
44
|
+
- after `Approval: UR` when existing owners, SoT, contracts, policies, persistence, runtime paths, tests, UI, UX or architecture may affect PRD/SD scope
|
|
42
45
|
- before `CD+Tests`
|
|
43
46
|
- before changes to an existing repository
|
|
44
47
|
- bug fixes in existing modules
|
|
@@ -51,7 +54,7 @@ Brownfield-specific output must make evidence, missing existing-system view, par
|
|
|
51
54
|
## Inputs
|
|
52
55
|
Use what is available:
|
|
53
56
|
|
|
54
|
-
- Task Plan, `task_id`, `story_id`
|
|
57
|
+
- approved UR, Task Plan, `task_id`, `story_id`
|
|
55
58
|
- project structure
|
|
56
59
|
- affected files, modules, services, APIs, data models
|
|
57
60
|
- existing tests
|
|
@@ -59,7 +62,8 @@ Use what is available:
|
|
|
59
62
|
- repository conventions
|
|
60
63
|
|
|
61
64
|
If inputs are missing, work only from observable evidence and mark gaps explicitly.
|
|
62
|
-
If gate status, approval, scope or next allowed action is unclear, stop and route to `agdf-gate-check` instead of recommending or starting implementation.
|
|
65
|
+
If gate status, approval, scope or next allowed action is unclear, stop and route to `agdf-gate-check` instead of recommending PRD/SD detail or starting implementation.
|
|
66
|
+
When used as Brownfield Review after `Approval: UR`, do not recommend PRD, SD, TP, or implementation until the Mode/Slice Decision is explicit.
|
|
63
67
|
|
|
64
68
|
## Workflow
|
|
65
69
|
1. Identify affected tasks and scope.
|
|
@@ -93,6 +97,8 @@ Use a concise structure:
|
|
|
93
97
|
```text
|
|
94
98
|
## Brownfield Analysis
|
|
95
99
|
- decision: pass | revise | block | not_applicable
|
|
100
|
+
- mode_slice_decision: quick_task | structured_slice | structured_delivery | block
|
|
101
|
+
- required_next_gate: none | PRD | SD | TP | Brownfield Analysis
|
|
96
102
|
- scope:
|
|
97
103
|
- evidence:
|
|
98
104
|
- missing_evidence:
|
|
@@ -116,3 +122,4 @@ This skill must not:
|
|
|
116
122
|
- convert product-semantics drift into a mere refactor
|
|
117
123
|
- create Context Graph nodes automatically
|
|
118
124
|
- treat archive links as active current specification signals
|
|
125
|
+
- recommend broad PRD/SD/TP or implementation by reflex before Mode/Slice Decision is recorded
|
|
@@ -20,29 +20,45 @@ This skill must not create later artefacts such as PRD, SD, TP, CD, CR, QA, or U
|
|
|
20
20
|
## Runtime Contract
|
|
21
21
|
Use `../agdf-runtime-contract.md` for gate terms, closeout discipline, and non-duplication rules.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Native Control Path
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
AGDF is applied natively through this skill, the agent router, and live `.agdf/control/` state.
|
|
26
|
+
|
|
27
|
+
First inspect the durable control state directly:
|
|
28
|
+
|
|
29
|
+
- `.agdf/control/AGDF_RUN.md`
|
|
30
|
+
- `.agdf/control/MASTER_BACKLOG.md`
|
|
31
|
+
- `.agdf/control/SOT_REGISTRY.md`
|
|
32
|
+
- `.agdf/control/CONTEXT_GRAPH.md`
|
|
33
|
+
- `.agdf/control/AGENT_QUALITY_CONTRACTS.json`
|
|
34
|
+
|
|
35
|
+
Use the executable control path when a machine-readable check is requested, when the gate state is ambiguous, or when a repository-local automation needs JSON evidence:
|
|
26
36
|
|
|
27
37
|
```bash
|
|
28
38
|
npm create agdf@latest doctor --json
|
|
29
39
|
npm create agdf@latest gate-check --json
|
|
40
|
+
npm create agdf@latest delivery-map --json
|
|
30
41
|
```
|
|
31
42
|
|
|
32
43
|
`doctor` checks whether `.agdf/control/` is actionable. `agdf-gate-check` consumes that result and `AGDF_RUN.md` to report the operative process decision: `open | blocked`, current gate, blocking reason, missing approval, allowed outputs, forbidden outputs, next allowed action and evidence references.
|
|
44
|
+
`delivery-map` reports the durable delivery picture: active artefacts, approvals, Artefact Chain relationships, evidence refs, missing evidence, risks, Context Graph gate effect and machine-readable findings.
|
|
33
45
|
|
|
34
|
-
The CLI
|
|
46
|
+
The CLI reports are validators and JSON evidence, not the primary user experience and not a second rule system. If a report says `blocked`, do not continue with later-gate artefacts until the reported blocker is resolved.
|
|
35
47
|
|
|
36
48
|
## Rules
|
|
37
49
|
1. Fail closed when a required approval or artefact status is missing.
|
|
38
50
|
2. The earliest blocking gate wins.
|
|
39
51
|
3. A user approval is valid only as `Approval: <GateName>`.
|
|
40
52
|
4. Treat `Freigabe: <GateName>` as a legacy alias only when reviewing older German runs.
|
|
41
|
-
5. Implicit consent is not approval.
|
|
53
|
+
5. Implicit consent is not approval. "ok", "go ahead", "do it", "approved", "continue", "leg los" and similar phrases do not unlock gates.
|
|
42
54
|
6. Do not preview later artefacts while a gate blocks.
|
|
43
55
|
7. Internal process steps are not user approval gates.
|
|
44
56
|
8. OR-lite is allowed if it does not leak blocked content.
|
|
45
57
|
9. SoT/runtime/product-semantics drift can trigger an early product gate, usually `UR`.
|
|
58
|
+
10. Approval of one user gate permits work on the next allowed gate artefact or required internal step only; it never skips directly to implementation.
|
|
59
|
+
11. New product semantics, functional change or user-visible behaviour change requires a durable UR in `.agdf/control/` or a linked authoritative repository SoT before Brownfield Review, PRD, SD, TP, Brownfield Analysis or implementation.
|
|
60
|
+
12. Approval text and durable artefact presence are separate requirements for UR, PRD, SD, TP and QA report decisions. Approval text without the corresponding persisted or linked artefact keeps the current gate at that gate.
|
|
61
|
+
13. After Brownfield Review, decide the process size before drafting PRD or implementing: `quick_task | structured_slice | structured_delivery | block`.
|
|
46
62
|
|
|
47
63
|
## Gate Order
|
|
48
64
|
User gates:
|
|
@@ -51,7 +67,27 @@ User gates:
|
|
|
51
67
|
|
|
52
68
|
Internal mandatory steps:
|
|
53
69
|
|
|
54
|
-
`Brownfield Analysis -> CD+Tests -> CR -> OR`
|
|
70
|
+
`Brownfield Review -> Mode/Slice Decision -> Brownfield Analysis -> CD+Tests -> CR -> OR`
|
|
71
|
+
|
|
72
|
+
## Gate Transitions
|
|
73
|
+
|
|
74
|
+
Use this transition model for Structured Delivery:
|
|
75
|
+
|
|
76
|
+
| State | Current gate or step | Allowed | Forbidden | Missing approval |
|
|
77
|
+
|---|---|---|---|---|
|
|
78
|
+
| No approved UR | `UR` | clarify user need, formulate and persist UR, request `Approval: UR` | PRD, SD, TP, Brownfield Analysis, implementation, QA, release | `Approval: UR` |
|
|
79
|
+
| `UR` approved and UR artefact persisted or linked, Brownfield Review missing | `Brownfield Review` | classify workstream, existing owners, SoT, reuse risks, change size and PRD/SD open questions; mark review done or not_applicable | PRD, SD, TP, implementation, QA, release | none |
|
|
80
|
+
| Brownfield Review done or not_applicable, Mode/Slice Decision missing | `Mode/Slice Decision` | decide `quick_task`, `structured_slice`, `structured_delivery` or `block`; record evidence and required next gate depth | PRD, SD, TP, implementation, QA, release | none |
|
|
81
|
+
| Mode/Slice Decision is `quick_task` | `Quick Task Execution` | implement only the narrow approved UR scope, run relevant checks, record evidence and OR-lite | broad PRD/SD/TP by ritual, scope expansion, QA or release claims without evidence | none |
|
|
82
|
+
| Mode/Slice Decision is `structured_slice` or `structured_delivery`, PRD missing or draft | `PRD` | draft/refine PRD at the smallest justified depth, define scope, acceptance criteria and non-goals, persist/link PRD, request `Approval: PRD` | SD, TP, implementation-preparation Brownfield Analysis, implementation, QA, release | `Approval: PRD` |
|
|
83
|
+
| `PRD` approved and PRD artefact persisted or linked, SD missing or draft | `SD` | draft/refine Solution Design, ownership and architecture, persist/link SD, request `Approval: SD` | TP, implementation, QA, release | `Approval: SD` |
|
|
84
|
+
| `SD` approved and SD artefact persisted or linked, TP missing or draft | `TP` | draft/refine Task/Test Plan, task IDs, evidence plan, persist/link TP, request `Approval: TP` | implementation, QA, release | `Approval: TP` |
|
|
85
|
+
| `TP` approved and TP artefact persisted or linked, Brownfield missing | `Brownfield Analysis` | run Brownfield Analysis for approved TP scope | implementation, QA, release | none |
|
|
86
|
+
| Brownfield passed for approved TP | `CD+Tests` | implement approved TP tasks and run tests | QA pass, UAT, release | none |
|
|
87
|
+
| `QA` approved but QA report missing or not pass | `QA` | persist/link QA report with `pass` decision or revise/block evidence | UAT, release | none |
|
|
88
|
+
|
|
89
|
+
If `Approval: UR` is present, do not say implementation is the next step.
|
|
90
|
+
The next step is Brownfield Review when Brownfield, ownership, runtime, policy, persistence, architecture, UI or UX impact is possible; after that, the next step is a Mode/Slice Decision. Do not assume the full PRD/SD/TP chain before the existing-system impact is understood.
|
|
55
91
|
|
|
56
92
|
## When To Use
|
|
57
93
|
- new user intent to build, add, change, extend, refactor or deliver something
|
|
@@ -73,6 +109,8 @@ Use what is available:
|
|
|
73
109
|
- current user request
|
|
74
110
|
- existing exact approvals
|
|
75
111
|
- status of UR, PRD, SD, TP
|
|
112
|
+
- Brownfield Review status
|
|
113
|
+
- Mode/Slice Decision
|
|
76
114
|
- Brownfield Analysis status
|
|
77
115
|
- CD+Tests, CR, QA, UAT status
|
|
78
116
|
- signs of documentation/runtime/product-semantics drift
|
|
@@ -86,6 +124,9 @@ If a status is not explicit, do not assume it is satisfied.
|
|
|
86
124
|
4. Derive allowed and forbidden outputs.
|
|
87
125
|
5. Name the exact missing approval, if any.
|
|
88
126
|
6. If consent was only implicit, say it is not yet approval and provide the exact formula.
|
|
127
|
+
7. Ensure the next step follows the gate transition table. In particular, never jump from `Approval: UR` to implementation.
|
|
128
|
+
8. Treat a generic "start", "continue" or "leg los" request as a request to perform only the current next allowed action.
|
|
129
|
+
9. After Brownfield Review, choose the smallest safe process path before creating later artefacts.
|
|
89
130
|
|
|
90
131
|
## Output
|
|
91
132
|
Keep the result short and operational:
|
|
@@ -101,8 +142,15 @@ Keep the result short and operational:
|
|
|
101
142
|
This skill must not:
|
|
102
143
|
|
|
103
144
|
- create PRD before UR approval
|
|
145
|
+
- create PRD before required Brownfield Review is done or explicitly not_applicable
|
|
146
|
+
- create PRD before Mode/Slice Decision is recorded
|
|
104
147
|
- create SD before PRD approval
|
|
105
148
|
- create TP while earlier gates block
|
|
149
|
+
- suggest implementation immediately after `Approval: UR`
|
|
150
|
+
- suggest implementation before Brownfield Review has explicitly selected `quick_task`
|
|
151
|
+
- suggest implementation immediately after `Approval: PRD`
|
|
152
|
+
- suggest implementation immediately after `Approval: SD`
|
|
153
|
+
- treat "ok", "leg los", "go ahead", "approved" or similar wording as gate approval
|
|
106
154
|
- perform full Brownfield Analysis unless explicitly requested
|
|
107
155
|
- provide implementation snippets while implementation is gated
|
|
108
156
|
- present QA or UAT as passed without evidence
|