Repository navigation
Add privacy-preserving work queue runtime debug logging - #66943
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🎯 Great work on the work queue debug logging! Privacy filtering, test coverage and instrumentation look solid — this looks ready for review.
|
|
@copilot resolve the merge conflicts in this pull request |
There was a problem hiding this comment.
🟡 Changes recommended
Error inspection in the new logger can throw and alter queue recovery behavior when debugging is enabled.
1 open finding
What changed in this PR
Adds opt-in, privacy-preserving diagnostics across the work queue runtime.
Changes:
- Adds namespace filtering and sanitized failure logging.
- Instruments queue publication, scheduling, delivery, reconciliation, and MCP paths.
- Deploys and documents the logger with focused tests.
| File | Description |
|---|---|
docs/src/content/docs/reference/work-queue.md |
Documents debug activation and privacy guarantees. |
actions/setup/setup.sh |
Deploys the logger module. |
actions/setup/js/work_queue_store.cjs |
Logs storage and publication activity. |
actions/setup/js/work_queue_scheduler.cjs |
Logs scheduling decisions. |
actions/setup/js/work_queue_replay.cjs |
Logs replay and append activity. |
actions/setup/js/work_queue_reconciler.cjs |
Logs reconciliation and recovery. |
actions/setup/js/work_queue_provisioning_checks.cjs |
Validates isolated logger deployment. |
actions/setup/js/work_queue_native.cjs |
Logs native API operations. |
actions/setup/js/work_queue_memory.cjs |
Logs memory preparation. |
actions/setup/js/work_queue_mcp_server.cjs |
Logs MCP snapshot and intent activity. |
actions/setup/js/work_queue_logging.test.cjs |
Tests filtering and privacy behavior. |
actions/setup/js/work_queue_logging.cjs |
Implements the work queue logger. |
actions/setup/js/work_queue_intents.cjs |
Logs intent parsing and staging. |
actions/setup/js/work_queue_effect_client.cjs |
Logs effect mutations. |
actions/setup/js/work_queue_dispatch.cjs |
Logs dispatch and launch processing. |
actions/setup/js/work_queue_delivery.cjs |
Logs delivery verification. |
actions/setup/js/setup_sh_file_lists.test.cjs |
Checks logger deployment inclusion. |
actions/setup/js/finish_work_queue_claim.cjs |
Logs claim completion and verification. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| function failure(event, error) { | ||
| if (!debugEnabled(namespace)) return; | ||
| // Do not use debugError: API errors may contain request bodies and tokens. | ||
| const status = error && typeof error === "object" ? Object.getOwnPropertyDescriptor(error, "status")?.value : undefined; |
There was a problem hiding this comment.
Fixed in d1910f1: descriptor inspection is guarded, so throwing/revoked proxies fall back to failed=true without propagating errors or logging their contents. Added regression tests for both proxy cases and disabled-debug behavior; all 898 queue/deployment tests passed.
…ogging # Conflicts: # docs/src/content/docs/reference/work-queue.md Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Resolved and pushed in ef2a829 by merging latest |
|
@copilot address the following outstanding work in one pass:
Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI. Sous-chef head: ef2a829
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Pushed d1910f1. |
|
🎉 This pull request is included in a new release. Release: |

Work queue failures can be difficult to diagnose when publication retries, uncertain launches, and verification recovery paths provide little diagnostic context. This adds extensive opt-in runtime logging without exposing Work payloads or credentials.
Approach
DEBUG=work-queue:*, component selection, wildcard exclusions, and GitHub Actions runner-debug support.Validation
make fmt-cjs && make lint-cjsnpm run typecheckinactions/setup/jsmake agent-report-progressDEBUG=work-queue:*enabled: 895 tests, including privacy filtering, idempotent recovery, ambiguous-write recovery, and isolated runtime deployment checks.