Checked other resources
Describe your current environment
Environment
System:
- OS: macOS (MacBook Pro 14)
- Python version: 3.11
AIOS Configuration:
- AIOS Version: [specify version, e.g., v0.2.2]
- LLM Model: qwen2.5:7b (via Ollama)
- Backend: Ollama
Reproduction Environment:
- Local machine setup
- Running AIOS kernel locally
- Using local LLM inference
Describe the bug
Description
When executing a storage syscall, the system crashes with a Pydantic ValidationError because response_message is being set to an empty list [] instead of a string. This causes the entire AIOS system to fail and requires a restart.
Error Message
ValidationError: 1 validation error for StorageResponse
response_message
Input should be a valid string [type=string_type, input_value=[], input_type=list]
For further information visit https://errors.pydantic.dev/2.7/v/string_type
2025-11-12 17:16:36,842 - aios.scheduler.fifo_scheduler - ERROR - Error executing Storage syscall: 1 validation error for StorageResponse
response_message
Input should be a valid string [type=string_type, input_value=[], input_type=list]
For further information visit https://errors.pydantic.dev/2.7/v/string_type
Traceback (most recent call last):
File "/Users/macbookpro14/Documents/aios/AIOS/aios/scheduler/fifo_scheduler.py", line 134, in _execute_syscall
response = executor(syscall)
^^^^^^^^^^^^^^^^^
File "/Users/macbookpro14/Documents/aios/AIOS/aios/storage/storage.py", line 26, in address_request
return StorageResponse(
^^^^^^^^^^^^^^^^
File "/Users/macbookpro14/.pyenv/versions/aios-dev/lib/python3.11/site-packages/pydantic/main.py", line 175, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for StorageResponse
response_message
Input should be a valid string [type=string_type, input_value=[], input_type=list]
For further information visit https://errors.pydantic.dev/2.7/v/string_type
Current Issue:
The StorageResponse expects response_message to be a string, but sometimes it receives an empty list [], causing a ValidationError.
Suggested Fix:
Add the following validation after the storage operation is completed:
# After performing storage operation
result = perform_storage_operation() # Actual storage operation
# Add validation check here
if not response_message or response_message == []:
response_message = "Storage operation completed"
return {"response_message": response_message, "finished": True}
Thank you for considering this issue. I'm happy to help with further testing or submit a pull request if you'd like me to implement this fix.
Looking forward to your feedback!
Checked other resources
Describe your current environment
Environment
System:
AIOS Configuration:
Reproduction Environment:
Describe the bug
Description
When executing a storage syscall, the system crashes with a Pydantic ValidationError because
response_messageis being set to an empty list[]instead of a string. This causes the entire AIOS system to fail and requires a restart.Error Message
ValidationError: 1 validation error for StorageResponse
response_message
Input should be a valid string [type=string_type, input_value=[], input_type=list]
For further information visit https://errors.pydantic.dev/2.7/v/string_type
2025-11-12 17:16:36,842 - aios.scheduler.fifo_scheduler - ERROR - Error executing Storage syscall: 1 validation error for StorageResponse
response_message
Input should be a valid string [type=string_type, input_value=[], input_type=list]
For further information visit https://errors.pydantic.dev/2.7/v/string_type
Traceback (most recent call last):
File "/Users/macbookpro14/Documents/aios/AIOS/aios/scheduler/fifo_scheduler.py", line 134, in _execute_syscall
response = executor(syscall)
^^^^^^^^^^^^^^^^^
File "/Users/macbookpro14/Documents/aios/AIOS/aios/storage/storage.py", line 26, in address_request
return StorageResponse(
^^^^^^^^^^^^^^^^
File "/Users/macbookpro14/.pyenv/versions/aios-dev/lib/python3.11/site-packages/pydantic/main.py", line 175, in init
self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for StorageResponse
response_message
Input should be a valid string [type=string_type, input_value=[], input_type=list]
For further information visit https://errors.pydantic.dev/2.7/v/string_type
Current Issue:
The
StorageResponseexpectsresponse_messageto be a string, but sometimes it receives an empty list[], causing a ValidationError.Suggested Fix:
Add the following validation after the storage operation is completed:
Thank you for considering this issue. I'm happy to help with further testing or submit a pull request if you'd like me to implement this fix.
Looking forward to your feedback!