@ductape/mcp 0.1.51 → 0.1.52
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/dist/index.js
CHANGED
|
@@ -2259,10 +2259,12 @@ DUCTAPE FRONTEND PRODUCT ANALYTICS AND SESSION ACTIVITY
|
|
|
2259
2259
|
Frontend analytics and backend session attribution are complementary; neither replaces the other.
|
|
2260
2260
|
|
|
2261
2261
|
BACKEND OPERATION ATTRIBUTION
|
|
2262
|
-
|
|
2263
|
-
notification, storage, graph, vector, action, and other runtime operation
|
|
2264
|
-
This attributes server work to the authenticated actor.
|
|
2265
|
-
|
|
2262
|
+
Immediate user-initiated backend work should pass the original full Ductape session token to every
|
|
2263
|
+
database, Event, Feature, notification, storage, graph, vector, action, and other runtime operation
|
|
2264
|
+
that accepts session. This attributes immediate server work to the authenticated actor.
|
|
2265
|
+
For delayed/durable work, do not persist raw JWTs indefinitely. Use system context, or an approved
|
|
2266
|
+
delegated actor design with immutable non-secret actor metadata. Actor metadata supports audit and
|
|
2267
|
+
correlation; it is not authorization. Intentional system/background work should remain sessionless.
|
|
2266
2268
|
|
|
2267
2269
|
FRONTEND PRODUCT ANALYTICS
|
|
2268
2270
|
Use the browser Analytics service for anonymous visits, authenticated page views, navigation,
|
package/package.json
CHANGED
|
@@ -41,6 +41,7 @@ const safetyChecks = [
|
|
|
41
41
|
['request actor context documented', /AsyncLocalStorage[\s\S]*ActorContext/],
|
|
42
42
|
['raw token logging prohibited', /Never log,[\s\S]*raw session\/refresh token/],
|
|
43
43
|
['durable token expiry semantics documented', /does not expose an immutable[\s\S]*expired-token attribution contract/],
|
|
44
|
+
['frontend durable work prohibits persisted JWTs', /For delayed\/durable work, do not persist raw JWTs indefinitely/],
|
|
44
45
|
['resilience decision matrix present', /DECISION MATRIX[\s\S]*Database atomicity/],
|
|
45
46
|
['payload session-awareness metadata present', /session_awareness:[\s\S]*accepts_session/],
|
|
46
47
|
['execute blocks administrative mutations', /Administrative operation.*is blocked in ductape_execute/],
|
package/src/index.ts
CHANGED
|
@@ -2344,10 +2344,12 @@ DUCTAPE FRONTEND PRODUCT ANALYTICS AND SESSION ACTIVITY
|
|
|
2344
2344
|
Frontend analytics and backend session attribution are complementary; neither replaces the other.
|
|
2345
2345
|
|
|
2346
2346
|
BACKEND OPERATION ATTRIBUTION
|
|
2347
|
-
|
|
2348
|
-
notification, storage, graph, vector, action, and other runtime operation
|
|
2349
|
-
This attributes server work to the authenticated actor.
|
|
2350
|
-
|
|
2347
|
+
Immediate user-initiated backend work should pass the original full Ductape session token to every
|
|
2348
|
+
database, Event, Feature, notification, storage, graph, vector, action, and other runtime operation
|
|
2349
|
+
that accepts session. This attributes immediate server work to the authenticated actor.
|
|
2350
|
+
For delayed/durable work, do not persist raw JWTs indefinitely. Use system context, or an approved
|
|
2351
|
+
delegated actor design with immutable non-secret actor metadata. Actor metadata supports audit and
|
|
2352
|
+
correlation; it is not authorization. Intentional system/background work should remain sessionless.
|
|
2351
2353
|
|
|
2352
2354
|
FRONTEND PRODUCT ANALYTICS
|
|
2353
2355
|
Use the browser Analytics service for anonymous visits, authenticated page views, navigation,
|