10. Authored source contracts

The default of a recovered benchmark preserves its source equations, calibration, rounding and shock exercises. Source fidelity establishes what is implemented; it does not resolve an inconsistency in the source or certify a global economic solution. A useful correction belongs in a clearly labeled variant. Numerical derivative assertions with unresolved source contracts stay explicitly incomplete, with their original expected values retained.

10.1. Rounded production coefficients

The three-sector calibration retains all fifteen official production coefficients. Each row sums to 1.001, an excess of 0.001. No normalization to constant returns is made. Checks of budgets, goods, labor and written profits do not establish a globally bounded profit maximum for those coefficients.

10.2. Wage and separate-firm expressions

The welfare replication’s current wage-cost condition uses price inflation in one current cost term, whereas its resource cost and future term use wage inflation. Its flexible-price marginal condition uses actual labor while production uses effective labor. The authored expressions remain. The affected Calvo=0 and sticky_prices=0 selections are parked by the shared flags helper; published Calvo=1, sticky_prices=1 defaults remain available.

The separate-firm preference expression retains the public denominator with lagged consumption raised to a negative habit parameter and multiplied by the second lag. Replacing it with a lagged consumption surplus would change the source. The intended economic correction remains unspecified; its original derivative comparison is retained as incomplete coverage.

10.3. Capital and external budgets

The open-economy examples retain the investment-scaled capital transition and the accompanying authored first-order conditions. Retained author notes print that transition but give incompatible derivatives. The code and note are documented together; neither is silently rewritten to force agreement.

The retained external-budget code includes a cubic asset-acquisition charge. The associated note’s equation 69 prints a plain asset budget, while equations 59 and 67 carry absorption and marginal cost terms. This conflict remains a source limitation. The two-economy real specification uses lb=lbs and the nominal pair includes rer; names alone do not establish a common numeraire, household budget or complete-market units contract.

10.4. CES endpoints

For fixed positive raw weights and positive quantities, write

\[U(r)=\left(\sum_i a_i x_i^r\right)^{1/r},\qquad \log U(r)=\frac{\log(\sum_i a_i)}{r}+O(1).\]

There is no generic finite two-sided limit at zero unless the weight sum is one. The government and household raw-weight sums in the retained examples are 1.673 and 0.837. A calibration target involving elasticity-dependent powers of weights is a different condition. Selecting a recalibration path or normalizing the weights changes the contract and its parameter derivatives.

The home-production objective retains its authored b/e*log(...) expression. Its normalized weights permit a finite analytic limit. The original symbolic objectives are restored as defaults; the separately called fixture_util.home_ces_utility_expression helper remains an explicit alternative. It uses the analytic value at zero and a fourth-degree Taylor approximation in the region abs(e*log(C_m/C_h))<0.001; outside that region it evaluates the shifted logarithmic expression. The local branch is an approximation away from zero, not an algebraic identity. Its weights are fixed a and 1-a, with positive quantities and 0<a<1. It provides no endpoint for the unnormalized weights above. The tutorial home_consumption_utility_example selects this helper explicitly. The large public-policy example with absent callback, data, mode and chain inputs remains parked with its source calibration and priors retained.

10.5. Custom-solver refinement

The three switching-example drivers now put six custom-argument cells in the selected solver’s nested argument slot. The original numerical algorithm, equations and calibration remain. With the requested refinement actually enabled, the original Farmer example reaches return code 23 after 66 iterations. An independent policy with coefficients (-85/7,65/7) satisfies the original equations at the checked calibration. That identity is not acceptance of the failed numerical refinement. Its success regression remains preserved.

10.6. Smooth-maximum slope

The stabilized logarithmic smooth maximum is defined for positive finite slope; the authored example uses 20 and its driver also uses 30. The model’s explicit smooth>0 parameter restriction retains that contract. Zero is undefined; a negative slope describes a different soft-minimum function. The stable algebra does not broaden the model’s parameter domain.

The example constructor simple_zlb_smax_model(slope) reports an explicit error for zero, negative or nonfinite slope before constructing the model. Its default 20 and the original alternative 30 preserve the authored values. Direct source construction retains its parameter declaration; the constructor is the guarded entry point used by the example driver.

10.7. Explicit inherited-capital alternative

The authored investment-scaled capital laws and their historical references stay unchanged as defaults. Their retained capital conditions instead match a quadratic adjustment cost scaled by inherited capital. The explicit open_economy_capital_source(reference_file,"inherited") helper selects that alternative and returns source text; omitting the selection returns the authored text unchanged. Both existing capital conditions, all other equations, calibration and shocks remain. No source file is overwritten or copied into another model. Finite differences check both investment and inherited-capital derivatives at and away from replacement. This is not a complete equilibrium or higher-order policy validation. The tutorial inherited_capital_law_example selects a retained reference by identifier and returns the alternative source text.