|
1 | 1 | # AutoSearch Handoff |
2 | 2 |
|
3 | | -## main |
4 | | - |
5 | | -**Last session**: 2026-03-27 (evening) — Capabilities System + AVO Evolution + MCP Server [SESSION-ID: 1526-reykjavik-quiet] |
6 | | - |
7 | | -**What was done**: Built AI-native capabilities registry (43 caps), orchestrator (OpenRouter ReAct loop), AVO evolution framework (arXiv:2603.24517), MCP server (6 tools). Fixed 20 bugs (6 infra + 14 audit). Researched 18 open-source search projects. AVO evolved search score 0.50→0.81, cumulative 321 URLs across 15 generations. |
| 3 | +## feat/v2-skills-architecture |
8 | 4 |
|
9 | | -**Current state**: 194 tests pass. 43/43 capability self-tests pass. 12 commits on main. Evolved prompt at `sources/evolved-prompt.txt` (auto-loaded). MCP registered at `~/.mcp.json`. |
| 5 | +**Last session**: 2026-03-28 — v2 Skills Architecture: F001-F008 complete, PR ready |
10 | 6 |
|
11 | | -**Key files**: `capabilities/` (43 files), `orchestrator.py`, `avo.py`, `autosearch-mcp/` (3 files), `docs/2026-03-27-deep-research-patterns.md` |
| 7 | +### Completed |
12 | 8 |
|
13 | | -**Usage**: `python3 cli.py --orchestrated "find repos" --max-steps 15` | `python3 avo.py "find 200 repos" --generations 10` | MCP: restart Claude Code, say "搜一下 XX" |
| 9 | +- F001: PROTOCOL.md + skill-spec.md + config.json + directory structure |
| 10 | +- F002: 5 platform skills (github, web-ddgs, reddit, hackernews, arxiv) |
| 11 | +- F003: 4 strategy skills (query-expand, score, deduplicate, synthesize) |
| 12 | +- F004: judge.py (157 lines, 12 tests passing) — the only code |
| 13 | +- F005: 5 AVO self-evolution skills (reflect, evolve, diagnose, create-skill, stuck) |
| 14 | +- F006: End-to-end validated — 43 results, score 0.853, full worklog cycle |
| 15 | +- F007: `/autosearch` Claude Code skill entry point |
| 16 | +- F008: CLAUDE.md v2 rules, CHANGELOG, plan moved to completed |
14 | 17 |
|
15 | | -**Next**: MCP e2e verify (restart session), AVO 20+ gen, add OPENROUTER_API_KEY to shell profile, fix remaining 400 errors |
| 18 | +### Known Issues |
16 | 19 |
|
17 | | -## worktree-1037-zanzibar-teal |
| 20 | +- ddgs (DuckDuckGo) fails on Python 3.9 due to SSL — works on 3.11+ |
| 21 | +- judge.py requires Python 3.11+ (union type syntax) |
| 22 | +- arXiv skill fixed to use HTTPS |
18 | 23 |
|
19 | | -**Last session**: 2026-03-27. Two workstreams completed. |
| 24 | +### Next Steps |
20 | 25 |
|
21 | | -### Workstream 1: AI Judge Pipeline Fixes (DONE) |
22 | | -- PR #4 merged: 5 bugs fixed — `_bundle_sample()` rich content, content truncation 500→3000, `_dimension_aware_bundle_sample()`, `search_for_gaps()` acquisition policy, `scripts/batch_enrich.py` |
23 | | -- PR #5 merged: content limit 1500→3000 |
24 | | -- Batch enriched 60 evidence records (3% → 35% with page content) |
25 | | -- Ran evolve 5+3 rounds: score stuck at 68. Root cause = evidence relevance, not pipeline |
26 | | -- Cleaned 4 stale tests, fixed pre-push hook (pytest → unittest) |
| 26 | +- Merge PR to main |
| 27 | +- F007-S3: MCP server (thin shell, optional) |
| 28 | +- F007-S4: Cron/schedule entry (optional) |
27 | 29 |
|
28 | | -### Workstream 2: BaZi Case Collection (IN PROGRESS) |
29 | | -- **Goal**: Collect 200K real BaZi (八字) fortune-telling case studies from the internet |
30 | | -- **Infrastructure**: Set up SearXNG Docker (port 8888) + installed ddgs. All 12 AutoSearch backends now online. |
31 | | -- **Goal case**: `goal_cases/bazi-case-collection.json` — 4 dimensions (birth_data, four_pillars, analysis_content, case_depth) |
32 | | -- **Evidence**: `goal_cases/runtime/bazi-case-collection/evidence-index.jsonl` — **6,757 evidence pages** (39MB) |
33 | | - - 1,132 with page content (fit_markdown/acquired_text) |
34 | | - - 1,098 unique domains |
35 | | - - Top sources: 知乎专栏 (587), 抖音 (355), 搜狐 (336), 百家号 (215), B站 (199), 360doc (125) |
36 | | -- **Queries run**: ~3,718 unique queries across 8 parallel batches, zero errors |
37 | | -- **Search saturation**: Dedup rate very high at end — public Chinese web BaZi URLs approaching coverage ceiling |
38 | | - |
39 | | -**Next step for BaZi collection**: |
40 | | -1. **Content extraction**: 6,757 pages collected but only 1,132 have page content. Run `scripts/batch_enrich.py --goal-case bazi-case-collection --limit 3000` to fetch page content for top records |
41 | | -2. **Case parsing**: Each page may contain multiple individual cases. Need extraction script to pull structured BaZi data (birth datetime, four pillars, analysis text) from page content |
42 | | -3. **More queries**: Generated 3,315 queries but could expand to 10K+ by adding more combinatorial dimensions (specific 六十甲子 year combos, more site targets, pagination patterns) |
43 | | -4. **Quality filtering**: Filter evidence by dimension keyword coverage to keep only pages that actually contain case data |
44 | | - |
45 | | -**Key files**: |
46 | | -- `goal_cases/bazi-case-collection.json` — goal case definition |
47 | | -- `goal_cases/runtime/bazi-case-collection/evidence-index.jsonl` — collected evidence (39MB, 6,757 records) |
48 | | -- `chinese-divination-knowledge-bases.md` — comprehensive catalog of ~65 open-source divination projects (also copied to repo root) |
49 | | -- `/tmp/bazi_queries_10k.json` — 3,315 generated queries (NOTE: in /tmp, may not survive reboot — regenerate with `/tmp/gen_bazi_queries.py`) |
50 | | -- `/tmp/bazi_batch_runner.py` — parallel batch search runner |
51 | | -- `/tmp/gen_bazi_queries.py` — combinatorial query generator |
| 30 | +## main |
52 | 31 |
|
53 | | -**SearXNG**: Docker container `searxng` on port 8888. Config at `/tmp/searxng/settings.yml` (JSON API enabled, limiter off). Container may need restart after reboot: `docker start searxng` |
| 32 | +v1 Genome architecture live (PR #11 + PR #9). 194 tests passing. |
0 commit comments