Phase 3: LLM Seed Generation + Repair
Use Claude to generate poisoned prefixes targeting specific attack categories, and iteratively repair prefixes that have syntax/type errors.
Status: NOT STARTED
Ref: docs/design-plan.md Phase 3
Files to create
Prefix Synthesizer
Repair Engine (prefix-focused)
When a prefix has syntax/type errors, repair it iteratively (up to 5 attempts). The repair only needs to make the DECLARATIONS valid — much easier than making proofs valid.
Sorry-seeding strategy
Phase 3: LLM Seed Generation + Repair
Use Claude to generate poisoned prefixes targeting specific attack categories, and iteratively repair prefixes that have syntax/type errors.
Status: NOT STARTED
Ref:
docs/design-plan.mdPhase 3Files to create
scaffold/src/scaffold/synthesizer.py— LLM prefix generationscaffold/src/scaffold/repair.py— Iterative prefix repairbaml-pydependency installed but unused)Prefix Synthesizer
Repair Engine (prefix-focused)
When a prefix has syntax/type errors, repair it iteratively (up to 5 attempts). The repair only needs to make the DECLARATIONS valid — much easier than making proofs valid.
diagnostics.pyinto repair promptsSorry-seeding strategy
sorry#print axioms