Files
timmy-home/training-data/dpo-pairs/session_20260324_000205_9fa1b5.json
Alexander Whitestone 0d64d8e559 initial: sovereign home — morrowind agent, skills, training-data, research, specs, notes, operational docs
Tracked: morrowind agent (py/cfg), skills/, training-data/, research/,
notes/, specs/, test-results/, metrics/, heartbeat/, briefings/,
memories/, skins/, hooks/, decisions.md, OPERATIONS.md, SOUL.md

Excluded: screenshots, PNGs, binaries, sessions, databases, secrets,
audio cache, timmy-config/ and timmy-telemetry/ (separate repos)
2026-03-27 13:05:57 -04:00

7 lines
2.1 KiB
JSON

[
{
"prompt": "Fix mypy typecheck errors in a Python project. The repo is at /tmp/timmy-agents/hermes/repo on branch fix/mypy-typecheck-errors.\n\nThere are 227 mypy errors. Fix them with these specific changes:\n\n1. ADD mypy configuration to pyproject.toml. Find the [tool.mypy] section (if missing, create one). Add:\n```\n[tool.mypy]\nmypy_path = \"src\"\nignore_missing_imports = true\n```\nThis fixes the 119 \"Module config has no attribute settings\" errors and the 12 import-untyped errors.\n\n2. Add type stub packages to tox.ini typecheck deps. In tox.ini, find the [testenv:typecheck] section. Add these deps:\n types-PyYAML\n types-requests\n\n3. Fix src/infrastructure/visitor.py _visitors attribute error (11 errors). The class VisitorRegistry uses _visitors but mypy can't see it. Look at how _visitors is being set \u2014 it's likely a class variable set in __init_subclass__ or similar metaclass magic. Add a proper class-level type annotation like:\n _visitors: ClassVar[dict[str, Any]] = {}\n or whatever the appropriate type is.\n\n4. Fix src/infrastructure/sovereignty_metrics.py index errors (8 errors). Lines ~210-219 where \"Value of type object is not indexable\". Add proper type annotations to the variables being indexed.\n\n5. Fix src/timmy/thinking/_seeds_mixin.py line 40 \u2014 _SeedsMixin has no attribute get_recent_thoughts. Add a Protocol or abstract method stub.\n\n6. Fix src/dashboard/routes/tools.py namedtuple name-match errors (3 errors). The first arg to namedtuple() should match the variable name with underscore prefix. Either rename the variables or use typing.NamedTuple instead.\n\n7. Fix other attr-defined errors: cascade.py str|None to str arg-type (6 errors), voice_tts.py None attribute (2 errors), etc. Use appropriate type narrowing (assert/if checks) or Optional types.\n\nAfter making changes, run: cd /tmp/timmy-agents/hermes/repo && tox -e typecheck 2>&1 | tail -20\nto verify the error count decreased significantly.\n\nDO NOT commit anything. Just make the code changes. Target getting error",
"chosen": "",
"session": "session_20260324_000205_9fa1b5.json"
}
]