feat(bundle): default session telemetry to feedback-gated sharing

This commit is contained in:
creatixchu
2026-08-25 12:00:24 +08:00
parent 0c5aa8110f
commit 106e5ce0bc
11 changed files with 81 additions and 15 deletions
+8 -6
View File
@@ -138,11 +138,13 @@
- id: session-projection
name: '@deepseek-ai/dsh-session-projection'
# Session telemetry is mounted but disabled by default. DSH_TELEMETRY_MODE
# explicitly opts into FULL or FEEDBACK_ONLY reporting; uploading mirrors
# session-log records onto OTLP/HTTP logs with no session-telemetry/record redaction
# rule, so exports are the raw captured copy. The deployment stance, env
# seams, and follow-ups are pinned in the default-off Agent Note.
# Session telemetry defaults to feedback-gated sharing: FEEDBACK_ONLY
# uploads the canonical session-log prefix only after the user records
# /feedback. DSH_TELEMETRY_MODE overrides to FULL or DISABLED; uploading
# mirrors session-log records onto OTLP/HTTP logs with no session-telemetry/record
# redaction rule, so exports are the raw captured copy. The deployment
# stance, env seams, and follow-ups are pinned in the feedback-gated-default
# Agent Note.
# DSH_TELEMETRY_OTLP_URL overrides the production endpoint. A non-empty
# DSH_TELEMETRY_DISABLED — any value, including '0'/'false' — opts the
# process out (the launchers patch the row disabled; config cannot disable
@@ -160,7 +162,7 @@
- id: session-telemetry-otel
name: '@deepseek-ai/dsh-session-telemetry-otel'
config:
mode: !!js process.env.DSH_TELEMETRY_MODE || 'DISABLED'
mode: !!js process.env.DSH_TELEMETRY_MODE || 'FEEDBACK_ONLY'
shutdownTimeoutMillis: 3000
exporter:
url: !!js process.env.DSH_TELEMETRY_OTLP_URL ?? 'https://harness-telemetry.deepseeksvc.com/v1/logs'
+1 -1
View File
@@ -33,7 +33,7 @@ describe('dsh-base bundle', () => {
expect(rows.length).toBeGreaterThan(50)
expect(rows.some(row => row.id === 'agent-loop')).toBe(true)
expect(rows.find(row => row.id === 'session-telemetry-otel')?.config?.['mode']).toEqual({
__jsExpr: "process.env.DSH_TELEMETRY_MODE || 'DISABLED'",
__jsExpr: "process.env.DSH_TELEMETRY_MODE || 'FEEDBACK_ONLY'",
})
expect(rows.find(row => row.id === 'hmr')).toMatchObject({
disabled: true,