@plasius/mcp-admin-contracts 0.2.9 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,108 @@
14
14
  - **Security**
15
15
  - (placeholder)
16
16
 
17
+ ## [0.5.0] - 2026-08-13
18
+
19
+ - **Added**
20
+ - Added a privacy-safe, read-only `feedback` domain for bounded bug health,
21
+ satisfaction, deterministic alerts, processor freshness, and
22
+ reporter-identifier-free structured feedback entries.
23
+ - Added stable `feedback.mcp.enabled` rollout and `admin.feedback.read`
24
+ capability metadata, complete action-level `mcp:access` plus
25
+ `admin.feedback.read` OAuth scope metadata, unified fail-closed access
26
+ requirements, en-GB descriptions, and machine-readable privacy exclusions
27
+ and bounds.
28
+ - Added canonical packet, aggregate, advisory, diagnostics, and
29
+ processor-checkpoint projections with direct package-schema parity
30
+ coverage.
31
+
32
+ - **Changed**
33
+ - Advanced the additive MCP Admin registry contract to `2026-08-11.v6`
34
+ while preserving all v0.4.0 Token reporting and adjustment domains.
35
+ - Modelled structured-entry filters as exact `packetType` variants so bug
36
+ and review filters cannot be combined.
37
+ - Replaced the staged source projection with direct registry consumption of
38
+ published `@plasius/schema ^1.4.0` canonical schema identities and closed
39
+ vocabularies.
40
+
41
+ - **Fixed**
42
+ - (placeholder)
43
+
44
+ - **Security**
45
+ - Closed every feedback-specific input and output object projection with
46
+ `additionalProperties: false` so undeclared fields cannot cross the
47
+ Admin/MCP contract boundary.
48
+ - Made account, network, session, user-agent, locale, client-time, referrer,
49
+ credential, financial, government, filename, dimension, warning,
50
+ coordinate, adapter-identity, and model-artifact exclusions
51
+ machine-readable.
52
+ - Kept narrative, reporter correlation, binary images, storage references,
53
+ raw URLs, unrestricted scans, and mutations outside the public contract.
54
+ - Raised transitive `brace-expansion`, `nanoid`, and `postcss` override
55
+ floors to remediate the current high-severity development-tool advisories.
56
+
57
+ ## [0.4.0] - 2026-08-08
58
+
59
+ - **Added**
60
+ - Added public-safe, read-only `get_admin_token_economy_overview`,
61
+ `list_admin_token_wallet_balances`, `list_admin_token_activity`, and
62
+ `get_admin_token_trends` descriptors with exact aggregate balances,
63
+ bounded pseudonymous rows, privacy-suppressed trends, and explainable
64
+ anomaly metadata.
65
+
66
+ - **Changed**
67
+ - Advanced the additive MCP Admin registry contract to `2026-08-08.v5` and
68
+ exposed action-level OAuth scope, capability, rollout, read-only, and
69
+ identity-resolution metadata.
70
+
71
+ - **Fixed**
72
+ - (placeholder)
73
+
74
+ - **Security**
75
+ - Token reporting contracts exclude raw financial/identity identifiers,
76
+ provider-specific sources, small-cohort trend values, identity resolution,
77
+ and mutation actions; global projection freshness uses canonical sequences.
78
+
79
+ ## [0.3.1] - 2026-08-01
80
+
81
+ - **Added**
82
+ - (placeholder)
83
+
84
+ - **Changed**
85
+ - (placeholder)
86
+
87
+ - **Fixed**
88
+ - Made release-preparation merge retries independent of repository auto-merge so required checks can settle without enabling repository-wide auto-merge.
89
+ - Prevented the immutable publication bundle check from treating grep's
90
+ expected early exit as a tar failure under `pipefail`.
91
+ - Made npm publication consume the immutable tarball as an explicit local
92
+ path instead of allowing npm to parse it as a Git dependency specifier.
93
+ - Prevented release preparation from reusing an unpublished package version
94
+ when its existing immutable tag points behind current main; the workflow
95
+ now cuts the requested next version instead.
96
+
97
+ - **Security**
98
+ - (placeholder)
99
+
100
+ ## [0.3.0] - 2026-08-01
101
+
102
+ - **Added**
103
+ - Added owner-only Token wallet/activity reads and dual-approved credit,
104
+ rejection, and compensating-reversal MCP descriptors, including explicit
105
+ finance capabilities and OAuth resource scopes (task #51).
106
+
107
+ - **Changed**
108
+ - Advanced the additive MCP contract to `2026-04-28.v4` so discovery clients
109
+ can identify the governed Token adjustment family.
110
+
111
+ - **Fixed**
112
+ - (placeholder)
113
+
114
+ - **Security**
115
+ - Replaced token-based npm publication with a two-phase exact-main OIDC workflow, immutable tarball/SBOM hand-off, isolated pull-request validation, and fail-closed integrity checks.
116
+ - Added fail-closed source and npm-package admission for the administrative contributor registry and pinned the CI/CD runtime to Node.js 24.18.0 LTS.
117
+ - (placeholder)
118
+
17
119
  ## [0.2.9] - 2026-07-13
18
120
 
19
121
  - **Added**
@@ -110,3 +212,7 @@
110
212
  [0.2.7]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.2.7
111
213
  [0.2.8]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.2.8
112
214
  [0.2.9]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.2.9
215
+ [0.3.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.3.0
216
+ [0.3.1]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.3.1
217
+ [0.4.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.4.0
218
+ [0.5.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.5.0
package/README.md CHANGED
@@ -13,6 +13,7 @@ This package contains contract metadata only:
13
13
  - rollout flag identifiers used by the contract
14
14
  - deprecated legacy env-name constants retained for source compatibility only
15
15
  - analytics and bounded user-aggregation whitelist constants
16
+ - public-safe pseudonymous Token activity/trend metadata
16
17
  - TypeScript types for these payloads
17
18
 
18
19
  It intentionally does not contain runtime enforcement:
@@ -54,8 +55,116 @@ The exported registry currently covers:
54
55
  - capability-rule and effective-capability descriptors keyed by canonical tuple identities
55
56
  - bounded analytics queries and curated analytics presets
56
57
  - bounded grouped user-aggregation summaries without raw per-user export
58
+ - privacy-safe feedback intelligence for immutable bug-health and satisfaction
59
+ reports, deterministic alerts, processor freshness, and
60
+ reporter-identifier-free structured entries
61
+ - read-only global Token overview, pseudonymous wallet/activity, and bounded
62
+ spend-trend descriptors
57
63
  - governed asset catalog, source-intake, pipeline, and review descriptors for
58
64
  the hosted `plasius-ltd-site` MCP backend
65
+ - owner-only Token finance descriptors for bounded wallet/activity reads and
66
+ dual-approved credit or compensating-reversal workflows
67
+
68
+ Token finance descriptors require the host to enforce the parent
69
+ `economy.tokens.enabled` flag and the package-published
70
+ `mcp.admin-economy-adjustments.enabled` flag. They declare the relevant
71
+ `economy.finance-operations.*` capability and OAuth resource scopes. The
72
+ contract intentionally has no balance-setter or Token delete action: credits
73
+ and reversals are immutable, preview-bound proposals that require a distinct
74
+ owner approval in the runtime authority.
75
+
76
+ ### Admin Token reporting
77
+
78
+ The Token descriptors require the `mcp:access` OAuth scope, the
79
+ `admin.economy.read` and `economy.finance-operations.view` capabilities, and
80
+ both stored flags:
81
+
82
+ - `economy.admin-history.enabled`
83
+ - `mcp.admin-economy-history.enabled`
84
+
85
+ The global overview is an identifier-free point-read shape with exact balance
86
+ and lifetime totals, wallet counts, projection time, and canonical authority
87
+ sequence. Wallet balance pages are capped at 100 rows and expose only separate
88
+ MCP-audience wallet/subject aliases, closed component/status codes, exact
89
+ amounts, update time, and projection sequence.
90
+
91
+ Activity pages default to 30 days, allow at most 365 days and 100 rows, and
92
+ return only normalized source groupings, exact signed TokenSubunits,
93
+ source-owned safe labels, and versioned MCP-audience row/subject aliases. Raw
94
+ account, wallet, transaction, order, payment, provider-event, idempotency, and
95
+ journal-integrity identifiers are outside the contract.
96
+
97
+ Trend cohorts below five distinct subjects are suppressed without counts or
98
+ amounts. Reported points may include an explainable 28-window median/MAD
99
+ advisory. All four reporting tools are read-only and MCP has no
100
+ identity-resolution action.
101
+
102
+ These descriptors remain `near-future` until the hosted site registers the
103
+ JSON-RPC tools and passes scope/capability/flag, bounded-output, privacy, and
104
+ audit integration tests. Installing or publishing this package does not create
105
+ runtime routes.
106
+
107
+ ### Feedback intelligence
108
+
109
+ The read-only `feedback` domain publishes these near-future hosted action
110
+ contracts:
111
+
112
+ - `getFeedbackBugHealth`
113
+ - `getFeedbackSatisfaction`
114
+ - `listFeedbackAlerts`
115
+ - `getFeedbackFreshness`
116
+ - `listFeedbackStructuredEntries`
117
+
118
+ Every feedback descriptor carries the canonical default-off rollout flag
119
+ `feedback.mcp.enabled`, required capability `admin.feedback.read`, complete
120
+ action-level OAuth scopes `mcp:access` plus `admin.feedback.read`, and a
121
+ machine-readable privacy boundary. The same controls are repeated in the
122
+ descriptor's unified read-only `access` metadata so a consumer cannot silently
123
+ drop one requirement when building hosted tools. The consuming admin/MCP
124
+ runtime owns evaluation of those controls and must fail closed. When the flag,
125
+ scope, or capability is unavailable, the consumer-visible fallback is that the
126
+ feedback actions are omitted or rejected; this package does not evaluate
127
+ access.
128
+
129
+ The global AI-plugin manifest deliberately retains its existing
130
+ `openid email profile mcp:access` base scopes. The feedback scopes remain
131
+ action metadata until the site OAuth issuer, protected-resource metadata, and
132
+ staged rollout are coordinated.
133
+
134
+ Feedback reads use closed server-owned windows, opaque continuation cursors of
135
+ at most 512 characters, and pages of at most 100 records. They address
136
+ immutable materialised reports and schema-validated structured projections,
137
+ never unrestricted storage scans. Every feedback-specific object projection
138
+ also declares `additionalProperties: false`, keeping undeclared fields outside
139
+ the Admin/MCP serialization boundary.
140
+
141
+ The structured-entry action accepts one required `filters` object. It is an
142
+ exact `packetType`-discriminated union: the bug variant alone permits
143
+ `surfaceId`, `buildId`, and `severity`, while the review variant alone permits
144
+ `satisfaction`. Both variants contain the bounded window, limit, and cursor.
145
+ Consumers must reject unknown or cross-packet fields before flattening the
146
+ selected variant into route query parameters.
147
+
148
+ This package directly consumes the published `@plasius/schema ^1.4.0`
149
+ dependency. Packet and report descriptors bind their schema sources to its
150
+ feedback contract version `1.0.0`, and their vocabularies and schema identity
151
+ metadata are imported from that package at runtime. Entries are discriminated
152
+ by the canonical
153
+ `feedback-bug-packet`/`feedback-review-packet` identities; hourly bug-health,
154
+ daily satisfaction, advisories, diagnostics, and processor checkpoints use
155
+ the same closed kebab-case vocabulary and lowercase UUIDv4 constraints as the
156
+ canonical schemas. The registry-generated lock resolves the package directly;
157
+ source, file, and Git dependency pins remain prohibited.
158
+
159
+ The contracts explicitly exclude account, reporter, network, session,
160
+ user-agent, locale, client-time, referrer, coordinate, dimension, and adapter
161
+ identifiers; credentials and secrets; financial and government identifiers;
162
+ filenames and raw warnings; narrative, binary images, Blob references, raw
163
+ URLs, unrestricted scans, and mutations.
164
+ Narrative-derived data is limited to closed classifications; it cannot include
165
+ summaries, quotations, embeddings, hashes, matched values, or model traces.
166
+ Renderer diagnostics are bounded structured facts only and never
167
+ user-captured pixels.
59
168
 
60
169
  Action descriptors keep their existing `description` field and also expose
61
170
  `descriptionKey` and `descriptionDefault` so clients can resolve display text
@@ -108,3 +217,18 @@ these governance files does not change package behavior.
108
217
  ## License
109
218
 
110
219
  Apache-2.0
220
+
221
+ <!-- BEGIN PLASIUS RELEASE INTEGRITY -->
222
+ ## Release integrity
223
+
224
+ CI keeps the administrative contributor registry outside Git and npm package
225
+ artifacts using exact, case-normalised path checks. External fork heads are
226
+ rejected; same-repository pull requests validate on GitHub-hosted runners and
227
+ main pushes validate on approved self-hosted runners. Release preparation and
228
+ publication use a two-run exact-main protocol on GitHub-hosted Node.js 24.18.0
229
+ LTS. A read-only job seals the package tarball and SBOM before a dependency-free
230
+ production job publishes that exact artifact through npm OIDC with provenance;
231
+ there is no npm write-token fallback. CD remains disabled until the npm trusted
232
+ publisher binding and protected-branch-only production environment are
233
+ independently verified.
234
+ <!-- END PLASIUS RELEASE INTEGRITY -->