Skip to content

feat(commands): @gittensory configuration command — post effective resolved review config as a public-safe summary #2168

Description

@JSONbored

Wire @gittensory configuration: post the effective RESOLVED per-repo config (the yml>DB>defaults result of resolveRepositorySettings, src/settings/repository-settings.ts:34) as a public-safe comment so maintainers see what's actually in force without the dashboard. There is already a pure summarizeCommandAuthorizationPolicy (src/settings/command-authorization.ts:131) to reuse; this bounty adds a broader PURE config-summarizer (autonomy levels, execution mode, slop gate min score, command-authorization overview) and the handler that posts it. Must NOT leak secrets/wallets/hotkeys/trust-scores/reward-values (house rule) — everything goes through sanitizePublicComment and the summarizer omits any sensitive field.

Deliverables

  • Add a PURE summarizeEffectiveConfig(settings) that renders a safe subset: autonomy per action class, agent execution mode (paused/dry_run/live), slopGateMinScore, blacklistLabel, and the command-authorization overview via the existing summarizeCommandAuthorizationPolicy
  • Add maybeProcessConfigurationCommand: classify → evaluateCommandAuthorization("configuration") → resolveRepositorySettings → post the summary via sanitizePublicComment + gittensoryFooter
  • Explicitly EXCLUDE any secret/reward/trust field from the summary and add a test asserting none of a set of banned keys appear in the output
  • Reuse the shared preamble/classifier + the gate-override audit/product-usage recording shape
  • Unit tests: summarizer renders each section (empty + populated), banned-field exclusion, authorized→posted, unauthorized→denied, skips (both branches)

References

  • src/settings/repository-settings.ts:34 (resolveRepositorySettings)
  • src/settings/command-authorization.ts:131 (summarizeCommandAuthorizationPolicy)
  • src/settings/agent-execution.ts:16 (AgentActionMode)
  • src/github/footer.ts (gittensoryFooter)
  • #1960

Part of #1960.


size: M · held for later release (gittensor:feature once activated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions