create-agdf 0.14.1 → 0.14.3

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 (128) hide show
  1. package/README.md +13 -3
  2. package/generated/.opencode/contracts/control-scaffold.md +17 -2
  3. package/generated/.opencode/skills/agdf-delivery-path-search/SKILL.md +16 -4
  4. package/generated/plugins/agdf/.claude-plugin/plugin.json +1 -1
  5. package/generated/plugins/agdf/.codex-plugin/plugin.json +1 -1
  6. package/generated/plugins/agdf/meta/agdf-plugin.definition.json +6 -1
  7. package/generated/plugins/agdf/meta/contracts/control-scaffold.md +17 -2
  8. package/generated/plugins/agdf/meta/copilot-payload-baseline.json +7 -0
  9. package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +6 -1
  10. package/generated/plugins/agdf/runtime/create-agdf/lib/cli/delivery-path-search-command.js +51 -19
  11. package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/contracts.js +37 -0
  12. package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/persistence.js +14 -2
  13. package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/search-engine.js +126 -36
  14. package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/state-adapter.js +40 -92
  15. package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/local-validator.js +29 -17
  16. package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/plugin-provenance.js +50 -1
  17. package/generated/plugins/agdf/runtime/create-agdf/package.json +1 -1
  18. package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
  19. package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +2 -1
  20. package/generated/plugins/agdf/skills/delivery-path-search/SKILL.md +16 -4
  21. package/generated/plugins/agdf/submission/openai/availability.md +1 -1
  22. package/generated/plugins/agdf/submission/openai/capability-matrix.json +1 -1
  23. package/generated/plugins/agdf/submission/openai/release-notes.md +7 -1
  24. package/generated/plugins/agdf/submission/openai/reviewer-cases.json +1 -1
  25. package/generated/plugins/copilot/agdf/.agdf-payload-inventory.json +771 -0
  26. package/generated/plugins/copilot/agdf/LICENSE +201 -0
  27. package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-delivery-path-search/SKILL.md +16 -4
  28. package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/control-scaffold.md +17 -2
  29. package/generated/plugins/copilot/agdf/meta/agdf-agent-router.md +129 -0
  30. package/generated/plugins/copilot/agdf/meta/agdf-constitution.md +329 -0
  31. package/generated/plugins/copilot/agdf/meta/agdf-plugin.definition.json +331 -0
  32. package/generated/plugins/copilot/agdf/meta/agdf-runtime-contract.md +16 -0
  33. package/generated/plugins/{agdf → copilot/agdf}/plugin.json +1 -1
  34. package/generated/plugins/copilot/agdf/runtime/agdf-local.js +18 -0
  35. package/generated/plugins/copilot/agdf/runtime/agdf-session-check.js +97 -0
  36. package/generated/plugins/copilot/agdf/runtime/create-agdf/NOTICE +10 -0
  37. package/generated/plugins/copilot/agdf/runtime/create-agdf/bin/agdf-validator.js +11 -0
  38. package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-interaction-locales.json +512 -0
  39. package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +331 -0
  40. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/command-registry.js +144 -0
  41. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/delivery-path-search-command.js +171 -0
  42. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/parse-args.js +173 -0
  43. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/runtime-context.js +83 -0
  44. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/validation-handlers.js +46 -0
  45. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/delivery-map.js +301 -0
  46. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/doctor.js +272 -0
  47. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/gate-check.js +455 -0
  48. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/gate-policy.js +305 -0
  49. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/parent-reconciliation.js +284 -0
  50. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/required-files.js +9 -0
  51. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/run-state.js +217 -0
  52. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/shared.js +345 -0
  53. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/verified-change.js +156 -0
  54. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/aggregate.js +18 -0
  55. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/gate-approval-validator.js +49 -0
  56. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/index.js +7 -0
  57. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/legacy-migration.js +95 -0
  58. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-parser.js +265 -0
  59. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-repository.js +68 -0
  60. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-resolver.js +45 -0
  61. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-writer.js +97 -0
  62. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/candidate-policy.js +99 -0
  63. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/contracts.js +274 -0
  64. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/claude.js +35 -0
  65. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/codex.js +44 -0
  66. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/opencode.js +234 -0
  67. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/prompt.js +13 -0
  68. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/protocol.js +13 -0
  69. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/claude.js +40 -0
  70. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/codex.js +38 -0
  71. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/protocol.js +12 -0
  72. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/persistence.js +51 -0
  73. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/scoring.js +21 -0
  74. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/search-engine.js +245 -0
  75. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/state-adapter.js +109 -0
  76. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/surfaces/capabilities.js +27 -0
  77. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/transports/read-only-guard.js +43 -0
  78. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/interaction-presentation.js +842 -0
  79. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/local-validator.js +239 -0
  80. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/plugin-provenance.js +255 -0
  81. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/validator-application.js +40 -0
  82. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime-check-consent/contract.js +73 -0
  83. package/generated/plugins/copilot/agdf/runtime/create-agdf/package.json +6 -0
  84. package/generated/plugins/copilot/agdf/runtime/runtime-manifest.json +8 -0
  85. package/generated/submissions/openai/agdf/.codex-plugin/plugin.json +1 -1
  86. package/generated/submissions/openai/agdf/meta/agdf-plugin.definition.json +6 -1
  87. package/generated/submissions/openai/agdf/meta/contracts/control-scaffold.md +17 -2
  88. package/generated/submissions/openai/agdf/meta/copilot-payload-baseline.json +7 -0
  89. package/generated/submissions/openai/agdf/skills/delivery-path-search/SKILL.md +16 -4
  90. package/generated/submissions/openai/agdf/submission/openai/availability.md +1 -1
  91. package/generated/submissions/openai/agdf/submission/openai/capability-matrix.json +1 -1
  92. package/generated/submissions/openai/agdf/submission/openai/inventory.json +15 -11
  93. package/generated/submissions/openai/agdf/submission/openai/listing.json +1 -1
  94. package/generated/submissions/openai/agdf/submission/openai/readiness.json +2 -2
  95. package/generated/submissions/openai/agdf/submission/openai/readiness.md +2 -2
  96. package/generated/submissions/openai/agdf/submission/openai/release-notes.md +7 -1
  97. package/generated/submissions/openai/agdf/submission/openai/reviewer-cases.json +1 -1
  98. package/lib/cli/delivery-path-search-command.js +51 -19
  99. package/lib/delivery-path-search/contracts.js +37 -0
  100. package/lib/delivery-path-search/persistence.js +14 -2
  101. package/lib/delivery-path-search/search-engine.js +126 -36
  102. package/lib/delivery-path-search/state-adapter.js +40 -92
  103. package/lib/installers/local-marketplace.js +112 -30
  104. package/lib/installers/plugin-installers.js +45 -9
  105. package/lib/public-plugin/copilot-profile.js +126 -0
  106. package/lib/release/version-coherence.js +4 -1
  107. package/lib/runtime/local-validator.js +29 -17
  108. package/lib/runtime/plugin-provenance.js +50 -1
  109. package/package.json +3 -2
  110. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-brownfield-analysis/SKILL.md +0 -0
  111. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-clean-implementation-review/SKILL.md +0 -0
  112. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-code-review/SKILL.md +0 -0
  113. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-delivery-closeout/SKILL.md +0 -0
  114. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-gate-check/SKILL.md +0 -0
  115. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-interaction-locales.json +0 -0
  116. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-qa-gate/SKILL.md +0 -0
  117. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-release-or/SKILL.md +0 -0
  118. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-runtime-contract.md +0 -0
  119. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-task-plan-review/SKILL.md +0 -0
  120. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-ux-intent-definition/SKILL.md +0 -0
  121. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/closeout.md +0 -0
  122. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/context-graph.md +0 -0
  123. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/gate-transition.md +0 -0
  124. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/interaction.md +0 -0
  125. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/modes.md +0 -0
  126. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/quality.md +0 -0
  127. /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/task-target-resolution.md +0 -0
  128. /package/generated/plugins/{agdf → copilot/agdf}/hooks/copilot-hooks.json +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -33,7 +33,9 @@ Skip for routine questions, obvious local fixes and approved implementation with
