Step 4: Data validation

Validation makes the research usable without rewriting it. It checks country boundaries and required track content, preserves accepted evidence as supplied and gives a clear account of what was stored or skipped.

Flow

Workflow diagram for Step 4: Data validation
View full-size diagram

What is accepted

A country block needs the content required for its non-excluded tracks. Discovery no-evidence findings still require detailed checks. Missing Remote material is relevant when Remote was not excluded; it does not become a reason to invent that track for an explicitly excluded country.

New research includes market demand, role match, international access, pay feasibility and research coverage. Unknown can be a complete reported value with documented checks; omitting the field is incomplete. Older records need a review of their existing evidence rather than invented replacement fields.

Generated research uses top-level Country: delimiters. Clear older labels can be recognized when their meaning is unambiguous. If boundaries are unclear, the agent asks rather than guessing which country’s evidence a paragraph belongs to.

Malformed, incomplete, duplicate and unlisted blocks are skipped with reasons. A duplicate preserves the stored original; it is not automatically treated as a missing country. Scope membership and accepted track coverage are accounted for separately.

What you see

The validation report distinguishes accepted data, rejected input and expected results that were never supplied. Accepted research is saved exactly as supplied. Corrections or validation commentary belong outside the original research blocks.

This is structural validation. A complete field containing an outdated immigration claim can pass this step and still fail the later evidence audit. Successful saving is also distinct from factual correctness.

When helpers can run, they save accepted research without changing it. Otherwise, manual processing needs your explicit approval of the proposed method and its limits. Failed saves leave progress pending rather than advancing to scoring as though the data had been stored.

For example, retaining one valid original and rejecting its later duplicate should produce one stored country, not a new missing-country warning. Rejecting the only incomplete result for an eligible country should retain a visible evidence gap.

What happens next

Accepted content is stored in the validated-data file, while the original research and separate validation report remain available. When every track is explicitly excluded, empty research can still proceed to an audit of those exclusions.

After a successful save, Scoring uses only supported data for each track. Missing information is not filled with an assumed Weak fit.

Explore the source

For implementation details, read prompts/country-finder/step4-data-validation.md.