Can Two Valid Fields Still Make an Invalid Request?

A project form accepts both dates without complaint. The start date is a recognizable date, and the end date is also recognizable. The request still makes no sense because the end precedes the start. Field-level checks have passed while the business rule has failed.
Cross-field validation asks whether values belong together. It is useful wherever one choice changes the meaning, necessity or allowable range of another. The goal is a clear, testable rule that follows the record through every entry route, including imports and integrations.
Write the relationship in ordinary language
Begin with the decision the record supports. A scheduling request might require the end to be on or after the start. A delivery request might require a destination only when delivery is selected. An internal review might allow exactly one of two resolution choices.
Specify the boundary precisely. “Dates must be consistent” leaves equality unresolved. “End date must be the same as or later than start date” tells a tester what to expect. If same-day work is prohibited, say so explicitly and explain the operational reason.
Keep the rule separate from presentation. Hiding a destination field can reduce confusion, but does not establish what happens when an integration sends an irrelevant destination anyway.
Build a combination matrix
Use columns for condition, first value, second value, expected decision and explanation. Include the ordinary valid case, the equality boundary, the reversed relationship, one missing value and both missing values. Add a case where a previously valid record becomes invalid after one field changes.
Do not multiply every possible input into an unmanageable test set. Identify meaningful equivalence groups and boundaries. A reviewer should understand why each case represents a different rule outcome.
Illustrative example: a workshop date range
A fictional workshop request allows a one-day event. October 28 followed by October 28 is accepted. October 28 followed by October 29 is accepted. October 29 followed by October 28 is rejected with a message explaining that the end must not precede the start.
An incomplete draft may omit the end date, but submitting that draft requires both dates. The same record therefore has different completeness requirements at different transitions. The team records this explicitly instead of applying the final-submission rule to every autosave.
Changing the start of an existing request triggers the relationship check again. Testing only creation would miss that route. These dates and rules are illustrative, not a FutureOS scheduling policy.
Decide where the rule is enforced
An immediate interface message helps the person recover. The receiving service also needs the relevant checks because other clients may bypass that interface. Storage constraints can provide an additional boundary when the rule is suitable for that layer.
The PostgreSQL documentation on check constraints shows constraints that reference several columns. It also explains that a check passes when its expression evaluates to true or null; requiring a value therefore needs separate attention. Do not assume that a comparison constraint automatically rejects every missing value.
This database example illustrates why rule semantics matter. It is not a requirement to use PostgreSQL or a claim that all cross-record business rules belong in a database constraint. Choose enforcement points that can evaluate the required information reliably.
Explain the correction without losing work
Point the message to the relationship: “Choose an end date on or after the start date.” Preserve the entered values so the person can decide which one was wrong. Silently swapping dates may turn an invalid request into an unintended valid request.
For an import, return the affected record reference, the rule identifier and enough safe detail to correct the source. Define whether a batch rejects only the invalid record or the whole transaction. That choice affects reconciliation and must be visible to the operator.
Review the rule when the workflow changes
Record an owner, the allowed states and the tests that demonstrate them. When drafts, partial updates or new integration clients are introduced, revisit the matrix rather than copying the old interface behavior unexamined.
The acceptance evidence is a set of observed decisions across the supported entry routes. A green field outline is useful feedback, but the complete request is the unit whose validity matters.
FutureOS is in prelaunch. Use this guide to prepare a concrete project discussion, and read the published introduction for the current project context.
Prepared with AI assistance for the FutureOS editorial series. Primary sources checked on October 23, 2026. Examples are illustrative; this article does not announce an available FutureOS feature or an independently reviewed assessment.



Comments