create-agdf 0.2.6 → 0.2.7

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 CHANGED
@@ -44,7 +44,7 @@ The generated `.agdf/control/templates/` files are reusable starting points for
44
44
  - `CONTEXT_GRAPH.md` for durable Brownfield findings, decisions, risks, evidence and exit criteria
45
45
  - `AGENT_QUALITY_CONTRACTS.json` for reusable block, revise and warning conditions
46
46
 
47
- Use `init` to promote those templates into live control files:
47
+ Use `init` to promote those templates into live control files when the repository should own durable AGDF control state:
48
48
 
49
49
  ```bash
50
50
  npm create agdf@latest init
@@ -84,7 +84,7 @@ npm create agdf@latest gate-check --json
84
84
 
85
85
  The gate check reports `open | blocked`, the current gate, blocking reason, missing exact approval, allowed outputs, forbidden outputs, next allowed action, evidence references and the embedded doctor report.
86
86
 
87
- Together, `init`, `doctor` and `gate-check --json` turn AGDF from an instruction layer into a repository control system: the agent can be guided by rules, and the repository state can be checked before the next governed step.
87
+ Together, `init`, `doctor` and `gate-check --json` turn AGDF from an instruction layer into a repository control system when durable control state is needed. For normal fresh requests, the agent-native path can stay lighter: draft the minimal UR in the response, request `Approval: UR`, and use CLI validators only when machine-readable proof is useful.
88
88
 
89
89
  ## Single source of truth
90
90
 
@@ -506,7 +506,7 @@ function evaluateDoctor(targetDir) {
506
506
  ? "Live control file is missing; only the template exists."
507
507
  : "Required live control file is missing.",
508
508
  relativePath,
509
- "Run npm create agdf@latest init, then fill the live control files with the current repository state.",
509
+ "Run npm create agdf@latest init only when the repository should own durable AGDF control state or deterministic setup is explicitly needed.",
510
510
  );
511
511
  }
512
512
 
@@ -1119,13 +1119,12 @@ function evaluateGateCheck(targetDir) {
1119
1119
  currentGate = "UR";
1120
1120
  missingApproval = "Approval: UR";
1121
1121
  allowed = [
1122
- "initialize the AGDF control scaffold with npm create agdf@latest init",
1123
- "draft and persist the minimal UR for the requested change",
1124
- "link the UR from AGDF_RUN.md and MASTER_BACKLOG.md",
1122
+ "draft the minimal UR for the requested change in the response",
1125
1123
  "request exact approval: Approval: UR",
1124
+ "run npm create agdf@latest init only when durable control state or deterministic setup is explicitly needed",
1126
1125
  ];
1127
1126
  forbidden = ["create PRD", "create SD", "create TP", "run Brownfield Analysis", "implement code", "claim QA or release readiness"];
1128
- nextAllowedAction = "Initialize .agdf/control, draft the minimal UR for the request, then ask for exact approval: Approval: UR.";
1127
+ nextAllowedAction = "Draft the minimal UR for the request in the response, then ask for exact approval: Approval: UR. Do not write a full .agdf/control scaffold unless durable control state or deterministic setup is explicitly needed.";
1129
1128
  } else if (doctorBlocker) {
1130
1129
  status = "blocked";
1131
1130
  blockingReason = doctorBlocker.code;
@@ -5,9 +5,11 @@ 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
+ - AGDF is agent-native first and CLI-verifiable by design.
8
9
  - Apply AGDF natively from `AGENTS.md`, repository skills and live `.agdf/control/` state before reaching for helper commands.
9
10
  - Before non-trivial implementation or formal delivery work, determine whether the request is a Quick Task or Structured Delivery.
10
11
  - 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
+ - Use `doctor --json`, `gate-check --json` or `delivery-map --json` as deterministic validators for CI, PR evidence, regression checks and audit trails, not as the primary workflow.
12
13
  - Do not infer gate approval from generic consent such as "ok", "go ahead", "do it", "continue", "leg los" or "approved".
13
14
  - Do not treat chat history as the source of truth for gate state, approvals, evidence or delivery status.
15
+ - Do not paste full control files, templates or artefact bodies into chat unless the user explicitly asks for the full content; summarize and link paths instead.
@@ -21,9 +21,10 @@ This skill must not create later artefacts such as PRD, SD, TP, CD, CR, QA, or U
21
21
  Use `../agdf-runtime-contract.md` for gate terms, closeout discipline, and non-duplication rules.
22
22
  The canonical gate order and transition model live only in the Runtime Contract. This skill evaluates the current state against that model; it must not maintain a second complete gate table.
23
23
 
24
- ## Native Control Path
24
+ ## Agent-Native Control Path
25
25
 
26
- AGDF is applied natively through this skill, the agent router, and live `.agdf/control/` state.
26
+ AGDF is agent-native first and CLI-verifiable by design.
27
+ This skill is the primary operating path for gate judgement.
27
28
 
28
29
  First inspect the durable control state directly:
29
30
 
@@ -33,18 +34,23 @@ First inspect the durable control state directly:
33
34
  - `.agdf/control/CONTEXT_GRAPH.md`
34
35
  - `.agdf/control/AGENT_QUALITY_CONTRACTS.json`
35
36
 
36
- 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:
37
+ If required control files are missing, do not automatically create a full `.agdf/control/` scaffold for a fresh small request.
38
+ The default first action is to draft the minimal UR in the response and request `Approval: UR`.
39
+ Use `init` only when the user explicitly asks for durable AGDF control state, the repository already uses `.agdf/control/` as its live working state, or a deterministic CLI/CI setup path is being executed.
40
+
41
+ Use the executable control path when a machine-readable check is requested, when the gate state is ambiguous, when CI or PR evidence is needed, or when a repository-local automation needs JSON output:
37
42
 
38
43
  ```bash
44
+ npm create agdf@latest init
39
45
  npm create agdf@latest doctor --json
40
46
  npm create agdf@latest gate-check --json
41
47
  npm create agdf@latest delivery-map --json
42
48
  ```
43
49
 
44
- `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.
50
+ `init` creates the control scaffold. `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.
45
51
  `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.
46
52
 
47
- 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.
53
+ The CLI reports are validators and JSON evidence, not the primary user experience, not a required ritual for normal work and not a second rule system. If a report says `blocked`, do not continue with later-gate artefacts until the reported blocker is resolved.
48
54
 
49
55
  ## Rules
50
56
  1. Fail closed when a required approval or artefact status is missing.
@@ -61,7 +67,7 @@ The CLI reports are validators and JSON evidence, not the primary user experienc
61
67
  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.
62
68
  13. After Brownfield Review, decide the process size before drafting PRD or implementing: `quick_task | structured_slice | structured_delivery | block`.
63
69
  14. The Mode/Slice Decision must be visible and evidenced before any Quick Task execution, PRD shortcut or implementation. A decision value without scope reason and evidence is still missing.
64
- 15. Missing or incomplete control state must not push work back to the user. If the next allowed step is an artefact draft, the agent may initialize the scaffold, draft the current allowed artefact, link it, and then request the exact approval. Implementation remains forbidden.
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.
65
71
 
66
72
  ## Gate Evaluation
67
73
 
@@ -108,7 +114,7 @@ If a status is not explicit, do not assume it is satisfied.
108
114
  8. Treat a generic "start", "continue" or "leg los" request as a request to perform only the current next allowed action.
109
115
  9. After Brownfield Review, choose the smallest safe process path before creating later artefacts.
110
116
  10. If the selected path is not visibly recorded with scope reason and evidence, keep the run at `Mode/Slice Decision`.
111
- 11. When `.agdf/control/` is missing or incomplete, make the next allowed artefact action explicit. For a fresh request, that means initialize control state, draft the minimal UR, then request `Approval: UR`.
117
+ 11. When `.agdf/control/` is missing or incomplete, make the next allowed artefact action explicit. For a fresh request, that means draft the minimal UR in the response, then request `Approval: UR`. Do not write a full control scaffold unless durable control state was explicitly requested or is already the repository's live AGDF working state.
112
118
 
113
119
  ## Output
114
120
  Keep the result short and operational:
@@ -120,6 +126,9 @@ Keep the result short and operational:
120
126
  - **Missing approval:** `Approval: <GateName> | none`
121
127
  - **Next step:** `<single permissible next step>`
122
128
 
129
+ If this skill creates or updates control artefacts, do not paste full file bodies into the chat.
130
+ List paths, summarize the decision, name the blocker or approval needed, and keep the durable content in the files.
131
+
123
132
  ## Forbidden
124
133
  This skill must not:
125
134
 
@@ -135,5 +144,6 @@ This skill must not:
135
144
  - treat "ok", "leg los", "go ahead", "approved" or similar wording as gate approval
136
145
  - perform full Brownfield Analysis unless explicitly requested
137
146
  - provide implementation snippets while implementation is gated
147
+ - paste full `.agdf/control/` files, templates or artefact bodies into the chat unless the user explicitly asks for the full content
138
148
  - present QA or UAT as passed without evidence
139
149
  - present release as allowed without QA pass and UAT approval where required
@@ -27,6 +27,19 @@ Use this compact output shape when no formal gate artefact is required:
27
27
 
28
28
  Do not add a separate `Quality outlook` line for pure Quick Tasks unless the task became a relevant run.
29
29
 
30
+ ## Chat Output Discipline
31
+
32
+ Durable artefacts are for the repository, not for flooding the chat.
33
+ When a skill creates or updates `.agdf/control/` files, gate artefacts, reviews, QA reports or OR reports, the chat response must stay compact:
34
+
35
+ - name the artefact path and status
36
+ - summarize the decision or content in a few lines
37
+ - state the current gate, forbidden work and next permissible step
38
+ - mention validation evidence when available
39
+
40
+ Do not paste full control files, full artefact bodies, full templates or full generated reports into the chat unless the user explicitly asks to see the full content.
41
+ For larger or more formal work, create or update the durable artefacts fully, then reference them by path and summarize what changed.
42
+
30
43
  ## Relevant Run
31
44
 
32
45
  A relevant run is any run that changes durable state, creates or updates an AGDF artefact, changes code or runtime behaviour, performs a gate decision, blocks on a governance condition, produces QA/UAT/release evidence, or closes a delivery slice.
@@ -45,7 +58,7 @@ When in doubt, use a short OR-lite only if it clarifies gate state, evidence, ri
45
58
  - For UR, PRD, SD, TP and QA, approval and durable artefact presence are separate requirements. A gate is not satisfied by approval text alone when its artefact is missing from `.agdf/control/` or not linked to the authoritative repository SoT.
46
59
  - Approval of one user gate permits work on the next allowed gate artefact or required internal step only. It does not permit implementation unless the approved gate is `TP` and required internal implementation prerequisites are satisfied.
47
60
  - Gates must never be skipped or inferred from urgency, tone, chat history, task wording or an instruction to "start". The next allowed action is always the next unsatisfied gate or internal mandatory step.
48
- - Missing control files or missing current-state fields do not forbid the agent from preparing the current allowed artefact. They forbid later-gate work and implementation. For a fresh request, the allowed work is to initialize `.agdf/control/`, draft the minimal UR, link it, and request `Approval: UR`.
61
+ - Missing control files or missing current-state fields do not forbid the agent from preparing the current allowed artefact. They forbid later-gate work and implementation. For a fresh request, the default allowed work is to draft a minimal UR in the response and request `Approval: UR`. Initialize or write `.agdf/control/` only when the user explicitly asks for durable AGDF control state, the repository already uses `.agdf/control/` as its live working state, or a deterministic CLI/CI setup path is being executed.
49
62
  - `Approval: UR` permits Brownfield Review after G-00 first, then a Mode/Slice Decision. It never permits implementation by itself.
50
63
  - PRD, SD and TP depth is chosen after Brownfield Review through the Mode/Slice Decision, not before existing-system impact is understood.
51
64
  - The Mode/Slice Decision must be visible before any PRD shortcut, Quick Task execution or implementation: record the decision, required next gate, scope reason and evidence in `AGDF_RUN.md` or an equivalent linked control artefact.
@@ -151,12 +164,23 @@ When a repository needs durable AGDF state, use the plugin-local `control/` scaf
151
164
 
152
165
  The scaffold is not a second documentation site. Link to authoritative artefacts instead of copying them.
153
166
 
154
- ## Native Runtime
167
+ ## Agent-Native Runtime And CLI Verification
168
+
169
+ AGDF is agent-native first and CLI-verifiable by design.
170
+
171
+ The primary operating path is the active skill plus the live `.agdf/control/` artefacts.
172
+ Agents should read the repository state, apply this Runtime Contract, create or update only the currently allowed artefact, and make the next permissible step explicit.
173
+ When control state is missing for a fresh request, keep the first step lightweight: draft the minimal UR in the response and request `Approval: UR`.
174
+ Initialize a control scaffold only when durable AGDF control state is explicitly requested, already used by the repository, or required by a deterministic CLI/CI setup path.
175
+
176
+ Helper commands are deterministic proof and automation interfaces, not the normal-work ritual:
155
177
 
156
- AGDF must work natively through the plugin router, skills and live `.agdf/control/` artefacts.
157
- Agents should read the live control state and apply the gate model directly before reaching for helper commands.
178
+ - `init` creates the machine-readable control scaffold.
179
+ - `doctor --json` checks whether `.agdf/control/` is consistent and actionable; it is not the reviewer.
180
+ - `gate-check --json` reports reproducible gate state; it does not replace the gate-check skill judgement.
181
+ - `delivery-map --json` reports the delivery picture for CI, PRs, regression checks and audit trails.
158
182
 
159
- Machine-readable commands such as `doctor --json`, `gate-check --json` and `delivery-map --json` are validators and automation interfaces.
183
+ Machine-readable outputs should stay agent-friendly: stable decisions, blocking gate or current gate, missing approval, allowed outputs, forbidden outputs, next step, evidence and findings.
160
184
  They make the repository state checkable, but they do not replace the native skill workflow or the durable control artefacts.
161
185
 
162
186
  ## Delivery Map
@@ -72,8 +72,9 @@ Use templates as starting points only.
72
72
 
73
73
  Do not let chat history become the source of truth for gate state, approvals, evidence, backlog status or durable Brownfield knowledge.
74
74
 
75
- AGDF is a native agent workflow first: read the live control state, apply the active skill and make the next allowed step explicit.
76
- Use `doctor`, `gate-check --json` or `delivery-map --json` as validators when a machine-readable proof is useful, not as a substitute for the router or skills.
75
+ AGDF is agent-native first and CLI-verifiable by design: read the live control state, apply the active skill and make the next allowed step explicit.
76
+ Use `init` only when durable control state is explicitly requested, the repository already uses `.agdf/control/` as its live AGDF working state, or a deterministic CLI/CI setup path is being executed.
77
+ Use `doctor --json`, `gate-check --json` or `delivery-map --json` as deterministic validators for CI, PR evidence, regression checks or audit trails, not as a substitute for the router or skills.
77
78
 
78
79
  ## Closeout
79
80
  For Quick Task Mode, close with the Runtime Contract mini-output only:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agdf",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Codex-first workflow skills for gated, auditable AI-assisted software delivery.",
5
5
  "author": {
6
6
  "name": "AI-native Governance & Delivery Framework",
@@ -1,16 +1,20 @@
1
1
  #!/usr/bin/env bash
2
2
  # AGDF Session Start Hook
3
- # Loads the AGDF plugin router and constitution into the agent session.
3
+ # Activates a compact AGDF runtime reminder for the agent session.
4
4
 
5
5
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6
- ROUTER="${SCRIPT_DIR}/../meta/agdf-agent-router.md"
7
- CONSTITUTION="${SCRIPT_DIR}/../meta/agdf-constitution.md"
6
+ META_DIR="$(cd "${SCRIPT_DIR}/../meta" && pwd)"
7
+ ROUTER="${META_DIR}/agdf-agent-router.md"
8
+ CONSTITUTION="${META_DIR}/agdf-constitution.md"
8
9
 
9
- if [ -f "$ROUTER" ]; then
10
- cat "$ROUTER"
11
- printf "\n\n"
12
- fi
10
+ cat <<EOF
11
+ AGDF active.
13
12
 
14
- if [ -f "$CONSTITUTION" ]; then
15
- cat "$CONSTITUTION"
16
- fi
13
+ Use the installed AGDF skills as workflow controls.
14
+ For a new build, change, extension, refactor, CLI, app, fix with product semantics, unclear approval, or unclear next step, use gate-check before implementation or later-gate artefacts.
15
+
16
+ Do not print the full router or constitution unless the user asks for them.
17
+ Source of truth:
18
+ - ${ROUTER}
19
+ - ${CONSTITUTION}
20
+ EOF
@@ -73,8 +73,9 @@ Use templates as starting points only.
73
73
 
74
74
  Do not let chat history become the source of truth for gate state, approvals, evidence, backlog status or durable Brownfield knowledge.
75
75
 
76
- AGDF is a native agent workflow first: read the live control state, apply the active skill and make the next allowed step explicit.
77
- Use `doctor`, `gate-check --json` or `delivery-map --json` as validators when a machine-readable proof is useful, not as a substitute for the router or skills.
76
+ AGDF is agent-native first and CLI-verifiable by design: read the live control state, apply the active skill and make the next allowed step explicit.
77
+ Use `init` only when durable control state is explicitly requested, the repository already uses `.agdf/control/` as its live AGDF working state, or a deterministic CLI/CI setup path is being executed.
78
+ Use `doctor --json`, `gate-check --json` or `delivery-map --json` as deterministic validators for CI, PR evidence, regression checks or audit trails, not as a substitute for the router or skills.
78
79
 
79
80
  ## Closeout
80
81
  For Quick Task Mode, close with the Runtime Contract mini-output only:
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "id": "agdf",
4
- "version": "0.2.6",
4
+ "version": "0.2.7",
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.",
@@ -27,6 +27,19 @@ Use this compact output shape when no formal gate artefact is required:
27
27
 
28
28
  Do not add a separate `Quality outlook` line for pure Quick Tasks unless the task became a relevant run.
29
29
 
30
+ ## Chat Output Discipline
31
+
32
+ Durable artefacts are for the repository, not for flooding the chat.
33
+ When a skill creates or updates `.agdf/control/` files, gate artefacts, reviews, QA reports or OR reports, the chat response must stay compact:
34
+
35
+ - name the artefact path and status
36
+ - summarize the decision or content in a few lines
37
+ - state the current gate, forbidden work and next permissible step
38
+ - mention validation evidence when available
39
+
40
+ Do not paste full control files, full artefact bodies, full templates or full generated reports into the chat unless the user explicitly asks to see the full content.
41
+ For larger or more formal work, create or update the durable artefacts fully, then reference them by path and summarize what changed.
42
+
30
43
  ## Relevant Run
31
44
 
32
45
  A relevant run is any run that changes durable state, creates or updates an AGDF artefact, changes code or runtime behaviour, performs a gate decision, blocks on a governance condition, produces QA/UAT/release evidence, or closes a delivery slice.
@@ -45,7 +58,7 @@ When in doubt, use a short OR-lite only if it clarifies gate state, evidence, ri
45
58
  - For UR, PRD, SD, TP and QA, approval and durable artefact presence are separate requirements. A gate is not satisfied by approval text alone when its artefact is missing from `.agdf/control/` or not linked to the authoritative repository SoT.
46
59
  - Approval of one user gate permits work on the next allowed gate artefact or required internal step only. It does not permit implementation unless the approved gate is `TP` and required internal implementation prerequisites are satisfied.
47
60
  - Gates must never be skipped or inferred from urgency, tone, chat history, task wording or an instruction to "start". The next allowed action is always the next unsatisfied gate or internal mandatory step.
48
- - Missing control files or missing current-state fields do not forbid the agent from preparing the current allowed artefact. They forbid later-gate work and implementation. For a fresh request, the allowed work is to initialize `.agdf/control/`, draft the minimal UR, link it, and request `Approval: UR`.
61
+ - Missing control files or missing current-state fields do not forbid the agent from preparing the current allowed artefact. They forbid later-gate work and implementation. For a fresh request, the default allowed work is to draft a minimal UR in the response and request `Approval: UR`. Initialize or write `.agdf/control/` only when the user explicitly asks for durable AGDF control state, the repository already uses `.agdf/control/` as its live working state, or a deterministic CLI/CI setup path is being executed.
49
62
  - `Approval: UR` permits Brownfield Review after G-00 first, then a Mode/Slice Decision. It never permits implementation by itself.
50
63
  - PRD, SD and TP depth is chosen after Brownfield Review through the Mode/Slice Decision, not before existing-system impact is understood.
51
64
  - The Mode/Slice Decision must be visible before any PRD shortcut, Quick Task execution or implementation: record the decision, required next gate, scope reason and evidence in `AGDF_RUN.md` or an equivalent linked control artefact.
@@ -151,12 +164,23 @@ When a repository needs durable AGDF state, use the plugin-local `control/` scaf
151
164
 
152
165
  The scaffold is not a second documentation site. Link to authoritative artefacts instead of copying them.
153
166
 
154
- ## Native Runtime
167
+ ## Agent-Native Runtime And CLI Verification
168
+
169
+ AGDF is agent-native first and CLI-verifiable by design.
170
+
171
+ The primary operating path is the active skill plus the live `.agdf/control/` artefacts.
172
+ Agents should read the repository state, apply this Runtime Contract, create or update only the currently allowed artefact, and make the next permissible step explicit.
173
+ When control state is missing for a fresh request, keep the first step lightweight: draft the minimal UR in the response and request `Approval: UR`.
174
+ Initialize a control scaffold only when durable AGDF control state is explicitly requested, already used by the repository, or required by a deterministic CLI/CI setup path.
175
+
176
+ Helper commands are deterministic proof and automation interfaces, not the normal-work ritual:
155
177
 
156
- AGDF must work natively through the plugin router, skills and live `.agdf/control/` artefacts.
157
- Agents should read the live control state and apply the gate model directly before reaching for helper commands.
178
+ - `init` creates the machine-readable control scaffold.
179
+ - `doctor --json` checks whether `.agdf/control/` is consistent and actionable; it is not the reviewer.
180
+ - `gate-check --json` reports reproducible gate state; it does not replace the gate-check skill judgement.
181
+ - `delivery-map --json` reports the delivery picture for CI, PRs, regression checks and audit trails.
158
182
 
159
- Machine-readable commands such as `doctor --json`, `gate-check --json` and `delivery-map --json` are validators and automation interfaces.
183
+ Machine-readable outputs should stay agent-friendly: stable decisions, blocking gate or current gate, missing approval, allowed outputs, forbidden outputs, next step, evidence and findings.
160
184
  They make the repository state checkable, but they do not replace the native skill workflow or the durable control artefacts.
161
185
 
162
186
  ## Delivery Map
@@ -21,9 +21,10 @@ This skill must not create later artefacts such as PRD, SD, TP, CD, CR, QA, or U
21
21
  Use `../../meta/agdf-runtime-contract.md` for gate terms, closeout discipline, and non-duplication rules.
22
22
  The canonical gate order and transition model live only in the Runtime Contract. This skill evaluates the current state against that model; it must not maintain a second complete gate table.
23
23
 
24
- ## Native Control Path
24
+ ## Agent-Native Control Path
25
25
 
26
- AGDF is applied natively through this skill, the agent router, and live `.agdf/control/` state.
26
+ AGDF is agent-native first and CLI-verifiable by design.
27
+ This skill is the primary operating path for gate judgement.
27
28
 
28
29
  First inspect the durable control state directly:
29
30
 
@@ -33,18 +34,23 @@ First inspect the durable control state directly:
33
34
  - `.agdf/control/CONTEXT_GRAPH.md`
34
35
  - `.agdf/control/AGENT_QUALITY_CONTRACTS.json`
35
36
 
36
- 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:
37
+ If required control files are missing, do not automatically create a full `.agdf/control/` scaffold for a fresh small request.
38
+ The default first action is to draft the minimal UR in the response and request `Approval: UR`.
39
+ Use `init` only when the user explicitly asks for durable AGDF control state, the repository already uses `.agdf/control/` as its live working state, or a deterministic CLI/CI setup path is being executed.
40
+
41
+ Use the executable control path when a machine-readable check is requested, when the gate state is ambiguous, when CI or PR evidence is needed, or when a repository-local automation needs JSON output:
37
42
 
38
43
  ```bash
44
+ npm create agdf@latest init
39
45
  npm create agdf@latest doctor --json
40
46
  npm create agdf@latest gate-check --json
41
47
  npm create agdf@latest delivery-map --json
42
48
  ```
43
49
 
44
- `doctor` checks whether `.agdf/control/` is actionable. `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.
50
+ `init` creates the control scaffold. `doctor` checks whether `.agdf/control/` is actionable. `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.
45
51
  `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.
46
52
 
47
- 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.
53
+ The CLI reports are validators and JSON evidence, not the primary user experience, not a required ritual for normal work and not a second rule system. If a report says `blocked`, do not continue with later-gate artefacts until the reported blocker is resolved.
48
54
 
49
55
  ## Rules
50
56
  1. Fail closed when a required approval or artefact status is missing.
@@ -61,7 +67,7 @@ The CLI reports are validators and JSON evidence, not the primary user experienc
61
67
  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.
62
68
  13. After Brownfield Review, decide the process size before drafting PRD or implementing: `quick_task | structured_slice | structured_delivery | block`.
63
69
  14. The Mode/Slice Decision must be visible and evidenced before any Quick Task execution, PRD shortcut or implementation. A decision value without scope reason and evidence is still missing.
64
- 15. Missing or incomplete control state must not push work back to the user. If the next allowed step is an artefact draft, the agent may initialize the scaffold, draft the current allowed artefact, link it, and then request the exact approval. Implementation remains forbidden.
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.
65
71
 
66
72
  ## Gate Evaluation
67
73
 
@@ -108,7 +114,7 @@ If a status is not explicit, do not assume it is satisfied.
108
114
  8. Treat a generic "start", "continue" or "leg los" request as a request to perform only the current next allowed action.
109
115
  9. After Brownfield Review, choose the smallest safe process path before creating later artefacts.
110
116
  10. If the selected path is not visibly recorded with scope reason and evidence, keep the run at `Mode/Slice Decision`.
111
- 11. When `.agdf/control/` is missing or incomplete, make the next allowed artefact action explicit. For a fresh request, that means initialize control state, draft the minimal UR, then request `Approval: UR`.
117
+ 11. When `.agdf/control/` is missing or incomplete, make the next allowed artefact action explicit. For a fresh request, that means draft the minimal UR in the response, then request `Approval: UR`. Do not write a full control scaffold unless durable control state was explicitly requested or is already the repository's live AGDF working state.
112
118
 
113
119
  ## Output
114
120
  Keep the result short and operational:
@@ -120,6 +126,9 @@ Keep the result short and operational:
120
126
  - **Missing approval:** `Approval: <GateName> | none`
121
127
  - **Next step:** `<single permissible next step>`
122
128
 
129
+ If this skill creates or updates control artefacts, do not paste full file bodies into the chat.
130
+ List paths, summarize the decision, name the blocker or approval needed, and keep the durable content in the files.
131
+
123
132
  ## Forbidden
124
133
  This skill must not:
125
134
 
@@ -135,5 +144,6 @@ This skill must not:
135
144
  - treat "ok", "leg los", "go ahead", "approved" or similar wording as gate approval
136
145
  - perform full Brownfield Analysis unless explicitly requested
137
146
  - provide implementation snippets while implementation is gated
147
+ - paste full `.agdf/control/` files, templates or artefact bodies into the chat unless the user explicitly asks for the full content
138
148
  - present QA or UAT as passed without evidence
139
149
  - present release as allowed without QA pass and UAT approval where required
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-agdf",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Bootstrap AGDF repository-local plugin files, Copilot instructions, skills, control files and machine-readable checks.",
5
5
  "type": "module",
6
6
  "files": [