create-agdf 0.13.7 → 0.14.1

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 (79) hide show
  1. package/README.md +31 -7
  2. package/generated/plugins/agdf/.claude-plugin/plugin.json +1 -1
  3. package/generated/plugins/agdf/.codex-plugin/plugin.json +2 -4
  4. package/generated/plugins/agdf/hooks/copilot-hooks.json +15 -0
  5. package/generated/plugins/agdf/hooks/hooks.json +3 -2
  6. package/generated/plugins/agdf/meta/agdf-plugin.definition.json +44 -2
  7. package/generated/plugins/agdf/plugin.json +22 -0
  8. package/generated/plugins/agdf/runtime/agdf-local.js +1 -1
  9. package/generated/plugins/agdf/runtime/agdf-session-check.js +97 -0
  10. package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +44 -2
  11. package/generated/plugins/agdf/runtime/create-agdf/lib/cli/command-registry.js +10 -2
  12. package/generated/plugins/agdf/runtime/create-agdf/lib/cli/parse-args.js +17 -0
  13. package/generated/plugins/agdf/runtime/create-agdf/lib/runtime-check-consent/contract.js +73 -0
  14. package/generated/plugins/agdf/runtime/create-agdf/package.json +1 -1
  15. package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
  16. package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +50 -5
  17. package/generated/plugins/agdf/submission/openai/availability.md +1 -1
  18. package/generated/plugins/agdf/submission/openai/capability-matrix.json +8 -1
  19. package/generated/plugins/agdf/submission/openai/release-notes.md +12 -1
  20. package/generated/plugins/agdf/submission/openai/reviewer-cases.json +23 -1
  21. package/generated/submissions/openai/agdf/.codex-plugin/plugin.json +1 -2
  22. package/generated/submissions/openai/agdf/meta/agdf-plugin.definition.json +44 -2
  23. package/generated/submissions/openai/agdf/submission/openai/availability.md +1 -1
  24. package/generated/submissions/openai/agdf/submission/openai/capability-matrix.json +8 -1
  25. package/generated/submissions/openai/agdf/submission/openai/inventory.json +9 -9
  26. package/generated/submissions/openai/agdf/submission/openai/listing.json +1 -1
  27. package/generated/submissions/openai/agdf/submission/openai/readiness.json +2 -2
  28. package/generated/submissions/openai/agdf/submission/openai/readiness.md +2 -2
  29. package/generated/submissions/openai/agdf/submission/openai/release-notes.md +12 -1
  30. package/generated/submissions/openai/agdf/submission/openai/reviewer-cases.json +23 -1
  31. package/lib/cli/application.js +291 -20
  32. package/lib/cli/command-registry.js +10 -2
  33. package/lib/cli/parse-args.js +17 -0
  34. package/lib/installers/copilot-precedence.js +34 -0
  35. package/lib/installers/copilot-settings.js +84 -0
  36. package/lib/installers/local-marketplace.js +2 -0
  37. package/lib/installers/opencode.js +21 -5
  38. package/lib/installers/plugin-installers.js +155 -4
  39. package/lib/lifecycle/operations.js +3 -0
  40. package/lib/lifecycle/presentation.js +43 -2
  41. package/lib/lifecycle/result.js +10 -0
  42. package/lib/lifecycle/status.js +7 -3
  43. package/lib/public-plugin/manifest.js +34 -2
  44. package/lib/public-plugin/validator.js +1 -1
  45. package/lib/release/version-coherence.js +1 -0
  46. package/lib/runtime-check-consent/adapters.js +42 -0
  47. package/lib/runtime-check-consent/claude-settings.js +71 -0
  48. package/lib/runtime-check-consent/contract.js +73 -0
  49. package/lib/runtime-check-consent/coordinator.js +38 -0
  50. package/lib/runtime-check-consent/service.js +181 -0
  51. package/lib/runtime-check-consent/state.js +90 -0
  52. package/lib/scaffold/plan.js +3 -89
  53. package/lib/scaffold/presentation.js +3 -22
  54. package/opencode-plugin.js +30 -15
  55. package/package.json +6 -3
  56. package/generated/.github/copilot-instructions.md +0 -16
  57. package/generated/.github/instructions/agdf-governance.instructions.md +0 -14
  58. package/generated/.github/skills/README.md +0 -20
  59. package/generated/AGENTS.md +0 -113
  60. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-brownfield-analysis/SKILL.md +0 -0
  61. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-clean-implementation-review/SKILL.md +0 -0
  62. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-code-review/SKILL.md +0 -0
  63. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-delivery-closeout/SKILL.md +0 -0
  64. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-delivery-path-search/SKILL.md +0 -0
  65. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-gate-check/SKILL.md +0 -0
  66. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-interaction-locales.json +0 -0
  67. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-qa-gate/SKILL.md +0 -0
  68. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-release-or/SKILL.md +0 -0
  69. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-runtime-contract.md +0 -0
  70. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-task-plan-review/SKILL.md +0 -0
  71. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/agdf-ux-intent-definition/SKILL.md +0 -0
  72. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/contracts/closeout.md +0 -0
  73. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/contracts/context-graph.md +0 -0
  74. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/contracts/control-scaffold.md +0 -0
  75. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/contracts/gate-transition.md +0 -0
  76. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/contracts/interaction.md +0 -0
  77. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/contracts/modes.md +0 -0
  78. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/contracts/quality.md +0 -0
  79. /package/generated/{.github/skills → plugins/agdf/copilot-skills}/contracts/task-target-resolution.md +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-agdf",
3
- "version": "0.13.7",
4
- "description": "Bootstrap AGDF repository-local plugin files, Copilot/OpenCode instructions, skills, control files and machine-readable checks.",
3
+ "version": "0.14.1",
4
+ "description": "Install AGDF plugins, bootstrap supported repository surfaces and validate durable governance state.",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "bin",
@@ -24,6 +24,7 @@
24
24
  "build:public-plugin": "node ./scripts/build-public-plugin.js",
25
25
  "install:claude": "node ./scripts/install-local-plugin.js claude",
26
26
  "install:codex": "node ./scripts/install-local-plugin.js codex",
27
+ "install:copilot": "node ./scripts/install-local-plugin.js copilot",
27
28
  "install:opencode": "node ./scripts/install-local-plugin.js opencode",
28
29
  "test:release-version-coherence": "node ./scripts/release-version-coherence-test.js",
29
30
  "test:public-plugin": "node ./scripts/public-plugin-test.js",
@@ -32,6 +33,7 @@
32
33
  "test:delivery-path-search-unit": "node ./scripts/delivery-path-search-unit-test.js",
33
34
  "test:delivery-path-search-generator": "node ./scripts/delivery-path-search-generator-test.js",
34
35
  "test:opencode-hardening": "node ./scripts/opencode-hardening-test.js",
36
+ "test:runtime-check-consent": "node ./scripts/runtime-check-consent-test.js",
35
37
  "test:cli-modularization": "node ./scripts/cli-modularization-test.js",
36
38
  "test:local-validator": "node ./scripts/local-validator-test.js",
37
39
  "test:local-marketplace": "node ./scripts/local-marketplace-test.js",
@@ -39,6 +41,7 @@
39
41
  "test:package-contents": "node ./scripts/package-contents-test.js",
40
42
  "test:package-build": "node ./scripts/package-build-test.js",
41
43
  "test:lifecycle": "node ./scripts/lifecycle-test.js",
44
+ "test:copilot-repository-retention": "node ./scripts/copilot-repository-retention-test.js",
42
45
  "test:control-state": "node ./scripts/control-state-test.js",
43
46
  "test:parent-reconciliation": "node ./scripts/parent-reconciliation-test.js",
44
47
  "test:interaction-presentation": "node ./scripts/interaction-presentation-test.js",
