Skip to content

LS-64: Validate manifest strings and reject stale task directories - #34

Merged
Ferryyer merged 1 commit into
mainfrom
agent/inspire-queue/8c8a32fd1698
Nov 26, 2026
Merged

Ferryyer merged 1 commit into
mainfrom
agent/inspire-queue/8c8a32fd1698

Conversation

@Ferryyer

Copy link
Copy Markdown
Owner

Reject nonliteral executable paths such as ~/python and invalid string fields with ValueError during submission. Validate working-directory path syntax while preserving the existing directory placeholders.

When snapshot installation collides with an existing directory, check the database under the final write transaction first to preserve duplicate/deleted-task behavior. Without a database record, require a matching full manifest digest, an intact manifest document, and an empty run/ directory; reject stale artifacts without changing them.

Validation: python3 -m unittest discover -s tests -p 'test_*.py' — 274 tests passed with an isolated temporary HOME. Includes 10 new regression tests for invalid fields/paths, orphan snapshot integrity, preserved results, and concurrent submission before the winning database insert. The new tests reproduce the defects against the original main. git diff --check passes.

Closes LS-64

Co-authored-by: multica-agent <github@multica.ai>
@Ferryyer
Ferryyer merged commit 5a793ce 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