Skip to content

fix(librarian): let the analyze pass read fragments before editing to prevent blind overwrites#41

Open
Viscerous wants to merge 1 commit into
tealios:masterfrom
Viscerous:fix/librarian-blind-overwrite
Open

fix(librarian): let the analyze pass read fragments before editing to prevent blind overwrites#41
Viscerous wants to merge 1 commit into
tealios:masterfrom
Viscerous:fix/librarian-blind-overwrite

Conversation

@Viscerous

Copy link
Copy Markdown

The librarian analyze pass could rewrite fragment content without first reading the current state, and since it only has the shortlist + description could rewrite a fragment using only that knowledge, possibly deleting most of the fragment.

This gives the analyze pass read + targeted edit tools (analysis-tools.ts), wires them into the analyze block context (blocks.ts), and adjusts the agent (agent.ts) so it inspects a fragment before editing rather than overwriting blindly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant