Keep Application and Resume API contracts stable across database schema changes
Existing issue
- I searched the existing issues and could not find a matching proposal.
Product variant
Self-hosted
Area
API & integrations
Problem
Internal database changes can currently alter or invalidate public Application and Resume responses even when no external behavior is intended to change, because the declared response shapes remain coupled to persistent record structures; this creates a risk that adding an internal field exposes it through REST, oRPC, and MCP, while changing or reorganizing stored fields can cause otherwise unchanged operations to fail output validation.
Desired outcome
Application and Resume response contracts should change only through an intentional API decision, so storage-oriented schema changes remain internal unless a field is explicitly added to the public interface and reviewed for compatibility across REST, oRPC, and MCP.
Alternatives considered
The current approach can be retained by auditing every database migration against every exposed operation, but this depends on repeated manual coordination and allows an internal persistence change to become an external compatibility change through omission rather than intent.
Proposed scope
The initial scope should cover public Application and Resume read and mutation responses, while preserving existing endpoint behavior and leaving unrelated DTOs, internal-only operations, API versioning, and broader package restructuring outside this issue.
Additional context
Issues #3008 and #3011 demonstrated a concrete output-validation failure caused by response data and its declared contract drifting apart; those reports resolved the affected field, while this proposal addresses the remaining boundary that allows similar failures or accidental field exposure to recur.
Source: amruthpillai/reactive-resume