feat(work-context): sync the surface:telegram token on mctl-telegram-preview #1550
All Vouch review confidence checks passed
Residual risk 0.36 = Change Risk (0.58) × (1 − Review Confidence (0.39)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.58 · 169 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 57% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.307
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.058
Real PR Conversation Timeline
1 comments
"Review active on #1550"
general
weight: 0.35
claude[bot]
Follow-up to #1540/#1542 for the owner's live session on mctlhq/mctl-telegram#443.
Why: the owner sent
/mctl link <code>to Saved Messages and got the plain "Unknown command" help. The listener that serves those messages runs on mctl-telegram-preview:AGENT_ENABLED=true, logscommunication agent HTTP surface enabled, and is polled byagent-worker-preview;The adapter enabled on production in #1542 therefore never sees the command. On preview,
Router.Workis nil, which produces exactly that reply.This PR (step 1): a
workContextblock on preview, withenabled: true,tenant: admins, and the sameplatform/mctl-api/surface-tokens/telegram-token(onesurface:telegramprincipal). This renders thelabs-mctl-telegram-preview-base-service-work-contextExternalSecret andMCTL_WORK_ITEM_TENANT=admins.featureEnabledstaysfalse; step 2 flips it once the Secret has synced. That is the same order as production, because the server refuses to start with the feature on and no token, and the strategy isRecreate.Impact: preview restarts once, a brief pause for the agent soak. No behaviour change.
🤖 Generated with Claude Code
https://claude.ai/code/session_012kWiYf1BX6wcXB2kc8x15U