Commit Graph

6 Commits

Author SHA1 Message Date
P0luz
529c9cc172 chore: dead code cleanup (pyflakes-clean)
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled
Tests / test (push) Has been cancelled
- Remove unused imports: time/asyncio/Path/Optional/re/Counter/jieba
  across backfill_embeddings, bucket_manager, embedding_engine, import_memory
- Drop unused local var `old_primary` in reclassify_domains
- Fix 3 placeholder-less f-strings in backfill_embeddings, migrate_to_domains,
  reclassify_domains
- Delete legacy quick-check scripts test_smoke.py / test_tools.py (replaced
  by tests/ pytest suite, never collected by pytest)
- Delete backup_20260405_2124/ (stale local snapshot, no code references)

Verified: pyflakes *.py → 0 warnings; pytest tests/ → 237 passed, 7 skipped.
2026-04-21 20:11:47 +08:00
P0luz
d2d4b89715 fix(search): keep resolved buckets reachable by keyword
Apply ×0.3 resolved penalty *after* fuzzy_threshold filter so
resolved buckets that genuinely match the query still surface
in search results (penalty only affects ranking order).
Update BEHAVIOR_SPEC.md scoring section to document new order.
2026-04-21 18:46:04 +08:00
P0luz
ccdffdb626 spec: add BEHAVIOR_SPEC and fix B-01~B-10 (resolved/decay/scoring)
- Add BEHAVIOR_SPEC.md as full system behaviour reference
- B-01: stop auto-archiving resolved buckets in update()
- B-03: keep activation_count as float in calculate_score
- B-04: initialise activation_count=0 on create
- B-05: time score coefficient 0.1 -> 0.02
- B-06: w_time default 2.5 -> 1.5
- B-07: content_weight default 3.0 -> 1.0
- B-08: refresh local meta after auto_resolve
- B-09: user-supplied valence/arousal takes priority over analyze()
- B-10: allow empty domain for feel buckets
- Refresh INTERNALS/README/dashboard accordingly
2026-04-21 18:45:52 +08:00
P0luz
821546d5de docs: update README/INTERNALS for import feature, harden .gitignore 2026-04-19 12:09:53 +08:00
P0lar1s
faf80fea69 fix: improve merge logic, time decay, breath output format, session hook 2026-04-15 22:02:38 +08:00
P0lar1s
0d695f71cb init: first commit to Gitea mirror, update README with Docker quick start and new repo URL
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 15:44:25 +08:00