|
|
f6e6e83a6c
|
feat: thinking engine test suite (117 tests) + sovereign stack manifest (#1314, #986)
## Thinking Engine Tests (#1314)
- New: tests/timmy/test_thinking_engine.py — 117 tests across 21 test classes
- Covers ThinkingEngine core + all 4 mixin classes:
- engine.py: init, idle detection, store/retrieve, pruning, dedup, continuity,
context assembly, novel thought generation, think_once, journal, broadcast
- _distillation.py: should_distill, build_distill_prompt, parse_facts_response,
filter_and_store_facts, maybe_distill
- _issue_filing.py: references_real_files, get_recent_thoughts_for_issues,
build_issue_classify_prompt, parse_issue_items, file_single_issue
- _seeds_mixin.py: pick_seed_type, gather_seed, all seed sources, check_workspace
- _snapshot.py: system snapshot, memory context, update_memory
- _db.py: get_conn, row_to_thought, Thought dataclass
- seeds.py: constants, prompt template, think tag regex
- Targets 80%+ coverage of engine.py's 430 lines
## Stack Manifest (#986)
- New: docs/stack_manifest.json — 8 categories, 40+ tools with pinned versions
- LLM Inference, Coding Agents, Image Gen, Music/Voice, Orchestration,
Nostr+Lightning+Bitcoin, Memory/KG, Streaming/Content
- Schema: {tool, version, role, install_command, license, status}
- New: src/timmy/stack_manifest.py — query_stack() runtime tool
- Category and tool filtering (case-insensitive, partial match)
- Manifest caching, graceful error handling
- New: tests/timmy/test_stack_manifest.py — 24 tests
- Registered query_stack in tool registry + tool catalog
- Total: 141 new tests, all passing
|
2026-03-24 03:20:34 +00:00 |
|