feat(encyclopedia): consolidate duplicate articles, hierarchy, room articles #21

Merged
k.renner merged 5 commits from feat/encyclopedia-consolidate into main 2026-10-27 06:14:53 +00:00
5 Commits
Author SHA1 Message Date
claude-botandClaude Opus 5.5 69a58988d6 fix(encyclopedia): a failed consolidation call is not repeated in later passes
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
The group stays unremembered and is asked again next run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:57:07 +01:00
claude-botandClaude Opus 5.5 d7de998821 fix(encyclopedia): stable consolidation groups, redirected slugs in assign, reset cleanup
Consolidation runs passes until one changes nothing; a changing reply ends
the pass and the next starts from the first seed, so the last pass's groups
are the ones the next run forms. Memory is pruned to that pass. A stable
neighbourhood after a merge is no longer asked again the next night.

Assign treats a redirected slug, proposed as new or referenced directly,
as its live target instead of dropping the note.

A plan reset deletes article files whose slug the new plan lacks.

The sub-articles heading has no id, so it cannot collide with a body
heading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:51:47 +01:00
claude-botandClaude Opus 5.5 d9ac615b67 docs(encyclopedia): which group fingerprint consolidation remembers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:37:08 +01:00
claude-botandClaude Opus 5.5 179bc3bcbc feat(encyclopedia): consolidate nearby articles, plan hierarchy, room articles
Article vectors (titleDe | titleEn | scope, embedded locally, cosine in
memory) feed the assign candidates alongside the note-neighbour articles
and form the groups of a new consolidate step after assign: one bounded
call per group of up to 8 nearby articles, at most 60 per run, returning
merges (fold mechanics, redirects incl. public ones) and parent links
(no cycles anywhere in the plan). Groups are remembered by fingerprint
in _state.json.

PlannedArticle gains a parent; split children get the overview. The write
prompt marks main and sub-articles among its link targets (children
capped at 20); the article page shows the main article and the visible
sub-articles from the plan. Parent changes do not make articles stale.

The assign prompt also sends room notes to the room article; the write
prompt writes room articles from the room's angle.

The plan file gets version 3: the v2 plan reads as no plan, its state is
dropped, and the next run bootstraps. Prompts.Version 8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:36:59 +01:00
claude-botandClaude Opus 5.5 1c8c0dc15a docs(encyclopedia): consolidation, hierarchy and rooms design
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:23:22 +01:00