@plasius/mcp-admin-contracts 0.6.7 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +30 -1
- package/dist/index.cjs +223 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +221 -0
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0005-privacy-safe-read-only-feedback-contract.md +2 -2
- package/docs/adrs/adr-0009-opt-in-feedback-review-tools.md +48 -0
- package/docs/adrs/index.md +1 -0
- package/package.json +16 -15
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,36 @@
|
|
|
14
14
|
- **Security**
|
|
15
15
|
- (placeholder)
|
|
16
16
|
|
|
17
|
+
## [0.7.1] - 2026-11-22
|
|
18
|
+
|
|
19
|
+
- Refresh supported npm dependency and security tooling baselines; preserve runtime API contracts (weekly maintenance, 2026-11-22).
|
|
20
|
+
|
|
21
|
+
- **Added**
|
|
22
|
+
- (placeholder)
|
|
23
|
+
|
|
24
|
+
- **Changed**
|
|
25
|
+
- (placeholder)
|
|
26
|
+
|
|
27
|
+
- **Fixed**
|
|
28
|
+
- (placeholder)
|
|
29
|
+
|
|
30
|
+
- **Security**
|
|
31
|
+
- (placeholder)
|
|
32
|
+
|
|
33
|
+
## [0.7.0] - 2026-11-11
|
|
34
|
+
|
|
35
|
+
- **Added**
|
|
36
|
+
- Separate opt-in registry for two feedback review reads and three explicit transitions, with action-level gates and bounded actor-free metadata.
|
|
37
|
+
|
|
38
|
+
- **Changed**
|
|
39
|
+
- Require the published `@plasius/schema` 1.5.0 baseline for the workflow contract.
|
|
40
|
+
|
|
41
|
+
- **Fixed**
|
|
42
|
+
- (placeholder)
|
|
43
|
+
|
|
44
|
+
- **Security**
|
|
45
|
+
- (placeholder)
|
|
46
|
+
|
|
17
47
|
## [0.6.7] - 2026-10-18
|
|
18
48
|
|
|
19
49
|
- Refresh npm dependencies and the published Schema 1.4.7 contract baseline, retaining registry integrity and feedback-contract regression checks (weekly maintenance, 2026-10-18).
|
|
@@ -398,3 +428,5 @@
|
|
|
398
428
|
[0.6.5]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.6.5
|
|
399
429
|
[0.6.6]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.6.6
|
|
400
430
|
[0.6.7]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.6.7
|
|
431
|
+
[0.7.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.7.0
|
|
432
|
+
[0.7.1]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.7.1
|
package/README.md
CHANGED
|
@@ -236,7 +236,7 @@ asset, or direct Blob reference. Hosts must return the same not-found response
|
|
|
236
236
|
for absent, expired, and unavailable manifests to avoid adding a richer
|
|
237
237
|
existence oracle.
|
|
238
238
|
|
|
239
|
-
This package directly consumes the published `@plasius/schema ^1.
|
|
239
|
+
This package directly consumes the published `@plasius/schema ^1.5.1`
|
|
240
240
|
dependency. Packet and report descriptors bind their schema sources to its
|
|
241
241
|
feedback contract version `1.0.0`, and their vocabularies and schema identity
|
|
242
242
|
metadata are imported from that package at runtime. Entries are discriminated
|
|
@@ -279,6 +279,35 @@ const [action] = buildMcpDiscoveryResponse().actions;
|
|
|
279
279
|
console.log(i18n.t(action.descriptionKey));
|
|
280
280
|
```
|
|
281
281
|
|
|
282
|
+
### Feedback review workflow
|
|
283
|
+
|
|
284
|
+
`MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS` holds five opt-in descriptors for hosted MCP
|
|
285
|
+
and Admin discovery: `listFeedbackReviewQueue`, `getFeedbackReviewItem`,
|
|
286
|
+
`markFeedbackReviewed`, `processFeedback`, and `reopenFeedback`. The default
|
|
287
|
+
registry and plugin OAuth manifest do not include them. Both hosts must
|
|
288
|
+
explicitly integrate the descriptors and enforce every requirement in
|
|
289
|
+
`access`, plus their existing transport gates, before advertising or calling
|
|
290
|
+
a tool. Never treat `requiredCapability` alone as the authorization decision.
|
|
291
|
+
|
|
292
|
+
The two reads require `mcp:access`, `admin.feedback.read`, and both
|
|
293
|
+
`feedback.mcp.enabled` and `feedback.review-workflow.enabled`. The three
|
|
294
|
+
writes additionally require `admin.feedback.manage` as a protected scope
|
|
295
|
+
and capability, `feedback.processing.enabled`, and explicit user direction
|
|
296
|
+
for the named packet and transition. Read-only grants do not inherit manage
|
|
297
|
+
rights. Disable processing to omit and reject writes while preserving reads,
|
|
298
|
+
or disable the workflow flag to omit and reject all five tools.
|
|
299
|
+
|
|
300
|
+
The registry references the independently versioned workflow schemas in
|
|
301
|
+
`@plasius/schema` 1.5.0. Hosts must close the input and output objects, validate
|
|
302
|
+
the effective query and actor-free responses against those schemas, and
|
|
303
|
+
bind opaque cursors to their packet or filters. Commands carry an expected
|
|
304
|
+
revision and a random UUIDv4 key; the named tool supplies the action literal.
|
|
305
|
+
Only process requires an outcome. The same key is for an exact retry, never
|
|
306
|
+
another command or packet. Return mutation success only after durable audit,
|
|
307
|
+
and expose no audit linkage, provider metadata or actor information. See
|
|
308
|
+
[ADR-0009](./docs/adrs/adr-0009-opt-in-feedback-review-tools.md).
|
|
309
|
+
|
|
310
|
+
|
|
282
311
|
## Local Development
|
|
283
312
|
|
|
284
313
|
```bash
|
package/dist/index.cjs
CHANGED
|
@@ -42,16 +42,23 @@ __export(index_exports, {
|
|
|
42
42
|
MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS: () => MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS,
|
|
43
43
|
MCP_ADMIN_FEEDBACK_FLAG_ID: () => MCP_ADMIN_FEEDBACK_FLAG_ID,
|
|
44
44
|
MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED: () => MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED,
|
|
45
|
+
MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY: () => MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY,
|
|
46
|
+
MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE: () => MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE,
|
|
45
47
|
MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH: () => MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH,
|
|
46
48
|
MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE: () => MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE,
|
|
47
49
|
MCP_ADMIN_FEEDBACK_PACKET_TYPES: () => MCP_ADMIN_FEEDBACK_PACKET_TYPES,
|
|
48
50
|
MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS: () => MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS,
|
|
49
51
|
MCP_ADMIN_FEEDBACK_PRIVACY_METADATA: () => MCP_ADMIN_FEEDBACK_PRIVACY_METADATA,
|
|
52
|
+
MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID: () => MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID,
|
|
50
53
|
MCP_ADMIN_FEEDBACK_PROCESSORS: () => MCP_ADMIN_FEEDBACK_PROCESSORS,
|
|
51
54
|
MCP_ADMIN_FEEDBACK_READ_CAPABILITY: () => MCP_ADMIN_FEEDBACK_READ_CAPABILITY,
|
|
52
55
|
MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE: () => MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE,
|
|
53
56
|
MCP_ADMIN_FEEDBACK_REPORT_TYPES: () => MCP_ADMIN_FEEDBACK_REPORT_TYPES,
|
|
54
57
|
MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES: () => MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES,
|
|
58
|
+
MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS: () => MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS,
|
|
59
|
+
MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED: () => MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED,
|
|
60
|
+
MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION: () => MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION,
|
|
61
|
+
MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID: () => MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID,
|
|
55
62
|
MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS: () => MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS,
|
|
56
63
|
MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION: () => MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION,
|
|
57
64
|
MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE: () => MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE,
|
|
@@ -144,6 +151,11 @@ var mcpAdminContractsEnGbTranslations = {
|
|
|
144
151
|
"mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.",
|
|
145
152
|
"mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.",
|
|
146
153
|
"mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.",
|
|
154
|
+
"mcpAdminContracts.action.listFeedbackReviewQueue.description": "List a bounded actor-free review queue with effective filters and freshness. This does not change any item.",
|
|
155
|
+
"mcpAdminContracts.action.getFeedbackReviewItem.description": "Read the actor-free workflow state and bounded transition history for one identified packet.",
|
|
156
|
+
"mcpAdminContracts.action.markFeedbackReviewed.description": "Mark an unreviewed packet reviewed only on an explicit user request for that packet.",
|
|
157
|
+
"mcpAdminContracts.action.processFeedback.description": "Record a closed outcome for a reviewed packet only on an explicit user request naming the packet and outcome.",
|
|
158
|
+
"mcpAdminContracts.action.reopenFeedback.description": "Return a processed packet to reviewed, keeping history, only on an explicit user request to reopen that packet.",
|
|
147
159
|
"mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.",
|
|
148
160
|
"mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.",
|
|
149
161
|
"mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.",
|
|
@@ -215,6 +227,11 @@ var mcpAdminContractDescriptionKeys = {
|
|
|
215
227
|
actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description",
|
|
216
228
|
actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description",
|
|
217
229
|
actionGetFeedbackGameReconstruction: "mcpAdminContracts.action.getFeedbackGameReconstruction.description",
|
|
230
|
+
actionListFeedbackReviewQueue: "mcpAdminContracts.action.listFeedbackReviewQueue.description",
|
|
231
|
+
actionGetFeedbackReviewItem: "mcpAdminContracts.action.getFeedbackReviewItem.description",
|
|
232
|
+
actionMarkFeedbackReviewed: "mcpAdminContracts.action.markFeedbackReviewed.description",
|
|
233
|
+
actionProcessFeedback: "mcpAdminContracts.action.processFeedback.description",
|
|
234
|
+
actionReopenFeedback: "mcpAdminContracts.action.reopenFeedback.description",
|
|
218
235
|
actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description",
|
|
219
236
|
actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description",
|
|
220
237
|
actionRequestAsset: "mcpAdminContracts.action.requestAsset.description",
|
|
@@ -1923,6 +1940,205 @@ var MCP_ADMIN_FEEDBACK_ACTIONS = deepFreeze([
|
|
|
1923
1940
|
}
|
|
1924
1941
|
}
|
|
1925
1942
|
]);
|
|
1943
|
+
var MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID = "feedback.review-workflow.enabled";
|
|
1944
|
+
var MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID = "feedback.processing.enabled";
|
|
1945
|
+
var MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY = "admin.feedback.manage";
|
|
1946
|
+
var MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE = MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY;
|
|
1947
|
+
var MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED = false;
|
|
1948
|
+
var MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION = import_schema.FEEDBACK_REVIEW_WORKFLOW_CONTRACT_VERSION;
|
|
1949
|
+
var reviewReadFlags = [MCP_ADMIN_FEEDBACK_FLAG_ID, MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID];
|
|
1950
|
+
var reviewMutationAccess = {
|
|
1951
|
+
oauthScopes: [...MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES, MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE],
|
|
1952
|
+
capabilities: [MCP_ADMIN_FEEDBACK_READ_CAPABILITY, MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY],
|
|
1953
|
+
rolloutFlags: [...reviewReadFlags, MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID],
|
|
1954
|
+
mode: "mutation",
|
|
1955
|
+
identityResolution: "not-available"
|
|
1956
|
+
};
|
|
1957
|
+
var reviewKind = stringField("Feedback packet kind.", { enum: import_schema.FEEDBACK_REVIEW_KINDS, required: true });
|
|
1958
|
+
var reviewStatus = stringField("Workflow status.", { enum: import_schema.FEEDBACK_REVIEW_STATUSES });
|
|
1959
|
+
var reviewOutcome = stringField("Closed processing outcome.", { enum: import_schema.FEEDBACK_REVIEW_OUTCOMES, required: false });
|
|
1960
|
+
var reviewPacketId = canonicalUuidV4Field("Exact opaque feedback packet UUIDv4.");
|
|
1961
|
+
var reviewTimestamp = (description) => ({
|
|
1962
|
+
...canonicalDateTimeField(description),
|
|
1963
|
+
pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
1964
|
+
});
|
|
1965
|
+
var reviewCursor = stringField("Opaque, filter-bound cursor issued by the service.", {
|
|
1966
|
+
required: false,
|
|
1967
|
+
minLength: 1,
|
|
1968
|
+
maxLength: 4096,
|
|
1969
|
+
pattern: "^[A-Za-z0-9_-]+$"
|
|
1970
|
+
});
|
|
1971
|
+
var reviewRevision = integerField("Current persisted workflow revision.", { minimum: 1, maximum: Number.MAX_SAFE_INTEGER });
|
|
1972
|
+
var reviewFilters = {
|
|
1973
|
+
surfaceId: stringField("Closed bug surface.", { enum: import_schema.FEEDBACK_SURFACE_IDS, required: false }),
|
|
1974
|
+
issueType: stringField("Closed persisted bug category.", { enum: import_schema.FEEDBACK_PERSISTABLE_ISSUE_TYPES, required: false }),
|
|
1975
|
+
severity: integerField("Bug severity; bugs only.", { minimum: 1, maximum: 5, required: false }),
|
|
1976
|
+
satisfaction: integerField("Satisfaction rating; reviews only.", { minimum: 1, maximum: 5, required: false })
|
|
1977
|
+
};
|
|
1978
|
+
var reviewQueueFields = {
|
|
1979
|
+
kind: reviewKind,
|
|
1980
|
+
status: { ...reviewStatus, required: false },
|
|
1981
|
+
outcome: reviewOutcome,
|
|
1982
|
+
from: reviewTimestamp("Inclusive canonical UTC lower bound."),
|
|
1983
|
+
to: reviewTimestamp("Exclusive canonical UTC upper bound."),
|
|
1984
|
+
limit: integerField("Maximum page size.", { minimum: 1, maximum: 100 }),
|
|
1985
|
+
...reviewFilters,
|
|
1986
|
+
cursor: reviewCursor
|
|
1987
|
+
};
|
|
1988
|
+
var reviewStateField = feedbackClosedObjectField("Actor-free workflow state projection.", {
|
|
1989
|
+
packetId: reviewPacketId,
|
|
1990
|
+
kind: reviewKind,
|
|
1991
|
+
acceptedAt: reviewTimestamp("Original server acceptance time."),
|
|
1992
|
+
expiresAt: reviewTimestamp("Original packet expiry."),
|
|
1993
|
+
updatedAt: reviewTimestamp("Server time of the latest transition or initial acceptance."),
|
|
1994
|
+
revision: reviewRevision,
|
|
1995
|
+
status: reviewStatus,
|
|
1996
|
+
outcome: reviewOutcome,
|
|
1997
|
+
...reviewFilters
|
|
1998
|
+
});
|
|
1999
|
+
var reviewEventField = feedbackClosedObjectField("Actor-free immutable history event.", {
|
|
2000
|
+
packetId: reviewPacketId,
|
|
2001
|
+
kind: reviewKind,
|
|
2002
|
+
acceptedAt: reviewTimestamp("Original server acceptance time."),
|
|
2003
|
+
expiresAt: reviewTimestamp("Original packet expiry."),
|
|
2004
|
+
occurredAt: reviewTimestamp("Server time of the transition."),
|
|
2005
|
+
revision: { ...reviewRevision, minimum: 2 },
|
|
2006
|
+
action: stringField("Explicit transition action.", { enum: import_schema.FEEDBACK_REVIEW_ACTIONS }),
|
|
2007
|
+
fromStatus: reviewStatus,
|
|
2008
|
+
toStatus: reviewStatus,
|
|
2009
|
+
outcome: reviewOutcome
|
|
2010
|
+
});
|
|
2011
|
+
var reviewTarget = {
|
|
2012
|
+
kind: reviewKind,
|
|
2013
|
+
packetId: { ...reviewPacketId, required: true }
|
|
2014
|
+
};
|
|
2015
|
+
function reviewAction(name, descriptionKey, input, output, execution, schemaNames, transitionAction) {
|
|
2016
|
+
const readOnly = transitionAction === void 0;
|
|
2017
|
+
const access = readOnly ? { ...feedbackReadAccess, rolloutFlags: reviewReadFlags } : reviewMutationAccess;
|
|
2018
|
+
return {
|
|
2019
|
+
name,
|
|
2020
|
+
...translatedDescription(descriptionKey),
|
|
2021
|
+
domain: "feedback",
|
|
2022
|
+
availability: "near-future",
|
|
2023
|
+
access,
|
|
2024
|
+
oauthScopes: access.oauthScopes,
|
|
2025
|
+
requiredCapability: readOnly ? MCP_ADMIN_FEEDBACK_READ_CAPABILITY : MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY,
|
|
2026
|
+
schemaSource: {
|
|
2027
|
+
packageName: MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE,
|
|
2028
|
+
contractVersion: MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION,
|
|
2029
|
+
schemaNames
|
|
2030
|
+
},
|
|
2031
|
+
execution,
|
|
2032
|
+
input,
|
|
2033
|
+
output,
|
|
2034
|
+
inputAdditionalProperties: false,
|
|
2035
|
+
outputAdditionalProperties: false,
|
|
2036
|
+
annotations: {
|
|
2037
|
+
readOnlyHint: readOnly,
|
|
2038
|
+
destructiveHint: false,
|
|
2039
|
+
idempotentHint: true,
|
|
2040
|
+
openWorldHint: false
|
|
2041
|
+
},
|
|
2042
|
+
requiresExplicitUserIntent: !readOnly,
|
|
2043
|
+
...readOnly ? {} : { transitionAction }
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
var reviewMutation = (name, descriptionKey, transitionAction) => reviewAction(
|
|
2047
|
+
name,
|
|
2048
|
+
descriptionKey,
|
|
2049
|
+
{
|
|
2050
|
+
...reviewTarget,
|
|
2051
|
+
expectedRevision: { ...reviewRevision, maximum: Number.MAX_SAFE_INTEGER - 1, required: true },
|
|
2052
|
+
idempotencyKey: {
|
|
2053
|
+
...canonicalUuidV4Field("Random per-operation key; reuse only to retry the same packet and command."),
|
|
2054
|
+
required: true
|
|
2055
|
+
},
|
|
2056
|
+
...transitionAction === "process" ? { outcome: { ...reviewOutcome, required: true } } : {}
|
|
2057
|
+
},
|
|
2058
|
+
{ state: reviewStateField },
|
|
2059
|
+
{
|
|
2060
|
+
method: "POST",
|
|
2061
|
+
path: "/api/admin/feedback/review-items/{kind}/{packetId}/transitions",
|
|
2062
|
+
source: "near-future-route",
|
|
2063
|
+
notes: [
|
|
2064
|
+
"Execute only on explicit user direction for this packet and expected revision. Do not infer permission from the description or from read access.",
|
|
2065
|
+
"Bind exact retries to the same kind, packet, key and command. Treat key reuse or stale revisions as conflicts requiring a fresh user decision.",
|
|
2066
|
+
"Return success only after durable restricted audit and expose only the actor-free state projection."
|
|
2067
|
+
]
|
|
2068
|
+
},
|
|
2069
|
+
["FeedbackReviewTransitionRequestSchema", "FeedbackReviewWorkflowStateSchema"],
|
|
2070
|
+
transitionAction
|
|
2071
|
+
);
|
|
2072
|
+
var MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS = deepFreeze({
|
|
2073
|
+
listFeedbackReviewQueue: reviewAction(
|
|
2074
|
+
"listFeedbackReviewQueue",
|
|
2075
|
+
mcpAdminContractDescriptionKeys.actionListFeedbackReviewQueue,
|
|
2076
|
+
{
|
|
2077
|
+
...reviewQueueFields,
|
|
2078
|
+
kind: { ...reviewKind, required: false },
|
|
2079
|
+
from: { ...reviewQueueFields.from, required: false },
|
|
2080
|
+
to: { ...reviewQueueFields.to, required: false },
|
|
2081
|
+
limit: { ...reviewQueueFields.limit, required: false }
|
|
2082
|
+
},
|
|
2083
|
+
{
|
|
2084
|
+
items: arrayOfField("Bounded page of actor-free review states.", "FeedbackReviewWorkflowState", reviewStateField, { maxItems: 100 }),
|
|
2085
|
+
range: feedbackClosedObjectField("Effective canonical UTC range and filters.", reviewQueueFields),
|
|
2086
|
+
freshness: feedbackClosedObjectField("Backfill and freshness status for this partition.", {
|
|
2087
|
+
status: stringField("Whether projection data is incomplete, fresh or stale.", { enum: ["incomplete", "fresh", "stale"] }),
|
|
2088
|
+
checkedAt: reviewTimestamp("Server time of this freshness check."),
|
|
2089
|
+
backfillComplete: booleanField("Whether retained history is fully projected."),
|
|
2090
|
+
lastSuccessfulAt: { ...reviewTimestamp("Most recent successful projection."), required: false }
|
|
2091
|
+
}),
|
|
2092
|
+
nextCursor: reviewCursor
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
method: "GET",
|
|
2096
|
+
path: "/api/admin/feedback/review-queue",
|
|
2097
|
+
source: "near-future-route",
|
|
2098
|
+
notes: [
|
|
2099
|
+
"Default to unreviewed bugs in the previous 30 days; if either explicit timestamp is supplied require both. Validate the effective query against the canonical schema.",
|
|
2100
|
+
"Require a sealed cursor bound to the effective filters. Surface incomplete and stale data explicitly; reads never transition items."
|
|
2101
|
+
]
|
|
2102
|
+
},
|
|
2103
|
+
["FeedbackReviewQueueQuerySchema", "FeedbackReviewQueuePageSchema"]
|
|
2104
|
+
),
|
|
2105
|
+
getFeedbackReviewItem: reviewAction(
|
|
2106
|
+
"getFeedbackReviewItem",
|
|
2107
|
+
mcpAdminContractDescriptionKeys.actionGetFeedbackReviewItem,
|
|
2108
|
+
{ ...reviewTarget, historyCursor: reviewCursor },
|
|
2109
|
+
{
|
|
2110
|
+
state: reviewStateField,
|
|
2111
|
+
history: feedbackClosedObjectField("Bounded actor-free transition history for this packet.", {
|
|
2112
|
+
packetId: reviewPacketId,
|
|
2113
|
+
kind: reviewKind,
|
|
2114
|
+
events: arrayOfField("Ascending immutable history events.", "FeedbackReviewTransitionEvent", reviewEventField, { maxItems: 25 }),
|
|
2115
|
+
nextCursor: reviewCursor
|
|
2116
|
+
})
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
method: "GET",
|
|
2120
|
+
path: "/api/admin/feedback/review-items/{kind}/{packetId}",
|
|
2121
|
+
source: "near-future-route",
|
|
2122
|
+
notes: ["Use an opaque packet UUID and a sealed history cursor bound to the packet. Never return audit or storage metadata."]
|
|
2123
|
+
},
|
|
2124
|
+
["FeedbackReviewItemDetailSchema"]
|
|
2125
|
+
),
|
|
2126
|
+
markFeedbackReviewed: reviewMutation(
|
|
2127
|
+
"markFeedbackReviewed",
|
|
2128
|
+
mcpAdminContractDescriptionKeys.actionMarkFeedbackReviewed,
|
|
2129
|
+
"mark-reviewed"
|
|
2130
|
+
),
|
|
2131
|
+
processFeedback: reviewMutation(
|
|
2132
|
+
"processFeedback",
|
|
2133
|
+
mcpAdminContractDescriptionKeys.actionProcessFeedback,
|
|
2134
|
+
"process"
|
|
2135
|
+
),
|
|
2136
|
+
reopenFeedback: reviewMutation(
|
|
2137
|
+
"reopenFeedback",
|
|
2138
|
+
mcpAdminContractDescriptionKeys.actionReopenFeedback,
|
|
2139
|
+
"reopen"
|
|
2140
|
+
)
|
|
2141
|
+
});
|
|
1926
2142
|
var MCP_ADMIN_ACTIONS = [
|
|
1927
2143
|
{
|
|
1928
2144
|
name: "listFeatureFlags",
|
|
@@ -4011,16 +4227,23 @@ function normalizeOptionalString(value) {
|
|
|
4011
4227
|
MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS,
|
|
4012
4228
|
MCP_ADMIN_FEEDBACK_FLAG_ID,
|
|
4013
4229
|
MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED,
|
|
4230
|
+
MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY,
|
|
4231
|
+
MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE,
|
|
4014
4232
|
MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH,
|
|
4015
4233
|
MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE,
|
|
4016
4234
|
MCP_ADMIN_FEEDBACK_PACKET_TYPES,
|
|
4017
4235
|
MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS,
|
|
4018
4236
|
MCP_ADMIN_FEEDBACK_PRIVACY_METADATA,
|
|
4237
|
+
MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID,
|
|
4019
4238
|
MCP_ADMIN_FEEDBACK_PROCESSORS,
|
|
4020
4239
|
MCP_ADMIN_FEEDBACK_READ_CAPABILITY,
|
|
4021
4240
|
MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE,
|
|
4022
4241
|
MCP_ADMIN_FEEDBACK_REPORT_TYPES,
|
|
4023
4242
|
MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES,
|
|
4243
|
+
MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS,
|
|
4244
|
+
MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED,
|
|
4245
|
+
MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION,
|
|
4246
|
+
MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID,
|
|
4024
4247
|
MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS,
|
|
4025
4248
|
MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION,
|
|
4026
4249
|
MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE,
|