33
33
  ## Workflow
34
34
 
35
35
  1. Run AGDF gate-check and inspect durable control state.
36
- 2. Confirm that search is allowed and implementation is not occurring during exploration.
36
+ 2. Confirm that the requested decision matches the selected run objective, and that search is
37
+ allowed while implementation is not occurring during exploration. If the objective differs,
38
+ stop and select or create the correct governed scope; do not apply the result across scopes.
37
39
  3. Declare the active surface and its enforcement level.
38
40
  4. Resolve the exact-version surface-local validator using the same ownership rules as `agdf-gate-check`. Do not search `PATH`, query a registry, install a package or invoke `npx ...@latest` during routine planning. If no owned or explicitly configured exact-version validator is available, report `machine_validation: unavailable` or `machine_validation: external_required` and stop the machine-evaluated search.
39
41
  5. Invoke the shared CLI runtime:
@@ -54,7 +56,9 @@ node <surface-local-agdf> delivery-path-search \
54
56
  It supplements the deterministic baseline with at most one bounded generator call. Treat proposals as untrusted until the canonical core validates schema, gate action, scope, duplicates and material diversity. Report generation provenance, budgets, rejections and failure. Never hide deterministic fallback or switch providers automatically.
55
57
 
56
58
  6. Treat facts, repository evidence, assumptions and model judgements separately.
