Skip to content

Harden guild lifecycle, agent logging, and file uploads - #78

Closed
milliondreams wants to merge 3 commits into
rustic-ai:mainfrom
milliondreams:main
Closed

milliondreams wants to merge 3 commits into
rustic-ai:mainfrom
milliondreams:main

Conversation

@milliondreams

Copy link
Copy Markdown
Contributor

Guild launch and shutdown need consistent dependency handling, agent output must not stall workloads, and file uploads need bounded resource use. This change hardens those paths across the Go server and Python execution engine.

Changes

  • Harden dependency-aware guild launch, credential requirements, preparation, scheduling, registry handling, and workload status tracking.
  • Prevent agent log stalls across process, Docker, and Bubblewrap supervisors and reduce Python startup warmup.
  • Stream guild and agent file uploads through temporary files with a configurable 100 MiB default limit, multipart and metadata validation, cleanup of abandoned upload files, and protection against concurrent duplicate writes.
  • Add and update focused regression tests for these paths.

Validation

  • Passed focused Go upload API tests: go test ./api -run 'Test(FileUpload|PrepareUploadDirectory)' -count=1.
  • Passed focused filesystem and command tests for upload handling, duplicate protection, cleanup, and upload-limit configuration.
  • Checked formatting of all files changed by the upload commit and ran git diff --check before committing.
  • The full test suite and Python tests were not run during this PR preparation.

@milliondreams

Copy link
Copy Markdown
Contributor Author

Replaced by #79, which carries these three commits rebased onto 0.8.1, plus fixes so agents, status and uploads from 0.8.1 keep working after the upgrade.

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