Skip to content

Investigate + design config-as-code for ops / sweep_watchdog / pr_reconciliation #4106

Description

@JSONbored

Part of #4092. Depends on the core resolver issue (config-as-code resolver) only if per-repo scoping turns out to apply.

Problem — this is a design question, not a known gap

GITTENSORY_REVIEW_OPS (src/review/ops-wire.ts), GITTENSORY_SWEEP_WATCHDOG, and GITTENSORY_PR_RECONCILIATION gate BACKGROUND/OBSERVABILITY jobs (anomaly scans over the whole review-outcome ledger, stale-sweep liveness checks, open-PR reconciliation) — not per-PR review behavior tied to one repo's PR. Unlike every other sub-issue in this epic, it's genuinely unclear whether "per-repo config-as-code" is the right shape here at all, or whether these remain closer to instance-level "bare necessity" toggles the mandate explicitly carves out.

Requirements

  • For each of the three: determine whether ANY meaningful per-repo behavior exists today (e.g. does the ops anomaly scan already iterate per-repo internally? does sweep-watchdog/PR-reconciliation operate per-registered-repo?) — if so, a per-repo config opt-out ("exclude repo X from this scan") may be a real, useful feature, not just theoretical compliance with the mandate
  • If genuinely global/instance-level with no meaningful per-repo axis: document that finding explicitly and propose these stay env-var-gated as legitimate "bare necessity" instance configuration, closing this issue with that written conclusion rather than forcing an artificial per-repo config that adds complexity with no real use case
  • Either way, write up the reasoning so the epic has a definitive answer instead of leaving these three ambiguous

Deliverables

Expected outcome

A definitive, reasoned answer for whether/how config-as-code applies to background observability jobs, rather than leaving it unaddressed.

Effort

S (investigation) to M (implementation, only if warranted).

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions