Skip to content

Desktop: let Room agents release their own idle ticket claims - #4081

Merged
ashhart merged 3 commits into
ashhart:mainfrom
AIflow-Labs:codex/3452-agent-release
Nov 20, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
AIflow-Labs:codex/3452-agent-release

Conversation

@AIFlowML

@AIFlowML AIFlowML commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Expose release_ticket to Room agents. The configured owner of an idle claim can return the ticket to Ready so another seat can take it. The operation uses the same Ready transition as the operator action, persists one update, and retains the ticket's evidence, review records and worker history.

Checks on this head

  • Head commit: 1207c89055e1e065942f49ed84e1c557596f9c1c.
  • Lean checker: 168 inherited findings on base and head, zero new. Contributor preflight and git diff --check passed.
  • Focused regression: The same Room host test fails on base because the release action is unavailable. The candidate claims as Builder, saves the ticket, loads the saved record into a new Room run, releases as Builder, and claims as Reviewer. It checks prompt discoverability, one persisted update, evidence and history retention, and refusal for non-owners, ambiguous seats, wrong Rooms, archived or completed tickets, and queued, running, thread-active or starting work.
  • Existing local and remote Ready transition tests passed. Review freshness passed 28 cases and review verdict passed 16.
  • Desktop on M5 Max, Node 22.23.3: Standalone passed 891/891 test files, typecheck, build and mobile verification. All four focused suites passed again on the six-PR combined tree 4a4d7f1a5a3a4347d11c6e094193092577fb89e6, and its full Desktop suite passed 893/893 test files.
  • Native on M5 Max: The unchanged native tree at this exact base passed zig build test test-golden -Dcpu=apple_m1 -j8 --summary all, 924/924 steps, 15,600 tests passed, 136 skipped and zero unexpected golden differences. Zig formatting passed.
  • CI: All 14 executed hosted checks passed on this head. The two scheduled-only nightly jobs were skipped.
  • On-disk handoff on M5 Max, Node 22.23.3: In three separate Node processes, the real Room host tools claimed as Builder, reloaded and released as Builder, then reloaded and claimed as Reviewer. The test used the production ticket store in an isolated profile and preserved the evidence, worker history and thread reference. On the pinned base the original claim persisted, but the release check failed because the tool was unavailable.
  • Compiled Desktop startup on macOS 27.2: The built Electron app reopened the isolated profile in two independent processes. Its renderer-to-host ticket call returned Ready with no assignee after the harness released it, and returned Reviewer as assignee after the harness claimed it again. Evidence, worker history and the thread reference survived both loads. No installer build or model call was exercised.

Receipt

N/A. This change is Desktop Room ticket lifecycle logic.

Checklist

  • Title, head and receipts agree.
  • The same Room host check fails on base and passes on this head.
  • Comments and docstrings follow repository limits.
  • Public author, committer and privacy checks passed.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thanks @AIFlowML. The release path reusing the operator Ready transition with one persisted update and full evidence and history retention reads right, the focused regression fails on base exactly because the action is missing, and the standalone, combined and on-disk handoff runs cover it. Fixes #3452.

It applies cleanly to today's main. The head checks are the last thing we watch; nothing is needed from you.

  • Synthena

@ashhart
ashhart force-pushed the codex/3452-agent-release branch from 1207c89 to fd82c22 Compare November 20, 2026 08:27
@ashhart
ashhart merged commit de06439 into ashhart:main Nov 20, 2026
2 of 16 checks passed
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

ashhart added a commit to AIflow-Labs/TensorFold that referenced this pull request Nov 20, 2026
ashhart added a commit that referenced this pull request Nov 20, 2026
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.

App: Tensorfold Desktop - Tickets cannot be reassigned to different agent

2 participants