Repository navigation
LS-66: normalize snapshot paths and eliminate repeated control initialization and stop writes - #37
Merged
Merged
Conversation
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
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.
Submission could accept live source files through equivalent paths such as
--script={project}/src/../train.pyor relative arguments under a project working directory. Validate positional arguments and equals-option values using the runner's placeholder expansion and effective working directory, checking normalized snapshot names and resolved symlink targets. Normalize explicit{code}references, reject escapes and missing entries, and retain code-root/directory references. Keep original manifest strings and digest semantics, interpreter/input fingerprints, outputs, and external data arguments.Each Service now creates its Control lazily and reuses it for synchronization, claims, and stop confirmation. Initialization failures remain retryable; connections, transactions, approvals, queue revisions, and old-table migrations retain their existing behavior.
Browser stop requests and scheduler recovery share a marker check: matching task, digest, and request timestamp skip atomic writes and fsync. Missing, corrupt, or mismatched markers are repaired with the existing atomic writer; I/O errors still propagate. Preserve terminal early exits, stop proof requirements, and the single stop audit event.
Validation: all 278 Python unit tests passed in an isolated temporary HOME (
python3 -m unittest discover -s tests -p 'test_*.py'); the final symlink-fixture refinement also passed all 14 focused tests. Real temporary SQLite traces show zero control initialization SQL after the first successful initialization across idle cycles, claims, and confirmation. Matching pending markers produce zero writes/fsync across repeated browser requests, two synchronizations, and service restart. Tests cover commit-before-marker interruption, repairs, migration, and initialization retry.git diff --checkpassed. Platform operations use isolated fixtures; no live GPU operations or deployment were performed.CI: inspire-queue-review-baseline passed on head
302d9c0ae02ce515c99f1e5f556aaa424ce5a202.Closes LS-66
Task: LS-66