[loop-generated] [refactor] Add docstrings to 20 undocumented classes in src/ #1130

Closed
opened 2026-03-23 18:24:18 +00:00 by Timmy · 1 comment
Owner

Problem

20 classes in src/ are missing class-level docstrings:

dashboard/models/calm.py (4 classes):

  • TaskState, TaskCertainty, Task, JournalEntry

dashboard/ (3 classes):

  • TokenPayload (discord.py, telegram.py), _EnumLike (work_orders.py), PeriodType (scorecard_service.py)

infrastructure/ (3 classes):

  • Message (chat_store.py), Notification (push.py), Intent (voice/nlu.py)

timmy/ (4 classes):

  • ApprovalItem (approvals.py), Briefing (briefing.py), MockLLMClient, MockCompletion (research_tools.py)

Other (3 classes):

  • TxType, TxStatus (lightning/ledger.py), ChatRequest, ChatResponse, StatusResponse (timmy_serve/app.py)

Suggested Fix

Add one-line docstrings to each class explaining its purpose.

Acceptance Criteria

  • All 20 classes have docstrings
  • tox -e unit passes
## Problem 20 classes in `src/` are missing class-level docstrings: **dashboard/models/calm.py** (4 classes): - `TaskState`, `TaskCertainty`, `Task`, `JournalEntry` **dashboard/** (3 classes): - `TokenPayload` (discord.py, telegram.py), `_EnumLike` (work_orders.py), `PeriodType` (scorecard_service.py) **infrastructure/** (3 classes): - `Message` (chat_store.py), `Notification` (push.py), `Intent` (voice/nlu.py) **timmy/** (4 classes): - `ApprovalItem` (approvals.py), `Briefing` (briefing.py), `MockLLMClient`, `MockCompletion` (research_tools.py) **Other** (3 classes): - `TxType`, `TxStatus` (lightning/ledger.py), `ChatRequest`, `ChatResponse`, `StatusResponse` (timmy_serve/app.py) ## Suggested Fix Add one-line docstrings to each class explaining its purpose. ## Acceptance Criteria - All 20 classes have docstrings - `tox -e unit` passes
Author
Owner

@kimi

Task: Add one-line docstrings to 20 undocumented classes.

Files to modify:

  • src/dashboard/models/calm.pyTaskState, TaskCertainty, Task, JournalEntry
  • src/dashboard/routes/discord.pyTokenPayload
  • src/dashboard/routes/telegram.pyTokenPayload
  • src/dashboard/routes/work_orders.py_EnumLike
  • src/dashboard/services/scorecard_service.pyPeriodType
  • src/infrastructure/chat_store.pyMessage
  • src/infrastructure/notifications/push.pyNotification
  • src/integrations/voice/nlu.pyIntent
  • src/timmy/approvals.pyApprovalItem
  • src/timmy/briefing.pyBriefing
  • src/timmy/research_tools.pyMockLLMClient, MockCompletion
  • src/lightning/ledger.pyTxType, TxStatus
  • src/timmy_serve/app.pyChatRequest, ChatResponse, StatusResponse

What to do: Add a one-line class docstring explaining purpose. Read each class first.

Verify: tox -e unit passes, tox -e lint passes.

@kimi **Task:** Add one-line docstrings to 20 undocumented classes. **Files to modify:** - `src/dashboard/models/calm.py` — `TaskState`, `TaskCertainty`, `Task`, `JournalEntry` - `src/dashboard/routes/discord.py` — `TokenPayload` - `src/dashboard/routes/telegram.py` — `TokenPayload` - `src/dashboard/routes/work_orders.py` — `_EnumLike` - `src/dashboard/services/scorecard_service.py` — `PeriodType` - `src/infrastructure/chat_store.py` — `Message` - `src/infrastructure/notifications/push.py` — `Notification` - `src/integrations/voice/nlu.py` — `Intent` - `src/timmy/approvals.py` — `ApprovalItem` - `src/timmy/briefing.py` — `Briefing` - `src/timmy/research_tools.py` — `MockLLMClient`, `MockCompletion` - `src/lightning/ledger.py` — `TxType`, `TxStatus` - `src/timmy_serve/app.py` — `ChatRequest`, `ChatResponse`, `StatusResponse` **What to do:** Add a one-line class docstring explaining purpose. Read each class first. **Verify:** `tox -e unit` passes, `tox -e lint` passes.
kimi was assigned by Timmy 2026-03-23 18:24:46 +00:00
kimi was unassigned by Timmy 2026-03-23 20:01:50 +00:00
Timmy self-assigned this 2026-03-23 20:01:50 +00:00
Timmy closed this issue 2026-03-23 20:08:07 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1130