Add marketplace feed telemetry#96194
Conversation
1985e1c to
18b7747
Compare
|
Codex review: needs maintainer review before merge. Reviewed June 28, 2026, 6:19 PM ET / 22:19 UTC. Summary PR surface: Source +108, Tests +168. Total +276 across 3 files. Reproducibility: not applicable. This PR adds observability behavior rather than fixing a current-main bug. The PR body provides after-change live output for the offline entries timeline mark, and focused tests cover hosted attributes and redaction boundaries. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land after maintainer acceptance of the exact telemetry attribute contract, or trim sensitive or high-cardinality attributes before merge. Do we have a high-confidence way to reproduce the issue? Not applicable; this PR adds observability behavior rather than fixing a current-main bug. The PR body provides after-change live output for the offline entries timeline mark, and focused tests cover hosted attributes and redaction boundaries. Is this the best way to solve the issue? Yes, the existing opt-in diagnostics timeline writer is the narrowest maintainable seam for this telemetry. The remaining question is maintainer acceptance of the exact attribute contract, not a concrete implementation defect. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a54206f0f5d1. Label changesLabel justifications:
Evidence reviewedPR surface: Source +108, Tests +168. Total +276 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
bedf630 to
5bcb4a4
Compare
fd69293 to
1289a25
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
e301341 to
be9ce48
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Maintainer acceptance for the telemetry event contract on current head I accept the narrowed diagnostics timeline field set for this staged marketplace telemetry PR. The contract is limited to bounded operational fields for This acceptance depends on the current redaction boundary: diagnostics must not emit raw feed URLs, URL hosts, profile names, feed ids, payload checksums, URL credentials, query strings, fragments, or override token values. Broader or higher-cardinality feed telemetry should come through a follow-up with explicit maintainer review. |
Stack position
This is PR9 in the hosted marketplace feed implementation stack. The lower stack is now merged through #96158, so this PR is restacked directly on
mainand contains only the telemetry slice.openclaw plugins marketplace refresh.openclaw plugins marketplace entriesand offline snapshot listing.What this PR does
openclaw plugins marketplace refresh.openclaw plugins marketplace entries.Validation
Prepared head:
be9ce48da0rebased onto currentmainafter #96158 merged. The live PR diff is limited to three CLI telemetry files.pnpm exec oxfmt --check src/cli/plugins-cli.runtime.ts src/cli/plugins-cli.marketplace-refresh.test.ts src/cli/plugins-cli.marketplace-entries.test.tspnpm exec oxlint --deny-warnings src/cli/plugins-cli.runtime.ts src/cli/plugins-cli.marketplace-refresh.test.ts src/cli/plugins-cli.marketplace-entries.test.ts$env:CI='1'; node scripts/test-projects.mjs src/cli/plugins-cli.marketplace-refresh.test.ts src/cli/plugins-cli.marketplace-entries.test.tsgit diff --checkcodex review --base origin/mainFocused CLI tests and lint passed for the touched files. Codex review on
be9ce48da0reported no actionable regressions and noted that the event attributes are bounded and avoid raw URLs/checksums while preserving existing command behavior.Earlier
pnpm tsgo:corewas attempted from this worktree but failed in unrelatedsrc/acp/**imports from@agentclientprotocol/sdk; the PR diff does not touch ACP or dependencies.Real Behavior Proof
Behavior tested locally: offline marketplace entries command emits a diagnostics timeline event when diagnostics are enabled, without fetching the hosted feed.
Real environment: Windows checkout
C:\src\openclaw-prflow\.worktrees\pr-96194, isolatedOPENCLAW_HOME=%TEMP%\openclaw-pr96194-proof, source runtime vianode --import tsx.Command shape:
Observed timeline event:
{ "schemaVersion": "openclaw.diagnostics.v1", "type": "mark", "name": "plugins.marketplace.feed.entries", "phase": "plugin-marketplace", "attributes": { "command": "entries", "entries": 74, "source": "bundled-fallback", "offline": true, "fallbackCategory": "offline" } }What was not tested: this proof uses offline bundled fallback mode, not a fresh hosted request. Fresh hosted refresh and entries behavior is covered by the predecessor command PRs; this PR's focused tests cover hosted telemetry attributes and redaction boundaries.