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

Aperta Adatta ai principianti
#21,768 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
90/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
observability

Direzione di ricerca

Inizia da dashboard/site/src/agent/catalog.js ed esamina il comportamento di logging esistente di describeQuery, quindi estendi test/unit/agent-catalog-debug.test.js. Esegui il test unitario mirato per verificare l'evento di miss, i metadati, il comportamento disabilitato, l'evento di hit e l'esclusione del page ID. Il lavoro è completato quando una ricerca della pagina non riuscita produce l'evento di debug specificato senza modificare il flusso di controllo né esporre il page ID.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
JavaScript
Stelle
23
Fork
8
Merge medio
7h 18m
PR unite (30g)
426

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di githubnext/gh-cao

Tutte le issue di githubnext/gh-cao

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.