Skip to content

feat(notifications): recap markdown/section formatter for the maintainer digest body #2240

Description

@JSONbored

Render a RecapReport (from the builder bounty) into a formatted digest body, mirroring formatWeeklyValueReportMarkdown at src/services/weekly-value-report.ts:207 — a header plus titled sections. Pure string function, no delivery. Every emitted line MUST pass through the sanitizeReportText redaction pattern at src/services/weekly-value-report.ts:411 so no reward/trust/score/path leaks into a digest.

Deliverables

  • formatMaintainerRecap(report): string in src/services/maintainer-recap.ts producing a titled-section body (Summary + section headers)
  • Route every line through sanitizeReportText (extract-and-share it from weekly-value-report.ts, or import the shared redaction primitives from src/signals/redaction.ts:39-45)
  • Unit test: assert section headers render, empty sections show a fallback line, and a report containing a reward/path term is fully redacted (both regex arms)

References

  • src/services/weekly-value-report.ts:207
  • src/services/weekly-value-report.ts:411
  • src/signals/redaction.ts:39

Part of #1963.


size: S · 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.gittensor:priorityMaintainer-selected Gittensor priority — scores a 1.5x multiplier.

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions