create-agdf 0.12.0 → 0.13.0

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.
Files changed (63) hide show
  1. package/generated/plugins/agdf/.claude-plugin/plugin.json +2 -2
  2. package/generated/plugins/agdf/.codex-plugin/plugin.json +9 -6
  3. package/generated/plugins/agdf/meta/agdf-plugin.definition.json +41 -5
  4. package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +41 -5
  5. package/generated/plugins/agdf/runtime/create-agdf/package.json +4 -68
  6. package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
  7. package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +27 -37
  8. package/generated/plugins/agdf/submission/openai/availability.md +16 -0
  9. package/generated/plugins/agdf/submission/openai/capability-matrix.json +49 -0
  10. package/generated/plugins/agdf/submission/openai/release-notes.md +16 -0
  11. package/generated/plugins/agdf/submission/openai/reviewer-cases.json +96 -0
  12. package/generated/submissions/openai/agdf/.codex-plugin/plugin.json +43 -0
  13. package/generated/submissions/openai/agdf/assets/agdf-icon.svg +16 -0
  14. package/generated/submissions/openai/agdf/assets/agdf-logo.svg +16 -0
  15. package/generated/submissions/openai/agdf/meta/agdf-agent-router.md +129 -0
  16. package/generated/submissions/openai/agdf/meta/agdf-constitution.md +329 -0
  17. package/generated/submissions/openai/agdf/meta/agdf-interaction-locales.json +514 -0
  18. package/generated/submissions/openai/agdf/meta/agdf-plugin.definition.json +263 -0
  19. package/generated/submissions/openai/agdf/meta/agdf-runtime-contract.md +16 -0
  20. package/generated/submissions/openai/agdf/meta/agdf-tenets.md +201 -0
  21. package/generated/submissions/openai/agdf/meta/contracts/closeout.md +29 -0
  22. package/generated/submissions/openai/agdf/meta/contracts/context-graph.md +48 -0
  23. package/generated/submissions/openai/agdf/meta/contracts/control-scaffold.md +115 -0
  24. package/generated/submissions/openai/agdf/meta/contracts/gate-transition.md +165 -0
  25. package/generated/submissions/openai/agdf/meta/contracts/interaction.md +476 -0
  26. package/generated/submissions/openai/agdf/meta/contracts/modes.md +183 -0
  27. package/generated/submissions/openai/agdf/meta/contracts/quality.md +157 -0
  28. package/generated/submissions/openai/agdf/meta/contracts/task-target-resolution.md +102 -0
  29. package/generated/submissions/openai/agdf/skills/brownfield-analysis/SKILL.md +175 -0
  30. package/generated/submissions/openai/agdf/skills/brownfield-analysis/help.md +23 -0
  31. package/generated/submissions/openai/agdf/skills/clean-implementation-review/SKILL.md +126 -0
  32. package/generated/submissions/openai/agdf/skills/clean-implementation-review/help.md +23 -0
  33. package/generated/submissions/openai/agdf/skills/code-review/SKILL.md +119 -0
  34. package/generated/submissions/openai/agdf/skills/code-review/help.md +23 -0
  35. package/generated/submissions/openai/agdf/skills/delivery-closeout/SKILL.md +118 -0
  36. package/generated/submissions/openai/agdf/skills/delivery-closeout/help.md +23 -0
  37. package/generated/submissions/openai/agdf/skills/delivery-path-search/SKILL.md +94 -0
  38. package/generated/submissions/openai/agdf/skills/delivery-path-search/help.md +23 -0
  39. package/generated/submissions/openai/agdf/skills/gate-check/SKILL.md +238 -0
  40. package/generated/submissions/openai/agdf/skills/gate-check/help.md +23 -0
  41. package/generated/submissions/openai/agdf/skills/qa-gate/SKILL.md +137 -0
  42. package/generated/submissions/openai/agdf/skills/qa-gate/help.md +23 -0
  43. package/generated/submissions/openai/agdf/skills/release-or/SKILL.md +137 -0
  44. package/generated/submissions/openai/agdf/skills/release-or/help.md +23 -0
  45. package/generated/submissions/openai/agdf/skills/task-plan-review/SKILL.md +157 -0
  46. package/generated/submissions/openai/agdf/skills/task-plan-review/help.md +23 -0
  47. package/generated/submissions/openai/agdf/skills/ux-intent-definition/SKILL.md +94 -0
  48. package/generated/submissions/openai/agdf/skills/ux-intent-definition/help.md +17 -0
  49. package/generated/submissions/openai/agdf/submission/openai/availability.md +16 -0
  50. package/generated/submissions/openai/agdf/submission/openai/capability-matrix.json +49 -0
  51. package/generated/submissions/openai/agdf/submission/openai/inventory.json +175 -0
  52. package/generated/submissions/openai/agdf/submission/openai/listing.json +38 -0
  53. package/generated/submissions/openai/agdf/submission/openai/readiness.json +40 -0
  54. package/generated/submissions/openai/agdf/submission/openai/readiness.md +24 -0
  55. package/generated/submissions/openai/agdf/submission/openai/release-notes.md +16 -0
  56. package/generated/submissions/openai/agdf/submission/openai/reviewer-cases.json +96 -0
  57. package/lib/installers/local-marketplace.js +1 -1
  58. package/lib/public-plugin/builder.js +82 -0
  59. package/lib/public-plugin/contract.js +102 -0
  60. package/lib/public-plugin/manifest.js +72 -0
  61. package/lib/public-plugin/report.js +33 -0
  62. package/lib/public-plugin/validator.js +101 -0
  63. package/package.json +4 -2
