Skip to content

LS-66: normalize snapshot paths and eliminate repeated control initialization and stop writes - #37

Merged
Ferryyer merged 2 commits into
mainfrom
agent/inspire-queue/6485b67de4da
Nov 26, 2026
Merged

Ferryyer merged 2 commits into
mainfrom
agent/inspire-queue/6485b67de4da

Conversation

@Ferryyer

@Ferryyer Ferryyer commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Submission could accept live source files through equivalent paths such as --script={project}/src/../train.py or 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 --check passed. 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

Ferryyer and others added 2 commits November 25, 2026 20:33
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
@Ferryyer
Ferryyer merged commit 66336a9 into main Nov 26, 2026
1 check passed
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