create-agdf 0.11.4 → 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 (111) hide show
  1. package/README.md +1 -1
  2. package/generated/.agdf/control/templates/artefacts/BROWNFIELD_REVIEW.md +25 -0
  3. package/generated/.github/skills/agdf-brownfield-analysis/SKILL.md +26 -0
  4. package/generated/.github/skills/agdf-gate-check/SKILL.md +40 -18
  5. package/generated/.github/skills/agdf-interaction-locales.json +50 -0
  6. package/generated/.github/skills/agdf-runtime-contract.md +1 -0
  7. package/generated/.github/skills/contracts/gate-transition.md +7 -3
  8. package/generated/.github/skills/contracts/interaction.md +22 -0
  9. package/generated/.github/skills/contracts/modes.md +81 -0
  10. package/generated/.github/skills/contracts/task-target-resolution.md +102 -0
  11. package/generated/.opencode/AGDF.md +2 -0
  12. package/generated/.opencode/agdf-interaction-locales.json +50 -0
  13. package/generated/.opencode/agdf-runtime-contract.md +1 -0
  14. package/generated/.opencode/contracts/gate-transition.md +7 -3
  15. package/generated/.opencode/contracts/interaction.md +22 -0
  16. package/generated/.opencode/contracts/modes.md +81 -0
  17. package/generated/.opencode/contracts/task-target-resolution.md +102 -0
  18. package/generated/.opencode/skills/agdf-brownfield-analysis/SKILL.md +26 -0
  19. package/generated/.opencode/skills/agdf-gate-check/SKILL.md +40 -18
  20. package/generated/AGENTS.md +1 -0
  21. package/generated/plugins/agdf/.claude-plugin/plugin.json +2 -2
  22. package/generated/plugins/agdf/.codex-plugin/plugin.json +9 -6
  23. package/generated/plugins/agdf/control/templates/artefacts/BROWNFIELD_REVIEW.md +25 -0
  24. package/generated/plugins/agdf/meta/agdf-agent-router.md +16 -0
  25. package/generated/plugins/agdf/meta/agdf-interaction-locales.json +50 -0
  26. package/generated/plugins/agdf/meta/agdf-plugin.definition.json +41 -5
  27. package/generated/plugins/agdf/meta/agdf-runtime-contract.md +1 -0
  28. package/generated/plugins/agdf/meta/contracts/gate-transition.md +7 -3
  29. package/generated/plugins/agdf/meta/contracts/interaction.md +22 -0
  30. package/generated/plugins/agdf/meta/contracts/modes.md +81 -0
  31. package/generated/plugins/agdf/meta/contracts/task-target-resolution.md +102 -0
  32. package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-interaction-locales.json +50 -0
  33. package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +41 -5
  34. package/generated/plugins/agdf/runtime/create-agdf/lib/control-evaluation/gate-policy.js +14 -7
  35. package/generated/plugins/agdf/runtime/create-agdf/lib/interaction-presentation.js +85 -0
  36. package/generated/plugins/agdf/runtime/create-agdf/package.json +4 -65
  37. package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
  38. package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +146 -40
  39. package/generated/plugins/agdf/skills/brownfield-analysis/SKILL.md +26 -0
  40. package/generated/plugins/agdf/skills/gate-check/SKILL.md +40 -18
  41. package/generated/plugins/agdf/submission/openai/availability.md +16 -0
  42. package/generated/plugins/agdf/submission/openai/capability-matrix.json +49 -0
  43. package/generated/plugins/agdf/submission/openai/release-notes.md +16 -0
  44. package/generated/plugins/agdf/submission/openai/reviewer-cases.json +96 -0
  45. package/generated/submissions/openai/agdf/.codex-plugin/plugin.json +43 -0
  46. package/generated/submissions/openai/agdf/assets/agdf-icon.svg +16 -0
  47. package/generated/submissions/openai/agdf/assets/agdf-logo.svg +16 -0
  48. package/generated/submissions/openai/agdf/meta/agdf-agent-router.md +129 -0
  49. package/generated/submissions/openai/agdf/meta/agdf-constitution.md +329 -0
  50. package/generated/submissions/openai/agdf/meta/agdf-interaction-locales.json +514 -0
  51. package/generated/submissions/openai/agdf/meta/agdf-plugin.definition.json +263 -0
  52. package/generated/submissions/openai/agdf/meta/agdf-runtime-contract.md +16 -0
  53. package/generated/submissions/openai/agdf/meta/agdf-tenets.md +201 -0
  54. package/generated/submissions/openai/agdf/meta/contracts/closeout.md +29 -0
  55. package/generated/submissions/openai/agdf/meta/contracts/context-graph.md +48 -0
  56. package/generated/submissions/openai/agdf/meta/contracts/control-scaffold.md +115 -0
  57. package/generated/submissions/openai/agdf/meta/contracts/gate-transition.md +165 -0
  58. package/generated/submissions/openai/agdf/meta/contracts/interaction.md +476 -0
  59. package/generated/submissions/openai/agdf/meta/contracts/modes.md +183 -0
  60. package/generated/submissions/openai/agdf/meta/contracts/quality.md +157 -0
  61. package/generated/submissions/openai/agdf/meta/contracts/task-target-resolution.md +102 -0
  62. package/generated/submissions/openai/agdf/skills/brownfield-analysis/SKILL.md +175 -0
  63. package/generated/submissions/openai/agdf/skills/brownfield-analysis/help.md +23 -0
  64. package/generated/submissions/openai/agdf/skills/clean-implementation-review/SKILL.md +126 -0
  65. package/generated/submissions/openai/agdf/skills/clean-implementation-review/help.md +23 -0
  66. package/generated/submissions/openai/agdf/skills/code-review/SKILL.md +119 -0
  67. package/generated/submissions/openai/agdf/skills/code-review/help.md +23 -0
  68. package/generated/submissions/openai/agdf/skills/delivery-closeout/SKILL.md +118 -0
  69. package/generated/submissions/openai/agdf/skills/delivery-closeout/help.md +23 -0
  70. package/generated/submissions/openai/agdf/skills/delivery-path-search/SKILL.md +94 -0
  71. package/generated/submissions/openai/agdf/skills/delivery-path-search/help.md +23 -0
  72. package/generated/submissions/openai/agdf/skills/gate-check/SKILL.md +238 -0
  73. package/generated/submissions/openai/agdf/skills/gate-check/help.md +23 -0
  74. package/generated/submissions/openai/agdf/skills/qa-gate/SKILL.md +137 -0
  75. package/generated/submissions/openai/agdf/skills/qa-gate/help.md +23 -0
  76. package/generated/submissions/openai/agdf/skills/release-or/SKILL.md +137 -0
  77. package/generated/submissions/openai/agdf/skills/release-or/help.md +23 -0
  78. package/generated/submissions/openai/agdf/skills/task-plan-review/SKILL.md +157 -0
  79. package/generated/submissions/openai/agdf/skills/task-plan-review/help.md +23 -0
  80. package/generated/submissions/openai/agdf/skills/ux-intent-definition/SKILL.md +94 -0
  81. package/generated/submissions/openai/agdf/skills/ux-intent-definition/help.md +17 -0
  82. package/generated/submissions/openai/agdf/submission/openai/availability.md +16 -0
  83. package/generated/submissions/openai/agdf/submission/openai/capability-matrix.json +49 -0
  84. package/generated/submissions/openai/agdf/submission/openai/inventory.json +175 -0
  85. package/generated/submissions/openai/agdf/submission/openai/listing.json +38 -0
  86. package/generated/submissions/openai/agdf/submission/openai/readiness.json +40 -0
  87. package/generated/submissions/openai/agdf/submission/openai/readiness.md +24 -0
  88. package/generated/submissions/openai/agdf/submission/openai/release-notes.md +16 -0
  89. package/generated/submissions/openai/agdf/submission/openai/reviewer-cases.json +96 -0
  90. package/lib/cli/application.js +13 -2
  91. package/lib/control-evaluation/gate-policy.js +14 -7
  92. package/lib/installers/local-marketplace.js +1 -1
  93. package/lib/installers/opencode.js +128 -1
  94. package/lib/interaction-presentation.js +85 -0
  95. package/lib/live-agent/read-only-structured.js +43 -0
  96. package/lib/proportionality-benchmark/blind-prompt.js +37 -0
  97. package/lib/proportionality-benchmark/contracts.js +120 -0
  98. package/lib/proportionality-benchmark/corpus-loader.js +110 -0
  99. package/lib/proportionality-benchmark/evaluator.js +250 -0
  100. package/lib/proportionality-benchmark/index.js +7 -0
  101. package/lib/proportionality-benchmark/live-recorder.js +100 -0
  102. package/lib/proportionality-benchmark/report.js +51 -0
  103. package/lib/proportionality-benchmark/source-fingerprint.js +30 -0
  104. package/lib/public-plugin/builder.js +82 -0
  105. package/lib/public-plugin/contract.js +102 -0
  106. package/lib/public-plugin/manifest.js +72 -0
  107. package/lib/public-plugin/report.js +33 -0
  108. package/lib/public-plugin/validator.js +101 -0
  109. package/lib/skill-evals/live-recorder.js +3 -26
  110. package/opencode-plugin.js +40 -1
  111. package/package.json +7 -2
