一键导入
telemetry-steward
Lightweight append-only telemetry layer for tracking session health, agent performance, and decision quality across FlowDeck operations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Lightweight append-only telemetry layer for tracking session health, agent performance, and decision quality across FlowDeck operations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | telemetry-steward |
| description | Lightweight append-only telemetry layer for tracking session health, agent performance, and decision quality across FlowDeck operations. |
| origin | FlowDeck |
FlowDeck generates a steady stream of operational signals — context compactions, agent handoffs, recorded decisions, readiness scores. Telemetry Steward captures these as structured, append-only events so operators can observe patterns, diagnose drift, and validate improvement over time.
Telemetry answers three questions:
It is not a control plane. It does not trigger actions. It exists purely for observability, retrospection, and baseline-setting.
All events are written to .codebase/TELEMETRY.jsonl.
Every event has a top-level type field. All other fields are type-specific.
context_actionRecorded when the context steward prunes, compacts, or checkpoints.
{
"type": "context_action",
"action": "prune",
"tokens_before": 12400,
"tokens_after": 8200,
"timestamp": "2026-06-11T09:23:17.000Z"
}
| Field | Type | Description |
|---|---|---|
action | string | "prune", "compact", or "checkpoint" |
tokens_before | integer | Context size in tokens before the action |
tokens_after | integer | Context size in tokens after the action |
timestamp | ISO 8601 | When the action occurred |
agent_routingRecorded when the orchestrator dispatches work to an agent.
{
"type": "agent_routing",
"agent": "backend-coder",
"category": "implementation",
"task_type": "bugfix",
"duration_ms": 14520,
"success": true,
"timestamp": "2026-06-11T09:45:02.000Z"
}
| Field | Type | Description |
|---|---|---|
agent | string | Agent that executed the task |
category | string | High-level bucket: "implementation", "research", "review", "debug", "docs" |
task_type | string | Specific task class: "feature", "bugfix", "refactor", "plan", "audit" |
duration_ms | integer | Wall-clock time from dispatch to completion |
success | boolean | Did the agent report success? |
timestamp | ISO 8601 | When routing completed |
decision_recordedRecorded when a decision is persisted via decision-trace.
{
"type": "decision_recorded",
"decision_id": "auth-refactor-2026-06-11",
"risk_level": "medium",
"confidence": 0.85,
"has_evidence": true,
"timestamp": "2026-06-11T10:12:44.000Z"
}
| Field | Type | Description |
|---|---|---|
decision_id | string | Identifier from decision-trace |
risk_level | string | "low", "medium", or "high" |
confidence | number | 0.0 to 1.0, if available |
has_evidence | boolean | Were evidence entries provided? |
timestamp | ISO 8601 | When the decision was recorded |
readiness_checkRecorded after a deploy-check or pre-flight verification run.
{
"type": "readiness_check",
"status": "pass",
"score": 0.94,
"failing_checks": ["dependency-audit"],
"timestamp": "2026-06-11T11:00:00.000Z"
}
| Field | Type | Description |
|---|---|---|
status | string | "pass", "warn", or "fail" |
score | number | 0.0 to 1.0 aggregate readiness score |
failing_checks | string[] | List of check names that did not pass |
timestamp | ISO 8601 | When the check completed |
.codebase/TELEMETRY.jsonl..codebase/TELEMETRY-YYYY-MM.jsonl and start a fresh TELEMETRY.jsonl.A dashboard agent or external tool reads .codebase/TELEMETRY.jsonl directly and renders:
Before recording a new failure, the failure-replay engine queries telemetry for correlated signals:
agent_routing success rate drop before this failure?decision_recorded entries with low confidence and no evidence?readiness_check scores degrade in the days leading up to the incident?Agents query their own historical telemetry to set expectations:
backend-coder bugfix duration is 8 minutes. This task is taking 25 minutes — something is wrong."Weekly context savings
To compute tokens reclaimed by pruning in the last 7 days:
type == "context_action" and action == "prune".tokens_before - tokens_after.jq -c 'select(.type == "context_action" and .action == "prune") | (.tokens_before - .tokens_after)' .codebase/TELEMETRY.jsonl | awk '{s+=$1} END {print s}'
TELEMETRY.jsonl more often than monthly makes it impossible to detect multi-week patterns like gradual agent slowdown or declining decision quality.| Component | Relationship |
|---|---|
context-steward | Emits context_action events during prune/compact/checkpoint cycles |
decision-trace | Emits decision_recorded events for every recorded decision |
failure-replay-engine | Queries telemetry for pre-failure signal correlation |
| dashboard | Reads TELEMETRY.jsonl to render operational charts |
TELEMETRY.jsonl is missing on first write, create it. Do not fail the operation because telemetry is unavailable.null over omitting a field. A missing confidence is ambiguous (not recorded vs. not applicable); confidence: null is clear.Optimize token usage and context window discipline. Reduce costs and improve response quality through smart context management.
Unified context lifecycle for FlowDeck sessions — ingest, filter, prune, protect, summarize, and persist with telemetry.
Predict affected files, modules, APIs, tests, and DB paths before changes. Returns an impact map for human review.
Map architecture, conventions, and file structure into `.codebase/`. Use when onboarding or before deep feature work.
Plan differently when the agent has low certainty — ask for clarification or narrow scope instead of pretending full understanding.
Protect critical context from pruning during compaction. Preserve active plans, safety files, pending operations, and user intent anchors.