Output And Validation#
Once the model is in scope and the environment is ready, finhjb-model-coder should return something you can inspect and run, not just code that looks plausible.
Expected Delivery#
The intended delivery is not “some code that looks plausible.”
The intended delivery is:
a structured model summary
executable FinHJB code or a rescue-search runner bundle
an executed test or search summary
a validation checklist for the first solve
Interaction Flow#
A healthy interaction usually looks like this:
You provide model materials.
The skill checks whether the model fits one-dimensional FinHJB.
The skill confirms environment readiness.
The skill asks only the blocking questions that change code generation.
The skill chooses derivative and boundary-search settings explicitly.
If calibration rescue is needed, the skill structures fixed parameters, search parameters, hard constraints, and soft preferences.
The skill generates code or a rescue-search bundle.
The skill runs a post-generation test loop or search loop.
The skill repairs fixable failures before delivery.
Post-Generation Test Loop#
Before delivery, the skill should run:
a syntax and import check
a
Solver(...)construction checkat least one baseline solve
required figure or summary checks if the task asked for them
If these checks fail for fixable implementation reasons, the skill should repair the code and rerun the checks.
If rescue mode is active, the output bundle should also contain:
a machine-readable search-history table
the best-parameter configuration
a concise summary of the shrink-and-rerun process
optional scholar-facing diagnostics or plots for the best candidate
File Layout Rules#
Do not force every task into one script.
Recommended rule:
compact baseline solve: one file is often enough
sensitivity analysis plus saved outputs and figures: split into solve, data, and plotting files
That separation makes reruns, diagnostics, and figure changes much easier to manage.
Common Reasons Delivery Should Stop#
The skill should stop instead of pretending success when:
the environment is still not ready for
finhjbimportant equations or derivations are still missing
calibration values are still unspecified
plot requirements are still ambiguous
the model is outside one-dimensional FinHJB scope