Skip to content

v0.2.0: adjustments[], scenarios → scenario_results, attacker/angle graph axes, formats in main wasm (contract 1.5.0) - #6

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
devin/1791308729-engine-v0.2
Oct 6, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
devin/1791308729-engine-v0.2

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Engine side of the EXFA v2 upgrade. Contract 1.5.0 / graphs contract 0.4.

1. adjustments[] — every calc output now carries a top-level adjustments array (always present, right after violations) that records the silent normalisations introduced in 1.4.6:

{"code":"STATE_CLAMPED","path":"/modules/1/state","from":"active","to":"online","message":"module state clamped to online"}

Codes: STATE_CLAMPED, FIGHTER_QUANTITY_CLAMPED, SLOT_OCCUPIED_SKIPPED, SECURITY_DEFAULTED, MODE_DEFAULTED (the old no tactical mode given; defaulted… warning moves here). The four tiers are now: adjustments = input corrected and the calc continues; violations = can't be fitted in game; warnings = input the engine couldn't handle; error = the calc failed. Only the top-level fit reports adjustments.

2. scenarios[] → scenario_results[] — effective dps/volley against a fixed enemy + geometry (distance_m, target/attacker speed m/s or %, tgt_angle_deg, atk_angle_deg, tgt_sig_m, time_s). target is the same object as GraphRequest target. Numbers come from dmg::point_values, which the damage graph sweep also uses, so they match the graph at that point exactly. One difference in defaults: settings.ignore_resists defaults to false here. If a scenario is invalid, that entry gets {id, error} and the rest of the calc is unaffected.

3. Graph axes — damage and application_profile accept atk_speed_mps, atk_speed_pct, atk_angle_deg, tgt_angle_deg. Ctx::param_f returns x for the active axis, so any param can be swept.

4. Formats in exfa_wasm — if core rpc returns UNKNOWN_METHOD, it falls back to exfa_formats::rpc_method, so the web app can load a single wasm. exfa_formats_wasm is still built and released unchanged. Size: 5.41 MB → 5.63 MB raw (gzip 1.76 → 1.84 MB). This replaces a second 0.69 MB gzip download and a second instantiation.

Gates: version 0.2.0. Round-1 hashes regenerated after the rebuild, with adjustments added to ci/round1-new-keys.txt. Native + wasm bench suites have no regressions (core 339/339, ext 239/239, ext_rpc 54/54, graphs 192/192, formats 4779/4779, …). New tests are in tests/adjustments_scenarios.rs.

Link to Devin session: https://app.devin.ai/sessions/af7bf1024e1246509c4bd4bf139c6702
Open in Devin Desktop: https://app.devin.ai/desktop/session/af7bf1024e1246509c4bd4bf139c6702?variant=devin
Requested by: @elwina

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot merged commit 3f0fe02 into main Oct 6, 2026
3 checks passed
@elwina
elwina deleted the devin/1791308729-engine-v0.2 branch October 8, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant