create-agdf 0.4.6 → 0.4.8
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/bin/create-agdf.js +53 -2
- package/generated/.agdf/control/templates/MASTER_BACKLOG.md +3 -0
- package/generated/.github/skills/agdf-gate-check/SKILL.md +1 -1
- package/generated/.github/skills/agdf-release-or/SKILL.md +1 -0
- package/generated/.github/skills/agdf-runtime-contract.md +11 -1
- package/generated/.opencode/agdf-runtime-contract.md +11 -1
- package/generated/.opencode/agents/agdf-gate-check.md +1 -1
- package/generated/.opencode/agents/agdf-release-or.md +1 -0
- package/generated/plugins/agdf/.codex-plugin/plugin.json +2 -2
- package/generated/plugins/agdf/control/templates/MASTER_BACKLOG.md +3 -0
- package/generated/plugins/agdf/meta/agdf-plugin.definition.json +2 -2
- package/generated/plugins/agdf/meta/agdf-runtime-contract.md +11 -1
- package/generated/plugins/agdf/skills/gate-check/SKILL.md +1 -1
- package/generated/plugins/agdf/skills/release-or/SKILL.md +1 -0
- package/lib/delivery-path-search/evaluators/claude.js +58 -0
- package/lib/delivery-path-search/surfaces/capabilities.js +1 -1
- package/package.json +3 -2
package/bin/create-agdf.js
CHANGED
|
@@ -9,6 +9,7 @@ import process from "node:process";
|
|
|
9
9
|
import { searchInputFromControl } from "../lib/delivery-path-search/state-adapter.js";
|
|
10
10
|
import { runDeliveryPathSearch } from "../lib/delivery-path-search/search-engine.js";
|
|
11
11
|
import { codexEvaluator } from "../lib/delivery-path-search/evaluators/codex.js";
|
|
12
|
+
import { claudeEvaluator } from "../lib/delivery-path-search/evaluators/claude.js";
|
|
12
13
|
import { fixtureEvaluator } from "../lib/delivery-path-search/evaluators/protocol.js";
|
|
13
14
|
import { enforcementForSurface } from "../lib/delivery-path-search/surfaces/capabilities.js";
|
|
14
15
|
import { persistSearchResult } from "../lib/delivery-path-search/persistence.js";
|
|
@@ -175,6 +176,7 @@ Preferred AGDF CLI:
|
|
|
175
176
|
npx --yes @agdf/cli@latest doctor
|
|
176
177
|
npx --yes @agdf/cli@latest gate-check --json
|
|
177
178
|
npx --yes @agdf/cli@latest delivery-path-search --surface codex --json
|
|
179
|
+
npx --yes @agdf/cli@latest delivery-path-search --surface claude --json
|
|
178
180
|
|
|
179
181
|
Scaffold-compatible npm create usage:
|
|
180
182
|
npm create agdf@latest -- codex
|
|
@@ -191,6 +193,7 @@ Scaffold-compatible npm create usage:
|
|
|
191
193
|
npm create agdf@latest -- gate-check
|
|
192
194
|
npm create agdf@latest -- delivery-map
|
|
193
195
|
npm create agdf@latest -- delivery-path-search --surface codex
|
|
196
|
+
npm create agdf@latest -- delivery-path-search --surface claude
|
|
194
197
|
|
|
195
198
|
Backward-compatible create-agdf usage:
|
|
196
199
|
npx --yes create-agdf@latest doctor --json
|
|
@@ -1723,6 +1726,40 @@ function deriveQualityOutlook(runState, findings = []) {
|
|
|
1723
1726
|
return "No additional quality follow-up identified from the current control state.";
|
|
1724
1727
|
}
|
|
1725
1728
|
|
|
1729
|
+
function postApprovalTransition(missingApproval) {
|
|
1730
|
+
const transitions = new Map([
|
|
1731
|
+
["Approval: UR", {
|
|
1732
|
+
next_gate_after_approval: "Brownfield Review",
|
|
1733
|
+
allowed_after_approval: "Run Brownfield Review and record Mode/Slice Decision before PRD or implementation.",
|
|
1734
|
+
}],
|
|
1735
|
+
["Approval: PRD", {
|
|
1736
|
+
next_gate_after_approval: "SD",
|
|
1737
|
+
allowed_after_approval: "Draft Solution Design; implementation remains forbidden.",
|
|
1738
|
+
}],
|
|
1739
|
+
["Approval: SD", {
|
|
1740
|
+
next_gate_after_approval: "TP",
|
|
1741
|
+
allowed_after_approval: "Draft Task/Test Plan; implementation remains forbidden.",
|
|
1742
|
+
}],
|
|
1743
|
+
["Approval: TP", {
|
|
1744
|
+
next_gate_after_approval: "Brownfield Analysis",
|
|
1745
|
+
allowed_after_approval: "Run implementation-prep Brownfield Analysis before CD+Tests.",
|
|
1746
|
+
}],
|
|
1747
|
+
["Approval: QA", {
|
|
1748
|
+
next_gate_after_approval: "UAT",
|
|
1749
|
+
allowed_after_approval: "Request UAT when QA has passed; release remains gated.",
|
|
1750
|
+
}],
|
|
1751
|
+
["Approval: UAT", {
|
|
1752
|
+
next_gate_after_approval: "OR",
|
|
1753
|
+
allowed_after_approval: "Produce OR or delivery closeout; VCS and release actions still require explicit instruction.",
|
|
1754
|
+
}],
|
|
1755
|
+
]);
|
|
1756
|
+
|
|
1757
|
+
return transitions.get(missingApproval) ?? {
|
|
1758
|
+
next_gate_after_approval: "none",
|
|
1759
|
+
allowed_after_approval: "none",
|
|
1760
|
+
};
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1726
1763
|
function buildStatusCard({
|
|
1727
1764
|
status,
|
|
1728
1765
|
currentGate,
|
|
@@ -1735,6 +1772,7 @@ function buildStatusCard({
|
|
|
1735
1772
|
findings = [],
|
|
1736
1773
|
}) {
|
|
1737
1774
|
const qualityOutlook = deriveQualityOutlook(runState, findings);
|
|
1775
|
+
const postApproval = postApprovalTransition(missingApproval);
|
|
1738
1776
|
return {
|
|
1739
1777
|
mode: extractField(runState.content ?? "", "mode") || "unknown",
|
|
1740
1778
|
status,
|
|
@@ -1744,6 +1782,8 @@ function buildStatusCard({
|
|
|
1744
1782
|
forbidden_now: forbidden,
|
|
1745
1783
|
blocking_condition: blockingReason || "none",
|
|
1746
1784
|
missing_approval: missingApproval || "none",
|
|
1785
|
+
next_gate_after_approval: postApproval.next_gate_after_approval,
|
|
1786
|
+
allowed_after_approval: postApproval.allowed_after_approval,
|
|
1747
1787
|
evidence: runState.evidence_refs,
|
|
1748
1788
|
next_skill: nextSkillByGate[currentGate] ?? "gate-check",
|
|
1749
1789
|
next_step: nextAllowedAction,
|
|
@@ -1987,12 +2027,16 @@ function evaluateGateCheck(targetDir) {
|
|
|
1987
2027
|
: doctorRevise.next_step;
|
|
1988
2028
|
}
|
|
1989
2029
|
|
|
2030
|
+
const postApproval = postApprovalTransition(missingApproval);
|
|
2031
|
+
|
|
1990
2032
|
return {
|
|
1991
2033
|
schema_version: "1",
|
|
1992
2034
|
status,
|
|
1993
2035
|
current_gate: currentGate,
|
|
1994
2036
|
blocking_reason: blockingReason,
|
|
1995
2037
|
missing_approval: missingApproval,
|
|
2038
|
+
next_gate_after_approval: postApproval.next_gate_after_approval,
|
|
2039
|
+
allowed_after_approval: postApproval.allowed_after_approval,
|
|
1996
2040
|
allowed,
|
|
1997
2041
|
forbidden,
|
|
1998
2042
|
next_allowed_action: nextAllowedAction,
|
|
@@ -2029,6 +2073,8 @@ function printGateCheckStatusCard(report) {
|
|
|
2029
2073
|
console.log(`Current gate: ${card.current_gate}`);
|
|
2030
2074
|
console.log(`Blocked by: ${card.blocking_condition}`);
|
|
2031
2075
|
console.log(`Missing approval: ${card.missing_approval}`);
|
|
2076
|
+
if (card.next_gate_after_approval !== "none") console.log(`Next gate after approval: ${card.next_gate_after_approval}`);
|
|
2077
|
+
if (card.allowed_after_approval !== "none") console.log(`Allowed after approval: ${card.allowed_after_approval}`);
|
|
2032
2078
|
console.log(`Next skill: ${card.next_skill}`);
|
|
2033
2079
|
console.log(`Next step: ${card.next_step}`);
|
|
2034
2080
|
console.log(`Quality outlook: ${card.quality_outlook}`);
|
|
@@ -2087,6 +2133,7 @@ function evaluateDeliveryMap(targetDir) {
|
|
|
2087
2133
|
|
|
2088
2134
|
const qualityOutlook = deriveQualityOutlook(runState, map.findings);
|
|
2089
2135
|
const nextAllowedAction = isPlaceholderValue(runState.next_allowed_action) ? gateDecision.next_allowed_action : runState.next_allowed_action;
|
|
2136
|
+
const postApproval = postApprovalTransition(gateDecision.missing_approval);
|
|
2090
2137
|
|
|
2091
2138
|
return {
|
|
2092
2139
|
schema_version: "1",
|
|
@@ -2095,6 +2142,8 @@ function evaluateDeliveryMap(targetDir) {
|
|
|
2095
2142
|
target_dir: targetDir,
|
|
2096
2143
|
current_gate: currentGate,
|
|
2097
2144
|
next_allowed_action: nextAllowedAction,
|
|
2145
|
+
next_gate_after_approval: postApproval.next_gate_after_approval,
|
|
2146
|
+
allowed_after_approval: postApproval.allowed_after_approval,
|
|
2098
2147
|
quality_outlook: qualityOutlook,
|
|
2099
2148
|
status_card: buildStatusCard({
|
|
2100
2149
|
status,
|
|
@@ -2154,9 +2203,11 @@ async function executeDeliveryPathSearch(options) {
|
|
|
2154
2203
|
? fixtureEvaluator(fixture.evaluations ?? {})
|
|
2155
2204
|
: options.surface === "codex"
|
|
2156
2205
|
? codexEvaluator({ cwd: options.dir, model: options.model })
|
|
2157
|
-
:
|
|
2206
|
+
: options.surface === "claude"
|
|
2207
|
+
? claudeEvaluator({ cwd: options.dir, model: options.model })
|
|
2208
|
+
: null;
|
|
2158
2209
|
if (!evaluator) {
|
|
2159
|
-
throw new Error(`${options.surface} has no executable evaluator in this release. Codex
|
|
2210
|
+
throw new Error(`${options.surface} has no executable evaluator in this release. Codex and Claude are the reference adapters; --fixture is available for deterministic contract testing.`);
|
|
2160
2211
|
}
|
|
2161
2212
|
const result = await runDeliveryPathSearch(input, evaluator, { candidates: fixture?.candidates });
|
|
2162
2213
|
if (options.persist) result.persistence = persistSearchResult(options.dir, result);
|
|
@@ -15,6 +15,9 @@ This file is the living control pointer for active AGDF delivery work. Detailed
|
|
|
15
15
|
9. Historical artefacts remain linkable but do not override the current pointer.
|
|
16
16
|
10. If an item is superseded, mark the replacement.
|
|
17
17
|
11. If active work grows beyond roughly ten items, triage the backlog.
|
|
18
|
+
12. `Status` must be one of the human-readable labels `create-agdf/bin/create-agdf.js`'s `backlogStatusLabels` normalizes: Needs UR, Awaiting Brownfield Review, Awaiting PRD, Awaiting PRD Approval, Awaiting SD, Awaiting SD Approval, Awaiting TP, Awaiting TP Approval, In Progress, Blocked, Awaiting QA, Awaiting UAT, Completed, Superseded, Abandoned. That map is authoritative; this list only mirrors it for readability.
|
|
19
|
+
13. `Artefacts` link labels must be one of `backlogArtefactLabels`: `ur`, `brownfield`, `prd`, `sd`, `tp`, `qa`, `or` (case-insensitive). Do not invent other labels such as a raw artefact filename.
|
|
20
|
+
14. After writing or updating this file, run `doctor --json` (or the locally available equivalent) and resolve any `AGDF_BACKLOG_STATUS_UNKNOWN` or `AGDF_BACKLOG_ARTEFACT_LABEL_UNKNOWN` finding before treating the edit as done.
|
|
18
21
|
|
|
19
22
|
## Active Backlog
|
|
20
23
|
|
|
@@ -70,7 +70,7 @@ The CLI reports are validators and JSON evidence, not the primary user experienc
|
|
|
70
70
|
15. Missing or incomplete control state must not push setup work back to the user. For a fresh request, draft the current minimal artefact in the response and request the exact approval. Initialize or write `.agdf/control/` only when durable control state is explicitly requested, already live for the repository, or required for a deterministic CLI/CI setup path. Implementation remains forbidden.
|
|
71
71
|
16. Branch names, uncommitted diffs, generated summaries and chat history are not sufficient scope proof when durable artefacts or approvals are missing or conflicting.
|
|
72
72
|
17. If multiple active scopes are plausible, list the evidenced competing lines and keep the current step at scope clarification or the earliest common safe gate.
|
|
73
|
-
18. When maintaining `MASTER_BACKLOG.md`, use its canonical compact columns, readable status labels and document-relative Markdown links. Do not expose raw long paths or internal snake_case statuses in the human-facing table.
|
|
73
|
+
18. When maintaining `MASTER_BACKLOG.md`, use its canonical compact columns, readable status labels and document-relative Markdown links. Do not expose raw long paths or internal snake_case statuses in the human-facing table. The canonical status/artefact label vocabulary is defined in the AGDF control scaffold's `MASTER_BACKLOG.md` template Rules section; do not invent other labels.
|
|
74
74
|
19. Preserve legacy backlog compatibility through the CLI parser; do not create a second surface-specific backlog format.
|
|
75
75
|
|
|
76
76
|
## Gate Evaluation
|
|
@@ -46,6 +46,7 @@ Use the Runtime Contract definition of `Relevant Run` to decide whether OR is ma
|
|
|
46
46
|
12. Keep machine status normalization in the CLI; do not write internal snake_case status values into the human-facing backlog.
|
|
47
47
|
13. Reconcile Context Graph impact before clean closeout: report `context_graph_reconciliation: resolved | not_applicable | open_gap`.
|
|
48
48
|
14. If Context Graph work remains unresolved, report it as an explicit open gap and do not describe the run as cleanly handoff-ready.
|
|
49
|
+
15. After writing or updating `MASTER_BACKLOG.md`, run `doctor --json` (or the locally available equivalent) and resolve any `AGDF_BACKLOG_STATUS_UNKNOWN` or `AGDF_BACKLOG_ARTEFACT_LABEL_UNKNOWN` finding before closeout. See the AGDF control scaffold's `MASTER_BACKLOG.md` template Rules section for the canonical status/artefact label vocabulary.
|
|
49
50
|
|
|
50
51
|
## When To Use
|
|
51
52
|
- at the end of every relevant run
|
|
@@ -40,6 +40,8 @@ It must not introduce a second gate model or override `agdf-gate-check`, `delive
|
|
|
40
40
|
- `forbidden_now`: outputs or actions currently forbidden
|
|
41
41
|
- `blocking_condition`: current blocker or `none`
|
|
42
42
|
- `missing_approval`: exact missing approval formula or `none`
|
|
43
|
+
- `next_gate_after_approval`: the next user gate or internal step unlocked by the missing approval, or `none`
|
|
44
|
+
- `allowed_after_approval`: concise description of what becomes allowed after the missing approval, or `none`
|
|
43
45
|
- `evidence`: concrete evidence references currently visible
|
|
44
46
|
- `next_skill`: next AGDF skill or `none`
|
|
45
47
|
- `next_step`: the single next permissible process action
|
|
@@ -52,6 +54,13 @@ It must not introduce a second gate model or override `agdf-gate-check`, `delive
|
|
|
52
54
|
|
|
53
55
|
`quality_outlook` must not unlock gates, imply QA pass, or substitute for missing evidence.
|
|
54
56
|
|
|
57
|
+
`allowed_now` and `allowed_after_approval` are intentionally different:
|
|
58
|
+
|
|
59
|
+
- `allowed_now` is current authority under the active gate.
|
|
60
|
+
- `allowed_after_approval` is the immediate authority unlocked only after the exact `missing_approval` is supplied.
|
|
61
|
+
|
|
62
|
+
`next_gate_after_approval` and `allowed_after_approval` must be `none` when no approval is missing, when the current step is internal, or when the run is in OR/completed handoff. They must not imply implementation, QA, release, commit, push or PR authority unless the existing gate model already allows that authority.
|
|
63
|
+
|
|
55
64
|
## Delivery Path Search
|
|
56
65
|
|
|
57
66
|
Delivery Path Search is an optional read-only planning step for high-impact decisions with several materially different next actions.
|
|
@@ -69,7 +78,8 @@ reports and automation. Human-facing Markdown must present the same projection
|
|
|
69
78
|
with readable labels such as `Current gate`, `Allowed now`, `Blocked by`,
|
|
70
79
|
`Next step` and `Quality outlook`; do not expose snake_case keys as the visible
|
|
71
80
|
Run Status Card. Keep that card compact: show `Status`, `Current gate`,
|
|
72
|
-
`Allowed now`, `Blocked by`, `Missing approval`, `Next
|
|
81
|
+
`Allowed now`, `Blocked by`, `Missing approval`, `Next gate after approval`
|
|
82
|
+
and `Allowed after approval` when a missing approval exists, `Next step` and
|
|
73
83
|
`Quality outlook`. Keep mode, forbidden actions, evidence and next-skill detail
|
|
74
84
|
in the surrounding control artefact when they are relevant.
|
|
75
85
|
|
|
@@ -40,6 +40,8 @@ It must not introduce a second gate model or override `agdf-gate-check`, `delive
|
|
|
40
40
|
- `forbidden_now`: outputs or actions currently forbidden
|
|
41
41
|
- `blocking_condition`: current blocker or `none`
|
|
42
42
|
- `missing_approval`: exact missing approval formula or `none`
|
|
43
|
+
- `next_gate_after_approval`: the next user gate or internal step unlocked by the missing approval, or `none`
|
|
44
|
+
- `allowed_after_approval`: concise description of what becomes allowed after the missing approval, or `none`
|
|
43
45
|
- `evidence`: concrete evidence references currently visible
|
|
44
46
|
- `next_skill`: next AGDF skill or `none`
|
|
45
47
|
- `next_step`: the single next permissible process action
|
|
@@ -52,6 +54,13 @@ It must not introduce a second gate model or override `agdf-gate-check`, `delive
|
|
|
52
54
|
|
|
53
55
|
`quality_outlook` must not unlock gates, imply QA pass, or substitute for missing evidence.
|
|
54
56
|
|
|
57
|
+
`allowed_now` and `allowed_after_approval` are intentionally different:
|
|
58
|
+
|
|
59
|
+
- `allowed_now` is current authority under the active gate.
|
|
60
|
+
- `allowed_after_approval` is the immediate authority unlocked only after the exact `missing_approval` is supplied.
|
|
61
|
+
|
|
62
|
+
`next_gate_after_approval` and `allowed_after_approval` must be `none` when no approval is missing, when the current step is internal, or when the run is in OR/completed handoff. They must not imply implementation, QA, release, commit, push or PR authority unless the existing gate model already allows that authority.
|
|
63
|
+
|
|
55
64
|
## Delivery Path Search
|
|
56
65
|
|
|
57
66
|
Delivery Path Search is an optional read-only planning step for high-impact decisions with several materially different next actions.
|
|
@@ -69,7 +78,8 @@ reports and automation. Human-facing Markdown must present the same projection
|
|
|
69
78
|
with readable labels such as `Current gate`, `Allowed now`, `Blocked by`,
|
|
70
79
|
`Next step` and `Quality outlook`; do not expose snake_case keys as the visible
|
|
71
80
|
Run Status Card. Keep that card compact: show `Status`, `Current gate`,
|
|
72
|
-
`Allowed now`, `Blocked by`, `Missing approval`, `Next
|
|
81
|
+
`Allowed now`, `Blocked by`, `Missing approval`, `Next gate after approval`
|
|
82
|
+
and `Allowed after approval` when a missing approval exists, `Next step` and
|
|
73
83
|
`Quality outlook`. Keep mode, forbidden actions, evidence and next-skill detail
|
|
74
84
|
in the surrounding control artefact when they are relevant.
|
|
75
85
|
|
|
@@ -70,7 +70,7 @@ The CLI reports are validators and JSON evidence, not the primary user experienc
|
|
|
70
70
|
15. Missing or incomplete control state must not push setup work back to the user. For a fresh request, draft the current minimal artefact in the response and request the exact approval. Initialize or write `.agdf/control/` only when durable control state is explicitly requested, already live for the repository, or required for a deterministic CLI/CI setup path. Implementation remains forbidden.
|
|
71
71
|
16. Branch names, uncommitted diffs, generated summaries and chat history are not sufficient scope proof when durable artefacts or approvals are missing or conflicting.
|
|
72
72
|
17. If multiple active scopes are plausible, list the evidenced competing lines and keep the current step at scope clarification or the earliest common safe gate.
|
|
73
|
-
18. When maintaining `MASTER_BACKLOG.md`, use its canonical compact columns, readable status labels and document-relative Markdown links. Do not expose raw long paths or internal snake_case statuses in the human-facing table.
|
|
73
|
+
18. When maintaining `MASTER_BACKLOG.md`, use its canonical compact columns, readable status labels and document-relative Markdown links. Do not expose raw long paths or internal snake_case statuses in the human-facing table. The canonical status/artefact label vocabulary is defined in the AGDF control scaffold's `MASTER_BACKLOG.md` template Rules section; do not invent other labels.
|
|
74
74
|
19. Preserve legacy backlog compatibility through the CLI parser; do not create a second surface-specific backlog format.
|
|
75
75
|
|
|
76
76
|
## Gate Evaluation
|
|
@@ -46,6 +46,7 @@ Use the Runtime Contract definition of `Relevant Run` to decide whether OR is ma
|
|
|
46
46
|
12. Keep machine status normalization in the CLI; do not write internal snake_case status values into the human-facing backlog.
|
|
47
47
|
13. Reconcile Context Graph impact before clean closeout: report `context_graph_reconciliation: resolved | not_applicable | open_gap`.
|
|
48
48
|
14. If Context Graph work remains unresolved, report it as an explicit open gap and do not describe the run as cleanly handoff-ready.
|
|
49
|
+
15. After writing or updating `MASTER_BACKLOG.md`, run `doctor --json` (or the locally available equivalent) and resolve any `AGDF_BACKLOG_STATUS_UNKNOWN` or `AGDF_BACKLOG_ARTEFACT_LABEL_UNKNOWN` finding before closeout. See the AGDF control scaffold's `MASTER_BACKLOG.md` template Rules section for the canonical status/artefact label vocabulary.
|
|
49
50
|
|
|
50
51
|
## When To Use
|
|
51
52
|
- at the end of every relevant run
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agdf",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Codex-first workflow skills for gated, auditable AI-assisted software delivery.",
|
|
5
5
|
"author": {
|
|
6
|
-
"name": "
|
|
6
|
+
"name": "Arndt Gold",
|
|
7
7
|
"url": "https://agdf.iself.eu"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://agdf.iself.eu",
|
|
@@ -15,6 +15,9 @@ This file is the living control pointer for active AGDF delivery work. Detailed
|
|
|
15
15
|
9. Historical artefacts remain linkable but do not override the current pointer.
|
|
16
16
|
10. If an item is superseded, mark the replacement.
|
|
17
17
|
11. If active work grows beyond roughly ten items, triage the backlog.
|
|
18
|
+
12. `Status` must be one of the human-readable labels `create-agdf/bin/create-agdf.js`'s `backlogStatusLabels` normalizes: Needs UR, Awaiting Brownfield Review, Awaiting PRD, Awaiting PRD Approval, Awaiting SD, Awaiting SD Approval, Awaiting TP, Awaiting TP Approval, In Progress, Blocked, Awaiting QA, Awaiting UAT, Completed, Superseded, Abandoned. That map is authoritative; this list only mirrors it for readability.
|
|
19
|
+
13. `Artefacts` link labels must be one of `backlogArtefactLabels`: `ur`, `brownfield`, `prd`, `sd`, `tp`, `qa`, `or` (case-insensitive). Do not invent other labels such as a raw artefact filename.
|
|
20
|
+
14. After writing or updating this file, run `doctor --json` (or the locally available equivalent) and resolve any `AGDF_BACKLOG_STATUS_UNKNOWN` or `AGDF_BACKLOG_ARTEFACT_LABEL_UNKNOWN` finding before treating the edit as done.
|
|
18
21
|
|
|
19
22
|
## Active Backlog
|
|
20
23
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "agdf",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.8",
|
|
5
5
|
"displayName": "AI Governance & Delivery Framework",
|
|
6
6
|
"developerName": "AI-native Governance & Delivery Framework",
|
|
7
7
|
"description": "Codex-first workflow skills for gated, auditable AI-assisted software delivery.",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"category": "Productivity",
|
|
22
22
|
"brandColor": "#14B8A6",
|
|
23
23
|
"author": {
|
|
24
|
-
"name": "
|
|
24
|
+
"name": "Arndt Gold",
|
|
25
25
|
"url": "https://agdf.iself.eu"
|
|
26
26
|
},
|
|
27
27
|
"codex": {
|
|
@@ -40,6 +40,8 @@ It must not introduce a second gate model or override `gate-check`, `delivery-ma
|
|
|
40
40
|
- `forbidden_now`: outputs or actions currently forbidden
|
|
41
41
|
- `blocking_condition`: current blocker or `none`
|
|
42
42
|
- `missing_approval`: exact missing approval formula or `none`
|
|
43
|
+
- `next_gate_after_approval`: the next user gate or internal step unlocked by the missing approval, or `none`
|
|
44
|
+
- `allowed_after_approval`: concise description of what becomes allowed after the missing approval, or `none`
|
|
43
45
|
- `evidence`: concrete evidence references currently visible
|
|
44
46
|
- `next_skill`: next AGDF skill or `none`
|
|
45
47
|
- `next_step`: the single next permissible process action
|
|
@@ -52,6 +54,13 @@ It must not introduce a second gate model or override `gate-check`, `delivery-ma
|
|
|
52
54
|
|
|
53
55
|
`quality_outlook` must not unlock gates, imply QA pass, or substitute for missing evidence.
|
|
54
56
|
|
|
57
|
+
`allowed_now` and `allowed_after_approval` are intentionally different:
|
|
58
|
+
|
|
59
|
+
- `allowed_now` is current authority under the active gate.
|
|
60
|
+
- `allowed_after_approval` is the immediate authority unlocked only after the exact `missing_approval` is supplied.
|
|
61
|
+
|
|
62
|
+
`next_gate_after_approval` and `allowed_after_approval` must be `none` when no approval is missing, when the current step is internal, or when the run is in OR/completed handoff. They must not imply implementation, QA, release, commit, push or PR authority unless the existing gate model already allows that authority.
|
|
63
|
+
|
|
55
64
|
## Delivery Path Search
|
|
56
65
|
|
|
57
66
|
Delivery Path Search is an optional read-only planning step for high-impact decisions with several materially different next actions.
|
|
@@ -69,7 +78,8 @@ reports and automation. Human-facing Markdown must present the same projection
|
|
|
69
78
|
with readable labels such as `Current gate`, `Allowed now`, `Blocked by`,
|
|
70
79
|
`Next step` and `Quality outlook`; do not expose snake_case keys as the visible
|
|
71
80
|
Run Status Card. Keep that card compact: show `Status`, `Current gate`,
|
|
72
|
-
`Allowed now`, `Blocked by`, `Missing approval`, `Next
|
|
81
|
+
`Allowed now`, `Blocked by`, `Missing approval`, `Next gate after approval`
|
|
82
|
+
and `Allowed after approval` when a missing approval exists, `Next step` and
|
|
73
83
|
`Quality outlook`. Keep mode, forbidden actions, evidence and next-skill detail
|
|
74
84
|
in the surrounding control artefact when they are relevant.
|
|
75
85
|
|
|
@@ -70,7 +70,7 @@ The CLI reports are validators and JSON evidence, not the primary user experienc
|
|
|
70
70
|
15. Missing or incomplete control state must not push setup work back to the user. For a fresh request, draft the current minimal artefact in the response and request the exact approval. Initialize or write `.agdf/control/` only when durable control state is explicitly requested, already live for the repository, or required for a deterministic CLI/CI setup path. Implementation remains forbidden.
|
|
71
71
|
16. Branch names, uncommitted diffs, generated summaries and chat history are not sufficient scope proof when durable artefacts or approvals are missing or conflicting.
|
|
72
72
|
17. If multiple active scopes are plausible, list the evidenced competing lines and keep the current step at scope clarification or the earliest common safe gate.
|
|
73
|
-
18. When maintaining `MASTER_BACKLOG.md`, use its canonical compact columns, readable status labels and document-relative Markdown links. Do not expose raw long paths or internal snake_case statuses in the human-facing table.
|
|
73
|
+
18. When maintaining `MASTER_BACKLOG.md`, use its canonical compact columns, readable status labels and document-relative Markdown links. Do not expose raw long paths or internal snake_case statuses in the human-facing table. The canonical status/artefact label vocabulary is defined in the AGDF control scaffold's `MASTER_BACKLOG.md` template Rules section; do not invent other labels.
|
|
74
74
|
19. Preserve legacy backlog compatibility through the CLI parser; do not create a second surface-specific backlog format.
|
|
75
75
|
|
|
76
76
|
## Gate Evaluation
|
|
@@ -46,6 +46,7 @@ Use the Runtime Contract definition of `Relevant Run` to decide whether OR is ma
|
|
|
46
46
|
12. Keep machine status normalization in the CLI; do not write internal snake_case status values into the human-facing backlog.
|
|
47
47
|
13. Reconcile Context Graph impact before clean closeout: report `context_graph_reconciliation: resolved | not_applicable | open_gap`.
|
|
48
48
|
14. If Context Graph work remains unresolved, report it as an explicit open gap and do not describe the run as cleanly handoff-ready.
|
|
49
|
+
15. After writing or updating `MASTER_BACKLOG.md`, run `doctor --json` (or the locally available equivalent) and resolve any `AGDF_BACKLOG_STATUS_UNKNOWN` or `AGDF_BACKLOG_ARTEFACT_LABEL_UNKNOWN` finding before closeout. See the AGDF control scaffold's `MASTER_BACKLOG.md` template Rules section for the canonical status/artefact label vocabulary.
|
|
49
50
|
|
|
50
51
|
## When To Use
|
|
51
52
|
- at the end of every relevant run
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { execFileSync } from "node:child_process";
|
|
2
|
+
import { evaluatorOutputSchema, validateEvaluation } from "../contracts.js";
|
|
3
|
+
|
|
4
|
+
export function claudeEvaluator(options = {}) {
|
|
5
|
+
const claudeBin = options.claudeBin ?? "claude";
|
|
6
|
+
let runtime = "claude version unavailable";
|
|
7
|
+
try {
|
|
8
|
+
runtime = execFileSync(claudeBin, ["--version"], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).trim();
|
|
9
|
+
} catch {}
|
|
10
|
+
|
|
11
|
+
function gitState() {
|
|
12
|
+
try {
|
|
13
|
+
return execFileSync("git", ["status", "--porcelain=v1", "-z"], {
|
|
14
|
+
cwd: options.cwd,
|
|
15
|
+
encoding: "utf8",
|
|
16
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
17
|
+
});
|
|
18
|
+
} catch {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
name: "claude",
|
|
25
|
+
metadata: { name: "claude", runtime, model: options.model ?? "configured-default" },
|
|
26
|
+
async evaluate(input, candidate) {
|
|
27
|
+
const prompt = [
|
|
28
|
+
"You are an evaluation-only component. Do not use tools, execute commands, or modify files.",
|
|
29
|
+
`Return JSON matching contract version ${input.contract_version}.`,
|
|
30
|
+
`Objective: ${input.objective}`,
|
|
31
|
+
`Current gate: ${input.current_gate}`,
|
|
32
|
+
`Candidate id: ${candidate.id}`,
|
|
33
|
+
`Candidate action: ${candidate.action}`,
|
|
34
|
+
"Score scope_fit, gate_readiness, risk_reduction, evidence_gain, testability, reversibility and cost from 0 to 5.",
|
|
35
|
+
"Cost 0 is low and 5 is high. uncertainty is 0 low to 5 high.",
|
|
36
|
+
"Keep rationale concise. child_actions must only contain actions permitted by the current gate.",
|
|
37
|
+
].join("\n");
|
|
38
|
+
const args = [
|
|
39
|
+
"-p", "--disallowedTools", "Edit,Write,Bash",
|
|
40
|
+
"--output-format", "json", "--json-schema", JSON.stringify(evaluatorOutputSchema()),
|
|
41
|
+
];
|
|
42
|
+
if (options.model) args.push("--model", options.model);
|
|
43
|
+
args.push(prompt);
|
|
44
|
+
const before = gitState();
|
|
45
|
+
const raw = execFileSync(claudeBin, args, {
|
|
46
|
+
cwd: options.cwd,
|
|
47
|
+
encoding: "utf8",
|
|
48
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
49
|
+
timeout: options.timeoutMs ?? 120000,
|
|
50
|
+
});
|
|
51
|
+
const after = gitState();
|
|
52
|
+
if (before !== null && after !== before) throw new Error("repository mutation detected during read-only evaluator run");
|
|
53
|
+
const response = JSON.parse(raw);
|
|
54
|
+
if (response.is_error) throw new Error(`claude evaluator returned an error: ${response.result ?? "unknown error"}`);
|
|
55
|
+
return validateEvaluation(JSON.parse(response.result), candidate.id);
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -3,7 +3,7 @@ import { validateEnforcement } from "../contracts.js";
|
|
|
3
3
|
export function enforcementForSurface(surface, evidence = []) {
|
|
4
4
|
const defaults = {
|
|
5
5
|
codex: { level: "tool_enforced", evidence: ["codex exec --sandbox read-only --ephemeral"] },
|
|
6
|
-
claude: { level: "
|
|
6
|
+
claude: { level: "tool_enforced", evidence: ["claude -p --disallowedTools Edit,Write,Bash"] },
|
|
7
7
|
copilot: { level: "instruction_only", evidence: [] },
|
|
8
8
|
opencode: { level: "instruction_only", evidence: [] },
|
|
9
9
|
generic: { level: "instruction_only", evidence: [] },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-agdf",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Bootstrap AGDF repository-local plugin files, Copilot/OpenCode instructions, skills, control files and machine-readable checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -22,8 +22,9 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"sync-package-assets": "node ./scripts/sync-package-assets.js",
|
|
24
24
|
"test:delivery-path-search": "node ./scripts/delivery-path-search-test.js",
|
|
25
|
+
"test:delivery-path-search-unit": "node ./scripts/delivery-path-search-unit-test.js",
|
|
25
26
|
"test:routing": "npm run sync-package-assets && node ./scripts/test-routing.js",
|
|
26
|
-
"smoke-test": "npm run sync-package-assets && npm run test:delivery-path-search && node ./scripts/smoke-test.js && node ./scripts/test-routing.js",
|
|
27
|
+
"smoke-test": "npm run sync-package-assets && npm run test:delivery-path-search && npm run test:delivery-path-search-unit && node ./scripts/smoke-test.js && node ./scripts/test-routing.js",
|
|
27
28
|
"prepack": "npm run sync-package-assets"
|
|
28
29
|
},
|
|
29
30
|
"keywords": [
|