II.
Page JSON
Structured · livepage:docs-harness-features-backlog-gaps-observability-gap-obs-005
GAP-OBS-005: Context Introspection json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "page:docs-harness-features-backlog-gaps-observability-gap-obs-005",
"_kind": "Page",
"_file": "wiki/docs/harness-features-backlog/gaps/observability/gap-obs-005.md",
"_cluster": "wiki",
"attributes": {
"nodeKind": "Page",
"sourcePath": "docs/harness-features-backlog/gaps/observability/GAP-OBS-005.md",
"sourceKind": "repo-docs",
"title": "GAP-OBS-005: Context Introspection",
"displayName": "GAP-OBS-005: Context Introspection",
"slug": "docs/harness-features-backlog/gaps/observability/gap-obs-005",
"articlePath": "wiki/docs/harness-features-backlog/gaps/observability/GAP-OBS-005.md",
"article": "\n# GAP-OBS-005: Context Introspection\n\n| Field | Value |\n|-------|-------|\n| Category | observability |\n| Priority | Medium |\n| Effort | M |\n| Status | Partial |\n\n## Description\nProvide real-time visibility into token usage, context window utilization, and cost during active orchestration, not just post-hoc analysis.\n\n## Current State\ntokens:stats provides post-hoc analysis. compression:status shows compression layer state. No real-time visibility during active orchestration.\n\n## Target State\nReal-time token usage per iteration. Context window utilization percentage. Cost accumulation visible in embedded SDK dashboard. Threshold-based warnings when approaching limits.\n\n## Dependencies\n- [GAP-SESSION-004](../session-management/GAP-SESSION-004.md) -- session-level cost tracking\n\n## Key Files\n| Component | Path |\n|-----------|------|\n| Token stats | `packages/sdk/src/cli/` |\n| Compression module | `packages/sdk/src/compression/` |\n| Embedded SDK dashboard (new) | `packages/sdk/src/dashboard/` |\n\n## Recommendation\nPhase 3 implementation. Accumulate token counts from task results in real-time. Display in embedded SDK dashboard with threshold warnings.\n",
"documents": []
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "page:docs-harness-features-backlog",
"to": "page:docs-harness-features-backlog-gaps-observability-gap-obs-005",
"kind": "contains_page"
}
]
}