-
Notifications
You must be signed in to change notification settings - Fork 0
Reliability & hardening from multi-agent review (v3.7.24) #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project are documented here. This project follows | ||
| [Semantic Versioning](https://semver.org/). Per-release detail lives in the | ||
| `RELEASE_v*.md` files; this file is the running summary. | ||
|
|
||
| ## [3.7.24] — 2026-09-26 | ||
|
|
||
| ### Fixed | ||
| - **Install integrity:** `OpenIvExecutor` writes to a temp file and commits with | ||
| an atomic move, so a failed/interrupted overwrite never truncates an existing | ||
| game file in place. | ||
| - **Change history:** persisted via atomic `JsonFileStore` and lock-guarded; | ||
| saves are no longer silently swallowed on I/O error. | ||
| - **Profiles:** corrupt profile files are logged and skipped instead of dropped, | ||
| stock defaults are never seeded over unparseable user data, and writes are | ||
| atomic. | ||
| - **Restore points:** lock-guarded snapshot reads close a torn-read race. | ||
| - **Job queue:** all job-state access is serialized and readers get a snapshot, | ||
| removing a race where `/jobs/{id}` could return torn state. | ||
|
|
||
| ### Security | ||
| - **Safe-mode restore** verifies each manifest path resolves inside the GTA V | ||
| root before moving it, containing tampered/corrupt manifests. | ||
| - **Local API** error responses route through `ApiErrors.Problem`, logging the | ||
| exception server-side with a correlation id instead of leaking absolute file | ||
| paths to the client. | ||
|
|
||
| ### Performance | ||
| - `OpenIvExecutor` builds a one-time archive entry lookup (O(n²) → O(n)). | ||
|
|
||
| ### Tests | ||
| - 1021 passing (+8): overwrite-failure integrity, path containment. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| using LSPDFRManager.Core; | ||
|
|
||
| namespace LSPDFRManager.LocalApi; | ||
|
|
||
| /// <summary> | ||
| /// Centralized 500-level error responses. Logs the full exception server-side | ||
| /// with a short correlation id and returns only a generic message to the | ||
| /// client, so internal detail — absolute file paths, stack traces — never | ||
| /// leaks over the API. Endpoints pass a human context string, not ex.Message. | ||
| /// </summary> | ||
| public static class ApiErrors | ||
| { | ||
| public static IResult Problem(string context, Exception ex) | ||
| { | ||
| var correlationId = Guid.NewGuid().ToString("N")[..8]; | ||
| AppLogger.Error($"[API_ERROR {correlationId}] {context}", ex); | ||
|
rolling-codes marked this conversation as resolved.
|
||
| return Results.Problem( | ||
| detail: $"{context}. Reference id: {correlationId} (see app.log for details).", | ||
| statusCode: StatusCodes.Status500InternalServerError); | ||
| } | ||
| } | ||
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.