A PostgreSQL column rename is easy to migrate in the database and easy to miss in application SQL. I am working on SH-PSCBS, an experimental open-source project that turns a schema change into a Python repair proposal with tests and a human review step.
Repository and Docker demo: GitHub - iago511/Self-Healing-Polyglot-Schema-Code-Bifurcation-System: SH-PSCBS - PostgreSQL schema changes shouldn’t break your app. Detect the impact, generate a fix, run tests, and review a ready-to-approve Git branch. · GitHub

For example, changing clientes.apelido to clientes.nome can leave a query such as SELECT apelido FROM clientes broken. The goal is to connect the schema event to the affected code and produce a diff that a developer can inspect.
The workflow uses a LangGraph StateGraph with separate stages for schema analysis, impact analysis, planning, correction, validation and review. PostgreSQL snapshots and events feed the process; SQLite stores local event and proposal state. Groq handles analysis/review stages and Ollama handles correction in the current live-model setup.
Changes are prepared in an isolated repository copy. The proposal is checked with pytest in a Docker container with network isolation, then presented with the diff and validation evidence. Human approval is required before a Git commit on a repair branch, and publishing is an explicit step.
A distinction that matters here: a passing test run only covers the tests provided. It cannot prove that a schema change preserved the meaning of the application. A reviewer still needs to inspect the proposal.
Current scope is PostgreSQL and Python. The repository name describes a broader direction; general support for other languages is not implemented. The Docker Compose demo uses simulated model responses and disposable services, so it demonstrates the workflow without API keys. It does not measure live-model repair accuracy. The project is MIT licensed and experimental.
I would appreciate feedback on two specific design questions:
- What evidence would you want beside the diff before approving a schema-driven repair?
- For evaluation, which cases should come first after a simple column rename: type changes, dropped columns, dynamic SQL, or ambiguous renames?
The source, demo instructions and contribution guide are in the repository.