[self-care:debug-logging] Add describePage not-found debug logging to agent catalog

オープン 初心者向け
#21,768 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
90/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript
領域
observability

調査の方向性

dashboard/site/src/agent/catalog.js から始め、既存の describeQuery のログ動作を確認してから、test/unit/agent-catalog-debug.test.js を拡張します。対象を絞ったユニットテストを実行し、miss イベント、メタデータ、無効時の動作、hit イベント、およびページ ID の除外を検証します。ページ検索が失敗した場合に、制御フローを変更したりページ ID を公開したりせずに、指定されたデバッグイベントが発生raperceptionたら作業完了です。

索引モデルが issue の本文から書いたものです。

説明

agentic-workflows self-care self-care:dashboard-debug-logging

Adds one debug log to dashboard/site/src/agent/catalog.js (first file in the rotation with a diagnostic gap), so a failed page lookup can be told apart from a failed query lookup.

Diagnostic gap: describeQuery logged not-found, but describePage returned null silently. Agent and WebMCP page lookups that failed gave no signal.

Category: catalog, the existing module logger. Enable it with ?debug=catalog (or ?debug=1, ?debug=*). The new event is describe-page.

**Logged meta(redacted) { event: 'describe-page', status: 'not-found', idLength, pageCount }. All values are scalars derived from values already computed in the function (the id length and the size of the memoized index). The page ID text is not logged. The call only fires on the miss path.

Boundaries: No control-flow change, no I/O, timers, or events, and no new collection scans. When logging is disabled, the cost is one disabled no-op call on a miss.

Validation: Extended test/unit/agent-catalog-debug.test.js to cover disabled behavior, the emitted metadata, no log on a hit, and exclusion of the page ID. Focused tests, typecheck, lint and the full dashboard unit suite (425 files) all pass.

Control Plane

[!NOTE]
This was originally intended as a pull request, but the git push operation failed.

Original error: ERR_VALIDATION: pushSignedCommits: refusing unsigned push for branch 'self-care/debug-logging-agent-catalog-5093d2908d159371': GitHub did not verify the initial commit signature; refusing to publish branch 'self-care/debug-logging-agent-catalog-5093d2908d159371'

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

Create the pull request manually
# Download the artifact from the workflow run
gh run download '46185343482' -n agent -D '/tmp/agent-46185343482'

# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-46185343482/aw-githubnext-gh-cao-self-care-debug-logging-agent-catalog.bundle'
temp_ref='refs/bundles/create-pr-self-care-debug-logging-agent-catalog-5093d2908d159371-ac0b38f4'
target_ref='refs/heads/self-care/debug-logging-agent-catalog-5093d2908d159371'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
  bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
  echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
  exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'self-care/debug-logging-agent-catalog-5093d2908d159371'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"

# Push the branch to the target remote
git push 'origin' 'self-care/debug-logging-agent-catalog-5093d2908d159371'

# Create the pull request
gh pr create --title '[self-care:debug-logging] Add describePage not-found debug logging to agent catalog' --base 'main' --head 'self-care/debug-logging-agent-catalog-5093d2908d159371' --repo 'githubnext/gh-cao'

Generated by SelfCare / Dashboard Debug Logging · copilot · routed: sonnet55 high · ~92 AIC · ⌖ ~2 AIC · ⊞ 9.3K · history

  • expires on Dec 5, 2026, 8:29 PM UTC
主要言語
JavaScript
スター
23
フォーク
8
平均マージ
7時間 18分
マージ済み PR(30日)
426

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

githubnext/gh-cao のほかの issue

githubnext/gh-cao の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。