Skip to content

[Feature] Settle model sessions before private grading - #2386

Open
jayhenry wants to merge 1 commit into
feat/mini-agent-trial-runtimefrom
feat/mini-agent-session-settlement
Open

jayhenry wants to merge 1 commit into
feat/mini-agent-trial-runtimefrom
feat/mini-agent-session-settlement

Conversation

@jayhenry

@jayhenry jayhenry commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Layer 6 of 10 in the Mini-Agent stack. Base feat/mini-agent-trial-runtime. Head feat/mini-agent-session-settlement.

Review scope

Retire routing and request admission before private grading. The gate checks active leases and requests waiting for backend confirmation. A pending request returns a per-attempt failure without waiting for the offload that depends on finishing the colocated batch. Independent errors and cancellation still propagate.

Validation

The working tree and Python compilation were checked at this layer. The Agent import-boundary check and the python -S protocol import passed. The relevant CPU cases passed in pt29_glm2 with CUDA_VISIBLE_DEVICES='' as part of the combined python -B -m pytest -ra runs.

tests/rl/test_finish_agent_session.py tests/rl/test_session_finish_integration.py tests/rl/test_attempt_execution.py tests/rl/test_session_server_cross_weight_update_rollout.py

Retire routing and admission, wait for active leases, and block grading while the original request is awaiting ordinary offload. Treat a pending backend as an attempt failure after retirement and preserve independent cleanup errors.
@jayhenry
jayhenry added this pull request to stack #2391 December 4, 2026 15:56

This branch has not been deployed

No deployments
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