@plasius/mcp-admin-contracts 0.4.0 → 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 +41 -0
- package/README.md +65 -0
- package/dist/index.cjs +1105 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -7
- package/dist/index.d.ts +73 -7
- package/dist/index.js +1107 -4
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0005-privacy-safe-read-only-feedback-contract.md +100 -0
- package/docs/adrs/index.md +1 -0
- package/package.json +7 -3
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# ADR 0005: Privacy-Safe Read-Only Feedback Contract
|
|
2
|
+
|
|
3
|
+
## Status
|
|
4
|
+
|
|
5
|
+
Accepted
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
The admin dashboard and hosted MCP surface need a shared view of hourly bug
|
|
10
|
+
health, daily satisfaction, deterministic advisories, processor freshness, and
|
|
11
|
+
bounded structured feedback entries. The package is publicly published and
|
|
12
|
+
must not acquire runtime access to feedback packets, reporter-control state,
|
|
13
|
+
authentication, or storage.
|
|
14
|
+
|
|
15
|
+
Feedback narrative can contain personal or sensitive information even after
|
|
16
|
+
automated redaction. Reporter correlation is also pseudonymous personal data.
|
|
17
|
+
Neither belongs in this public contract or in the Admin/MCP response surface.
|
|
18
|
+
Unbounded report queries would additionally create an avoidable
|
|
19
|
+
denial-of-service and data-exfiltration surface.
|
|
20
|
+
|
|
21
|
+
## Decision
|
|
22
|
+
|
|
23
|
+
Add an additive `feedback` action family in contract version
|
|
24
|
+
`2026-08-11.v6`. It contains five read-only descriptors:
|
|
25
|
+
|
|
26
|
+
- hourly bug-health materialisations
|
|
27
|
+
- daily satisfaction materialisations
|
|
28
|
+
- deterministic feedback advisories
|
|
29
|
+
- report-processor freshness
|
|
30
|
+
- bounded reporter-identifier-free structured entries
|
|
31
|
+
|
|
32
|
+
All actions use `GET`, closed server-owned lookback windows, allowlisted
|
|
33
|
+
filters, opaque cursors of at most 512 characters, and pages of at most 100
|
|
34
|
+
records. Responses describe immutable materialised reports or bounded
|
|
35
|
+
schema-validated projections; no descriptor represents unrestricted packet,
|
|
36
|
+
Blob, or report scans. Every feedback-specific object projection rejects
|
|
37
|
+
additional properties so an undeclared field cannot be serialized across the
|
|
38
|
+
Admin/MCP contract boundary.
|
|
39
|
+
|
|
40
|
+
The structured-entry action models its complete `filters` object as an exact
|
|
41
|
+
union discriminated by `packetType`. The bug variant permits only its shared
|
|
42
|
+
window/paging controls plus `surfaceId`, `buildId`, and `severity`; the review
|
|
43
|
+
variant permits only the shared controls plus `satisfaction`. Both variants
|
|
44
|
+
disallow additional properties. Consuming runtimes must validate exactly one
|
|
45
|
+
variant, reject unknown and cross-packet fields, and only then map the selected
|
|
46
|
+
variant to route query parameters.
|
|
47
|
+
|
|
48
|
+
Every feedback descriptor carries:
|
|
49
|
+
|
|
50
|
+
- parent rollout flag `feedback.mcp.enabled`
|
|
51
|
+
- required capability `admin.feedback.read`
|
|
52
|
+
- complete action-level OAuth scopes `mcp:access` and `admin.feedback.read`
|
|
53
|
+
- unified read-only access metadata repeating the complete scope, capability,
|
|
54
|
+
and rollout requirements for fail-closed consumers
|
|
55
|
+
- a `public-safe-structured-only` privacy classification
|
|
56
|
+
- explicit exclusion of account, reporter, network, session, user-agent,
|
|
57
|
+
locale, client-time, referrer, coordinate, dimension, and adapter
|
|
58
|
+
identifiers; credentials and secrets; financial and government identifiers;
|
|
59
|
+
filenames and raw warnings; narrative, binary images, Blob references, raw
|
|
60
|
+
URLs, unrestricted scans, and mutations
|
|
61
|
+
|
|
62
|
+
Narrative-derived outputs are limited to closed sentiment, intent, and
|
|
63
|
+
confidence buckets. Summaries, quotations, embeddings, hashes, matched values,
|
|
64
|
+
and model traces are forbidden. In-game evidence is represented only by
|
|
65
|
+
bounded renderer-owned diagnostic facts; captured pixels are not represented.
|
|
66
|
+
|
|
67
|
+
This package remains metadata and pure builders only. The consuming runtime
|
|
68
|
+
must enforce admin authentication, the capability and OAuth scope, the
|
|
69
|
+
default-off rollout flag, bounded parsing, fail-closed rate limits, and
|
|
70
|
+
dedicated audit. It must omit or reject the feedback tools when a control
|
|
71
|
+
cannot be evaluated.
|
|
72
|
+
|
|
73
|
+
The global AI-plugin manifest retains the current
|
|
74
|
+
`openid email profile mcp:access` base scopes. Publishing `admin.feedback.read` there before the site issuer,
|
|
75
|
+
protected-resource metadata, and staged rollout are coordinated would alter
|
|
76
|
+
authentication for unrelated tools while the feedback flag is off.
|
|
77
|
+
|
|
78
|
+
Persisted entry projections are discriminated by the exact
|
|
79
|
+
`feedback-bug-packet` and `feedback-review-packet` identities. Reports,
|
|
80
|
+
advisories, game diagnostics, and processor checkpoints directly consume the
|
|
81
|
+
published `@plasius/schema ^1.4.0` dependency and its feedback contract
|
|
82
|
+
`1.0.0`. Descriptor vocabularies and source identities are imported from the
|
|
83
|
+
canonical package, while direct package-schema parity tests prevent this
|
|
84
|
+
package from establishing a second feedback dialect. The npm-registry lock is
|
|
85
|
+
authoritative; source, file, and Git dependency pins are prohibited.
|
|
86
|
+
|
|
87
|
+
## Consequences
|
|
88
|
+
|
|
89
|
+
- Admin and hosted MCP consumers share one stable, public-safe feedback
|
|
90
|
+
contract.
|
|
91
|
+
- Public package consumers can inspect exact privacy and query bounds without
|
|
92
|
+
gaining access to runtime data or storage.
|
|
93
|
+
- Existing consumers must recognise contract version `2026-08-11.v6` and
|
|
94
|
+
configure both `mcp:access` and `admin.feedback.read` before enabling the
|
|
95
|
+
feedback family.
|
|
96
|
+
- The feedback family must continue to consume the released
|
|
97
|
+
`@plasius/schema ^1.4.0` contract directly and fail validation when its
|
|
98
|
+
canonical schema identities or closed vocabularies diverge.
|
|
99
|
+
- Runtime ingestion, storage, authorisation, reporting, audit, and mutation
|
|
100
|
+
workflows remain outside this package.
|
package/docs/adrs/index.md
CHANGED
|
@@ -4,3 +4,4 @@
|
|
|
4
4
|
- [ADR 0002: Read-Only Pseudonymous Token Reporting Tools](./adr-0002-read-only-pseudonymous-token-reporting-tools.md)
|
|
5
5
|
- [ADR 0003: Exact-main OIDC package publishing](./adr-0003-exact-main-oidc-package-publishing.md)
|
|
6
6
|
- [ADR 0004: Owner Token adjustment MCP boundary](./adr-0004-owner-token-adjustment-mcp-boundary.md)
|
|
7
|
+
- [ADR 0005: Privacy-Safe Read-Only Feedback Contract](./adr-0005-privacy-safe-read-only-feedback-contract.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasius/mcp-admin-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Public-safe MCP admin discovery contract descriptors and response builders.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -98,11 +98,15 @@
|
|
|
98
98
|
}
|
|
99
99
|
],
|
|
100
100
|
"overrides": {
|
|
101
|
-
"brace-expansion": "^5.0.
|
|
101
|
+
"brace-expansion": "^5.0.9",
|
|
102
102
|
"esbuild": "^0.28.1",
|
|
103
|
-
"
|
|
103
|
+
"nanoid": "^3.3.17",
|
|
104
|
+
"postcss": "^8.5.26"
|
|
104
105
|
},
|
|
105
106
|
"engines": {
|
|
106
107
|
"node": ">=24"
|
|
108
|
+
},
|
|
109
|
+
"dependencies": {
|
|
110
|
+
"@plasius/schema": "^1.4.0"
|
|
107
111
|
}
|
|
108
112
|
}
|