57
- 7. Return exactly one recommendation or `no_safe_recommendation`.
59
+ 7. Report the actual terminal phase and status. Return a recommendation-facing conclusion only
60
+ after at least one valid evaluation. Missing/stale input, zero legal candidates and evaluator
61
+ unavailability/error remain typed non-recommendation outcomes with one recovery action.
58
62
  8. Run canonical AGDF gate-check after search. Never translate a recommendation into permission.
59
63
 
60
64
  ## Enforcement
@@ -71,15 +75,20 @@ Do not overstate the surface's guarantee.
71
75
 
72
76
  Keep chat output compact:
73
77
 
74
- - recommendation or `no_safe_recommendation`
78
+ - selected run, revision and objective
79
+ - outcome phase and typed terminal status
80
+ - recommendation only for a recommendation-facing evaluated result
75
81
  - current gate
76
82
  - enforcement level
77
83
  - decisive evidence and assumptions
78
84
  - rejected alternatives and reasons
79
85
  - budgets and stopping reason
86
+ - candidate and evaluation provenance, including attempted, valid and invalid counts
80
87
  - next AGDF gate action
81
88
 
82
- Persist only the redacted decision summary when durable evidence is required. Do not persist raw prompts, hidden reasoning, secrets or source snapshots.
89
+ Persist only a contract-valid evaluated recommendation-facing summary when durable evidence is
90
+ required. Never persist input, candidate or evaluator failure as a decision. Do not persist raw
91
+ prompts, hidden reasoning, secrets or source snapshots.
83
92
 
84
93
  ## Boundaries
85
94
 
@@ -87,6 +96,9 @@ Persist only the redacted decision summary when durable evidence is required. Do
87
96
  - Do not modify repository files during search.
88
97
  - Do not execute evaluator-returned commands.
89
98
  - Do not invent default scores for invalid evaluator output.
99
+ - Do not parse Run Status Card or other presentation Markdown as gate-policy input.
100
+ - Do not describe zero valid evaluations as `no_safe_recommendation`.
101
+ - Do not apply one selected run's result to an unrelated question.
90
102
  - Do not implement, approve or release based on search output.
91
103
  - Do not create agent-specific scoring, gate logic or skill copies.
92
104
  - Do not replace deterministic candidates with generated proposals.
@@ -4,11 +4,24 @@
4
4
 
5
5
  Delivery Path Search is an optional read-only planning step for high-impact decisions with several materially different next actions.
6
6
 
