@rbbtsn0w/adg 0.11.0 → 0.11.1-dev.pr200.c6ce45e
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 +131 -73
- package/dist/src/agents/antigravity.js +218 -45
- package/dist/src/agents/base.js +1 -1
- package/dist/src/agents/claude.js +98 -38
- package/dist/src/agents/codex.js +32 -42
- package/dist/src/cli/core-plugin-handlers.js +3 -3
- package/dist/src/cli/handlers.js +171 -39
- package/dist/src/cli/index.js +23 -14
- package/dist/src/cli/review-update.js +80 -0
- package/dist/src/commands/install/default-dsl.js +1 -1
- package/dist/src/commands/install/discovery.js +3 -1
- package/dist/src/commands/install/install-one.js +41 -31
- package/dist/src/commands/install.js +59 -24
- package/dist/src/commands/marketplace.js +171 -115
- package/dist/src/commands/migrate.js +2 -2
- package/dist/src/commands/projection.js +3 -1
- package/dist/src/commands/remove.js +10 -0
- package/dist/src/commands/review-executables.js +106 -0
- package/dist/src/commands/select-agents.js +2 -2
- package/dist/src/commands/select-components.js +2 -2
- package/dist/src/commands/select-plugins.js +15 -2
- package/dist/src/commands/select-scope.js +3 -4
- package/dist/src/commands/source-upgrade.js +552 -0
- package/dist/src/commands/state.js +3 -1
- package/dist/src/commands/status.js +1 -0
- package/dist/src/commands/update.js +3 -1
- package/dist/src/lock.js +13 -5
- package/dist/src/migration-transaction.js +1011 -0
- package/dist/src/native-retry.js +329 -0
- package/dist/src/process-identity.js +88 -0
- package/dist/src/render/plugins.js +149 -27
- package/dist/src/render/ui.js +4 -4
- package/dist/src/source-history.js +194 -0
- package/dist/src/source-intent.js +7 -0
- package/dist/src/store-mutex.js +179 -0
- package/dist/src/types.js +1 -1
- package/dist/src/update-executables.js +193 -0
- package/dist/src/upgrade-plan.js +378 -0
- package/docs/agents/antigravity.md +5 -0
- package/docs/agents-spec.md +10 -0
- package/docs/branching-and-release.md +369 -55
- package/docs/cli-json.md +9 -0
- package/docs/marketing/README.md +211 -0
- package/docs/marketing/assets.json +228 -0
- package/docs/marketing/capture.json +130 -0
- package/docs/marketing/live-readiness.json +353 -0
- package/docs/marketing/posts.en.md +94 -0
- package/docs/marketing/posts.zh-CN.md +67 -0
- package/docs/marketing/production.md +210 -0
- package/docs/marketing/source/timeline.json +29 -0
- package/docs/marketing/source/workflow-01.svg +16 -0
- package/docs/marketing/source/workflow-02.svg +14 -0
- package/docs/marketing/source/workflow-03.svg +19 -0
- package/docs/marketing/source/workflow-poster.svg +32 -0
- package/docs/marketing/transcript.md +48 -0
- package/docs/plugin-update-semantics.md +53 -10
- package/docs/plugin-upgrade-migrations.md +349 -0
- package/package.json +14 -10
- package/schemas/plugin-lock.schema.json +78 -1
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
# Plugin update and recovery plan
|
|
2
|
+
|
|
3
|
+
## Product contract
|
|
4
|
+
|
|
5
|
+
`adg plugins update -g` updates the selected installation, preserves component
|
|
6
|
+
and runtime choices, and resumes unfinished work. Publishers distribute their
|
|
7
|
+
ordinary manifests, skills and marketplace. ADG records installation history
|
|
8
|
+
and prepares recovery inside its own store.
|
|
9
|
+
|
|
10
|
+
The unpublished `adg.migrations/v1` publisher protocol is withdrawn. Remove its
|
|
11
|
+
schema, reader, producer declaration, producer validator and public authoring
|
|
12
|
+
instructions. Consume existing marketplace `renames` entries for plugin
|
|
13
|
+
identity changes and explicit removals. Follow chains to a current entry or
|
|
14
|
+
`null`, rejecting cycles and conflicting ownership before publishing changes.
|
|
15
|
+
|
|
16
|
+
Compare verified installation history with the current catalog in the same
|
|
17
|
+
source and ref. Preserve current-owner matches. A unique same-name skill
|
|
18
|
+
identifies a relocation. Ambiguous matches require a decision. Preserve native
|
|
19
|
+
component authorization independently of relocation.
|
|
20
|
+
|
|
21
|
+
Record complete source inventories and effective user selections before an
|
|
22
|
+
installation changes. Recover a legacy partial update from the immutable
|
|
23
|
+
revision recorded by its installed predecessor. If that revision is absent,
|
|
24
|
+
verify the predecessor against its release tag before using that catalog.
|
|
25
|
+
Recover only previously installed identities. Missing historical choices on a
|
|
26
|
+
surviving newer installation require one restoration decision. A fresh current
|
|
27
|
+
installation receives no legacy prompt.
|
|
28
|
+
|
|
29
|
+
An absent entry without a verified replacement remains usable and is reported
|
|
30
|
+
as no longer available upstream. Explicit removal or an accepted replacement
|
|
31
|
+
retires it. Whole-source subscription and selected-plugin updates retain their
|
|
32
|
+
own intent. `update --all` includes current additions once, preserving component
|
|
33
|
+
selections and explicit exclusions.
|
|
34
|
+
|
|
35
|
+
## Follow-up: partial selections and uncertain history
|
|
36
|
+
|
|
37
|
+
Status: implemented on 2026-11-11. Type checking, build and all 830 ADG tests
|
|
38
|
+
pass. Final isolated native acceptance of this follow-up passed all three
|
|
39
|
+
scenarios below. The earlier baseline acceptance applies to its recorded
|
|
40
|
+
build only.
|
|
41
|
+
|
|
42
|
+
The unit of preservation is the user's selected skill set within its source,
|
|
43
|
+
ref and scope. A plugin split or merge changes ownership without expanding that
|
|
44
|
+
set. Preserve each runtime's enabled state and existing destination selections.
|
|
45
|
+
Record requested selections separately from effective mandatory dependencies;
|
|
46
|
+
dependency installation must not become evidence of a broader user choice.
|
|
47
|
+
Projection rebuilding, enabling and local refresh also retain that distinction;
|
|
48
|
+
internal replay does not record a new user choice. Recompute dependency closure
|
|
49
|
+
from the new manifest rather than moving obsolete dependencies as direct
|
|
50
|
+
skill requests.
|
|
51
|
+
|
|
52
|
+
### Evidence and defaults
|
|
53
|
+
|
|
54
|
+
| Available evidence | Permitted inference and default |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| Verified historical requested selection | Transfer only selected skills and required dependencies to verified current owners. |
|
|
57
|
+
| Verified historical installed payload | Preserve proven effective contents; do not infer direct user choices or a subscription to other skills. |
|
|
58
|
+
| Complete source cache, old release or marketplace inventory only | Identify available historical candidates; require an explicit choice before restoring any unproven selection. |
|
|
59
|
+
| Missing or conflicting evidence | Preserve current working contents and unresolved old owners, defer uncertain restoration, and report the limitation. |
|
|
60
|
+
|
|
61
|
+
An old release establishes what the publisher shipped. It does not establish
|
|
62
|
+
which skills this user selected. Verify cached source and installed payload as
|
|
63
|
+
different evidence types even when both originated from the same release.
|
|
64
|
+
|
|
65
|
+
For uncertain restoration, make "Keep current selection (Recommended)" the
|
|
66
|
+
default. Offer individual selection and explicit restoration of all candidates
|
|
67
|
+
as alternatives. Describe candidates as having unknown prior selection;
|
|
68
|
+
do not label them as confirmed previously installed skills. Individual
|
|
69
|
+
selection starts with no unproven candidates selected. Existing verified
|
|
70
|
+
contents remain selected independently of that candidate list.
|
|
71
|
+
|
|
72
|
+
Whole-source subscription controls plugin membership. Check per-plugin skill
|
|
73
|
+
selections and the provenance of historical policy before any automatic
|
|
74
|
+
restoration; `mode: all` must not override a recorded partial skill selection
|
|
75
|
+
or authorize an unknown historical selection. A one-time `update --all`
|
|
76
|
+
continues to preserve saved skill choices and executable permissions.
|
|
77
|
+
An explicitly recorded full-component choice remains valid within its declared
|
|
78
|
+
scope. Infer no full-component policy from missing legacy data.
|
|
79
|
+
|
|
80
|
+
### Deferred recovery and execution
|
|
81
|
+
|
|
82
|
+
Store deferred recovery separately from explicit exclusions in ADG's own
|
|
83
|
+
history. Deferral grants no installation or removal permission. Bind it to the
|
|
84
|
+
source, ref, scope and reviewed evidence, suppress repeated prompts while the
|
|
85
|
+
case is unchanged, and allow reconsideration through the existing management
|
|
86
|
+
flow. A relevant ownership or authorization change requires fresh review.
|
|
87
|
+
The existing `update --repair` path reopens deferred choices without requiring
|
|
88
|
+
a publisher declaration or a separate recovery command.
|
|
89
|
+
|
|
90
|
+
Non-interactive runs apply independently verifiable updates and defer uncertain
|
|
91
|
+
restoration without a prompt. An interactive default or cancellation must not
|
|
92
|
+
be converted into permission to restore, remove or activate anything. Preserve
|
|
93
|
+
completed work and retryable failures according to existing command semantics.
|
|
94
|
+
|
|
95
|
+
Reports distinguish deferred candidates, explicitly excluded skills, restored
|
|
96
|
+
skills and actual failures. Successful updates may report the installed
|
|
97
|
+
selection up to date with a separate deferred-recovery notice; they must not
|
|
98
|
+
claim that historical recovery is complete. JSON exposes the same distinction
|
|
99
|
+
without forcing automation to interpret display text.
|
|
100
|
+
|
|
101
|
+
Use the existing lock, history and transaction mechanisms, extending client
|
|
102
|
+
state only where required to preserve evidence and deferral semantics. Keep
|
|
103
|
+
requested and effective choices durable before native side effects. Emit only
|
|
104
|
+
aggregate evidence, selection and deferral counts through existing telemetry.
|
|
105
|
+
Publishers continue to use their ordinary manifests and rename metadata.
|
|
106
|
+
|
|
107
|
+
### Implementation order and additional acceptance
|
|
108
|
+
|
|
109
|
+
1. Add failing regressions for conservative defaults, evidence classification,
|
|
110
|
+
partial selections under whole-source subscription, and deferral semantics.
|
|
111
|
+
2. Implement planning and durable client-state changes, then update review
|
|
112
|
+
defaults and text/JSON reporting. Test the ordinary update API and CLI.
|
|
113
|
+
3. Repeat package checks and isolated native acceptance against the resulting
|
|
114
|
+
build, retaining the existing authorization and interruption regressions.
|
|
115
|
+
|
|
116
|
+
| Scenario | Required outcome |
|
|
117
|
+
| --- | --- |
|
|
118
|
+
| Old plugin ships `a,b,c,d`; user selected `a,c`; current owners ship `a,b,e` and `c,d,f` | Update exposes only `a,c` plus required dependencies. No `b,d,e,f` are activated. All three hosts agree; repetition is unchanged. |
|
|
119
|
+
| Partial selection under `mode: all`, ordinary update and one-time `--all` | Recorded skill choices survive each route; new executable content still requires authorization. |
|
|
120
|
+
| Verified explicit full-component selection | Preserve the declared full selection without an unnecessary partial-selection prompt; keep executable authorization independent. |
|
|
121
|
+
| Full source cache survives but requested selection is absent | Cache inventory is not treated as the selected set. Verified installed contents are preserved; other candidates remain unselected. |
|
|
122
|
+
| Cache is malformed, installed content is valid | Independently verified installed contents still establish the effective selection. |
|
|
123
|
+
| Cache-only unknown selection is renamed | Keep the old payload by default; a publisher rename alone does not authorize replacing it with an empty or broader installation. |
|
|
124
|
+
| Both cache and installed evidence fail verification | Leave the old installation unchanged and report that its selection requires review. |
|
|
125
|
+
| Only historical release metadata survives | Default action restores no unproven candidates. Explicitly choosing one candidate restores only that candidate. |
|
|
126
|
+
| User defers restoration, then repeats update | No repeated question for unchanged evidence, no additional installation or removal, and no false claim of completed historical recovery. |
|
|
127
|
+
| User reopens deferred recovery | Candidates remain available for a fresh choice; deferral was not recorded as permanent exclusion. |
|
|
128
|
+
| The final installed owner retires with deferred choices still recorded | The selected source remains discoverable, and `update --repair` can restore a chosen candidate. |
|
|
129
|
+
| Unknown candidates have multiple current owners | Defer without guessing; later review can select one owner without activating the alternatives. |
|
|
130
|
+
| A selected component no longer requires its historical skill dependency | Recompute the closure and do not install that dependency as a directly selected skill in a different plugin. |
|
|
131
|
+
| Internal projection rebuild, local refresh or enable with unknown provenance | Preserve verified effective contents and unknown requested provenance; never infer a full choice from the complete cache. |
|
|
132
|
+
| Non-interactive update encounters uncertain history | Preserve working contents, report deferral in text and JSON, and continue independent deterministic updates. |
|
|
133
|
+
| Partial installation is interrupted before native installation or between hosts | The same update command resumes the recorded selected set, preserves disabled states, and verifies required successors before retirement. |
|
|
134
|
+
| Original 46-skill half-update, explicit confirmation of all seven candidates | One `update -g` still reaches 53 skills in all three hosts; the second run reports up to date without native changes. |
|
|
135
|
+
| Third-party plugin changes ownership without ADG publisher files | Selection preservation and conservative recovery use ordinary metadata and client history only. |
|
|
136
|
+
|
|
137
|
+
### Follow-up verification
|
|
138
|
+
|
|
139
|
+
All 830 ADG tests, type checking and build passed. Focused regressions first
|
|
140
|
+
exposed missing conservative defaults, deferred persistence, unknown rename
|
|
141
|
+
retirement, source-wide activation of unrelated skills, orphaned deferred
|
|
142
|
+
sources, obsolete dependency promotion and internal replay confidence changes.
|
|
143
|
+
Each corrected regression passed afterward. Documentation links, test isolation
|
|
144
|
+
checks, producer governance and whitespace checks also passed.
|
|
145
|
+
|
|
146
|
+
Final native acceptance used the same frozen compiled output throughout,
|
|
147
|
+
with full-tree SHA-256
|
|
148
|
+
`22e569c404d165e2457d234e504342374cea8fb0518a04889d2dbbeaadfdaeec`.
|
|
149
|
+
|
|
150
|
+
- Original ADG 0.11.4 half-update: one ordinary `update -g` with explicit
|
|
151
|
+
restoration of seven candidates reached ten current plugins and all 53
|
|
152
|
+
skills in real Claude Code, Codex and Antigravity.
|
|
153
|
+
- Partial selection: the real 2.2.0 release was installed through the CLI with
|
|
154
|
+
exactly `app-design-evaluation`, `iphone-duo-adoption` and `swift-concurrency`,
|
|
155
|
+
with dependencies explicitly disabled. An ordinary update to 3.0.0 moved
|
|
156
|
+
them to three owners without a restoration prompt. Each host still exposed
|
|
157
|
+
precisely the original three skills.
|
|
158
|
+
- Deferred recovery: the original 46-skill half-update accepted the default
|
|
159
|
+
keep action. All hosts retained exactly that 46-skill set and seven unknown
|
|
160
|
+
candidates were recorded as deferred. Repetition stayed quiet. The same
|
|
161
|
+
update with `--repair` reopened those seven choices; explicit restoration
|
|
162
|
+
reached all 53 skills in all hosts and cleared deferred recovery.
|
|
163
|
+
|
|
164
|
+
All four repeated updates exited successfully, made zero native provider
|
|
165
|
+
calls, and left store/runtime contents, permissions and symlink fingerprints
|
|
166
|
+
unchanged. Full-source selection, per-plugin partial choices and unknown
|
|
167
|
+
provenance remained distinct in the inspected records.
|
|
168
|
+
|
|
169
|
+
Private acceptance receipts are retained outside the repository. They link
|
|
170
|
+
the three scenario runs, recorded commands, native inventories and repeat
|
|
171
|
+
fingerprints. Acceptance used isolated homes and replayed published
|
|
172
|
+
source transport with no external network access or access to active user
|
|
173
|
+
configurations. It verified native registration, discovery and cached skill
|
|
174
|
+
contents, without model invocation, hooks or MCP execution.
|
|
175
|
+
|
|
176
|
+
The final package smoke check passed after installation into a temporary
|
|
177
|
+
prefix and exercising both plugin and skill commands. apple-skills required
|
|
178
|
+
only updated recovery guidance; its governance check passed with no new ADG
|
|
179
|
+
publisher file. Implementation and local acceptance are complete. Publication
|
|
180
|
+
follows the repository's reviewed PR and release workflow.
|
|
181
|
+
|
|
182
|
+
## Delivery review
|
|
183
|
+
|
|
184
|
+
The subsequent independent delivery review repaired Windows file flushing,
|
|
185
|
+
lexical native marketplace identity, explicit Antigravity enablement,
|
|
186
|
+
malformed-cache recovery and permission preservation, independent deferred
|
|
187
|
+
ownership choices, and requested-versus-derived rename contributions.
|
|
188
|
+
Focused regressions reproduced each issue before its fix. Both reviewers then
|
|
189
|
+
verified their repaired paths without remaining findings.
|
|
190
|
+
|
|
191
|
+
The PR review additionally covers converging rename selections, explicit
|
|
192
|
+
keep/drop decisions for withdrawn skills in named subsets, preservation of deferred
|
|
193
|
+
records during later adds, and legacy executable authorization based on verified
|
|
194
|
+
installed bytes. Unknown requested selections remain bounded by their proven
|
|
195
|
+
effective component and MCP subsets, including after an approved skill removal.
|
|
196
|
+
Known full subscriptions continue following upstream content changes, including
|
|
197
|
+
simultaneous deletion, relocation and addition of skills, without extra prompts
|
|
198
|
+
or conversion into a frozen subset.
|
|
199
|
+
Native repair work is owned by the persisted operation journal, unverified
|
|
200
|
+
results remain incomplete, and returned failures require readback before retry.
|
|
201
|
+
Legacy repair obligations are added before native callbacks or completion;
|
|
202
|
+
known runtime obligations survive even when execution capabilities are absent.
|
|
203
|
+
Disabling activation leaves native-dependent retirement pending for a later
|
|
204
|
+
update. Rebuilt projections include mandatory dependencies. Interactive choices
|
|
205
|
+
and default reports describe plugin retention, removal and single-owner
|
|
206
|
+
selection directly.
|
|
207
|
+
|
|
208
|
+
Windows contention also exercises transient ticket-access failures. Unreadable
|
|
209
|
+
existing tickets must remain distinct from unpublished choosing records: number
|
|
210
|
+
allocation waits for a reliable maximum, and uncertain presence never permits
|
|
211
|
+
entry into an occupied mutation. Permission errors and waiting stay bounded.
|
|
212
|
+
|
|
213
|
+
Detected runtimes retain saved work while their CLI is unavailable. Explicit
|
|
214
|
+
Codex repair uses Codex projections consistently without changing subscriptions.
|
|
215
|
+
Peer ownership checks fall back to verified current exposure per missing history
|
|
216
|
+
entry and require the peer's planned selection to keep exposing the skill;
|
|
217
|
+
catalog membership alone cannot justify relinquishing an explicit request.
|
|
218
|
+
Surviving partial selections still reconcile relocated names. A unique
|
|
219
|
+
newly observed peer can receive a retired plugin's skills only when that plugin
|
|
220
|
+
has its own verified selection or installation evidence. Known historical
|
|
221
|
+
sharing and catalog-only predecessors retain their retirement review.
|
|
222
|
+
Relocated explicit skill requests remain recorded even while a peer also
|
|
223
|
+
provides them as a dependency. Destination merges preserve the user's component
|
|
224
|
+
policy separately from executable approvals, so later MCP services still require
|
|
225
|
+
review after an earlier service was declined.
|
|
226
|
+
|
|
227
|
+
The mutex publishes a complete process-birth record before entering the choosing
|
|
228
|
+
phase. It reclaims a reused PID only when comparable OS identity evidence differs;
|
|
229
|
+
failed queries and legacy records remain conservative. macOS birth evidence has
|
|
230
|
+
second precision, so same-second reuse can still wait. Pending journals preserve
|
|
231
|
+
the original alias topology and restore only proven missing links under the mutex,
|
|
232
|
+
rejecting foreign targets or replaced parents. Targeted alias retries preserve
|
|
233
|
+
their target, source, scope and authorization flags.
|
|
234
|
+
|
|
235
|
+
OS identity probes run only for contenders that actually block progress, with a
|
|
236
|
+
short per-operation cache and bounded revalidation. Reading an ordinary ticket
|
|
237
|
+
snapshot never starts one system process per contender.
|
|
238
|
+
|
|
239
|
+
Frozen installation with npm 12.2.2, type checking, build and all 937 product
|
|
240
|
+
tests passed locally. The real Windows path is covered by the PR's Windows
|
|
241
|
+
matrix; local Windows handle tests simulate the required access boundary.
|
|
242
|
+
PR checks and subsequent review resolutions bind to the published head.
|
|
243
|
+
|
|
244
|
+
## Review fixes and regression evidence
|
|
245
|
+
|
|
246
|
+
| Review item | Implementation and required regression |
|
|
247
|
+
| --- | --- |
|
|
248
|
+
| P1 1, authorization bypass | Stage the reviewed selection. A skills-only `--all` never activates new hooks. |
|
|
249
|
+
| P1 2, partial aliases | Validate every identity before writing. A missing alias leaves its peers unchanged. |
|
|
250
|
+
| P1 3, first Claude install interrupted | Confirmed native absence permits activation. Repeat offline and finish. |
|
|
251
|
+
| P1 4, dependency hash | Resolve mandatory dependencies consistently for payload integrity. |
|
|
252
|
+
| P1 5, incomplete checkpoint | Save all native operations before publishing. Resume between-target interruptions. |
|
|
253
|
+
| P1 6, unchanged successor absent | Repair every required successor registration before retirement. |
|
|
254
|
+
| P1 7, native disabled state | Carry per-runtime predecessor state through identity changes. |
|
|
255
|
+
| P1 8, later linked runtime | Inspect all providers for retirement and install required successors there. |
|
|
256
|
+
| P2 9, retry flags | Preserve source, scope, `--all` and repair flags in recovery commands. |
|
|
257
|
+
| P2 10, sparse false removal | Fetch the complete current source catalog before deciding that an installed sibling disappeared. |
|
|
258
|
+
| P2 11, empty catalog | Keep/drop remains available within update when no candidates remain. |
|
|
259
|
+
| P2 12, chain order | Resolve identity chains independently of declaration order. |
|
|
260
|
+
| P2 13, producer chains | Remove the proprietary producer validator and exercise native rename chains. |
|
|
261
|
+
| P2 14, mismatched schema | Remove the proprietary publisher schema. Third parties add no ADG files. |
|
|
262
|
+
| P2 15, cancellation | Text and JSON retain completed source/scope outcomes and exit 130. |
|
|
263
|
+
| P2 16, removed lexical alias | Completed receipts remain usable through the canonical store. |
|
|
264
|
+
| P2 17, skip wording | Distinguish skipping historical restoration from cancellation. |
|
|
265
|
+
|
|
266
|
+
Use existing telemetry plumbing for history, planning, authorization and
|
|
267
|
+
recovery counts. Exclude historical contents, paths and credentials. Public
|
|
268
|
+
regressions use generated fixtures.
|
|
269
|
+
|
|
270
|
+
## Acceptance
|
|
271
|
+
|
|
272
|
+
1. Prove authorization and Claude interruption regressions fail before their
|
|
273
|
+
fixes and pass afterward through ordinary command APIs.
|
|
274
|
+
2. Restore an isolated private copy of the original ADG 0.11.4 half-update.
|
|
275
|
+
Confirm its 46 distinct skills and retained predecessor.
|
|
276
|
+
3. Use the ordinary current apple-skills catalog without ADG migration files.
|
|
277
|
+
Recover historical releases through normal source transport. Run one
|
|
278
|
+
interactive `adg plugins update -g`.
|
|
279
|
+
4. Confirm 53 distinct skills, current owners, selected-source intent, and real
|
|
280
|
+
Claude Code, Codex and Antigravity registration/discovery.
|
|
281
|
+
5. Repeat the command. Require exit zero, up-to-date output, no historical
|
|
282
|
+
question and no unnecessary native refresh.
|
|
283
|
+
6. Exercise ordinary third-party sources with relocation, native `renames`,
|
|
284
|
+
removals and sparse installs. They add no ADG-specific files.
|
|
285
|
+
7. Run type checking, build, full ADG tests, producer governance/tests and
|
|
286
|
+
package smoke. Private archives and native evidence stay isolated.
|
|
287
|
+
|
|
288
|
+
Native acceptance covers registration and discovered/cache skill contents.
|
|
289
|
+
Model-session invocation, hooks and MCP execution are separate operations.
|
|
290
|
+
The macOS acceptance harness keeps ADG and the real provider CLIs under its
|
|
291
|
+
strict filesystem and network restrictions. That profile cannot launch the
|
|
292
|
+
setuid system `ps`, so a read-only host coordinator services only the fixed
|
|
293
|
+
birth-time query for its own still-live ADG child. It audits the real query and
|
|
294
|
+
result; it cannot proxy provider execution, arbitrary commands, files or network
|
|
295
|
+
requests. Direct process-identity probing is covered separately by product
|
|
296
|
+
tests and macOS CI.
|
|
297
|
+
|
|
298
|
+
## Baseline evidence
|
|
299
|
+
|
|
300
|
+
Completed on 2026-11-11 against the revised implementation before the partial
|
|
301
|
+
selection follow-up above. Its separate acceptance is recorded with that
|
|
302
|
+
follow-up. Earlier acceptance
|
|
303
|
+
using the withdrawn declaration remains historical evidence only.
|
|
304
|
+
|
|
305
|
+
- ADG type checking, build and all 794 tests passed. Authorization regressions
|
|
306
|
+
cover skills-only `--all`, effective native dependencies and reviewed
|
|
307
|
+
selections. A regression through the ordinary update API interrupts the
|
|
308
|
+
Claude lifecycle before its first native installation, then resumes offline
|
|
309
|
+
and verifies that the predecessor remains until its successor succeeds.
|
|
310
|
+
- Regression coverage also includes all 17 review items above, partial and full
|
|
311
|
+
destination selections, order-independent incoming skill merges, current
|
|
312
|
+
skills preserved during historical restoration, and disabled state carried
|
|
313
|
+
through consecutive renames and splits.
|
|
314
|
+
- apple-skills governance and all 255 tests passed. Its final change is README
|
|
315
|
+
guidance for the recovery-capable client. The proprietary declaration,
|
|
316
|
+
producer validator, schema and authoring instructions have been removed.
|
|
317
|
+
- Synthetic third-party fixtures exercise skill relocation, existing
|
|
318
|
+
marketplace rename chains, removal and sparse installations without adding
|
|
319
|
+
any ADG-specific publisher files.
|
|
320
|
+
- Documentation links and test isolation checks passed. The final package was
|
|
321
|
+
installed in a temporary prefix and exercised through both plugin and skill
|
|
322
|
+
commands; the package smoke check passed.
|
|
323
|
+
|
|
324
|
+
The final native acceptance started from a fresh isolated copy of the original
|
|
325
|
+
ADG 0.11.4 partial update: eight installed plugins and 46 distinct skills. Source
|
|
326
|
+
transport replayed the ordinary current catalog and the predecessor's recorded
|
|
327
|
+
immutable revision; neither archive contains the withdrawn protocol.
|
|
328
|
+
|
|
329
|
+
One interactive `adg plugins update -g` confirmed the seven missing historical
|
|
330
|
+
skills and completed successfully. Real Claude Code, Codex and Antigravity
|
|
331
|
+
discovery each reported ten enabled current plugins with no retired
|
|
332
|
+
`apple-platform-guidance` entry. Claude and Codex native caches and Antigravity
|
|
333
|
+
discovery each contained all 53 distinct skills. Source intent remained
|
|
334
|
+
`selected`.
|
|
335
|
+
|
|
336
|
+
The second identical command exited successfully, reported all ten plugins
|
|
337
|
+
up to date and made no native provider calls. Store and runtime file contents,
|
|
338
|
+
permissions and symlink fingerprints were unchanged. The complete compiled
|
|
339
|
+
output had SHA-256
|
|
340
|
+
`7ac30ef869c88efad7def5d02417524eddd3833f243d5f5a32f6c97859738cbd`
|
|
341
|
+
before and after acceptance.
|
|
342
|
+
|
|
343
|
+
Private logs, native inventories and fingerprints are retained outside the
|
|
344
|
+
repository; the acceptance receipts record the checks. Acceptance used isolated
|
|
345
|
+
homes and replayed transport, without external network access or changes to
|
|
346
|
+
the user's active installations. Native registration, discovery and cache
|
|
347
|
+
contents were verified; model invocation, hooks and MCP execution were not
|
|
348
|
+
part of this acceptance. Publication and active-user upgrades are tracked
|
|
349
|
+
separately.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbbtsn0w/adg",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1-dev.pr200.c6ce45e",
|
|
4
4
|
"description": "Agent Directory Group (ADG) toolkit — two domains: plugins and skills.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,13 @@
|
|
|
19
19
|
"adg": "dist/bin/adg.js"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": "
|
|
22
|
+
"node": "^22.22.2 || ^24.15.0 || >=26"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"adg": "node ./bin/adg.ts",
|
|
26
26
|
"build": "node scripts/build.mjs",
|
|
27
27
|
"test": "node scripts/run-tests.mjs \"test/**/*.test.ts\" test/cache-sandbox.test.mjs",
|
|
28
|
+
"test:release": "node --test \"test/release-*.test.mjs\"",
|
|
28
29
|
"test:codex-sandbox": "node --test test/codex-sandbox.test.mjs",
|
|
29
30
|
"test:cache-sandbox": "node --test test/cache-sandbox.test.mjs",
|
|
30
31
|
"check:docs": "node scripts/check-doc-links.mjs",
|
|
@@ -35,7 +36,8 @@
|
|
|
35
36
|
"audit:prod": "npm audit --omit=dev",
|
|
36
37
|
"typecheck": "tsc --noEmit",
|
|
37
38
|
"prepare": "npm run typecheck",
|
|
38
|
-
"prepack": "npm run typecheck && npm run build"
|
|
39
|
+
"prepack": "npm run typecheck && npm run build",
|
|
40
|
+
"test:package": "node scripts/check-package-smoke.mjs"
|
|
39
41
|
},
|
|
40
42
|
"files": [
|
|
41
43
|
"dist",
|
|
@@ -62,33 +64,35 @@
|
|
|
62
64
|
"yaml": "^2.9.1"
|
|
63
65
|
},
|
|
64
66
|
"devDependencies": {
|
|
65
|
-
"@
|
|
67
|
+
"@commitlint/config-conventional": "21.2.4",
|
|
68
|
+
"@commitlint/lint": "21.2.4",
|
|
66
69
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
67
|
-
"@semantic-release/git": "^11.0.1",
|
|
68
70
|
"@semantic-release/github": "^12.0.8",
|
|
69
71
|
"@semantic-release/npm": "^13.1.5",
|
|
70
72
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
71
73
|
"@types/node": "^26.6.5",
|
|
72
74
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
75
|
+
"import-from-esm": "2.0.0",
|
|
76
|
+
"publint": "0.3.25",
|
|
73
77
|
"semantic-release": "^25.0.5",
|
|
74
78
|
"typescript": "^7.0.2"
|
|
75
79
|
},
|
|
76
|
-
"comment:overrides": "Security floors for transitive development tooling:
|
|
80
|
+
"comment:overrides": "Security floors for transitive development tooling: pin npm to 12.2.2 so its bundled undici is patched. Product and CI Node support match npm 12: ^22.22.2 || ^24.15.0 || >=26. Every CI matrix entry uses isolated npm 12.2.2. Other floors patch handlebars, postcss-selector-parser, http-cache-semantics, brace-expansion, ip-address, undici, and js-yaml.",
|
|
77
81
|
"overrides": {
|
|
78
|
-
"npm": "
|
|
82
|
+
"npm": "12.2.2",
|
|
79
83
|
"handlebars": "^4.7.10",
|
|
80
84
|
"postcss-selector-parser": "^7.1.6",
|
|
81
85
|
"http-cache-semantics": "^4.3.0",
|
|
82
86
|
"brace-expansion": "^5.0.12",
|
|
83
87
|
"ip-address": "^10.7.1",
|
|
84
88
|
"@actions/http-client": {
|
|
85
|
-
"undici": "^6.29.
|
|
89
|
+
"undici": "^6.29.1"
|
|
86
90
|
},
|
|
87
91
|
"node-gyp": {
|
|
88
|
-
"undici": "^6.29.
|
|
92
|
+
"undici": "^6.29.1"
|
|
89
93
|
},
|
|
90
94
|
"@semantic-release/github": {
|
|
91
|
-
"undici": "^7.30.
|
|
95
|
+
"undici": "^7.30.1"
|
|
92
96
|
},
|
|
93
97
|
"cosmiconfig": {
|
|
94
98
|
"js-yaml": "^4.3.1"
|
|
@@ -7,11 +7,85 @@
|
|
|
7
7
|
"required": ["version", "plugins"],
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
|
-
"version": { "type": "integer", "description": "Lock file format version.", "enum": [3, 4, 5] },
|
|
10
|
+
"version": { "type": "integer", "description": "Lock file format version.", "enum": [3, 4, 5, 6] },
|
|
11
11
|
"plugins": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"additionalProperties": { "$ref": "#/$defs/lockEntry" }
|
|
14
14
|
},
|
|
15
|
+
"sources": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["source", "mode", "roots", "excluded", "appliedMigrations"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"source": {"type": "string"},
|
|
23
|
+
"ref": {"type": "string"},
|
|
24
|
+
"mode": {"enum": ["all", "selected"]},
|
|
25
|
+
"roots": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
26
|
+
"excluded": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
27
|
+
"targets": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
28
|
+
"sparse": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
29
|
+
"appliedMigrations": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
30
|
+
"selection": {"$ref": "#/$defs/lockEntry/properties/selection"},
|
|
31
|
+
"withDeps": {"type": "boolean"},
|
|
32
|
+
"desiredSelections": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": {"anyOf": [{"$ref": "#/$defs/lockEntry/properties/selection"}, {"type": "null"}]}
|
|
35
|
+
},
|
|
36
|
+
"retainedAtRevision": {"type": "string"},
|
|
37
|
+
"retained": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
|
38
|
+
"executableDecisions": {"type": "object", "additionalProperties": {"type": "boolean"}},
|
|
39
|
+
"deferredRecovery": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"description": "Unknown historical choices deferred locally without granting installation or removal permission.",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"required": ["id", "history", "skills"],
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"properties": {
|
|
47
|
+
"id": {"type": "string"},
|
|
48
|
+
"history": {"$ref": "#/properties/sources/items/properties/history/items"},
|
|
49
|
+
"skills": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"history": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"description": "Installation evidence maintained locally by ADG for update recovery.",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": ["name", "version", "origin", "contents"],
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"properties": {
|
|
61
|
+
"name": {"type": "string"},
|
|
62
|
+
"version": {"type": "string"},
|
|
63
|
+
"sourceHash": {"type": "string"},
|
|
64
|
+
"origin": {"$ref": "#/$defs/lockEntry/properties/origin"},
|
|
65
|
+
"contents": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"skills": {"type": "array", "items": {"type": "string"}},
|
|
70
|
+
"agents": {"type": "array", "items": {"type": "string"}},
|
|
71
|
+
"commands": {"type": "array", "items": {"type": "string"}},
|
|
72
|
+
"hooks": {"type": "array", "items": {"type": "string"}},
|
|
73
|
+
"apps": {"type": "array", "items": {"type": "string"}},
|
|
74
|
+
"mcp": {"type": "array", "items": {"type": "string"}}
|
|
75
|
+
},
|
|
76
|
+
"required": ["skills", "agents", "commands", "hooks", "apps", "mcp"]
|
|
77
|
+
},
|
|
78
|
+
"selection": {"$ref": "#/$defs/lockEntry/properties/selection"},
|
|
79
|
+
"selectionKnown": {"type": "boolean"},
|
|
80
|
+
"effectiveSelection": {"$ref": "#/$defs/lockEntry/properties/selection"},
|
|
81
|
+
"evidence": {"enum": ["selection", "installed", "catalog"]},
|
|
82
|
+
"state": {"enum": ["enabled", "disabled"]}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
15
89
|
"lastSelected": {
|
|
16
90
|
"type": "array",
|
|
17
91
|
"items": { "type": "string" }
|
|
@@ -45,6 +119,8 @@
|
|
|
45
119
|
"enum": ["enabled", "disabled"],
|
|
46
120
|
"description": "Desired cross-agent projection state. Absent means enabled."
|
|
47
121
|
},
|
|
122
|
+
"selectionKnown": {"type": "boolean", "description": "Whether requested selection intent is known, including an explicit full installation."},
|
|
123
|
+
"runtimeStates": { "type": "object", "additionalProperties": { "type": "boolean" } },
|
|
48
124
|
"definition": {
|
|
49
125
|
"type": "object",
|
|
50
126
|
"required": ["kind", "root", "description", "fingerprint"],
|
|
@@ -77,6 +153,7 @@
|
|
|
77
153
|
"type": "array",
|
|
78
154
|
"items": { "enum": ["skills", "agents", "commands", "mcp", "hooks", "apps"] }
|
|
79
155
|
},
|
|
156
|
+
"mcp": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
|
|
80
157
|
"skills": {
|
|
81
158
|
"type": "array",
|
|
82
159
|
"items": { "type": "string" }
|