Skip to content

Restore native completion recovery diagnostics (T22) #274

Closed

Description

@erickb336

Sage task T22
Parent: #88; audit finding T17-R115-1.

The old integration has native completion diagnostics that were not carried into the current validation suite. Deterministic reader tests cover related behavior, but they do not establish these native lifecycle paths.

Restore three diagnostic contracts against current production modules:

  • Missing Sage stop callback: parent recovers the exact assignment from actual native terminal evidence.
  • Follow-up without a tool call: the same child completes two distinct assignments/turns with separate reports.
  • Follow-up without stop callbacks or a second-turn tool: parent recovers both exact completions without reusing the first assignment.

Use a released direct CLI, fixed simulated model responses, isolated profiles and explicit evidence assertions. Validate assignment/child/turn identity, actual native completion and expected callback counts. Reuse current cleanup helpers; every owned process and listener must close. Do not restore the old runtime or change policy to make a diagnostic pass.

Add meaningful negative evidence tests and prove each new test fails on detached main, excluding setup failures. Run build, check, full tests and independent code/QA review. Record runtime version and simulated-response limits in the PR.

Scope is diagnostic fixtures only. No installed settings, activation or default behavior changes. No abrupt-loss recovery claim. Claude PR #273 and its shared task-wait files remain outside scope. Other removed diagnostic routes remain tracked in the integration audit.

Activity

  1. added
    codex
    on Oct 19, 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

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions