Skip to content

fix: reject malformed exact-replay path values without exceptions - #219

Merged
mikhalchankasm merged 1 commit into
mainfrom
codex/tech-w11-path-value-types-20261004
Oct 4, 2026
Merged

mikhalchankasm merged 1 commit into
mainfrom
codex/tech-w11-path-value-types-20261004

Conversation

@mikhalchankasm

@mikhalchankasm mikhalchankasm commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

ExactReplay validation recorded a non-string fixed path type error, then still called JsonElement.GetString and threw for numbers, booleans, arrays and objects. Use the existing successful type check as the condition for path parsing, returning the normal scenario_invalid response on malformed values. Closes #217; child of #210.

One production line changes. Existing valid-string and unsafe-string path rules are preserved, and no output file is accessed. Regression coverage includes both filePath/directoryPath, all non-string JSON literal kinds, ValidateDraft/Save refusal before persistence and validation of stored malformed values.

Validation: ten new cases fail with exceptions before the change; two null-value cases already reject normally. All 83 scenario tests pass after the change (12 new cases), zero skips/warnings. Tool-less Claude review completed without blocking findings; Codex verified the change and added an assertion that type-invalid values do not produce an absolute-path parsing error. Null now returns the type error alone instead of the previous type-plus-path error. Final SHA 3da1e90 passed Release2024/2025/2026/2027 x64 L2; Both CI runs 37191932745 / 37191910745 passed with 2,441 tests, zero skips and all catalog/stdin/distribution guards. No Navisworks runtime claim.

@mikhalchankasm
mikhalchankasm merged commit afeaf0a into main Oct 4, 2026
2 checks passed
@mikhalchankasm
mikhalchankasm deleted the codex/tech-w11-path-value-types-20261004 branch October 14, 2026 18:01
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.

TECH-W11.4 — Reject malformed fixed-path JSON values without throwing

1 participant