| Field | Type | Description |
|---|---|---|
success |
bool |
Operation success flag. |
branch_name |
Optional[str] |
Sandbox branch name involved. |
original_branch |
Optional[str] |
Branch active before sandbox flow. |
error |
Optional[str] |
Error text when failed. |
stash_id |
Optional[str] |
Stash ref saved/restored during flow. |
has_conflicts |
bool |
Merge conflict indicator. |
conflicted_files |
list[str] |
Files in conflict state. |
| Field | Type | Description |
|---|---|---|
root |
Path |
Workspace git root. |
run_id |
str |
Run identifier for branch lifecycle. |
Location: teaagent/sandbox/_git_branch.py:58
Pre-condition: root is a git repository.
Post-condition: Stashes dirty state and returns stash ref, or None when nothing to stash.
Location: teaagent/sandbox/_git_branch.py:88
Pre-condition: Git repo with matching stash state.
Post-condition: Attempts stash apply/pop and returns success boolean.
Location: teaagent/sandbox/_git_branch.py:129
Pre-condition: Sandbox availability checks pass.
Post-condition: Creates or enters sandbox branch and returns lifecycle metadata.
Location: teaagent/sandbox/_git_branch.py:232
Pre-condition: Sandbox instance has start-state to rollback from.
Post-condition: Returns to original branch and attempts sandbox cleanup.