Skip to content

feat: implement P0 greenfield subsystems (telemetry backpressure, RES… - #851

Merged
Mikey-222 merged 3 commits into
Hel-Phone:mainfrom
ArtaXerxes-oss:feat/p0-telemetry-contract-middleware-auth
Oct 21, 2026
Merged

Mikey-222 merged 3 commits into
Hel-Phone:mainfrom
ArtaXerxes-oss:feat/p0-telemetry-contract-middleware-auth

Conversation

@ArtaXerxes-oss

Copy link
Copy Markdown
Contributor

…T↔GraphQL contract parity, middleware CSP ordering, passkey/WS session binding)

- Telemetry: ringBuffer priority ring with 70/90/50 hysteresis, network profiles, bounded flush, offline outbox, OTLP JSON exporter, worker flow-control protocol, WASM binary parser with batch + pooling, benchmark harness showing 1.8x speedup + allocation reduction
- REST↔GraphQL: domain store with query counting + batch loaders; GraphQL SDL + resolvers with DataLoader per request; REST dispatch routes (zod validation, CRUD, 409/422 envelopes); event/sync routers; NamespacedCache with cross-surface invalidation; apiDrift config in package.json; swagger.json
- Middleware CSP/CORS/RateLimit/HTTP2-Push: csp.ts builds policy with nonce + COOP/COEP headers; cors.ts enforces strict origins + wildcard; rateLimiter.ts has 5 tiers (general/prover/telemetry/auth/data); http2Push.ts safely filters push candidates
- Passkey/WS session binding: session-store.js with bounded queue + reason coding; passkey-auth.js with error taxonomy; wsCluster.js with congestion pause/low-res; client passkey.ts; secureStorage.ts; sessionKey.ts; keyBackup.ts; wsClient.ts; swChannel.ts; syncManager.ts extended with graphQL union handling; tests api-contract.test.js + sql-cache.test.js (18 tests pass)
- Added TelemetryLab UI/route /lab/telemetry with flood controls, conservation badges, drop ledger
- Preserved COOP/COEP literals in server/index.ts and vite.config.ts
- Contract drift script scripts/detect-api-drift.js with hash, version pins, entity/field/enum/operation checks
- Telemetry bench: 20k frames, WASM 1.8x speedup, zero per-frame allocation at steady state
@drips-wave

drips-wave Bot commented Oct 21, 2026

Copy link
Copy Markdown

@ArtaXerxes-oss Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

ArtaXerxes-oss and others added 2 commits October 21, 2026 17:14
…ontract-middleware-auth

# Conflicts:
#	package-lock.json
#	package.json
#	scripts/detect-api-drift.js
#	server/graphql/resolvers.ts
#	server/graphql/schema.ts
#	server/graphql/server.ts
#	server/lib/sqlCache.ts
#	server/middleware/cors.ts
#	server/middleware/csp.ts
#	server/middleware/http2Push.ts
#	server/middleware/rateLimiter.ts
#	server/routes/dispatch.ts
#	server/routes/sync.ts
#	server/telemetry.js
#	server/telemetryBootstrap.js
#	src/components/TelemetryLab.jsx
#	src/lib/networkEstimator.ts
#	src/lib/ringBuffer.ts
#	src/lib/syncManager.ts
#	src/lib/telemetry.ts
#	src/main.tsx
#	src/utils/binaryParser.js
#	src/utils/binaryParserWasm.js
#	src/utils/telemetryBench.js
#	src/utils/wasmLoader.js
#	src/wasm/telemetry_reader.wasm
#	src/wasm/telemetry_reader.wasm.sha256
#	src/wasm/telemetry_reader/Cargo.toml
#	src/wasm/telemetry_reader/build.sh
#	src/wasm/telemetry_reader/src/lib.rs
#	src/workers/telemetryWorker.js
#	swagger.json
@Mikey-222
Mikey-222 merged commit 4943e85 into Hel-Phone:main Oct 21, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment