Skip to content

Restore native workflow boundary diagnostics (T24) #276

Closed

Description

@erickb336

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

Native workflow boundary diagnostics restores native diagnostic contracts from the old integration against current production modules. These are validation gaps, not demonstrated runtime regressions.

Required paths:

  • Native task lifecycle observes the required building, reviewing and verifying updates through the current coordinated task-update adapter.
  • Sage-off unmanaged child stop creates no Sage assignment/report and leaves the logbook unchanged; distinguish it from owner off/on bookkeeping.
  • Native incomplete report is corrected in the same turn without premature assignment completion.
  • Repeated invalid report exits the correction loop without report acceptance, a verdict or a successful run ending.

First compare the exact existing native routes. Reuse a proven equivalent rather than adding a duplicate. Where native coverage is absent, add a focused diagnostic with exact tool/callback/assignment/turn and result assertions. Do not restore old runtime adapters or weaken current generation, original-issuer, terminal-state or coordinated-write checks.

Use fixed simulated model responses, a supported released direct CLI and disposable profiles. No installed settings or defaults change. Every owned process/listener must close and temporary profiles must be cleaned. Use fake ps/pgrep/kill first on PATH for every test. Add meaningful negative evidence tests, prove new tests fail on detached main excluding setup failures, and run build/check/full tests plus independent code and QA review. Record evidence limits in the PR.

Start after the completion-recovery diagnostic component (#274), from latest main. Keep one diagnostic implementation team active. Claude PR #273 and active shared-state/hook work remain separate. This issue does not establish full installed automatic Sage or solve upstream required-hook failure handling.

Implementation checkpoint, 2026-10-19

Branch codex/t24-native-workflow-boundaries is pushed at3756f638249b32466798b76f8338b49652f2df06. All four diagnostic paths pass fresh independent native QA on CLI0.160.0 with fixed loopback model responses. Portable tests:15pass/0fail, covering69negative checks. Independent code/QA confirm a repaired unmanaged-stop identity defect: the rejected candidate accepted contradictory child identity; the repair binds it to the authenticated native transcript and observer identities.

All15new tests fail on detached main at valid replay acceptance because the diagnostic interface is absent, excluding setup/import failures. The11new identity tests also fail specifically at contradictory-evidence acceptance on the rejected candidate after valid controls pass.

The full local check fails: npm test -- --test-concurrency=1 gives1756tests/1751pass/5fail. Allfivefailures are unchanged board watcher tests. A separate unchanged-file Node24.21.0 comparison gives20tests/12pass/8fail; a runtime-version switch alone is insufficient in those observed conditions. The failed check remains recorded; this component is not verified or merge-ready. The minimal-board-prerequisite scope question remains unanswered.

No third Codex PR opens while278/279areopen. No production policy, default or Claude-active source changes. These diagnostic passes do not establish installed automatic Sage, required-hook failclosed behavior, complete native execution context, ownership, abrupt-loss settlement or autopilot. All directly owned test/native/push handles for this component are terminal.

Main integration update

Branch now includes main0bc95615 and is pushed at 43779a8d1373906d5bc0a4aadf01a4f99d80cdb4. Build320files and all static checks pass. Portable workflow evidence plus the newly merged principle-table tests pass:19tests/19pass/0fail. The package registration conflict preserves both test sets and main's sync command.

No fresh native trial or full local suite ran on this head. The prior full-suite watcher failures remain unresolved; this update is not their repair. Prior review cycles do not transfer automatically. No third Codex PR opens while278/279 remain open. No task or installed capability is newly verified.

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