8. Bounded labor reference checks
The labor-search reference retains its authored equations, calibration, quadrature rule and simulation settings. Residual arrays use the candidate element type, including automatic-differentiation dual numbers. Small checks compare dynamic derivatives with independent equations and finite differences, and differentiate the steady-state residual. Stopping-rule checks exercise each updated coefficient and continuation array, including nonfinite values. They do not establish that a nonlinear equilibrium has been found.
At each collocation node, current technology is fixed during the nonlinear solve. Its conditional technology nodes and normalized quadrature weights are prepared once and passed to the residual. Candidate-dependent employment, polynomial values and gradients remain inside the residual. Comparisons with independent polynomial stubs check the same residual values; this is not an interpolation-library timing benchmark or a shared-basis optimization.
8.1. Environment and execution
The unit-test reference directory contains julia_checks. Its parent
Project.toml declares the full reference dependencies, including graphics.
bounded_project contains a separate four-package Project and Manifest for
small checks. Select an existing environment explicitly; no check activates,
resolves or installs packages. Record the runtime, active project, Manifest,
complete output, exit status and source hashes. Graphics declarations are
inspected without loading graphics packages or executing the full driver.
Each numerical check parses a hash-bound driver and evaluates only selected definitions or stopping expressions. It never includes the complete script. The adjacent README lists exact arguments and example bounded commands. The opt-in full reference remains a separate, expensive computation. Successful small checks do not certify its global solve, long simulation or graphics.
8.2. Observing approximation exposure
The finite technology/employment approximation rectangle differs from the economic domain. Diagnostics record out-of-rectangle and nonfinite states, employment bounds, positive consumption and tightness, and finding/filling probabilities. Inflation is checked where already computed. Counts are separate for accepted nodes, quadrature points, rule slices, simulated states, impulses and Euler checks. Solver trial iterates are excluded; accepted-node counts cover all iterations.
States, policies, shocks, nodes and weights are not clipped or changed. Euler residual summaries distinguish current or future extrapolation, and cover the existing single Euler equation rather than every model equation. Extrapolation is exposure requiring assessment; it alone proves neither inaccuracy nor a violation in an unexecuted simulation.