@@ -0,0 +1,119 @@
1
+ ---
2
+ name: code-review
3
+ description: Use this skill after code changes and before QA to produce the mandatory Code Review Report for correctness, regression, security, and maintainability findings in the actual diff. It standardizes the CR step without replacing TP review, clean review, or QA.
4
+ ---
5
+
6
+ # code-review
7
+
8
+ ## Purpose
9
+ Produce the mandatory Code Review Report (CR) for a relevant run.
10
+
11
+ It answers:
12
+
13
+ - whether the changed code shows functional defects, security issues, regression risks, or maintainability problems that matter
14
+ - whether findings are blocking, revisable, or advisory
15
+ - which concrete evidence in files, diffs, tests, or runtime observations supports each finding
16
+ - which issues must be fixed before QA
17
+ - whether Brownfield, TP, or clean-review follow-up remains open
18
+
19
+ ## Runtime Contract
20
+ Use these focused runtime-contract modules:
21
+
22
+ - `../../meta/contracts/quality.md`
23
+ - `../../meta/contracts/context-graph.md`
24
+
25
+ Code-review-specific output must make actual findings, missing review scope, evidence strength, and the next required step visible.
26
+ Applicable findings must use `../../meta/contracts/quality.md` §Normalized Review Gaps. Concrete diff
27
+ defects remain Code Review findings; missing upstream constraints route to their authoritative owner.
28
+
29
+ ## Rules
30
+ 1. Review the actual diff and impacted code, not intent alone.
31
+ 2. Findings require concrete evidence.
32
+ 3. Prioritize correctness, safety, data integrity, compatibility, and maintainability over style.
33
+ 4. Do not generate style-only noise.
34
+ 5. Missing review scope or evidence must stay visible.
35
+ 6. Brownfield owners and existing conventions are binding unless deviation is justified.
36
+ 7. Distinguish blocking defects from fixable review findings.
37
+ 8. CR does not grant QA pass.
38
+ 9. Do not turn Code Review into a static requirements checklist or invent missing upstream constraints.
39
+ 10. A genuinely new implementation risk uses `emergent_risk` with an explicit earliest-owner assessment.
40
+ 11. Missing, unknown or contradictory classifications fail closed and stay open.
41
+
42
+ ## When To Use
43
+ - after `CD+Tests`
44
+ - before `QA`
45
+ - when code changes exist
46
+ - when multiple agents or contributors touched the same area
47
+ - when a commit-near change needs explicit review evidence
48
+
49
+ ## Inputs
50
+ Use what is available:
51
+
52
+ - changed files and diff
53
+ - affected neighbouring code
54
+ - test/build results
55
+ - Brownfield Analysis
56
+ - Task Plan and TP Review
57
+ - Clean Implementation Review
58
+ - runtime or UI evidence
59
+ - known risks or follow-up decisions
60
+
61
+ If no code changes are present, do not invent a CR result.
62
+
63
+ ## Workflow
64
+ 1. Inspect the changed files and directly impacted neighbours.
65
+ 2. Check correctness, edge cases, and error paths.
66
+ 3. Check security, data handling, and state ownership risks.
67
+ 4. Check regression and compatibility risks.
68
+ 5. Check maintainability only where it creates real defect or change-risk exposure.
69
+ 6. Classify the overall result:
70
+ - `pass`
71
+ - `revise`
72
+ - `block`
73
+ - `not_applicable`
74
+ 7. Set exactly one required next step.
75
+
76
+ ## Output
77
+ Use this compact structure:
78
+
79
+ ```text
80
+ ## Code Review
81
+ - decision: pass | revise | block | not_applicable
82
+ - findings:
83
+ - [severity] file/path - issue - evidence
84
+ - missing_evidence:
85
+ - risks:
86
+ - required_next_step:
87
+ ```
88
+
89
+ When findings exist, append:
90
+
91
+ ```text
92
+ ## Normalized Findings
93
+ | finding_id | gap_type | routing_target | gap_status | evidence | required_next_step |
94
+ |---|---|---|---|---|---|
95
+ ```
96
+
97
+ Use the shared Quality Contract for meanings and routes; do not copy its complete mapping here.
98
+
99
+ ## Decision Guidance
100
+ - `pass`: no meaningful review finding remains evident in reviewed scope.
101
+ - `revise`: fixable correctness, regression, or maintainability issues remain.
102
+ - `block`: a hard defect, security risk, data-integrity risk, or unresolved critical uncertainty remains.
103
+ - `not_applicable`: no code changes were present for review.
104
+
105
+ ### Compact Chat Output
106
+
107
+ At `pass`: one line — `Code Review: pass — <one-line summary>`.
108
+ At `revise`/`block`: show blocking findings with file references. Full report remains in durable file or inline evidence as specified.
109
+
110
+ ## Forbidden
111
+ This skill must not:
112
+
113
+ - decide final QA
114
+ - accept a green build as sufficient review evidence
115
+ - hide missing review scope
116
+ - generate style-only findings
117
+ - duplicate TP Review or QA as if they were the same step
118
+ - invent a requirement, design decision or plan obligation to justify a finding
119
+ - silently repair or reclassify an invalid normalized finding
@@ -0,0 +1,23 @@
1
+ ## NAME
2
+
3
+ `code-review` - code review
4
+
5
+ ## SYNOPSIS
6
+
7
+ `/code-review` [`--help`|`-h`]
8
+
9
+ ## DESCRIPTION
10
+
11
+ Produces the mandatory Code Review Report for changed code and focuses on correctness, regression, security, and other materially relevant findings before QA.
12
+
13
+ ## EXAMPLES
14
+
15
+ Trigger the skill:
16
+
17
+ ```text
18
+ > /code-review
19
+ ```
20
+
21
+ ## SEE ALSO
22
+
23
+ See the full SKILL.md for workflow, output format, and review boundaries.
@@ -0,0 +1,118 @@
1
+ ---
2
+ name: delivery-closeout
3
+ description: Use this skill for the final delivery handoff after QA, OR, or UAT when a run should move toward commit, push, or PR. It standardizes commit-ready summaries, UAT-gated commit offers, and the next delivery step without replacing QA or OR decisions.
4
+ ---
5
+
6
+ # delivery-closeout
7
+
8
+ ## Purpose
9
+ Standardize the operational delivery closeout.
10
+
11
+ It answers:
12
+
13
+ - what operational delivery status applies after QA, OR, or UAT
14
+ - whether a commit-ready Git summary should be provided
15
+ - whether a commit should be actively offered after `Approval: UAT`
16
+ - which next delivery step makes sense: commit, push, PR, rollout, or none
17
+ - whether evidence-based technical follow-up remains useful
18
+ - whether Context Graph follow-up from OR/QA remains open
19
+
20
+ This skill does not replace `qa-gate`, `release-or`, user approvals, or gate decisions.
21
+
22
+ ## Runtime Contract
23
+ Use these focused runtime-contract modules:
24
+
25
+ - `../../meta/contracts/closeout.md`
26
+ - `../../meta/contracts/context-graph.md`
27
+ - `../../meta/contracts/gate-transition.md`
28
+
29
+ ## Rules
30
+ 1. Delivery follows gate clarity.
31
+ 2. Never perform commit, push, or PR automatically.
32
+ 3. Use one handoff format:
33
+ - `Commit title`
34
+ - `Commit body`
35
+ - optional `Migration/Rollout note`
36
+ 4. `Approval: UAT` unlocks an active commit offer when code changes exist.
37
+ 5. No commit handoff for runs without code changes.
38
+ 6. Always include exactly one next step and one quality outlook.
39
+ 7. If OR, QA or current run state reports `context_graph_reconciliation: open_gap`, do not provide a clean commit-ready handoff; set the next step to resolve or explicitly retain the Context Graph gap.
40
+
41
+ ## When To Use
42
+ - after `QA pass` with code changes
43
+ - after OR when delivery handoff should be clean
44
+ - after `Approval: UAT`
45
+ - when the user asks for commit, push, or PR handoff
46
+
47
+ Do not use as a substitute for `qa-gate`, `release-or`, or `gate-check`.
48
+
49
+ ## Inputs
50
+ Use what is available:
51
+
52
+ - QA Report
53
+ - OR
54
+ - current gate status
55
+ - whether code changes exist
56
+ - existing commit-ready summary
57
+ - rollout or migration notes
58
+ - open technical risks or documentation gaps
59
+ - Context Graph impact from OR/QA/review
60
+
61
+ If code-change status is unclear, do not claim a commit handoff.
62
+
63
+ ## Workflow
64
+ 1. Classify the closeout:
65
+ - `qa_pass_with_code`
66
+ - `qa_pass_without_code`
67
+ - `uat_approved_with_code`
68
+ - `uat_approved_without_code`
69
+ - `non_delivery_closeout`
70
+ 2. Check Context Graph reconciliation from OR, QA, review and current run state.
71
+ 3. If reconciliation is `open_gap`, report the delivery status as not cleanly handoff-ready and do not derive commit-ready Git text.
72
+ 4. Derive Git handoff only when code changes exist and no unresolved Context Graph gap remains.
73
+ 5. Set exactly one next delivery step:
74
+ - offer commit
75
+ - offer push
76
+ - offer PR
77
+ - no further delivery step
78
+ - run QA/review
79
+ - obtain UAT/approval
80
+ - perform documentation follow-up
81
+ - resolve Context Graph gap
82
+ 6. Set quality outlook:
83
+ - no further technical follow-up
84
+ - more tests
85
+ - refactoring
86
+ - documentation sharpening
87
+ - monitoring/runtime verification
88
+ - Context Graph reconciliation
89
+ 7. If `Approval: UAT` exists, code changes were delivered, and no Context Graph gap remains, actively offer the commit but do not run it.
90
+
91
+ ## Output
92
+ For code-changing runs:
93
+
94
+ ```text
95
+ Delivery status:
96
+ Next step:
97
+ Quality outlook:
98
+ Commit title:
99
+ Commit body:
100
+ Migration/Rollout note:
101
+ ```
102
+
103
+ For non-code runs:
104
+
105
+ ```text
106
+ Delivery status:
107
+ Next step:
108
+ Quality outlook:
109
+ ```
110
+
111
+ ## Forbidden
112
+ This skill must not:
113
+
114
+ - decide QA pass
115
+ - replace OR
116
+ - execute commit, push, or PR
117
+ - invent a commit handoff for non-code runs
118
+ - imply new gate approvals
@@ -0,0 +1,23 @@
1
+ ## NAME
2
+
3
+ `delivery-closeout` - delivery closeout
4
+
5
+ ## SYNOPSIS
6
+
7
+ `/delivery-closeout` [`--help`|`-h`]
8
+
9
+ ## DESCRIPTION
10
+
11
+ Standardizes the operational delivery closeout for a run with a commit-ready Git summary, UAT-gated commit offer, and next delivery step.
12
+
13
+ ## EXAMPLES
14
+
15
+ Trigger the skill:
16
+
17
+ ```text
18
+ > /delivery-closeout
19
+ ```
20
+
21
+ ## SEE ALSO
22
+
23
+ See the full SKILL.md for detailed workflow, output format, and decision logic.
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: delivery-path-search
3
+ description: Use this skill for high-impact planning decisions when several materially different next delivery steps are plausible and comparing scope, risk, evidence, tests, cost and gate readiness would reduce expensive rework. Do not use for routine tasks, during implementation, or as gate permission.
4
+ ---
5
+
6
+ # Delivery Path Search
7
+
8
+ ## Purpose
9
+
10
+ Search a bounded set of possible delivery paths before implementation and return one safest evidence-backed next step.
11
+
12
+ The search is advisory and read-only. Canonical AGDF `gate-check` remains the only authority for whether the recommended step may proceed.
13
+
14
+ ## Runtime Contract
15
+
16
+ Use these focused runtime-contract modules:
17
+
18
+ - `../../meta/contracts/control-scaffold.md`
19
+ - `../../meta/contracts/gate-transition.md`
20
+ - `../../meta/contracts/quality.md`
21
+
22
+ ## Trigger
23
+
24
+ Use only when at least one applies:
25
+
26
+ - high product, architecture, security, policy, persistence or release impact
27
+ - several materially different next actions are plausible
28
+ - a wrong decision would cause expensive rework
29
+ - the best evidence-gathering or test action is unclear
30
+
31
+ Skip for routine questions, obvious local fixes and approved implementation with one clear next action.
32
+
33
+ ## Workflow
34
+
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.
37
+ 3. Declare the active surface and its enforcement level.
38
+ 4. Resolve the exact-version surface-local validator using the same ownership rules as `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
+ 5. Invoke the shared CLI runtime:
40
+
41
+ ```bash
42
+ node <surface-local-agdf> delivery-path-search --surface <surface> --json
43
+ ```
44
+
45
+ Optional AI-native candidate generation is explicit:
46
+
47
+ ```bash
48
+ node <surface-local-agdf> delivery-path-search \
49
+ --surface codex \
50
+ --generate-candidates \
51
+ --json
52
+ ```
53
+
54
+ 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
+
56
+ 6. Treat facts, repository evidence, assumptions and model judgements separately.
57
+ 7. Return exactly one recommendation or `no_safe_recommendation`.
58
+ 8. Run canonical AGDF gate-check after search. Never translate a recommendation into permission.
59
+
60
+ ## Enforcement
61
+
62
+ Report exactly one:
63
+
64
+ - `full`: trusted lifecycle controls prevent writes
65
+ - `tool_enforced`: the evaluator receives read/evaluation tools only
66
+ - `instruction_only`: write prevention is instructional and not technically proven
67
+
68
+ Do not overstate the surface's guarantee.
69
+
70
+ ## Output
71
+
72
+ Keep chat output compact:
73
+
74
+ - recommendation or `no_safe_recommendation`
75
+ - current gate
76
+ - enforcement level
77
+ - decisive evidence and assumptions
78
+ - rejected alternatives and reasons
79
+ - budgets and stopping reason
80
+ - next AGDF gate action
81
+
82
+ Persist only the redacted decision summary when durable evidence is required. Do not persist raw prompts, hidden reasoning, secrets or source snapshots.
83
+
84
+ ## Boundaries
85
+
86
+ - This is bounded Delivery Path Search, not MCTS.
87
+ - Do not modify repository files during search.
88
+ - Do not execute evaluator-returned commands.
89
+ - Do not invent default scores for invalid evaluator output.
90
+ - Do not implement, approve or release based on search output.
91
+ - Do not create agent-specific scoring, gate logic or skill copies.
92
+ - Do not replace deterministic candidates with generated proposals.
93
+ - Do not send secrets, full artefacts, source snapshots, raw prompts or hidden reasoning to a generator.
94
+ - Do not claim executable generation for instruction-only surfaces.
@@ -0,0 +1,23 @@
1
+ ## NAME
2
+
3
+ `delivery-path-search` - delivery path search
4
+
5
+ ## SYNOPSIS
6
+
7
+ `/delivery-path-search` [`--help`|`-h`]
8
+
9
+ ## DESCRIPTION
10
+
11
+ Compares materially different high-impact delivery paths using scope, risk, evidence, tests, cost, and gate readiness. The result is advisory and read-only; canonical AGDF `gate-check` remains the authority for what may happen next.
12
+
13
+ ## EXAMPLES
14
+
15
+ Trigger the skill:
16
+
17
+ ```text
18
+ > /delivery-path-search
19
+ ```
20
+
21
+ ## SEE ALSO
22
+
23
+ See the full SKILL.md for detailed workflow, enforcement levels, bounded search rules, and output requirements.
@@ -0,0 +1,238 @@
1
+ ---
2
+ name: gate-check
3
+ description: Use this skill as the default first AGDF skill for any new build, change, extension, refactor, feature, CLI, app, fix with product semantics, Structured Delivery request, unclear approval, later-gate artefact request, or unclear next permissible step. Use it before brownfield-analysis, implementation, formal artefacts, QA, or release when approval/evidence/next action is not already explicit.
4
+ ---
5
+
6
+ # gate-check
7
+
8
+ ## Purpose
9
+ Determine the earliest blocking user approval gate and derive:
10
+
11
+ - the active or blocking gate
12
+ - whether the process is open or blocked
13
+ - currently allowed outputs
14
+ - currently forbidden outputs
15
+ - the exact missing approval
16
+ - the next permissible step
17
+
18
+ This skill must not create later artefacts such as PRD, SD, TP, CD, CR, QA, or UAT when the gate does not allow them.
19
+
20
+ ## Runtime Contract
21
+ Use these focused runtime-contract modules:
22
+
23
+ - `../../meta/contracts/task-target-resolution.md`
24
+ - `../../meta/contracts/gate-transition.md`
25
+ - `../../meta/contracts/interaction.md`
26
+ - `../../meta/contracts/control-scaffold.md`
27
+ - `../../meta/contracts/modes.md`
28
+ - `../../meta/contracts/quality.md`
29
+ The canonical gate order and transition model live only in `../../meta/contracts/gate-transition.md`. This skill evaluates the current state against that model; it must not maintain a second complete gate table.
30
+
31
+ ## Agent-Native Control Path
32
+
33
+ AGDF is agent-native first and CLI-verifiable by design.
34
+ This skill is the primary operating path for gate judgement.
35
+
36
+ First inspect the durable control state directly:
37
+
38
+ - selected `.agdf/control/runs/<run_id>/RUN_STATE.md` (or legacy `AGDF_RUN.md` before explicit migration)
39
+ - `.agdf/control/MASTER_BACKLOG.md`
40
+ - `.agdf/control/SOT_REGISTRY.md`
41
+ - `.agdf/control/CONTEXT_GRAPH.md`
42
+ - `.agdf/control/AGENT_QUALITY_CONTRACTS.json`
43
+
44
+ If required control files are missing, do not automatically create a full `.agdf/control/` scaffold for a fresh small request.
45
+ The default first action is to draft the minimal UR in the response and request `Approval: UR`.
46
+ 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.
47
+
48
+ 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, when deterministic ready-gate rendering is required, or when a repository-local automation needs JSON output. Resolve the version-matched validator owned by the active surface first: `<plugin-root>/runtime/agdf-local.js` for Codex or Claude, or `<opencode-config>/agdf/bin/agdf-local.js` for OpenCode. Run its `--resolve-only --json` probe before treating its output as machine evidence. An explicitly configured absolute `AGDF_VALIDATOR_PATH` is the only secondary local candidate and must match the active AGDF version.
49
+
50
+ Routine validation uses that resolved local entrypoint:
51
+
52
+ ```bash
53
+ node <surface-local-agdf> doctor --json
54
+ node <surface-local-agdf> gate-check --json
55
+ node <surface-local-agdf> delivery-map --json
56
+ ```
57
+
58
+ If no exact-version local validator exists, continue through agent-native inspection where permitted
59
+ and state `machine_validation: unavailable` or `external_required`; do not automatically invoke
60
+ `npx`, install a package or contact the registry. Registry-resolved commands are reserved for an
61
+ explicit bootstrap, installation, repair or refresh requested as a lifecycle action.
62
+
63
+ For repeated local checks, use the resolved entrypoint with `doctor --json`, `gate-check --json` or
64
+ `gate-check --approval-envelope`. The last command prints the validated
65
+ two-card exact-text interaction; JSON exposes the same `approval_presentation`
66
+ for a native-capable adapter.
67
+
68
+ `init` creates the control scaffold. `doctor` checks whether `.agdf/control/` is actionable. `gate-check` consumes that result and the selected canonical run record to report the operative process decision: `open | blocked`, current gate, blocking reason, missing approval, allowed outputs, forbidden outputs, next allowed action and evidence references.
69
+ `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.
70
+
71
+ 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.
72
+
73
+ ## Repository Activation Diagnosis
74
+
75
+ `doctor --json` on the resolved surface-local validator is the sole canonical, code-owned, tool-shell-safe activation probe. Determine whether a repository is AGDF-active through `doctor --json` (or `gate-check --json` for a selected run), not through plugin `AGDF_*` environment variables, not through a relative glob, not through a relative `grep`, and not through a relative `read` of `.agdf/control/config.json`.
76
+
77
+ Plugin `AGDF_*` environment variables set by the OpenCode `shell.env` hook are convenience only and must not be used as the only proof of activation; host shell-env propagation to spawned tool shells is not guaranteed and is OpenCode-owned, not AGDF-owned. A relative glob or `grep` for `.agdf/control/config.json` must not be used as proof of presence or absence of `.agdf/control/config.json`; an absolute `read` or the canonical CLI probe is required.
78
+
79
+ ## OpenCode Subagent Enforcement Boundary
80
+
81
+ OpenCode plugin hooks (`tool.execute.before`) do not intercept tool calls from subagents spawned via the `task` tool (anomalyco/opencode issue #5894, PR #36238 open). AGDF enforcement through plugin hooks applies to primary-agent tool calls only; in the subagent path, AGDF governance is auditing-only, not enforcement.
82
+
83
+ This is a host limitation, not an AGDF-owned defect. Do not claim that AGDF gates are technically enforced in the OpenCode subagent path. Do not route work to a subagent to bypass a primary-agent gate. When subagent work touches gate-relevant files, verify the result through the canonical validator (`doctor --json`, `gate-check --json`) after the subagent returns, not during.
84
+
85
+ ## Native Interaction Path
86
+
87
+ `../../meta/contracts/interaction.md` is the complete normative owner for interaction kinds, locale,
88
+ canonical values, presentation order, adapter capability, deliberate waiting, native/fallback
89
+ behavior, transient outcomes, permissions and post-response validation. Load and apply that contract;
90
+ do not restate or infer a surface matrix in this skill.
91
+
92
+ This skill owns only these operational responsibilities:
93
+
94
+ 1. Resolve or revalidate the primary task target before selecting repository control state.
95
+ 2. Derive repository activation only from the resolved governance target; an evidence source or
96
+ working directory is not sufficient.
97
+ 3. Select exactly one run and evaluate its current gate.
98
+ 4. Confirm that the required durable artefact is present and ready.
99
+ 5. Consume the canonical `approval_presentation` verbatim for the selected run, gate and revision.
100
+ 6. Present that projection and obtain deliberate input through the contract-selected native or exact-text path.
101
+ 7. Revalidate the same target, run, gate and revision immediately after the response and before persistence.
102
+ 8. Persist only a currently valid exact approval through the existing control-state workflow.
103
+
104
+ For status, blocked, read-only or rationale interactions, consume the canonical
105
+ `status_presentation.markdown` verbatim and apply the locale contract without asking for approval.
106
+ Do not reconstruct its fields, ordering, labels or Markdown from `status_card` JSON. Internal process
107
+ steps remain distinct from user decisions. If the projection, adapter evidence or revalidation is
108
+ missing, follow the contract's fail-closed outcome and leave authority unchanged.
109
+
110
+ ## Rules
111
+ 1. Fail closed when a required approval or artefact status is missing.
112
+ 2. The earliest blocking gate wins.
113
+ 3. A user approval is valid only as `Approval: <GateName>`.
114
+ 4. Treat `Freigabe: <GateName>` as a legacy alias only when reviewing older German runs.
115
+ 5. Implicit consent is not approval. "ok", "go ahead", "do it", "approved", "continue", "leg los" and similar phrases do not unlock gates.
116
+ 6. Do not preview later artefacts while a gate blocks.
117
+ 7. Internal process steps are not user approval gates.
118
+ 8. OR-lite is allowed if it does not leak blocked content.
119
+ 9. SoT/runtime/product-semantics drift can trigger an early product gate, usually `UR`.
120
+ 10. Approval of one user gate permits work on the next allowed gate artefact or required internal step only; it never skips directly to implementation.
121
+ 11. New product semantics, functional change or user-visible behaviour change requires a durable UR in `.agdf/control/` or a linked authoritative repository SoT before Brownfield Review, PRD, SD, TP, Brownfield Analysis or implementation.
122
+ 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.
123
+ 13. After Brownfield Review, decide the process size before drafting PRD or implementing: `quick_task | verified_change | structured_slice | structured_delivery | block`.
124
+ 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.
125
+ 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.
126
+ 16. Branch names, uncommitted diffs, generated summaries and chat history are not sufficient scope proof when durable artefacts or approvals are missing or conflicting.
127
+ 17. If multiple active scopes are plausible, list the evidenced competing lines and keep the current step at scope clarification or the earliest common safe gate.
128
+ 18. When maintaining `MASTER_BACKLOG.md`, use its canonical compact columns, readable status labels and document-relative Markdown links. Do not expose raw long paths or internal snake_case statuses in the human-facing table. The canonical status/artefact label vocabulary is defined in the AGDF control scaffold's `MASTER_BACKLOG.md` template Rules section; do not invent other labels.
129
+ 19. Preserve legacy backlog compatibility through the CLI parser; do not create a second surface-specific backlog format.
130
+ 20. Native interaction must follow the Runtime Contract's interaction envelope, readiness check, deliberate-user-input requirement and post-response revalidation boundary.
131
+
132
+ ## Gate Evaluation
133
+
134
+ If `Approval: UR` is present, do not say implementation is the next step.
135
+ The next step is Brownfield Review when Brownfield, ownership, runtime, policy, persistence, architecture, UI or UX impact is possible; after that, the next step is a Mode/Slice Decision. Do not assume the full PRD/SD/TP chain before the existing-system impact is understood.
136
+ Use the Runtime Contract's Gate Transition Model to derive the current gate, allowed outputs, forbidden outputs and missing approval.
137
+
138
+ ## When To Use
139
+ - new user intent to build, add, change, extend, refactor or deliver something
140
+ - Structured Delivery before first artefact creation
141
+ - unclear current gate
142
+ - user says "continue" or similar without exact approval
143
+ - code or a later-gate artefact is requested
144
+ - implementation permission is unclear
145
+ - QA, UAT, or release permission is unclear
146
+
147
+ Not required for simple Quick Tasks without new product scope and without formal artefacts.
148
+
149
+ For a fresh prompt such as "I want to build a small CLI", use this skill first.
150
+ Do not route directly to `brownfield-analysis` or implementation until this skill or live AGDF control state says that implementation preparation is the next allowed action.
151
+
152
+ ## Inputs
153
+ Use what is available:
154
+
155
+ - current user request
156
+ - existing exact approvals
157
+ - status of UR, PRD, SD, TP
158
+ - Brownfield Review status
159
+ - Mode/Slice Decision
160
+ - Brownfield Analysis status
161
+ - CD+Tests, CR, QA, UAT status
162
+ - signs of documentation/runtime/product-semantics drift
163
+ - branch/workspace evidence and whether it conflicts with durable artefacts
164
+ - competing active scopes or work lines
165
+
166
+ If a status is not explicit, do not assume it is satisfied.
167
+
168
+ ## Workflow
169
+ 1. Resolve or revalidate the primary target through `task-target-resolution.md`.
170
+ 2. If resolution is unresolved, consume the canonical target orientation, request only its
171
+ clarification/recovery action and stop before repository activation, gate evaluation or mutation.
172
+ 3. Derive the governance target from the primary target; never from `cwd` or an evidence source alone.
173
+ 4. Check exact approvals.
174
+ 5. Check artefact status.
175
+ 6. Determine the earliest blocking user gate or internal mandatory step.
176
+ 7. Derive allowed and forbidden outputs.
177
+ 8. Name the exact missing approval, if any.
178
+ 9. If consent was only implicit, say it is not yet approval and provide the exact formula.
179
+ 10. Ensure the next step follows the gate transition table. In particular, never jump from `Approval: UR` to implementation.
180
+ 11. Treat a generic "start", "continue" or "leg los" request as a request to perform only the current next allowed action.
181
+ 12. After Brownfield Review, choose the smallest safe process path before creating later artefacts.
182
+ 13. If the selected path is not visibly recorded with scope reason and evidence, keep the run at `Mode/Slice Decision`.
183
+ 14. 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.
184
+ 15. If branch, workspace and durable artefacts disagree, do not choose a scope silently; report the ambiguity and ask for the smallest clarifying gate action.
185
+
186
+ ### Task Target Orientation
187
+
188
+ When target/context separation is material, the target changed, or resolution is unresolved, consume
189
+ `task_target_orientation.markdown` verbatim from `renderTaskTargetOrientation` in
190
+ `../../meta/contracts/interaction.md`. Do not reconstruct its fields or maintain a skill-local target
191
+ template. If the renderer returns `null`, fail closed to target clarification and do not proceed to
192
+ repository activation, Scope Classification or gate evaluation.
193
+
194
+ ### Scope Classification Output
195
+ When this skill classifies a fresh scope as ungated (Quick Task or Trivial Change Boundary), consume
196
+ `scope_classification.markdown` verbatim from `renderScopeClassificationCard` in
197
+ `../../meta/contracts/interaction.md` § Scope Classification Card. The card is a compact, localized,
198
+ non-authorizing projection: mode, boundary, UR-trigger evaluation, one allowed line, one forbidden
199
+ line, escalation triggers and the challenge path. Do not maintain or render a skill-local
200
+ classification card template. If the renderer returns `null`, fail closed to the existing ceremony
201
+ and do not model-reconstruct Markdown.
202
+
203
+ ## Output
204
+ Keep the result short and operational. For a status-only response, consume the Runtime Contract's
205
+ code-owned `status_presentation.markdown` verbatim. It is the compact localized operational Run
206
+ Status Card and already includes current and post-approval authority, next-step and quality fields.
207
+ Keep full raw evidence in `status_card` JSON or concise surrounding detail when relevant; do not turn
208
+ the primary chat card into an audit dump. Do not maintain or render a skill-local table template.
209
+
210
+ This complete operational status table remains the status-reporting and detail
211
+ surface. When the same response immediately requests a ready gate approval,
212
+ render its five-field compact approval-time projection first, then the Gate
213
+ Transition Card in the same immediately preceding assistant message, then
214
+ invoke exactly one native question or exact-text fallback. Both cards derive
215
+ from the same snapshot and are shown exactly once.
216
+
217
+ If this skill creates or updates control artefacts, do not paste full file bodies into the chat.
218
+ List paths, summarize the decision, name the blocker or approval needed, and keep the durable content in the files.
219
+ See the Runtime Contract §Chat and Tool-Call Discipline for tool-call batching and skill output compaction rules.
220
+
221
+ ## Forbidden
222
+ This skill must not:
223
+
224
+ - create PRD before UR approval
225
+ - create PRD before required Brownfield Review is done or explicitly not_applicable
226
+ - create PRD before Mode/Slice Decision is recorded
227
+ - create SD before PRD approval
228
+ - create TP while earlier gates block
229
+ - suggest implementation immediately after `Approval: UR`
230
+ - suggest implementation before Brownfield Review has explicitly selected `quick_task`
231
+ - suggest implementation immediately after `Approval: PRD`
232
+ - suggest implementation immediately after `Approval: SD`
233
+ - treat "ok", "leg los", "go ahead", "approved" or similar wording as gate approval
234
+ - perform full Brownfield Analysis unless explicitly requested
235
+ - provide implementation snippets while implementation is gated
236
+ - paste full `.agdf/control/` files, templates or artefact bodies into the chat unless the user explicitly asks for the full content
237
+ - present QA or UAT as passed without evidence
238
+ - present release as allowed without QA pass and UAT approval where required
@@ -0,0 +1,23 @@
1
+ ## NAME
2
+
3
+ `gate-check` - gate check
4
+
5
+ ## SYNOPSIS
6
+
7
+ `/gate-check` [`--help`|`-h`]
8
+
9
+ ## DESCRIPTION
10
+
11
+ Determines the earliest blocking user approval gate and derives which artefacts are allowed or forbidden, whether an exact approval is missing, and which next step is permissible.
12
+
13
+ ## EXAMPLES
14
+
15
+ Trigger the skill:
16
+
17
+ ```text
18
+ > /gate-check
19
+ ```
20
+
21
+ ## SEE ALSO
22
+
23
+ See the full SKILL.md for detailed workflow, output format, and decision logic.