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.
- package/README.md +13 -3
- package/generated/.opencode/contracts/control-scaffold.md +17 -2
- package/generated/.opencode/skills/agdf-delivery-path-search/SKILL.md +16 -4
- package/generated/plugins/agdf/.claude-plugin/plugin.json +1 -1
- package/generated/plugins/agdf/.codex-plugin/plugin.json +1 -1
- package/generated/plugins/agdf/meta/agdf-plugin.definition.json +6 -1
- package/generated/plugins/agdf/meta/contracts/control-scaffold.md +17 -2
- package/generated/plugins/agdf/meta/copilot-payload-baseline.json +7 -0
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +6 -1
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/delivery-path-search-command.js +51 -19
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/contracts.js +37 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/persistence.js +14 -2
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/search-engine.js +126 -36
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/state-adapter.js +40 -92
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/local-validator.js +29 -17
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/plugin-provenance.js +50 -1
- package/generated/plugins/agdf/runtime/create-agdf/package.json +1 -1
- package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
- package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +2 -1
- package/generated/plugins/agdf/skills/delivery-path-search/SKILL.md +16 -4
- package/generated/plugins/agdf/submission/openai/availability.md +1 -1
- package/generated/plugins/agdf/submission/openai/capability-matrix.json +1 -1
- package/generated/plugins/agdf/submission/openai/release-notes.md +7 -1
- package/generated/plugins/agdf/submission/openai/reviewer-cases.json +1 -1
- package/generated/plugins/copilot/agdf/.agdf-payload-inventory.json +771 -0
- package/generated/plugins/copilot/agdf/LICENSE +201 -0
- package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-delivery-path-search/SKILL.md +16 -4
- package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/control-scaffold.md +17 -2
- package/generated/plugins/copilot/agdf/meta/agdf-agent-router.md +129 -0
- package/generated/plugins/copilot/agdf/meta/agdf-constitution.md +329 -0
- package/generated/plugins/copilot/agdf/meta/agdf-plugin.definition.json +331 -0
- package/generated/plugins/copilot/agdf/meta/agdf-runtime-contract.md +16 -0
- package/generated/plugins/{agdf → copilot/agdf}/plugin.json +1 -1
- package/generated/plugins/copilot/agdf/runtime/agdf-local.js +18 -0
- package/generated/plugins/copilot/agdf/runtime/agdf-session-check.js +97 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/NOTICE +10 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/bin/agdf-validator.js +11 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-interaction-locales.json +512 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +331 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/command-registry.js +144 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/delivery-path-search-command.js +171 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/parse-args.js +173 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/runtime-context.js +83 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/validation-handlers.js +46 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/delivery-map.js +301 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/doctor.js +272 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/gate-check.js +455 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/gate-policy.js +305 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/parent-reconciliation.js +284 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/required-files.js +9 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/run-state.js +217 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/shared.js +345 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/verified-change.js +156 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/aggregate.js +18 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/gate-approval-validator.js +49 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/index.js +7 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/legacy-migration.js +95 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-parser.js +265 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-repository.js +68 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-resolver.js +45 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-writer.js +97 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/candidate-policy.js +99 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/contracts.js +274 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/claude.js +35 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/codex.js +44 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/opencode.js +234 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/prompt.js +13 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/protocol.js +13 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/claude.js +40 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/codex.js +38 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/protocol.js +12 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/persistence.js +51 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/scoring.js +21 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/search-engine.js +245 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/state-adapter.js +109 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/surfaces/capabilities.js +27 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/transports/read-only-guard.js +43 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/interaction-presentation.js +842 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/local-validator.js +239 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/plugin-provenance.js +255 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/validator-application.js +40 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime-check-consent/contract.js +73 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/package.json +6 -0
- package/generated/plugins/copilot/agdf/runtime/runtime-manifest.json +8 -0
- package/generated/submissions/openai/agdf/.codex-plugin/plugin.json +1 -1
- package/generated/submissions/openai/agdf/meta/agdf-plugin.definition.json +6 -1
- package/generated/submissions/openai/agdf/meta/contracts/control-scaffold.md +17 -2
- package/generated/submissions/openai/agdf/meta/copilot-payload-baseline.json +7 -0
- package/generated/submissions/openai/agdf/skills/delivery-path-search/SKILL.md +16 -4
- package/generated/submissions/openai/agdf/submission/openai/availability.md +1 -1
- package/generated/submissions/openai/agdf/submission/openai/capability-matrix.json +1 -1
- package/generated/submissions/openai/agdf/submission/openai/inventory.json +15 -11
- package/generated/submissions/openai/agdf/submission/openai/listing.json +1 -1
- package/generated/submissions/openai/agdf/submission/openai/readiness.json +2 -2
- package/generated/submissions/openai/agdf/submission/openai/readiness.md +2 -2
- package/generated/submissions/openai/agdf/submission/openai/release-notes.md +7 -1
- package/generated/submissions/openai/agdf/submission/openai/reviewer-cases.json +1 -1
- package/lib/cli/delivery-path-search-command.js +51 -19
- package/lib/delivery-path-search/contracts.js +37 -0
- package/lib/delivery-path-search/persistence.js +14 -2
- package/lib/delivery-path-search/search-engine.js +126 -36
- package/lib/delivery-path-search/state-adapter.js +40 -92
- package/lib/installers/local-marketplace.js +112 -30
- package/lib/installers/plugin-installers.js +45 -9
- package/lib/public-plugin/copilot-profile.js +126 -0
- package/lib/release/version-coherence.js +4 -1
- package/lib/runtime/local-validator.js +29 -17
- package/lib/runtime/plugin-provenance.js +50 -1
- package/package.json +3 -2
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-brownfield-analysis/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-clean-implementation-review/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-code-review/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-delivery-closeout/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-gate-check/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-interaction-locales.json +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-qa-gate/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-release-or/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-runtime-contract.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-task-plan-review/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/agdf-ux-intent-definition/SKILL.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/closeout.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/context-graph.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/gate-transition.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/interaction.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/modes.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/quality.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/copilot-skills/contracts/task-target-resolution.md +0 -0
- /package/generated/plugins/{agdf → copilot/agdf}/hooks/copilot-hooks.json +0 -0
package/README.md
CHANGED
|
@@ -147,8 +147,10 @@ it does not localize the CLI lifecycle card.
|
|
|
147
147
|
- `opencode-repo` writes durable AGDF control configuration and templates under `.agdf/control/`; it does not copy a second OpenCode runtime surface
|
|
148
148
|
- `config` writes or updates only `.agdf/control/config.json` for an already installed plugin or an existing repository
|
|
149
149
|
|
|
150
|
-
The `codex
|
|
151
|
-
`create-agdf` package.
|
|
150
|
+
The `codex` and `claude` commands install the complete shared plugin built into the released
|
|
151
|
+
`create-agdf` package. The `copilot` command installs a dedicated generated profile containing only
|
|
152
|
+
the Copilot manifest, prefixed skills, hook, required contracts and exact-version runtime. Every profile
|
|
153
|
+
is rendered from the same canonical sources. The installers atomically stage their profile under an AGDF-owned user-data marketplace, register
|
|
152
154
|
that stable local path through the host CLI and verify the exposed version. Source `plugin/` therefore
|
|
153
155
|
contains no generated runtime bytes and the source checkout exposes no installable root marketplace.
|
|
154
156
|
The staged plugin contains one installation-provenance marker and the shared exact-version runtime;
|
|
@@ -157,6 +159,10 @@ checkout, npm cache, PATH or registry. Rerunning either command performs the exp
|
|
|
157
159
|
migrates only the exact known legacy AGDF GitHub marketplace; foreign same-name registrations fail
|
|
158
160
|
closed and failed host operations restore the prior owned stage.
|
|
159
161
|
|
|
162
|
+
Copilot staging uses the independent path `<AGDF data directory>/marketplaces/agdf-copilot`. This
|
|
163
|
+
prevents Copilot updates and rollbacks from replacing the shared Codex and Claude payload while the
|
|
164
|
+
host-facing Marketplace identity remains `agdf` and the install identity remains `agdf@agdf`.
|
|
165
|
+
|
|
160
166
|
The Copilot installer does not create, rewrite or remove repository files. Existing `AGENTS.md`, `.github/` and `.agdf/control/` content remains untouched. Use `init` separately when a repository should own surface-neutral durable AGDF control state.
|
|
161
167
|
|
|
162
168
|
Use the `codex-repo` target when AGDF should be available only inside one repository instead of being installed as a personal/global Codex plugin.
|
|
@@ -280,7 +286,11 @@ Requirements and boundaries:
|
|
|
280
286
|
- OpenCode candidate generation is intentionally unavailable; Copilot has no executable native evaluator
|
|
281
287
|
- cost units are rubric values used for bounded comparison, not measured provider currency
|
|
282
288
|
|
|
283
|
-
The result
|
|
289
|
+
The result reports the selected run/revision/objective, the phase that actually ran and candidate and
|
|
290
|
+
evaluation provenance. `input_unavailable`, `no_legal_candidates`, `evaluator_unavailable` and
|
|
291
|
+
`evaluator_error` are non-recommendation outcomes. `recommendation` and
|
|
292
|
+
`no_safe_recommendation` require at least one valid evaluation; only those evaluated outcomes may be
|
|
293
|
+
persisted. A result applies only to its selected run objective. Run canonical `gate-check` afterwards.
|
|
284
294
|
|
|
285
295
|
`gate-check --json` and `delivery-map --json` also expose a `status_card` object. It is a compact projection of the current control state: current gate, allowed and forbidden actions, blocker, next skill, next permissible step and `quality_outlook`. `next_step` is process permission; `quality_outlook` is the next meaningful quality-improvement focus and does not unlock gates.
|
|
286
296
|
|
|
@@ -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
|
|
8
|
-
|
|
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
|
|
@@ -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
|
|
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
|
|
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
|
-
-
|
|
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
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agdf",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.3",
|
|
4
4
|
"description": "AI Governance & Delivery Framework (AGDF) is a governance framework for agentic work. Its first implementation provides a control layer for governed AI-assisted software delivery. It combines workflow skills, explicit gates, control templates and machine-readable repository checks to keep work aligned with approved scope and make evidence a prerequisite for consequential gate transitions. Supported workflows include brownfield analysis, task-plan review, QA decisions, durable run state and auditable delivery closeout. AGDF is an independent open-source project, not a security sandbox, compliance certification or autonomous release system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentic",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "agdf",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.3",
|
|
5
5
|
"displayName": "AI Governance & Delivery Framework",
|
|
6
6
|
"developerName": "Arndt Gold",
|
|
7
7
|
"description": "Control layer for governed AI-assisted delivery.",
|
|
@@ -311,6 +311,11 @@
|
|
|
311
311
|
"installable": true,
|
|
312
312
|
"machineValidation": "local_exact_version_digest"
|
|
313
313
|
},
|
|
314
|
+
"copilot-runtime-plugin": {
|
|
315
|
+
"runtime": "required",
|
|
316
|
+
"installable": true,
|
|
317
|
+
"machineValidation": "local_exact_version_digest_inventory"
|
|
318
|
+
},
|
|
314
319
|
"opencode-config-local": {
|
|
315
320
|
"runtime": "config_local_package",
|
|
316
321
|
"installable": true,
|
|
@@ -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
|
|
8
|
-
|
|
7
|
+
- It consumes the canonical selected-run `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 `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,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"profile_id": "copilot-runtime-plugin",
|
|
4
|
+
"max_files": 78,
|
|
5
|
+
"max_bytes": 550979,
|
|
6
|
+
"rationale": "Reviewed Copilot-only manifest, ten prefixed skills, required contracts, exact-version runtime, Delivery Path Search input-integrity provenance and evidence-plane separation. Any further increase requires review."
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "agdf",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.3",
|
|
5
5
|
"displayName": "AI Governance & Delivery Framework",
|
|
6
6
|
"developerName": "Arndt Gold",
|
|
7
7
|
"description": "Control layer for governed AI-assisted delivery.",
|
|
@@ -311,6 +311,11 @@
|
|
|
311
311
|
"installable": true,
|
|
312
312
|
"machineValidation": "local_exact_version_digest"
|
|
313
313
|
},
|
|
314
|
+
"copilot-runtime-plugin": {
|
|
315
|
+
"runtime": "required",
|
|
316
|
+
"installable": true,
|
|
317
|
+
"machineValidation": "local_exact_version_digest_inventory"
|
|
318
|
+
},
|
|
314
319
|
"opencode-config-local": {
|
|
315
320
|
"runtime": "config_local_package",
|
|
316
321
|
"installable": true,
|
|
@@ -12,21 +12,25 @@ import { enforcementForSurface } from '../delivery-path-search/surfaces/capabili
|
|
|
12
12
|
import { persistSearchResult } from '../delivery-path-search/persistence.js';
|
|
13
13
|
|
|
14
14
|
function unavailableOpenCodeResult({ options, preflight, input = null, error = null }) {
|
|
15
|
+
const surface = options.surface ?? "opencode";
|
|
15
16
|
const mutation = error?.code === "OPENCODE_EVALUATOR_MUTATION_DETECTED";
|
|
16
|
-
const attempted = Boolean(input);
|
|
17
|
+
const attempted = Boolean(input && error);
|
|
17
18
|
const nextAction = mutation
|
|
18
19
|
? "Investigate and revert the detected repository mutation before any evaluator fallback or retry."
|
|
19
20
|
: "Repair the reported OpenCode capability and retry, or use the existing instruction-only Delivery Path Search workflow.";
|
|
20
21
|
return {
|
|
21
22
|
contract_version: "1",
|
|
22
|
-
surface
|
|
23
|
+
surface,
|
|
23
24
|
scope_key: input?.scope_key ?? options.runId ?? null,
|
|
25
|
+
scope_revision: input?.scope_revision ?? "unversioned",
|
|
26
|
+
objective: input?.objective ?? "Delivery Path Search evaluator capability",
|
|
24
27
|
current_gate: input?.current_gate ?? null,
|
|
28
|
+
outcome_phase: "evaluation",
|
|
25
29
|
status: mutation ? "evaluator_error" : "evaluator_unavailable",
|
|
26
30
|
recommendation: null,
|
|
27
|
-
enforcement: enforcementForSurface(
|
|
31
|
+
enforcement: enforcementForSurface(surface),
|
|
28
32
|
evaluator: {
|
|
29
|
-
name:
|
|
33
|
+
name: surface,
|
|
30
34
|
preflight: preflight?.code ?? "not_run",
|
|
31
35
|
failure_code: error?.code ?? preflight?.code,
|
|
32
36
|
detail: error?.message ?? preflight?.detail,
|
|
@@ -38,6 +42,16 @@ function unavailableOpenCodeResult({ options, preflight, input = null, error = n
|
|
|
38
42
|
failure_code: error?.code ?? preflight?.code,
|
|
39
43
|
evidence: preflight?.evidence ?? [],
|
|
40
44
|
},
|
|
45
|
+
provenance: {
|
|
46
|
+
baseline_candidates: Math.min(input?.allowed_actions?.length ?? 0, input?.budgets?.max_candidates ?? 0),
|
|
47
|
+
generated_candidates: 0,
|
|
48
|
+
legal_candidates: attempted ? 1 : 0,
|
|
49
|
+
rejected_candidates: 0,
|
|
50
|
+
evaluation_attempts: attempted ? 1 : 0,
|
|
51
|
+
valid_evaluations: 0,
|
|
52
|
+
invalid_evaluations: attempted ? 1 : 0,
|
|
53
|
+
},
|
|
54
|
+
failure_code: error?.code ?? preflight?.code,
|
|
41
55
|
stopping_reason: mutation ? "opencode_mutation_detected" : attempted ? "opencode_evaluator_failed" : "opencode_preflight_failed",
|
|
42
56
|
next_action: nextAction,
|
|
43
57
|
next_gate_action: nextAction,
|
|
@@ -46,11 +60,26 @@ function unavailableOpenCodeResult({ options, preflight, input = null, error = n
|
|
|
46
60
|
|
|
47
61
|
export async function executeDeliveryPathSearch(options, io = console, dependencies = {}) {
|
|
48
62
|
const fixture = options.fixture ? JSON.parse(readFileSync(options.fixture, "utf8")) : null;
|
|
63
|
+
const fixtureGeneration = fixture?.generator_response;
|
|
64
|
+
const generationEnabled = Boolean(fixtureGeneration || options.generateCandidates);
|
|
65
|
+
const initialEnforcement = fixture?.input?.enforcement ?? enforcementForSurface(options.surface);
|
|
66
|
+
const initialInput = fixture?.input ?? (dependencies.searchInputFromControl ?? searchInputFromControl)(options.dir, {
|
|
67
|
+
scopeKey: options.runId,
|
|
68
|
+
enforcement: initialEnforcement,
|
|
69
|
+
generation: generationEnabled ? {
|
|
70
|
+
enabled: true,
|
|
71
|
+
maxProposals: options.maxGeneratedCandidates,
|
|
72
|
+
maxDurationMs: options.generationTimeoutMs,
|
|
73
|
+
maxCostUnits: options.generationCostUnits,
|
|
74
|
+
} : undefined,
|
|
75
|
+
});
|
|
49
76
|
const preflight = !fixture && options.surface === "opencode"
|
|
50
77
|
? (dependencies.preflightOpenCodeEvaluator ?? preflightOpenCodeEvaluator)({ cwd: options.dir })
|
|
51
78
|
: null;
|
|
52
79
|
if (preflight?.status === "failed") {
|
|
53
|
-
const result =
|
|
80
|
+
const result = initialInput.input_failure_code
|
|
81
|
+
? await runDeliveryPathSearch(initialInput, { name: "not-invoked", async evaluate() { throw new Error("input failure must stop before evaluation"); } })
|
|
82
|
+
: unavailableOpenCodeResult({ options, preflight, input: initialInput });
|
|
54
83
|
printDeliveryPathSearchResult(result, options, io);
|
|
55
84
|
return result;
|
|
56
85
|
}
|
|
@@ -58,18 +87,7 @@ export async function executeDeliveryPathSearch(options, io = console, dependenc
|
|
|
58
87
|
?? (preflight
|
|
59
88
|
? enforcementForSurface("opencode", preflight.evidence, { preflight })
|
|
60
89
|
: enforcementForSurface(options.surface));
|
|
61
|
-
const
|
|
62
|
-
const generationEnabled = Boolean(fixtureGeneration || options.generateCandidates);
|
|
63
|
-
const baseInput = fixture?.input ?? (dependencies.searchInputFromControl ?? searchInputFromControl)(options.dir, {
|
|
64
|
-
scopeKey: options.runId,
|
|
65
|
-
enforcement,
|
|
66
|
-
generation: generationEnabled ? {
|
|
67
|
-
enabled: true,
|
|
68
|
-
maxProposals: options.maxGeneratedCandidates,
|
|
69
|
-
maxDurationMs: options.generationTimeoutMs,
|
|
70
|
-
maxCostUnits: options.generationCostUnits,
|
|
71
|
-
} : undefined,
|
|
72
|
-
});
|
|
90
|
+
const baseInput = fixture ? initialInput : { ...initialInput, enforcement };
|
|
73
91
|
const input = generationEnabled && !baseInput.generation ? {
|
|
74
92
|
...baseInput,
|
|
75
93
|
generation: {
|
|
@@ -90,7 +108,13 @@ export async function executeDeliveryPathSearch(options, io = console, dependenc
|
|
|
90
108
|
? (dependencies.openCodeEvaluator ?? openCodeEvaluator)({ cwd: options.dir, model: options.model, preflight })
|
|
91
109
|
: null;
|
|
92
110
|
if (!evaluator) {
|
|
93
|
-
|
|
111
|
+
const detail = `${options.surface} has no executable evaluator in this release. Codex, Claude and preflight-qualified OpenCode are the executable adapters; --fixture is available for deterministic contract testing.`;
|
|
112
|
+
const result = {
|
|
113
|
+
...unavailableOpenCodeResult({ options, preflight: { code: "surface_evaluator_unavailable", detail, evidence: [] }, input }),
|
|
114
|
+
surface: options.surface,
|
|
115
|
+
};
|
|
116
|
+
printDeliveryPathSearchResult(result, options, io);
|
|
117
|
+
return result;
|
|
94
118
|
}
|
|
95
119
|
const generator = fixtureGeneration
|
|
96
120
|
? fixtureGenerator(fixtureGeneration)
|
|
@@ -125,15 +149,23 @@ function printDeliveryPathSearchResult(result, options, io) {
|
|
|
125
149
|
return;
|
|
126
150
|
}
|
|
127
151
|
io.log(`AGDF Delivery Path Search: ${result.status}`);
|
|
152
|
+
io.log(`Scope: ${result.scope_key ?? "unknown"} @ ${result.scope_revision ?? "unversioned"}`);
|
|
153
|
+
if (result.objective) io.log(`Objective: ${result.objective}`);
|
|
128
154
|
io.log(`Current gate: ${result.current_gate ?? "unknown"}`);
|
|
155
|
+
io.log(`Outcome phase: ${result.outcome_phase ?? "unknown"}`);
|
|
129
156
|
io.log(`Enforcement: ${result.enforcement.level}`);
|
|
130
157
|
io.log(`Recommendation: ${result.recommendation?.action ?? "none"}`);
|
|
131
158
|
if (result.budgets) io.log(`Evaluations: ${result.budgets.evaluations}`);
|
|
159
|
+
if (result.provenance) {
|
|
160
|
+
io.log(`Candidates: ${result.provenance.legal_candidates} legal, ${result.provenance.rejected_candidates} rejected`);
|
|
161
|
+
io.log(`Evaluation provenance: ${result.provenance.valid_evaluations}/${result.provenance.evaluation_attempts} valid, ${result.provenance.invalid_evaluations} invalid`);
|
|
162
|
+
}
|
|
132
163
|
if (result.generation) {
|
|
133
164
|
io.log(`Generation: ${result.generation.status} (${result.generation.accepted}/${result.generation.returned} accepted)`);
|
|
134
165
|
io.log(`Generation budget: ${result.generation.cost_units} cost units, ${result.generation.duration_ms} ms`);
|
|
135
166
|
if (result.generation.failure_code) io.log(`Generation failure: ${result.generation.failure_code}`);
|
|
136
167
|
}
|
|
137
168
|
io.log(`Stopping reason: ${result.stopping_reason}`);
|
|
138
|
-
io.log(result.
|
|
169
|
+
if (result.failure_code) io.log(`Failure: ${result.failure_code}`);
|
|
170
|
+
io.log(result.next_action ?? result.next_gate_action);
|
|
139
171
|
}
|
|
@@ -68,6 +68,10 @@ export function validateSearchInput(value) {
|
|
|
68
68
|
}
|
|
69
69
|
requireString(input.objective, "objective");
|
|
70
70
|
requireString(input.current_gate, "current_gate");
|
|
71
|
+
optionalBoundedString(input.scope_revision, "scope_revision", 200);
|
|
72
|
+
optionalBoundedString(input.input_failure_code, "input_failure_code", 200);
|
|
73
|
+
optionalBoundedString(input.input_failure_detail, "input_failure_detail", 1000);
|
|
74
|
+
optionalBoundedString(input.input_recovery_action, "input_recovery_action", 1000);
|
|
71
75
|
stringArray(input.allowed_actions, "allowed_actions");
|
|
72
76
|
stringArray(input.forbidden_actions, "forbidden_actions");
|
|
73
77
|
stringArray(input.evidence_refs ?? [], "evidence_refs");
|
|
@@ -81,6 +85,39 @@ export function validateSearchInput(value) {
|
|
|
81
85
|
return structuredClone(input);
|
|
82
86
|
}
|
|
83
87
|
|
|
88
|
+
const RESULT_PHASE_BY_STATUS = new Map([
|
|
89
|
+
["input_unavailable", "input"],
|
|
90
|
+
["no_legal_candidates", "candidate"],
|
|
91
|
+
["evaluator_unavailable", "evaluation"],
|
|
92
|
+
["evaluator_error", "evaluation"],
|
|
93
|
+
["recommendation", "search"],
|
|
94
|
+
["no_safe_recommendation", "search"],
|
|
95
|
+
]);
|
|
96
|
+
|
|
97
|
+
export function validateSearchResult(value) {
|
|
98
|
+
const result = requireObject(value, "search result");
|
|
99
|
+
if (result.contract_version !== CONTRACT_VERSION) throw new Error(`unsupported search result contract_version: ${result.contract_version}`);
|
|
100
|
+
const status = requireString(result.status, "result.status");
|
|
101
|
+
const expectedPhase = RESULT_PHASE_BY_STATUS.get(status);
|
|
102
|
+
if (!expectedPhase) throw new Error(`unsupported search result status: ${status}`);
|
|
103
|
+
if (result.outcome_phase !== expectedPhase) throw new Error(`${status} requires outcome_phase ${expectedPhase}`);
|
|
104
|
+
requireString(result.scope_key, "result.scope_key");
|
|
105
|
+
optionalBoundedString(result.scope_revision, "result.scope_revision", 200);
|
|
106
|
+
const provenance = requireObject(result.provenance, "result.provenance");
|
|
107
|
+
for (const key of ["baseline_candidates", "generated_candidates", "legal_candidates", "rejected_candidates", "evaluation_attempts", "valid_evaluations", "invalid_evaluations"]) {
|
|
108
|
+
if (!Number.isInteger(provenance[key]) || provenance[key] < 0) throw new Error(`result.provenance.${key} must be a non-negative integer`);
|
|
109
|
+
}
|
|
110
|
+
if (provenance.evaluation_attempts !== provenance.valid_evaluations + provenance.invalid_evaluations) throw new Error("result evaluation provenance counts are inconsistent");
|
|
111
|
+
const recommendationFacing = status === "recommendation" || status === "no_safe_recommendation";
|
|
112
|
+
if (recommendationFacing && provenance.valid_evaluations < 1) throw new Error(`${status} requires at least one valid evaluation`);
|
|
113
|
+
if (status === "recommendation" && !result.recommendation) throw new Error("recommendation status requires recommendation content");
|
|
114
|
+
if (status !== "recommendation" && result.recommendation != null) throw new Error(`${status} must not contain recommendation content`);
|
|
115
|
+
if (status === "no_legal_candidates" && (provenance.legal_candidates !== 0 || provenance.evaluation_attempts !== 0)) throw new Error("no_legal_candidates requires zero legal candidates and evaluation attempts");
|
|
116
|
+
if (status === "input_unavailable" && provenance.evaluation_attempts !== 0) throw new Error("input_unavailable requires zero evaluation attempts");
|
|
117
|
+
if ((status === "evaluator_unavailable" || status === "evaluator_error") && provenance.valid_evaluations !== 0) throw new Error(`${status} requires zero valid evaluations`);
|
|
118
|
+
return structuredClone(result);
|
|
119
|
+
}
|
|
120
|
+
|
|
84
121
|
export function validateCandidate(value) {
|
|
85
122
|
const candidate = requireObject(value, "candidate");
|
|
86
123
|
requireString(candidate.id, "candidate.id");
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
|
+
import { validateSearchResult } from "./contracts.js";
|
|
3
4
|
|
|
4
5
|
function safeResult(result) {
|
|
5
6
|
return JSON.parse(JSON.stringify(result, (key, value) => {
|
|
@@ -9,22 +10,33 @@ function safeResult(result) {
|
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export function persistSearchResult(targetDir, result) {
|
|
12
|
-
const
|
|
13
|
+
const validated = validateSearchResult(result);
|
|
14
|
+
if (!["recommendation", "no_safe_recommendation"].includes(validated.status)) {
|
|
15
|
+
throw new Error(`search result status ${validated.status} is not persistable`);
|
|
16
|
+
}
|
|
17
|
+
if (validated.provenance.valid_evaluations < 1) {
|
|
18
|
+
throw new Error("search result requires at least one valid evaluation before persistence");
|
|
19
|
+
}
|
|
20
|
+
const root = join(targetDir, ".agdf", "control", "artefacts", validated.scope_key);
|
|
13
21
|
const jsonPath = join(root, "DELIVERY_PATH_SEARCH.json");
|
|
14
22
|
const markdownPath = join(root, "DELIVERY_PATH_SEARCH.md");
|
|
15
23
|
mkdirSync(dirname(jsonPath), { recursive: true });
|
|
16
|
-
const safe = safeResult(
|
|
24
|
+
const safe = safeResult(validated);
|
|
17
25
|
writeFileSync(jsonPath, `${JSON.stringify(safe, null, 2)}\n`, "utf8");
|
|
18
26
|
const recommendation = safe.recommendation?.action ?? "No safe recommendation";
|
|
19
27
|
writeFileSync(markdownPath, [
|
|
20
28
|
"# Delivery Path Search Decision",
|
|
21
29
|
"",
|
|
22
30
|
`- status: ${safe.status}`,
|
|
31
|
+
`- outcome_phase: ${safe.outcome_phase}`,
|
|
32
|
+
`- scope_revision: ${safe.scope_revision}`,
|
|
23
33
|
`- current_gate: ${safe.current_gate}`,
|
|
24
34
|
`- enforcement: ${safe.enforcement.level}`,
|
|
25
35
|
`- recommendation: ${recommendation}`,
|
|
26
36
|
`- stopping_reason: ${safe.stopping_reason}`,
|
|
27
37
|
`- evaluations: ${safe.budgets.evaluations}`,
|
|
38
|
+
`- evaluation_attempts: ${safe.provenance.evaluation_attempts}`,
|
|
39
|
+
`- invalid_evaluations: ${safe.provenance.invalid_evaluations}`,
|
|
28
40
|
`- generation_status: ${safe.generation?.status ?? "legacy_deterministic"}`,
|
|
29
41
|
`- generated_candidates: ${safe.generation ? `${safe.generation.accepted}/${safe.generation.returned}` : "0/0"}`,
|
|
30
42
|
`- generation_cost_units: ${safe.generation?.cost_units ?? 0}`,
|