Add interactive Web UI (Flask + SSE workbench) with full design doc; fix rollback PURPOSE.md bug; add test-split evaluation with paired bootstrap; fix RunManager reentrant-lock deadlock

This commit is contained in:
DistributedApps.AI
2026-08-31 11:10:33 -04:00
parent 9c70a406b3
commit 4bb6ce97c8
21 changed files with 1721 additions and 29 deletions
+5 -6
View File
@@ -11,17 +11,16 @@ wikiskill/
│ ├── __init__.py
│ ├── llm.py # LLM provider abstraction: MockLLM, OpenAICompatLLM
│ ├── workspace.py # Three-layer workspace: raw/, wiki/, skills/ + patch engine
│ ├── skills.py # Skills layer: SKILL.md + PURPOSE.md, snapshot/rollback
│ ├── prompts.py # System prompts (Inference / Wiki Maintainer / Skill Proposer)
│ ├── agents.py # InferenceAgent, WikiMaintainer, SkillProposer (ReAct)
│ ├── orchestrator.py # Algorithm 1: evolution loop, gating, rollback, logging
│ ├── orchestrator.py # Algorithm 1: loop, gating, rollback, test evaluation (§4)
│ ├── metrics.py # accuracy metric + paired bootstrap significance test
│ ├── datasets.py # Task/Trace dataclasses + demo dataset
│ ├── webapp/ # Web UI (see ui_design.md): runner + Flask api + SPA
│ ├── demo.py # End-to-end demo run with mock LLM
│ └── cli.py # `wikiskill evolve` / `wikiskill demo` entry point
└── tests/
├── test_workspace.py
├── test_gating.py
└── test_e2e.py
│ └── cli.py # `wikiskill demo | evolve | serve` entry point
└── tests/ # unit, end-to-end, and UI tests
```
## 2. Core data model (`datasets.py`)