@powerhousedao/switchboard 6.2.3-dev.56 → 6.2.3-dev.58

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/Auth.md CHANGED
@@ -360,8 +360,10 @@ for verification — but `url` still applies to this switchboard's own identity
360
360
  Either way the credential's EIP-712 proof is re-verified and expiry and
361
361
  delegation binding are re-checked, so a locally stored credential is held to the
362
362
  same standard as a remote one. Successful checks are cached per identity for
363
- `CREDENTIAL_VERIFICATION_CACHE_TTL_MS` (60s default) in both modes, so
364
- revocation still lags by up to that TTL.
363
+ `CREDENTIAL_VERIFICATION_CACHE_TTL_MS`. The default depends on the source: `0`
364
+ (no cache) for `self`, where the check is an in-process read-model query, and
365
+ 60s for `remote`, where revocation lags by up to that TTL per replica. Setting
366
+ the env var overrides either default.
365
367
 
366
368
  `self` requires a loaded package that provides the `renown-read-model` subgraph
367
369
  (`@powerhousedao/renown-package`). Startup fails if none does, rather than booting
@@ -375,6 +377,52 @@ the generic `GraphQLManager.executeSubgraphQuery` plus an injectable
375
377
  sets `source: "self"` without injecting a verifier is refused at boot rather
376
378
  than silently verified against a remote Renown.
377
379
 
380
+ #### Revoking a Credential From a Package
381
+
382
+ A package that revokes credentials (for example a `revokeCredential` mutation)
383
+ should evict the host's cached check as soon as the revocation is stored, so the
384
+ credential is refused on the next request instead of after the cache TTL.
385
+ Every subgraph receives the invalidator as `SubgraphArgs.credentials`, and
386
+ `BaseSubgraph` exposes it as `this.credentials`:
387
+
388
+ ```ts
389
+ class RenownAuthSubgraph extends BaseSubgraph {
390
+ resolvers = {
391
+ Mutation: {
392
+ revokeCredential: async (_: unknown, { id }: { id: string }) => {
393
+ const vc = await this.store.revoke(id); // persist first
394
+ // Evicts cached checks for this identity and re-verifies its open
395
+ // WebSocket connections. chainId and appDid narrow the eviction;
396
+ // pass only the address to drop every app key of that address.
397
+ this.credentials.invalidateCredential(
398
+ vc.address,
399
+ vc.chainId,
400
+ vc.appDid, // the did:key the credential delegates to
401
+ );
402
+ return true;
403
+ },
404
+ },
405
+ };
406
+ }
407
+ ```
408
+
409
+ The call is synchronous, returns the number of evicted entries and is a no-op on
410
+ a host without authentication. It is local to the process: other replicas keep
411
+ their cache until its TTL lapses, which is why `source: "self"` defaults to no
412
+ cache.
413
+
414
+ Open WebSocket connections are authenticated once, at connect. Their credentials
415
+ are re-verified every `WS_CREDENTIAL_RECHECK_INTERVAL_MS` (default `60000`; `0`
416
+ turns the periodic sweep off) and immediately for the identity named by an
417
+ `invalidateCredential` call. A connection whose credential no longer verifies is
418
+ closed with code `4403` and reason `credential-revoked`. A re-check that fails
419
+ because the verifier is unreachable keeps the connection open. SSE subscription
420
+ streams are not re-checked.
421
+
422
+ A package built against an older `reactor-api` sees `this.credentials` as
423
+ `undefined`; call it as `this.credentials?.invalidateCredential(...)` when the
424
+ package must support such hosts.
425
+
378
426
  #### The Switchboard's Own Identity
379
427
 
380
428
  Separately from verifying incoming credentials, a switchboard has its own
package/CHANGELOG.md CHANGED
@@ -1,3 +1,62 @@
1
+ ## 6.2.3-dev.58 (2026-10-14)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **registry:** declare reactor-workflow — undeclared dep broke test shard 1 ([37660d7b04](https://github.com/powerhouse-inc/powerhouse/commit/37660d7b04))
6
+ - **release:** the desktop build filter belongs in scripts.build — the prior commit amended test:ci ([2cbbff231c](https://github.com/powerhouse-inc/powerhouse/commit/2cbbff231c))
7
+ - **release:** build @powerhousedao/desktop — dev.57 shipped an empty tarball; guard the filter list ([9103896840](https://github.com/powerhouse-inc/powerhouse/commit/9103896840))
8
+ - **clint:** powerhousedao packages are regular deps, not peers — npm ERESOLVE on scaffold install ([6de7d0d7c6](https://github.com/powerhouse-inc/powerhouse/commit/6de7d0d7c6))
9
+
10
+ ### ❤️ Thank You
11
+
12
+ - Claude Fable 5
13
+ - Wouter Kampmann
14
+
15
+ ## 6.2.3-dev.57 (2026-10-14)
16
+
17
+ ### 🚀 Features
18
+
19
+ - **reactor-api:** fresher credential checks (no cache for in-process Renown, package invalidation, WebSocket re-verification) ([#3239](https://github.com/powerhouse-inc/powerhouse/pull/3239))
20
+ - **desktop:** @powerhousedao/desktop — the desktop runner productized (P6.1-P6.5) ([58ce9a0d4a](https://github.com/powerhouse-inc/powerhouse/commit/58ce9a0d4a))
21
+ - **clint,ph-cli:** one static-serve implementation — connect-server deleted (P5.7) ([c35b0341c6](https://github.com/powerhouse-inc/powerhouse/commit/c35b0341c6))
22
+ - **clint:** mastra-runner — remote reactor attach + OpenAI-compatible agent API (P5.5, P5.6) ([532cb2128f](https://github.com/powerhouse-inc/powerhouse/commit/532cb2128f))
23
+ - **clint:** port the ph-clint framework — core, integrations, TUI, testing + full suite (P5.2, P5.3) ([d1ace0688e](https://github.com/powerhouse-inc/powerhouse/commit/d1ace0688e))
24
+ - **clint:** scaffold @powerhousedao/clint — the ph-clint port lands here (P5.1) ([c7a3435588](https://github.com/powerhouse-inc/powerhouse/commit/c7a3435588))
25
+ - **host-core,ph-cli:** structural multi-reactor — backends drive the routing client (P4.1-P4.3) ([e7c71ca7ac](https://github.com/powerhouse-inc/powerhouse/commit/e7c71ca7ac))
26
+ - **host-core:** shared zod host schemas; bridges adopt strict reactor/profile (P2.1, P2.2) ([1bd9db67be](https://github.com/powerhouse-inc/powerhouse/commit/1bd9db67be))
27
+ - **vetra:** lint project subgraphs for types core or the package's models own ([6855c0ed91](https://github.com/powerhouse-inc/powerhouse/commit/6855c0ed91))
28
+ - **host-core:** generic run records and pid-probe (P1.3, P1.5, P1.6 foundation) ([9a6affd46e](https://github.com/powerhouse-inc/powerhouse/commit/9a6affd46e))
29
+ - **host-core:** move drive projection primitives; add projectDrivesIntoConnect (P1.4) ([6cd1d8ee6e](https://github.com/powerhouse-inc/powerhouse/commit/6cd1d8ee6e))
30
+ - **host-core:** scaffold @powerhousedao/host-core (P1.1) ([c7d9b415b5](https://github.com/powerhouse-inc/powerhouse/commit/c7d9b415b5))
31
+ - **reactor-api:** report background failures through a reportError option ([724796bcc1](https://github.com/powerhouse-inc/powerhouse/commit/724796bcc1))
32
+ - **switchboard:** configure the inspection throttle from PH_INSPECTION_* env ([4eefc0b8aa](https://github.com/powerhouse-inc/powerhouse/commit/4eefc0b8aa))
33
+ - **switchboard:** let INSPECTION_ENABLED=false keep /graphql/inspection unmounted ([aefe93b1e1](https://github.com/powerhouse-inc/powerhouse/commit/aefe93b1e1))
34
+ - **ph-cli:** uniform-runners flag helper and host.js loader (P0.1, P0.2, P0.12) ([4c04163009](https://github.com/powerhouse-inc/powerhouse/commit/4c04163009))
35
+ - ⚠️ **reactor-workflow:** lease warm piece children per request from one pool sized around the reactor's threads ([9ff3834198](https://github.com/powerhouse-inc/powerhouse/commit/9ff3834198))
36
+
37
+ ### 🩹 Fixes
38
+
39
+ - **ci:** read duration-watch timings from check runs and warn on API errors ([239683c51d](https://github.com/powerhouse-inc/powerhouse/commit/239683c51d))
40
+ - **switchboard:** new attachment tests use the granted-download helper ([0206932b66](https://github.com/powerhouse-inc/powerhouse/commit/0206932b66))
41
+ - **switchboard:** answer 404 for an attachment whose blob is missing, instead of crashing ([#3110](https://github.com/powerhouse-inc/powerhouse/pull/3110))
42
+ - **tsconfig:** dedup host-core from root references now that ph-cli references it (P1.2) ([988cbc574c](https://github.com/powerhouse-inc/powerhouse/commit/988cbc574c))
43
+ - **switchboard:** report the remaining logged-only background failures ([f20ff3eb16](https://github.com/powerhouse-inc/powerhouse/commit/f20ff3eb16))
44
+ - **switchboard:** fail boot on an invalid PH_INSPECTION_CALLS_PER_MINUTE ([4326aa0c1e](https://github.com/powerhouse-inc/powerhouse/commit/4326aa0c1e))
45
+ - **reactor-workflow:** journal a fire as it queues, re-read a workflow changed during a wait, and sweep up orphaned PENDING runs ([37e9c7917b](https://github.com/powerhouse-inc/powerhouse/commit/37e9c7917b))
46
+
47
+ ### ⚠️ Breaking Changes
48
+
49
+ - **reactor-workflow:** lease warm piece children per request from one pool sized around the reactor's threads ([9ff3834198](https://github.com/powerhouse-inc/powerhouse/commit/9ff3834198))
50
+
51
+ ### ❤️ Thank You
52
+
53
+ - acaldas
54
+ - Benjamin Jordan
55
+ - Claude Fable 5
56
+ - Claude Opus 5.5
57
+ - Frank @froid1911
58
+ - Wouter Kampmann
59
+
1
60
  ## 6.2.3-dev.56 (2026-10-14)
2
61
 
3
62
  ### 🚀 Features
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/switchboard",
3
3
  "type": "module",
4
- "version": "6.2.3-dev.56",
4
+ "version": "6.2.3-dev.58",
5
5
  "main": "dist/index.mjs",
6
6
  "exports": {
7
7
  ".": {
@@ -41,7 +41,7 @@
41
41
  "@openfeature/core": "1.9.1",
42
42
  "@openfeature/env-var-provider": "0.3.1",
43
43
  "@openfeature/server-sdk": "1.19.0",
44
- "@powerhousedao/config": "6.2.3-dev.56",
44
+ "@powerhousedao/config": "6.2.3-dev.58",
45
45
  "@opentelemetry/api": "^1.9.0",
46
46
  "@opentelemetry/exporter-metrics-otlp-http": "^0.218.0",
47
47
  "@opentelemetry/exporter-trace-otlp-http": "^0.218.0",
@@ -55,22 +55,22 @@
55
55
  "@opentelemetry/sdk-node": "^0.218.0",
56
56
  "@opentelemetry/sdk-trace-base": "^2.7.1",
57
57
  "@opentelemetry/semantic-conventions": "^1.41.1",
58
- "@powerhousedao/opentelemetry-instrumentation-reactor": "6.2.3-dev.56",
59
- "@powerhousedao/reactor": "6.2.3-dev.56",
60
- "@powerhousedao/shared": "6.2.3-dev.56",
61
- "@powerhousedao/vetra": "6.2.3-dev.56",
62
- "@powerhousedao/reactor-api": "6.2.3-dev.56",
63
- "@powerhousedao/reactor-attachments": "6.2.3-dev.56",
64
- "@powerhousedao/reactor-drive": "6.2.3-dev.56",
65
- "@powerhousedao/reactor-group": "6.2.3-dev.56",
66
- "@powerhousedao/reactor-privacy": "6.2.3-dev.56",
67
- "@powerhousedao/reactor-workflow": "6.2.3-dev.56",
68
- "@powerhousedao/workflow": "6.2.3-dev.56",
58
+ "@powerhousedao/opentelemetry-instrumentation-reactor": "6.2.3-dev.58",
59
+ "@powerhousedao/reactor": "6.2.3-dev.58",
60
+ "@powerhousedao/shared": "6.2.3-dev.58",
61
+ "@powerhousedao/vetra": "6.2.3-dev.58",
62
+ "@powerhousedao/reactor-api": "6.2.3-dev.58",
63
+ "@powerhousedao/reactor-attachments": "6.2.3-dev.58",
64
+ "@powerhousedao/reactor-drive": "6.2.3-dev.58",
65
+ "@powerhousedao/reactor-group": "6.2.3-dev.58",
66
+ "@powerhousedao/reactor-privacy": "6.2.3-dev.58",
67
+ "@powerhousedao/reactor-workflow": "6.2.3-dev.58",
68
+ "@powerhousedao/workflow": "6.2.3-dev.58",
69
69
  "@pyroscope/nodejs": "^0.4.5",
70
- "@renown/sdk": "6.2.3-dev.56",
70
+ "@renown/sdk": "6.2.3-dev.58",
71
71
  "@sentry/node": "^10.53.1",
72
72
  "@sentry/opentelemetry": "^10.53.1",
73
- "document-model": "6.2.3-dev.56",
73
+ "document-model": "6.2.3-dev.58",
74
74
  "dotenv": "^16.4.7",
75
75
  "express": "^4.22.1",
76
76
  "graphql": "^16",