Skip to content

0.1.2: the Ona driver fails closed on 200 error envelopes and keeps a possible run's id (R2 and R4 of #2699) #2922

In review

Description

@jparker2006

Parent

None: a ticket approved on its own (0.1.2), the logged follow-up of R2 and R4 from the re-check of #2699 (KH5, the Ona driver, #2584), under the orchestrator's log-and-merge decision. It natively blocks the live check #2595, so no real Ona host sees these paths. Size: S.

What to build

In adapters/ona/driver (at #2699's head f15066cb4ceeb8cdd498c033b320b7ddad6e9fe9):

  • R2a: an HTTP 200 whose body is a Connect error object ({"code": ..., "message": ...}) is a failure, never a successful send, StopAgentExecution or StopEnvironment. Check each RPC's documented acknowledgment, and reject an explicit error envelope with D3.
  • R2b: an ambiguous StartAgent reply that still carries a syntactically valid agentExecutionId keeps that id in both D3 fields (the run may exist), and sends no prompt.
  • R4: after a refused StopEnvironment, a GetEnvironment answer of 404 not_found counts as the environment being gone (a success for stop). Check missing() against the raw response before extracting the 200 environment object.

Owned paths

  • adapters/ona/driver (only the acknowledgment, error-envelope, StartAgent recovery and environment-recovery paths)
  • adapters/ona/test_driver.py (only the new regressions)
  • adapters/ona/fixtures/ (only new fault fixtures)

Relies on: nothing

Links

Acceptance criteria

  • Red first: through the real driver and helper on the fake Ona, a 200 with a Connect error object makes wake and stop refuse (D3, nonzero), an ambiguous StartAgent 201 with a valid id keeps that id in both D3 fields and sends no prompt, and a refused StopEnvironment followed by a 404 not_found GetEnvironment makes stop succeed
  • Every #2584: 0.1.2 KH5: the Ona driver passes the kit through the key helper #2699 test still passes, and the kit still passes 5 of 5 on the fake host

Proof

adapters/ona/test_driver.py, red first.

Activity

  1. added this to the 0.1.2 milestone on Nov 24, 2026
  2. added a commit that references this issue on Nov 24, 2026
  3. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    Approved on its own by Jake, 2026-11-24: build #2922 as one small 0.1.2 follow-up: the Ona driver fails closed on an HTTP 200 carrying a Connect error object, keeps a possible run's id after an ambiguous StartAgent reply, and treats a GetEnvironment 404 not_found as gone (R2 and R4 of #2699's re-check), logged and merged under the orchestrator's decision. It natively blocks the live check #2595. Under the J201-J204 standing approval, assigned by the J87 planner.
    Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7077657739

    Owned paths: adapters/ona/driver (those error paths only), adapters/ona/test_driver.py (new regressions) and adapters/ona/fixtures/ (new fault fixtures). Relies on: nothing.

  4. added
    ready-for-agent
    on Nov 24, 2026
  5. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started at 2026-11-24T05:53:16Z, record delayed by the posting pace (builder Claude Opus 5.5 Medium, started by the lead; review by Codex)

  6. added a commit that references this issue on Nov 24, 2026
  7. jparker2006 commented on Nov 24, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2922:
    adapters/ona/README.md

    Scope: only the lines that describe this ticket's new fail-closed rules: an HTTP 200 carrying a Connect error object is a failure, and a GetEnvironment 404 not_found after a refused StopEnvironment counts as the environment being gone. Granted by the lead.

  8. added a commit that references this issue on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions