Skip to content

refactor(environment): configure dependency failure policy - #5723

Draft
giuliolovisotto wants to merge 3 commits into
mainfrom
glovisotto/shared-environment-outcome-policy
Draft

giuliolovisotto wants to merge 3 commits into
mainfrom
glovisotto/shared-environment-outcome-policy

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Environment dependency failures and confirmed model-response timeouts currently select actions through separate rules. Use the shared outcome-policy selector and configurable single_agent_turn dependency rules, retaining causes, observed stages and terminality projection. Ordinary incomplete output still follows verification; explicit timeout evidence receives its configured treatment.

Validation: the final 1,973-test connected suite and 623-test targeted recheck and 177-test follow-up suite. Two-call real-model integration exercised environment dispatch and verification; lifecycle setup used in-process fixtures. No benchmark score claim.

Compatibility: partial overrides retain defaults. Replay guards, cancellation and episode budgets remain executor constraints. No individual benchmark migration. This is a focused internal API cleanup; no separate issue is required.

Stack validation: pre-commit run --all-files, including package layering. Independent Claude review covered the full stack and subsequent fixes; the final delta review found no blockers. Review was read-only; tests were run separately.

Refresh validation — 2026-11-11

Merged main a5cc1105564f38d7c7be5c86da5892f740d596e2 forward through the four-PR stack without rewriting existing history. The deferred HTTP-policy layer remains excluded. Current judge-provider quota/credential kinds and future-reset execution guards are preserved; explicit policy stops remain stops rather than being reported as quota waits.

Validation of the refreshed stack:

  • 2,656 connected environment, judge, recovery, collection and public-API tests passed. After the final stop-hint correction, 883 collection/recovery regressions passed, including saved final decisions and future/past/missing quota reset cases. These suites overlap.
  • pre-commit run --all-files passed; Fern check: 0 errors, 1 warning. The guide's Python example executed.
  • A bounded two-call live-model smoke passed: the agent answer reached verification, an injected first judge timeout recovered, the judge's returned verdict/reward and one recovered failure event were retained, with model-call capture. Session lifecycle was fixture-backed; this is plumbing validation, not benchmark-score or live-sandbox qualification. An earlier smoke assertion assumed the judge would answer YES; the check now verifies propagation of either valid YES/NO verdict.
  • Independent Claude review covered the refreshed stack and follow-up corrections; final delta verdict: Ship. Reviewer validation was code-only; test results above were run separately.

@giuliolovisotto giuliolovisotto added feature New capabilities, enhancements, or enablement work area:env-infra Shared environment framework, lifecycle, registry, scaffolding, and validation labels Nov 6, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 6, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

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

area:env-infra Shared environment framework, lifecycle, registry, scaffolding, and validation feature New capabilities, enhancements, or enablement work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant