Skip to content

observability: sweepRepoBacklogConvergence drops requestedBy, so its audit events can't be attributed to schedule vs API #9570

Description

@JSONbored

Found while triaging #9553's unused-symbol list.

sweepRepoBacklogConvergence (src/queue/processors.ts) accepts requestedBy: "schedule" | "api" | "test" and never reads it. Every sibling sweep — fanOutRepoDocRefreshSweepJobs, the re-gate sweep, the evidence sweep — stamps it into recordAuditEvent's metadata.

Both agent.sweep.backlog_convergence audit events in this function omit it, so those records cannot be attributed to a scheduled run vs a manual API trigger. Observability gap only — no gating logic reads it.

Worth recording because the mechanical response to the compiler warning is to rename the parameter _requestedBy, which cements the gap permanently instead of closing it. The intended behaviour is plainly the sibling sweeps'.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.orbGittensory Orb related - maintainer self-hosting analytics.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions