Skip to content

fix(errors): keep layer guidance at raise sites - #221

Merged
lzsweb merged 1 commit into
mainfrom
dev/v2-change-1
Oct 30, 2026
Merged

lzsweb merged 1 commit into
mainfrom
dev/v2-change-1

Conversation

@lzsweb

@lzsweb lzsweb commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • restore dashscope/_error_registry.py FunctionLayerError text to the generated error-registry source
  • keep Python-specific timeout and recovery guidance at the runtime raise sites
  • set scenario-specific allow_retry for create rejection, local input failure, build failure, status-query failure, missing status, and timeout
  • add provenance and retry/solution regression tests

Validation

  • pytest -q tests/test_error_registry.py tests/test_errors.py tests/legacy_1x/unit/test_agentic_rl_layer_status.py tests/test_finetune_rl_shim.py tests/test_rl.py
  • 275 passed
  • targeted pre-commit hooks passed

Restore the vendored FunctionLayerError catalog entry to the generated registry source. Keep Python-specific timeout guidance and scenario-specific retryability on each runtime exception instead of editing the cross-language generated catalog.
@lzsweb
lzsweb merged commit 9d82fbd into main Oct 30, 2026
12 checks 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