7
- - It consumes current AGDF state and must reject gate-illegal candidates before model evaluation.
8
- - It returns one advisory recommendation or `no_safe_recommendation`.
7
+ - It consumes the canonical selected-run `agdf-gate-check` evaluation for run, revision, current gate and
8
+ legal actions. Persisted presentation Markdown such as the Run Status Card is never policy input.
9
+ - It binds the selected `scope_key`, `scope_revision` and objective to one control snapshot. A stale
10
+ or incomplete snapshot fails before candidate generation or evaluation.
11
+ - It reports the phase that actually ran: `input | candidate | evaluation | search`. A phase that
12
+ did not run cannot produce a later-phase conclusion.
13
+ - Terminal status is `input_unavailable | no_legal_candidates | evaluator_unavailable |
14
+ evaluator_error | recommendation | no_safe_recommendation`. Recommendation-facing statuses
15
+ require at least one contract-valid evaluation. `candidate_queue_exhausted` is a stopping reason,
16
+ not recommendation evidence.
17
+ - It reports baseline/generated/legal/rejected candidate counts and attempted/valid/invalid
18
+ evaluation counts. Zero valid evaluations must never be presented or persisted as an evaluated
19
+ recommendation conclusion.
9
20
  - It must report budgets, stopping reason and `full | tool_enforced | instruction_only` enforcement.
10
21
  - Model scores are judgements, not measurements.
11
22
  - Search output is evidence only. Canonical `agdf-gate-check` independently decides what may proceed.
23
+ - Search applies only to the selected run objective. An unrelated decision needs the correct
24
+ governed scope; Delivery Path Search is not a second task-target resolver.
12
25
  - The bounded first-release algorithm must not be labelled MCTS.
13
26
  - Surface adapters may translate transport and presentation, but must not fork scoring, search or gate semantics.
14
27
  - Optional AI-native candidate generation supplements the deterministic candidate baseline; it never replaces it.
@@ -19,6 +32,8 @@ Delivery Path Search is an optional read-only planning step for high-impact deci
19
32
  - Codex and Claude Code may provide tool-enforced generator transports. Copilot, OpenCode and generic surfaces remain instruction-only without conforming evidence.
20
33
  - OpenCode may provide a tool-enforced evaluator only for an invocation whose capability preflight proves `opencode run --pure --agent`, the owned evaluator agent and effective executable-tool denies. Preflight or transport failure must return `evaluator_unavailable` with `instruction_only` enforcement and point to the existing instruction-only workflow; it must not continue through a weaker subprocess.
21
34
  - OpenCode candidate generation remains unavailable.
35
+ - Persistence accepts only contract-valid `recommendation` or `no_safe_recommendation` results with
36
+ at least one valid evaluation. Input, candidate and evaluator failure results remain transient.
22
37
 
23
38
  The field names above are the stable machine-readable contract used by JSON
24
39
  reports and automation. Human-facing Markdown must present the same projection