@@ -0,0 +1,263 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "agdf",
4
+ "version": "0.13.0",
5
+ "displayName": "AI Governance & Delivery Framework",
6
+ "developerName": "Arndt Gold",
7
+ "description": "Control layer for governed AI-assisted delivery.",
8
+ "longDescription": "AI Governance & Delivery Framework (AGDF) is a governance framework for agentic work. Its first implementation provides a control layer for governed AI-assisted software delivery. It combines workflow skills, explicit gates, control templates and machine-readable repository checks to keep work aligned with approved scope and make evidence a prerequisite for consequential gate transitions. Supported workflows include brownfield analysis, task-plan review, QA decisions, durable run state and auditable delivery closeout. AGDF is an independent open-source project, not a security sandbox, compliance certification or autonomous release system.",
9
+ "homepage": "https://agdf.iself.eu",
10
+ "repository": "https://github.com/arndtgold/ai-native-governance-delivery-framework",
11
+ "license": "Apache-2.0",
12
+ "keywords": [
13
+ "agentic",
14
+ "governance",
15
+ "delivery",
16
+ "ai-native",
17
+ "brownfield"
18
+ ],
19
+ "category": "Productivity",
20
+ "brandColor": "#14B8A6",
21
+ "author": {
22
+ "name": "Arndt Gold",
23
+ "url": "https://agdf.iself.eu"
24
+ },
25
+ "codex": {
26
+ "skills": "./skills/",
27
+ "skillPrefix": "",
28
+ "agentRouter": "meta/agdf-agent-router.md",
29
+ "composerIcon": "./assets/agdf-icon.svg",
30
+ "logo": "./assets/agdf-logo.svg",
31
+ "capabilities": [
32
+ "Read",
33
+ "Write"
34
+ ],
35
+ "defaultPrompt": [
36
+ "Assess whether AGDF is proportionate for this repository and request before proposing any implementation. Explain AGDF's purpose and practical benefits, weigh governance overhead against the project's delivery risk, and recommend the lightest suitable path — or explicitly advise against AGDF where it would add more process than value.",
37
+ "Start this request under AGDF governance.",
38
+ "Create durable AGDF control state for this repository.",
39
+ "Close this delivery run with an auditable AGDF report."
40
+ ],
41
+ "hooks": "hooks/hooks.json"
42
+ },
43
+ "claude": {
44
+ "skillPrefix": "",
45
+ "agentRouter": "meta/agdf-agent-router.md",
46
+ "defaultPrompt": [
47
+ "Assess whether AGDF is proportionate for this repository and request before proposing any implementation. Explain AGDF's purpose and practical benefits, weigh governance overhead against the project's delivery risk, and recommend the lightest suitable path — or explicitly advise against AGDF where it would add more process than value.",
48
+ "Start this request under AGDF governance.",
49
+ "Create durable AGDF control state for this repository.",
50
+ "Close this delivery run with an auditable AGDF report."
51
+ ]
52
+ },
53
+ "copilot": {
54
+ "skillPrefix": "agdf-",
55
+ "runtimeContractFileName": "agdf-runtime-contract.md"
56
+ },
57
+ "opencode": {
58
+ "skillPrefix": "agdf-",
59
+ "globalSkillPrefix": "agdf-global-",
60
+ "evaluatorAgentName": "agdf-evaluator",
61
+ "runtimeContractFileName": "agdf-runtime-contract.md",
62
+ "instructionsFileName": "AGDF.md",
63
+ "npmPackage": "create-agdf",
64
+ "permissions": {
65
+ "question": "allow",
66
+ "edit": "ask",
67
+ "bash": "ask",
68
+ "skill": {
69
+ "agdf-*": "allow"
70
+ }
71
+ }
72
+ },
73
+ "interactions": {
74
+ "fallback": "exact_text",
75
+ "localeRegistry": "meta/agdf-interaction-locales.json",
76
+ "fallbackLocale": "en",
77
+ "optionOrder": [
78
+ "approve",
79
+ "revise",
80
+ "decline",
81
+ "cancel"
82
+ ],
83
+ "outcomes": [
84
+ "approve",
85
+ "revise",
86
+ "decline",
87
+ "cancel",
88
+ "no_response",
89
+ "timeout",
90
+ "empty",
91
+ "invalid",
92
+ "stale"
93
+ ],
94
+ "surfaces": {
95
+ "codex": {
96
+ "questionAdapter": "request_user_input",
97
+ "availability": "when_callable",
98
+ "gateSafety": "omit_auto_resolution",
99
+ "explicitOutcomes": [
100
+ "approve",
101
+ "revise",
102
+ "decline"
103
+ ],
104
+ "dismissOutcome": "cancel",
105
+ "approvalValueTransport": "exact_option_value",
106
+ "waitSafety": "deliberate_no_auto_resolution",
107
+ "authorizationPath": "exact_text",
108
+ "technicalPermissionOwner": "codex_host"
109
+ },
110
+ "claude": {
111
+ "questionAdapter": "AskUserQuestion",
112
+ "availability": "when_no_auto_continue_timeout",
113
+ "gateSafety": "no_timeout_or_hook_supplied_answer",
114
+ "explicitOutcomes": [
115
+ "approve",
116
+ "revise",
117
+ "decline"
118
+ ],
119
+ "dismissOutcome": "cancel",
120
+ "approvalValueTransport": "exact_option_value",
121
+ "waitSafety": "deliberate_no_auto_resolution",
122
+ "authorizationPath": "exact_text",
123
+ "technicalPermissionOwner": "claude_host"
124
+ },
125
+ "opencode": {
126
+ "questionAdapter": "question",
127
+ "availability": "when_permission_question_allows",
128
+ "gateSafety": "preserve_explicit_deny",
129
+ "explicitOutcomes": [
130
+ "approve",
131
+ "revise",
132
+ "decline"
133
+ ],
134
+ "dismissOutcome": "cancel",
135
+ "approvalValueTransport": "exact_option_value",
136
+ "waitSafety": "deliberate_no_auto_resolution",
137
+ "authorizationPath": "exact_text",
138
+ "technicalPermissionOwner": "opencode_host"
139
+ },
140
+ "fallback": {
141
+ "questionAdapter": "exact_text",
142
+ "availability": "always",
143
+ "gateSafety": "wait_for_deliberate_user_input",
144
+ "explicitOutcomes": [
145
+ "approve",
146
+ "revise",
147
+ "decline",
148
+ "cancel"
149
+ ],
150
+ "approvalValueTransport": "exact_option_value",
151
+ "waitSafety": "deliberate_no_auto_resolution",
152
+ "authorizationPath": "exact_text",
153
+ "technicalPermissionOwner": "host_specific"
154
+ }
155
+ }
156
+ },
157
+ "publicDistribution": {
158
+ "schemaVersion": 1,
159
+ "submissionType": "skills",
160
+ "technicalId": "agdf",
161
+ "publicDisplayName": "AGDF",
162
+ "fullDisplayName": "AI Governance & Delivery Framework (AGDF)",
163
+ "shortDescription": "Governed AI delivery controls",
164
+ "developerName": "Arndt Gold",
165
+ "publisher": {
166
+ "target": "Arndt Gold",
167
+ "verificationState": "unverified"
168
+ },
169
+ "category": "Productivity",
170
+ "urls": {
171
+ "website": "https://agdf.iself.eu",
172
+ "privacy": "https://agdf.iself.eu/privacy",
173
+ "terms": "https://agdf.iself.eu/terms",
174
+ "support": "https://agdf.iself.eu/support"
175
+ },
176
+ "defaultPrompt": [
177
+ "Assess whether AGDF fits this work and recommend the lightest safe delivery path.",
178
+ "Start this request under AGDF governance.",
179
+ "Review the active AGDF run and explain the next allowed step."
180
+ ],
181
+ "availability": {
182
+ "decisionState": "pending",
183
+ "countries": [],
184
+ "regions": [],
185
+ "workspaceContexts": [],
186
+ "decisionOwner": "verified publisher"
187
+ },
188
+ "submissionSources": {
189
+ "capabilityMatrix": "submission/openai/capability-matrix.json",
190
+ "reviewerCases": "submission/openai/reviewer-cases.json",
191
+ "releaseNotes": "submission/openai/release-notes.md",
192
+ "availabilityDecision": "submission/openai/availability.md"
193
+ }
194
+ },
195
+ "skillSet": [
196
+ {
197
+ "slug": "delivery-path-search",
198
+ "discovery": "optional",
199
+ "useFor": "high-impact planning decisions with several plausible next delivery steps before implementation",
200
+ "boundary": "read-only advisory search; never grants gate permission or replaces gate-check"
201
+ },
202
+ {
203
+ "slug": "brownfield-analysis",
204
+ "discovery": "automatic",
205
+ "useFor": "after gate-check permits Brownfield Review or implementation preparation, before non-trivial changes in existing systems",
206
+ "boundary": "clarifies reuse, owners, risks and Mode/Slice Decision; never bypasses gate-check; Brownfield Review is not implementation permission"
207
+ },
208
+ {
209
+ "slug": "ux-intent-definition",
210
+ "discovery": "automatic",
211
+ "useFor": "after approved UR and post-UR routing for medium/high UI/UX impact or ambiguous low-impact product semantics before PRD readiness",
212
+ "boundary": "non-authorizing analytical PRD input; never creates product intent, gate permission, technical design or a parallel product source of truth"
213
+ },
214
+ {
215
+ "slug": "clean-implementation-review",
216
+ "discovery": "automatic",
217
+ "useFor": "evidence dimension: inspect whether the solution is structurally clean",
218
+ "boundary": "supports Quality Readiness; not a TP or QA substitute"
219
+ },
220
+ {
221
+ "slug": "code-review",
222
+ "discovery": "automatic",
223
+ "useFor": "evidence dimension: review the actual diff for defects, regression and security findings",
224
+ "boundary": "supports Quality Readiness; does not replace QA"
225
+ },
226
+ {
227
+ "slug": "delivery-closeout",
228
+ "discovery": "automatic",
229
+ "useFor": "commit/PR-near handoff after QA/OR/UAT",
230
+ "boundary": "never performs VCS actions automatically"
231
+ },
232
+ {
233
+ "slug": "gate-check",
234
+ "discovery": "start_here",
235
+ "useFor": "new build/change intent, unclear approval, Structured Delivery, later-gate artefact requested",
236
+ "boundary": "does not create later artefacts or skip Mode/Slice Decision after Brownfield Review"
237
+ },
238
+ {
239
+ "slug": "qa-gate",
240
+ "discovery": "automatic",
241
+ "useFor": "sole final Quality Readiness decision",
242
+ "boundary": "only instance for `pass | revise | block`"
243
+ },
244
+ {
245
+ "slug": "release-or",
246
+ "discovery": "automatic",
247
+ "useFor": "auditable closeout for every relevant run",
248
+ "boundary": "not a QA substitute"
249
+ },
250
+ {
251
+ "slug": "task-plan-review",
252
+ "discovery": "automatic",
253
+ "useFor": "evidence dimension: verify whether the approved Task Plan was fulfilled",
254
+ "boundary": "supports Quality Readiness; no final QA decision"
255
+ }
256
+ ],
257
+ "marketplaces": {
258
+ "repository": {
259
+ "name": "agdf-repo",
260
+ "displayName": "This repository"
261
+ }
262
+ }
263
+ }
@@ -0,0 +1,16 @@
1
+ # AGDF Runtime Contract
2
+
3
+ This manifest indexes the thematic runtime-contract modules used by AGDF skills and runtime validation.
4
+
5
+ | Module | Path | Coverage |
6
+ |---|---|---|
7
+ | Task target resolution | `contracts/task-target-resolution.md` | Primary target authority, evidence/mutation separation, governance derivation, continuation and fail-closed target states |
8
+ | Gate transitions | `contracts/gate-transition.md` | Source precedence, scope ambiguity, gate rules, Brownfield routing and transition model |
9
+ | Interaction | `contracts/interaction.md` | Run Status Card, approval orientation, native interaction and locale contracts |
10
+ | Modes | `contracts/modes.md` | Mode selection, Quick Task, Verified Change, trivial and bug boundaries |
11
+ | Quality | `contracts/quality.md` | Quality readiness, chat discipline and quality output contracts |
12
+ | Context Graph | `contracts/context-graph.md` | Knowledge persistence and Context Graph reconciliation |
13
+ | Control scaffold | `contracts/control-scaffold.md` | Delivery Path Search, run state, CLI verification and Delivery Map |
14
+ | Closeout | `contracts/closeout.md` | Support bridge, relevant-run boundary and non-duplication |
15
+
16
+ The explanatory framework lives in `docs/`, the operating philosophy in `plugin/meta/agdf-constitution.md`, and the principles in `plugin/meta/agdf-tenets.md`.
@@ -0,0 +1,201 @@
1
+ AGDF Tenets
2
+ ===========
3
+
4
+ The following are the **AGDF Tenets** — the guiding principles you *MUST*
5
+ internalize for all AGDF-governed work. They are organized into **Generic
6
+ Tenets**, which always apply, and **Operation-Specific Tenets**, which apply
7
+ to particular kinds of operations.
8
+
9
+ GENERIC TENETS
10
+ --------------
11
+
12
+ At any time and for all kinds of operations,
13
+ you *MUST* honor the following **GENERIC TENETS**:
14
+
15
+ - **No Implementation Without Approved Product Contract**:
16
+ Implementation should not be based on vague intent.
17
+ A stable product contract defines accepted scope, acceptance criteria,
18
+ non-goals, constraints and success measurement.
19
+ For Structured Delivery or product-semantically relevant implementation,
20
+ no implementation may begin without an approved PRD or an explicitly
21
+ equivalent product contract.
22
+ Quick Task Mode may still handle narrow local fixes, reviews, debugging
23
+ and tooling maintenance when no new product meaning, user capability,
24
+ architecture, policy or persistence decision is introduced.
25
+
26
+ Verified Change may handle a bounded user-visible canonical metadata or
27
+ copy change only after approved UR and Brownfield Review when the Runtime
28
+ Contract record proves one owner, clean-at-baseline paths, no prohibited
29
+ impact and deterministic validation; every uncertainty escalates.
30
+
31
+ - **Fail Closed**:
32
+ When a necessary approval, input, or quality statement is missing,
33
+ the process must stop or demand revision.
34
+ The standard must never be "best effort" when the next step depends
35
+ on unverified assumptions.
36
+
37
+ - **One Authoritative Source for Product Intent**:
38
+ The product contract is the anchor for all downstream work.
39
+ Design, Task & Test Plan and implementation must not silently
40
+ reinterpret the agreed scope.
41
+
42
+ - **Design and Code Must Stay Separated**:
43
+ Conceptual design and implementation details should not be mixed
44
+ prematurely.
45
+ Design describes architecture, responsibilities, interfaces and flows.
46
+ Code describes executable behaviour, payloads, schemas, migrations
47
+ and implementation logic.
48
+
49
+ - **Tasks Need Business Justification**:
50
+ A task is not just a card on a board.
51
+ A task must make traceable which requirement, acceptance criterion,
52
+ design decision, risk or quality goal it addresses.
53
+ AI agents can produce convincing plans very quickly — work decomposition
54
+ must remain explainable and auditable.
55
+
56
+ - **Traceability Is Not Bureaucracy**:
57
+ Traceability does not mean producing as many documents as possible.
58
+ It means being able to answer fundamental delivery questions:
59
+ Why does this task exist? Which requirement supports this design decision?
60
+ Which acceptance criterion does this test check? Which approved artefact
61
+ permits this implementation? What changed between two versions?
62
+
63
+ - **Quality Needs Evidence**:
64
+ A quality claim is not sufficient.
65
+ The delivery should contain visible evidence: test results, build status,
66
+ review results, known limitations and remaining risks.
67
+ What was not checked must not be presented as if it were checked.
68
+
69
+ - **Changes Must Be Visible**:
70
+ When scope, acceptance criteria, non-goals or security, compliance or
71
+ data-protection aspects change, the change must be documented and reviewed.
72
+ Work with AI agents must not hide changes behind fluent conversation.
73
+
74
+ - **Think Before Acting**:
75
+ *Don't assume. Don't hide confusion. Surface trade-offs.*
76
+ Before implementing:
77
+ - State your assumptions explicitly. If uncertain, ask.
78
+ - If multiple interpretations exist, present them — don't pick silently.
79
+ - If a simpler approach exists, say so. Push back when warranted.
80
+ - If something is unclear, stop. Name what is confusing. Ask.
81
+
82
+ - **Surgical Changes**:
83
+ *Keep changes as small as possible — but as structurally sound as needed.*
84
+ - Touch only what you must. Clean up only your own mess.
85
+ - Don't "improve" adjacent code, comments, or formatting.
86
+ - Match existing style, even if you'd do it differently.
87
+ - The smallest technical diff is not automatically the best solution
88
+ if it creates state confusion, false ownership, or later rework.
89
+
90
+ - **Goal-Driven Execution**:
91
+ *Define success criteria. Loop until verified.*
92
+ Transform tasks into verifiable goals:
93
+ - "Add validation" → "Write tests for invalid inputs, then make them pass"
94
+ - "Fix the bug" → "Write a test that reproduces it, then make it pass"
95
+ - "Refactor X" → "Ensure tests pass before and after"
96
+
97
+ BROWNFIELD TENETS
98
+ -----------------
99
+
100
+ When working in an *existing system* (which is the normal case, not a special
101
+ case), you *MUST* honor the following **BROWNFIELD TENETS**:
102
+
103
+ - **Brownfield First**:
104
+ Before any implementation, the existing codebase must be understood.
105
+ What is not visibly documented does not count as existing.
106
+
107
+ - **Reuse Before Create**:
108
+ Existing modules, services, components, endpoints, tests and
109
+ configurations are preferred over new creation, provided they can be
110
+ cleanly extended.
111
+
112
+ - **Minimal Clean Slice**:
113
+ The recommended change is the smallest clean and durably sound
114
+ intervention that fulfils the task plan.
115
+ A technically small diff is not automatically good if it creates
116
+ state confusion, false ownership, silent parallel structures or
117
+ later rework.
118
+
119
+ - **No Silent Parallel Structures**:
120
+ New artefacts with overlapping responsibility are to be avoided.
121
+ A new service, endpoint, wrapper or state owner may look clean locally
122
+ but create drift, parallel structures and later removal work systemically.
123
+
124
+ - **Existing Architecture Is Binding**:
125
+ Existing architecture, naming, error handling, logging, security and
126
+ test conventions are binding unless an explicit deviation is justified.
127
+
128
+ - **SoT/Runtime/Product-Semantics Drift Must Be Surfaced**:
129
+ If documented target architecture, observable runtime behaviour and
130
+ intended product semantics diverge, this must be explicitly flagged as
131
+ drift — not silently treated as a refactor.
132
+ In such cases, a UR or equivalent product-direction decision is needed
133
+ before implementation.
134
+
135
+ - **Primary Visible Ownership Must Be Checked**:
136
+ For visible chat, render, scroll, recovery or status problems,
137
+ check which existing path holds primary visible ownership.
138
+ Do not recommend a second render, scroll or recovery owner if the
139
+ existing system already has a suitable primary path.
140
+
141
+ QUALITY CONTRACT TENETS
142
+ -----------------------
143
+
144
+ When *producing or reviewing* quality-contract outputs for agent runs,
145
+ you *MUST* honor the following **QUALITY CONTRACT TENETS**:
146
+
147
+ - **Rule Before Outcome**:
148
+ A quality contract describes which rule applies and which evidence
149
+ proves it — not just whether the result looks plausible.
150
+
151
+ - **Agent Run, Not Just Result**:
152
+ Quality contracts check whether the agent worked on a sound foundation,
153
+ not just whether the output is functional.
154
+ "Wurde nach den vereinbarten Regeln gearbeitet?" is as important as
155
+ "Funktioniert es?"
156
+
157
+ - **No Evidence Replacement**:
158
+ Missing evidence may never be replaced by plausibility, assumptions
159
+ or fluent summaries.
160
+ A green build does not prove task completion.
161
+ Partial implementation must remain visible as partial.
162
+
163
+ - **Effect Must Be Visible**:
164
+ When a quality contract triggers, it must be visible whether the effect
165
+ is Stopp (block), Nacharbeit (revise) or Hinweis (warning).
166
+ There should be no silent ignoring.
167
+
168
+ - **Human Responsibility Remains**:
169
+ Quality contracts do not replace product requirements, gates, approvals
170
+ or human judgement.
171
+ They make visible what was checked, what evidence exists, and what
172
+ decision is still open.
173
+
174
+ DELIVERY TENETS
175
+ ---------------
176
+
177
+ When *closing a delivery run* with an orchestrierungsreport or delivery
178
+ handoff, you *MUST* honor the following **DELIVERY TENETS**:
179
+
180
+ - **OR Is Always Mandatory**:
181
+ Every relevant run ends with an orchestrierungsreport (OR), even when
182
+ gates are blocking.
183
+ OR is an audit report, not a blocking gate.
184
+
185
+ - **No Leaks From Blocked Gates**:
186
+ The OR must not disclose content from artefacts that are not yet
187
+ allowed in the current gate.
188
+
189
+ - **Status, Not Sugarcoating**:
190
+ The OR is an audit and control report, not a marketing text.
191
+ Missing approvals, partial implementation, risks, fallbacks, brownfield
192
+ problems and open defects must be visible.
193
+
194
+ - **Next Step Must Be Operative**:
195
+ The OR ends with the immediate next permissible step and the exact
196
+ approval formula needed.
197
+
198
+ - **CD+Tests Is Not Completion**:
199
+ After CD+Tests, the OR reports only implementation and test status.
200
+ Without reviews, TP-coverage check and QA gate, formulations like
201
+ "fertig", "freigabefähig" or "delivery-ready" are not permitted.
@@ -0,0 +1,29 @@
1
+ # AGDF Runtime Contract — Closeout
2
+
3
+ ## Support Answer Bridge
4
+
5
+ When the user asks about a concrete ticket, issue, incident or support question, end with exactly one smallest useful next step.
6
+ Do not treat that next step as approval.
7
+ When the next step is gated, name the required approval or AGDF skill instead of implying work may proceed.
8
+
9
+
10
+ ## Relevant Run
11
+
12
+ 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.
13
+
14
+ OR is not mandatory for a pure explanation, read-only inspection, small review, or local debugging step that produces no durable state change and no gate consequence.
15
+ When in doubt, use a short OR-lite only if it clarifies gate state, evidence, risk, or the next permissible step.
16
+
17
+ A `quick_task` fully inside the Non-Normative Trivial Change Boundary above stays exempt from the full
18
+ selected-run ceremony even when it is otherwise a relevant run. If a selected canonical
19
+ `RUN_STATE.md` currently reflects another scope, append exactly one line to that run's
20
+ `Prior Run Pointers` section noting what changed and that it is unrelated; do not edit any other
21
+ section or any other existing line.
22
+
23
+
24
+ ## Do Not Duplicate
25
+
26
+ The explanatory framework lives in `docs/`.
27
+ The operating philosophy lives in `plugin/meta/agdf-constitution.md`.
28
+ The principles live in `plugin/meta/agdf-tenets.md`.
29
+ This contract is only the compact runtime interface for skills.
@@ -0,0 +1,48 @@
1
+ # AGDF Runtime Contract — Context Graph
2
+
3
+ ## Knowledge Persistence Decision
4
+
5
+ Every relevant run should decide what happens to new durable knowledge.
6
+ The decision is not a memory dump; it routes only reusable, evidenced information to the right owner.
7
+
8
+ Use:
9
+
10
+ - `memory_target: context_graph | sot_registry | scope_artifact | open_questions | none`
11
+ - `memory_reason`: short reason for the target
12
+ - `memory_refs`: paths or nodes affected
13
+
14
+ Guidance:
15
+
16
+ - Use `context_graph` for reusable Brownfield findings, decisions, risks, invariants and exit criteria.
17
+ - Use `sot_registry` when source-of-truth ownership changes or drift is found.
18
+ - Use `scope_artifact` for run-specific evidence, ticket details, screenshots, logs or local reproduction data.
19
+ - Use `open_questions` when a durable question should survive the run but no answer is evidenced yet.
20
+ - Use `none` for one-off observations without future decision value.
21
+
22
+
23
+ ## Context Graph Output
24
+
25
+ When a run affects project memory or a Context Graph, use:
26
+
27
+ - `Situation:` short plain-language summary when the impact is non-trivial
28
+ - `context_graph_impact`: `none | link_only | update_existing_node | new_node_required | sot_drift`
29
+ - `context_graph_refs`
30
+ - `context_graph_reconciliation`: `resolved | not_applicable | open_gap`
31
+ - `context_graph_required_action`: `none | link | update | create | resolve_drift`
32
+ - `context_graph_gate_effect`: `none | warning | revise | block`
33
+ - `context_graph_evidence`
34
+
35
+ Do not create a new node for a mere version, a general chat summary, or a local observation without a concrete next clean step.
36
+ `sot_drift` must not pass silently as a warning.
37
+
38
+ ### Context Graph Reconciliation
39
+
40
+ Relevant-run closeout must reconcile Context Graph impact before presenting a clean delivery handoff.
41
+
42
+ - Use `not_applicable` only when `context_graph_impact: none` and no durable graph knowledge is claimed.
43
+ - Use `resolved` when required graph work is complete and concrete refs are present.
44
+ - Use `open_gap` when graph work remains pending, refs are missing, or a node/update must still be curated.
45
+ - `link`, `update`, `create` and `resolve_drift` require either `resolved` evidence or an explicit `open_gap`.
46
+ - Resolved `link_only`, `update_existing_node` and `new_node_required` states require concrete `context_graph_refs`; `none`, empty refs or vague future-action language are not enough.
47
+ - OR and delivery-closeout must not present commit-ready, release-ready or otherwise clean handoff while `context_graph_reconciliation: open_gap` remains.
48
+