@@ -54,7 +57,7 @@
54
57
  "test:proportionality": "node ./scripts/proportionality-benchmark-test.js",
55
58
  "test:release-bootstrap": "node ./scripts/release-bootstrap-smoke-test.js",
56
59
  "test:routing": "npm run sync-package-assets && node ./scripts/test-routing.js",
57
- "smoke-test": "npm run release:prepare && npm run test:cli-modularization && npm run test:local-validator && npm run test:local-marketplace && npm run test:local-development-install && npm run test:package-build && npm run test:package-contents && npm run test:lifecycle && npm run test:control-state && npm run test:parent-reconciliation && npm run test:interaction-presentation && npm run test:verified-change && npm run test:runtime-integrity-layout && npm run test:runtime-integrity-negative && npm run test:agent-skills-conformance && npm run test:skill-evals && npm run eval:skills && npm run test:proportionality && npm run test:delivery-path-search && npm run test:delivery-path-search-unit && npm run test:delivery-path-search-generator && npm run test:opencode-hardening && node ./scripts/smoke-test.js && node ./scripts/test-routing.js",
60
+ "smoke-test": "npm run release:prepare && npm run test:cli-modularization && npm run test:local-validator && npm run test:local-marketplace && npm run test:local-development-install && npm run test:package-build && npm run test:package-contents && npm run test:lifecycle && npm run test:copilot-repository-retention && npm run test:control-state && npm run test:parent-reconciliation && npm run test:interaction-presentation && npm run test:verified-change && npm run test:runtime-integrity-layout && npm run test:runtime-integrity-negative && npm run test:agent-skills-conformance && npm run test:skill-evals && npm run eval:skills && npm run test:proportionality && npm run test:delivery-path-search && npm run test:delivery-path-search-unit && npm run test:delivery-path-search-generator && npm run test:opencode-hardening && node ./scripts/smoke-test.js && node ./scripts/test-routing.js",
58
61
  "prepack": "npm run release:prepare"
59
62
  },