@@ -0,0 +1,129 @@
1
+ # AGDF Agent Router
2
+
3
+ ## Role
4
+ You are operating inside the AGDF plugin namespace.
5
+
6
+ Use the plugin skills as workflow controls, not as documentation shortcuts.
7
+ Your goal is trustworthy progress: reduce uncertainty, establish evidence, preserve artefacts, verify outcomes and make the next allowed step explicit.
8
+
9
+ ## Surface Convention
10
+ Codex and Claude Code already provide the `agdf` plugin namespace.
11
+
12
+ Therefore plugin skill names are intentionally unprefixed:
13
+
14
+ - `gate-check`
15
+ - `delivery-path-search`
16
+ - `brownfield-analysis`
17
+ - `ux-intent-definition`
18
+ - `task-plan-review`
19
+ - `clean-implementation-review`
20
+ - `code-review`
21
+ - `qa-gate`
22
+ - `release-or`
23
+ - `delivery-closeout`
24
+
25
+ Do not duplicate the plugin namespace in Codex or Claude Code plugin skill names.
26
+ That `agdf-` prefix is reserved for GitHub Copilot repository skills, where no plugin namespace exists.
27
+
28
+ ## Task Target Resolution
29
+
30
+ Before repository activation, Mode Selection or `gate-check`, resolve or revalidate the primary work
31
+ target through `contracts/task-target-resolution.md`.
32
+
33
+ An explicit file, artefact or repository named as the work target outranks the current working
34
+ directory. A repository mentioned or inspected as evidence does not gain mutation or governance
35
+ authority. Derive repository-local AGDF activation only from the resolved primary target or an
36
+ explicit user governance assignment.
37
+
38
+ If the target is unavailable, conflicts with the requested content, remains ambiguous or cannot be
39
+ reliably resolved, fail closed to visible clarification. Do not borrow scope from `cwd`, a neighboring
40
+ file or an evidence source. A confirmed target may continue across related turns only after
41
+ unambiguous revalidation; a new explicit target wins and ends the old binding.
42
+
43
+ ## Mode Selection
44
+ Default entry rule: a new user intent to build, add, change, extend, refactor or otherwise deliver something starts with `gate-check` unless it is clearly only a question, explanation, local inspection, or explicitly scoped review.
45
+
46
+ Use Quick Task Mode for questions, small reviews, local debugging and narrow fixes without new product semantics. Use Verified Change only after approved UR and Brownfield Review when the Runtime Contract's compact record can prove bounded ownership, clean-at-baseline paths, prohibited-impact absence and deterministic validation.
47
+
48
+ Use Structured Delivery Mode for new capabilities, architecture, policy, persistence, release-critical work, formal artefacts or explicit approvals.
49
+
50
+ Any new product semantics, functional change or user-visible behaviour change requires a durable UR first.
51
+ Persist it in `.agdf/control/` or link it from there to the target repository's authoritative source of truth before PRD, SD, TP, Brownfield Analysis or implementation.
52
+ Treat approval text and durable artefact presence as separate checks for UR, PRD, SD, TP and QA report decisions.
53
+ Do not infer approval from "ok", "go ahead", "do it", "approved", "continue", "leg los" or similar wording.
54
+ Those phrases may express intent to proceed, but they do not unlock a gate unless the exact gate formula is present.
55
+ Do not infer active scope from branch names, uncommitted workspace deltas, chat history or generated summaries when durable artefacts point elsewhere.
56
+ If multiple active scopes are plausible, list the evidenced lines and route to `gate-check` or workstate clarification instead of choosing silently.
57
+ After `Approval: UR`, run lightweight Brownfield Review before PRD when Brownfield, ownership, runtime, policy, persistence, architecture, UI or UX impact is possible.
58
+ Brownfield Review must produce a Mode/Slice Decision: `quick_task`, `verified_change`, `structured_slice`, `structured_delivery` or `block`.
59
+ That same review records the shared UI/UX impact classification. Run `ux-intent-definition` before
60
+ PRD readiness for medium/high impact and for low impact with ambiguous mandatory PRD semantics. It is
61
+ an internal analytical step, not a gate or product authority; a required blocked result keeps PRD
62
+ readiness closed.
63
+ Make that decision visible before coding or drafting later artefacts: state the selected path, scope reason, evidence and next required gate in the live control state or linked artefact.
64
+ Do not assume the full PRD/SD/TP chain before that decision; use only as much gate depth as the reviewed change size justifies. A user-visible change is not automatically Verified Change eligible; any missing or ambiguous record condition escalates to the declared structured target before implementation.
65
+
66
+ Quick Task Mode must still use the Runtime Contract mini-output: `result`, `evidence`, `risk`, `next_step`.
67
+ Narrow defect work may use the Runtime Contract's Bug Lightweight Track only when a durable bug artefact or linked authoritative issue carries reproduction, actual behavior, expected behavior, fix boundary and evidence plan.
68
+ Structured Delivery Mode must respect gates, reviews and closeout discipline.
69
+
70
+ ## Skill Routing
71
+ | Skill | Use For | Boundary |
72
+ |---|---|---|
73
+ | `delivery-path-search` | high-impact planning decisions with several plausible next delivery steps before implementation | read-only advisory search; never grants gate permission or replaces gate-check |
74
+ | `brownfield-analysis` | after gate-check permits Brownfield Review or implementation preparation, before non-trivial changes in existing systems | clarifies reuse, owners, risks and Mode/Slice Decision; never bypasses gate-check; Brownfield Review is not implementation permission |
75
+ | `ux-intent-definition` | after approved UR and post-UR routing for medium/high UI/UX impact or ambiguous low-impact product semantics before PRD readiness | non-authorizing analytical PRD input; never creates product intent, gate permission, technical design or a parallel product source of truth |
76
+ | `clean-implementation-review` | evidence dimension: inspect whether the solution is structurally clean | supports Quality Readiness; not a TP or QA substitute |
77
+ | `code-review` | evidence dimension: review the actual diff for defects, regression and security findings | supports Quality Readiness; does not replace QA |
78
+ | `delivery-closeout` | commit/PR-near handoff after QA/OR/UAT | never performs VCS actions automatically |
79
+ | `gate-check` | new build/change intent, unclear approval, Structured Delivery, later-gate artefact requested | does not create later artefacts or skip Mode/Slice Decision after Brownfield Review |
80
+ | `qa-gate` | sole final Quality Readiness decision | only instance for `pass | revise | block` |
81
+ | `release-or` | auditable closeout for every relevant run | not a QA substitute |
82
+ | `task-plan-review` | evidence dimension: verify whether the approved Task Plan was fulfilled | supports Quality Readiness; no final QA decision |
83
+
84
+ Select exactly one primary skill first.
85
+ Add more only when they cover a distinct concrete risk dimension.
86
+ Do not choose `brownfield-analysis` as the first primary skill for a fresh "I want to build/change X" prompt unless `gate-check` or existing live AGDF control state already makes implementation preparation the next allowed action.
87
+ Never jump directly from `Approval: UR`, implicit consent, or a generic "start" request to implementation. Route to Brownfield Review, then a visible Mode/Slice Decision with evidence, then the smallest safe next gate or Quick Task execution.
88
+
89
+ ## Runtime Contract
90
+ For repeated output, gate, Quality Contract and Context Graph rules, use:
91
+
92
+ - `contracts/task-target-resolution.md` for primary target authority before repository activation
93
+ - `contracts/gate-transition.md` for gate terms, Brownfield routing and transition rules
94
+ - `contracts/interaction.md` for status cards, approval orientation and native interaction
95
+ - `contracts/modes.md` for delivery-mode boundaries
96
+ - `contracts/quality.md` for quality and output discipline
97
+ - `contracts/context-graph.md` for persistence and reconciliation
98
+ - `contracts/control-scaffold.md` for run state, CLI verification and Delivery Map
99
+ - `contracts/closeout.md` for relevant-run and closeout boundaries
100
+
101
+ `agdf-runtime-contract.md` remains the compatibility manifest for these modules.
102
+
103
+ Skills may include short reminders, but they must not carry a second complete rule or code table.
104
+
105
+ ## Durable Control State
106
+ When the target repository uses the AGDF control scaffold, keep live control files under `.agdf/control/`.
107
+ Use templates as starting points only.
108
+
109
+ Do not let chat history become the source of truth for gate state, approvals, evidence, backlog status or durable Brownfield knowledge.
110
+
111
+ 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.
112
+ 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.
113
+ 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.
114
+ At run closeout, route new durable knowledge explicitly as `context_graph`, `sot_registry`, `scope_artifact`, `open_questions` or `none`.
115
+
116
+ ## Closeout
117
+ For Quick Task Mode, close with the Runtime Contract mini-output only:
118
+
119
+ - `result`
120
+ - `evidence`
121
+ - `risk`
122
+ - `next_step`
123
+
124
+ For relevant runs that change durable state, code, artefacts or gate status:
125
+
126
+ - run relevant checks or state the test gap
127
+ - never commit, push or open a PR automatically
128
+ - include exactly one `Next step:`
129
+ - include exactly one `Quality outlook:`