fix(memory): восстановить внешние ключи автономных задач#480
Merged
xlabtg merged 3 commits intoxlabtg:mainfrom May 9, 2026
Merged
fix(memory): восстановить внешние ключи автономных задач#480xlabtg merged 3 commits intoxlabtg:mainfrom
xlabtg merged 3 commits intoxlabtg:mainfrom
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: xlabtg#479
Author
Working session summaryГотово: PR #480 обновлён, переведён в ready for review и запушен на PR: #480 Что изменено:
Проверка:
This summary was automatically extracted from the AI working session output. |
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (210.7K + 9.8M cached) input tokens, 31.8K output tokens, $13.364240 cost 🤖 Models used:
📎 Log file uploaded as Repository (48631KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
1.24.0: rebuildautonomous_tasksтеперь выполняется сlegacy_alter_table=ONи временно выключенными FK, чтобы SQLite не переписывал дочерние внешние ключи наautonomous_tasks_old.1.37.0, которая чинит уже повреждённыеtask_checkpoints,execution_logsиpolicy_state, если их FK указывают наautonomous_tasks_old.1.23.0и на ремонт уже повреждённой схемы.overridesдляbasic-ftp,fast-uriиfast-xml-builder, чтобы проходил security audit.Fixes #479
Как воспроизвести
1.23.0, где уже естьautonomous_tasksи дочерние таблицы ATE.1.24.0, которая переименовываетautonomous_tasksвautonomous_tasks_old.cleanOldCheckpoints: SQLite пытается проверить FK на удалённуюmain.autonomous_tasks_oldи падает сSqliteError: no such table.Проверка
npx vitest run src/memory/__tests__/schema.test.ts -t "autonomous task child foreign keys"npx vitest run src/memory/__tests__/schema.test.ts src/memory/__tests__/scheduler.test.ts src/autonomous/__tests__/autonomous-tasks.test.tsnpm run typechecknpm run lintnpm run format:checknpm testnpm run test:coveragenpm run audit:cinpm run build