fix: operational hardening - #25
Merged
Merged
Conversation
A batch re-parsed every shared mission, vehicle, and asset per run: ten runs over one 500x500 terrain grid took 48s. Parse each input once per invocation and load YAML with libyaml when present; the same batch now runs in under two seconds.
Click's existence pre-check returned shell-style exit 2 with a usage panel for a routine file race; let the loaders handle missing paths so every input failure lands on the documented 11 with an error envelope.
A mission truncated at a clean line boundary validated silently because constraints, assets, and policy are schema-optional. Validate-only now names the absent blocks in its OK line and in a notes field on the preflight envelope, without failing minimal missions.
Progress records carried no run identity, so a worker tailing the stream could not tell which run stalled; batch records now include the run_id of the run that just completed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test Plan
uv run pytestpassesuv run ruff check .passesContract Impact
CONTRIBUTING.md(Public contracts)