60
63
  "keywords": [
@@ -1,16 +0,0 @@
1
- # AGDF Copilot instructions
2
-
3
- AGDF is active in this repository.
4
-
5
- - Treat `AGENTS.md` as the primary repository instruction source.
6
- - Use `.github/skills/` for AGDF task workflows instead of inventing parallel process rules.
7
- - Use `.agdf/control/` for durable run state, backlog pointers, source-of-truth ownership, Context Graph knowledge and quality contracts.
8
- - AGDF is agent-native first and CLI-verifiable by design.
9
- - Apply AGDF natively from `AGENTS.md`, repository skills and live `.agdf/control/` state before reaching for helper commands.
10
- - Before non-trivial implementation or formal delivery work, determine whether the request is a Quick Task or Structured Delivery.
11
- - If approval, evidence, ownership or the next allowed action is unclear, run the AGDF gate-check workflow before creating later artefacts or code.
12
- - Use `doctor --json`, `gate-check --json` or `delivery-map --json` as deterministic validators for CI, PR evidence, regression checks and audit trails, not as the primary workflow.
13
- - Do not infer gate approval from generic consent such as "ok", "go ahead", "do it", "continue", "leg los" or "approved".
14
- - Do not treat chat history as the source of truth for gate state, approvals, evidence or delivery status.
15
- - Do not paste full control files, templates or artefact bodies into chat unless the user explicitly asks for the full content; summarize and link paths instead.
16
- - For deterministic ready-gate rendering, prefer an installed `agdf gate-check --approval-envelope`; use `agdf gate-check --json` for native-adapter input, automation or audit evidence. Reserve `npx ...@latest` for bootstrap, installation, refresh or a missing local executable.
@@ -1,14 +0,0 @@
1
- ---
2
- applyTo: "AGENTS.md,AGENTS.agdf.md,.agdf/**,.github/skills/**,.github/copilot-instructions.md,.github/instructions/**"
3
- ---
4
-
5
- # AGDF governance artefacts
6
-
7
- These files are control artefacts, not general documentation.
8
-
9
- - Keep AGDF rules sourced from `AGENTS.md`, `.github/skills/` and `.github/skills/agdf-runtime-contract.md`.
10
- - Do not duplicate the full gate model, Quality Contract table or Context Graph relationship language in new files.
11
- - Keep generated AGDF files small, reviewable and linked to the owning source of truth.
12
- - Preserve the rule that missing approval, missing evidence or unclear ownership blocks later delivery steps.
13
- - Preserve the rule that gates cannot be skipped by generic consent, urgency or a request to start.
14
- - If changing AGDF bootstrap behaviour, update the generated files, smoke test and affected setup documentation together.
@@ -1,20 +0,0 @@
1
- # AGDF repository skills
2
-
3
- These repository skills were generated from the AGDF source repository and are intended to be checked into this repository.
4
-
5
- ## Skills
6
-
7
- - `agdf-brownfield-analysis`
8
- - `agdf-clean-implementation-review`
9
- - `agdf-code-review`
10
- - `agdf-delivery-closeout`
11
- - `agdf-delivery-path-search`
12
- - `agdf-gate-check`
13
- - `agdf-qa-gate`
14
- - `agdf-release-or`
15
- - `agdf-task-plan-review`
16
- - `agdf-ux-intent-definition`
17
-
18
- ## Runtime contract
19
-
20
- Shared output and gate rules for this checkout live in `agdf-runtime-contract.md`.
@@ -1,113 +0,0 @@
1
- # AGENTS.md
2
-
3
- ## Role
4
- You are an autonomous agent operating in an AGDF-governed delivery system.
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
- GitHub Copilot repository skills do not have a plugin namespace.
11
-
12
- Therefore generated Copilot skill names use the AGDF prefix:
13
-
14
- - `agdf-delivery-path-search`
15
- - `agdf-brownfield-analysis`
16
- - `agdf-ux-intent-definition`
17
- - `agdf-clean-implementation-review`
18
- - `agdf-code-review`
19
- - `agdf-delivery-closeout`
20
- - `agdf-gate-check`
21
- - `agdf-qa-gate`
22
- - `agdf-release-or`
23
- - `agdf-task-plan-review`
24
-
25
- Do not remove that prefix in Copilot-facing repository skills.
26
- Codex and Claude Code plugin surfaces use the same canonical router with unprefixed skill names because their plugin namespace already carries `agdf`.
27
- ## Mode Selection
28
- Default entry rule: a new user intent to build, add, change, extend, refactor or otherwise deliver something starts with `agdf-gate-check` unless it is clearly only a question, explanation, local inspection, or explicitly scoped review.
29
-
30
- 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.
31
-
32
- Use Structured Delivery Mode for new capabilities, architecture, policy, persistence, release-critical work, formal artefacts or explicit approvals.
33
-
34
- Any new product semantics, functional change or user-visible behaviour change requires a durable UR first.
35
- 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.
36
- Treat approval text and durable artefact presence as separate checks for UR, PRD, SD, TP and QA report decisions.
37
- Do not infer approval from "ok", "go ahead", "do it", "approved", "continue", "leg los" or similar wording.
38
- Those phrases may express intent to proceed, but they do not unlock a gate unless the exact gate formula is present.
39
- Do not infer active scope from branch names, uncommitted workspace deltas, chat history or generated summaries when durable artefacts point elsewhere.
40
- If multiple active scopes are plausible, list the evidenced lines and route to `agdf-gate-check` or workstate clarification instead of choosing silently.
41
- After `Approval: UR`, run lightweight Brownfield Review before PRD when Brownfield, ownership, runtime, policy, persistence, architecture, UI or UX impact is possible.
42
- Brownfield Review must produce a Mode/Slice Decision: `quick_task`, `verified_change`, `structured_slice`, `structured_delivery` or `block`.
43
- That same review records the shared UI/UX impact classification. Run `agdf-ux-intent-definition` before
44
- PRD readiness for medium/high impact and for low impact with ambiguous mandatory PRD semantics. It is
45
- an internal analytical step, not a gate or product authority; a required blocked result keeps PRD
46
- readiness closed.
47
- 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.
48
- 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.
49
-
50
- Quick Task Mode must still use the Runtime Contract mini-output: `result`, `evidence`, `risk`, `next_step`.
51
- 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.
52
- Structured Delivery Mode must respect gates, reviews and closeout discipline.
53
-
54
- ## Skill Routing
55
- | Skill | Use For | Boundary |
56
- |---|---|---|
57
- | `agdf-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 |
58
- | `agdf-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 |
59
- | `agdf-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 |
60
- | `agdf-clean-implementation-review` | evidence dimension: inspect whether the solution is structurally clean | supports Quality Readiness; not a TP or QA substitute |
61
- | `agdf-code-review` | evidence dimension: review the actual diff for defects, regression and security findings | supports Quality Readiness; does not replace QA |
62
- | `agdf-delivery-closeout` | commit/PR-near handoff after QA/OR/UAT | never performs VCS actions automatically |
63
- | `agdf-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 |
64
- | `agdf-qa-gate` | sole final Quality Readiness decision | only instance for `pass | revise | block` |
65
- | `agdf-release-or` | auditable closeout for every relevant run | not a QA substitute |
66
- | `agdf-task-plan-review` | evidence dimension: verify whether the approved Task Plan was fulfilled | supports Quality Readiness; no final QA decision |
67
-
68
- Select exactly one primary skill first.
69
- Add more only when they cover a distinct concrete risk dimension.
70
- Do not choose `agdf-brownfield-analysis` as the first primary skill for a fresh "I want to build/change X" prompt unless `agdf-gate-check` or existing live AGDF control state already makes implementation preparation the next allowed action.
71
- 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.
72
-
73
- ## Runtime Contract
74
- For repeated output, gate, Quality Contract and Context Graph rules, use:
75
-
76
- - `contracts/task-target-resolution.md` for primary target authority before repository activation
77
- - `contracts/gate-transition.md` for gate terms, Brownfield routing and transition rules
78
- - `contracts/interaction.md` for status cards, approval orientation and native interaction
79
- - `contracts/modes.md` for delivery-mode boundaries
80
- - `contracts/quality.md` for quality and output discipline
81
- - `contracts/context-graph.md` for persistence and reconciliation
82
- - `contracts/control-scaffold.md` for run state, CLI verification and Delivery Map
83
- - `contracts/closeout.md` for relevant-run and closeout boundaries
84
-
85
- `agdf-runtime-contract.md` remains the compatibility manifest for these modules.
86
-
87
- Skills may include short reminders, but they must not carry a second complete rule or code table.
88
-
89
- ## Durable Control State
90
- When the target repository uses the AGDF control scaffold, keep live control files under `.agdf/control/`.
91
- Use templates as starting points only.
92
-
93
- Do not let chat history become the source of truth for gate state, approvals, evidence, backlog status or durable Brownfield knowledge.
94
-
95
- 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.
96
- 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.
97
- 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.
98
- At run closeout, route new durable knowledge explicitly as `context_graph`, `sot_registry`, `scope_artifact`, `open_questions` or `none`.
99
-
100
- ## Closeout
101
- For Quick Task Mode, close with the Runtime Contract mini-output only:
102
-
103
- - `result`
104
- - `evidence`
105
- - `risk`
106
- - `next_step`
107
-
108
- For relevant runs that change durable state, code, artefacts or gate status:
109
-
110
- - run relevant checks or state the test gap
111
- - never commit, push or open a PR automatically
112
- - include exactly one `Next step:`
113
- - include exactly one `Quality outlook:`