Skip to content

Restore native admission refusal diagnostics (T23) #275

Closed

Description

@erickb336

Sage task T23

Owner-approved acceptance update — 2026-10-19

The owner approved G4: retain current protections and update the diagnostic contract. The two native cases above now test the earlier supported refusal, plus direct tests of stale/ended-tool policy. The old later-tool native sequences remain unproved and are retired from acceptance by this explicit decision; they are not reclassified as passing tests. Historical checkpoints below describe the previous investigation.

Required evidence: exact rejected native request and reason, unchanged protected target/rows, no extra reservation or accepted report, authentic terminal/report paths where applicable, and meaningful direct policy tests with valid controls. Existing synthetic table-mutation coverage alone does not prove a native rejection. Add baseline or mutation proof for new tests. Full checks and independent review remain required. No source or protection changed in this issue update.

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

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

Required paths:

  • Unprepared follow-up refuses before a second native turn, with no added reservation or preparation.
  • An actual native active-retarget request refuses at the supported update boundary. Preserve the original task/run target and authentic reporting/terminal settlement. Direct production-policy tests must also refuse stale or retargeted assignments; do not weaken the earlier native guard.
  • An actual native premature finish refuses without the required authenticated terminal report and recovery proof. Direct production-policy tests must also refuse ended-run tools and preserve the completed row. Do not manufacture a completed active native assignment or bypass the finish boundary.
  • Lead patch refusal occurs before the injected evaluator and leaves no resulting file; compare the existing role-edit route before adding an equivalent probe.

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

The diagnostic team started from main9d650c5 independently of held PR278. Claude's active task-wait, principles-table and review-data changes remain outside this task.

The ended-run native path is not yet established. The current protected finish API requires the exact saved authenticated terminal report and recovery proof. It cannot simply end an active assignment before that same assignment issues its later tool. A later prepared follow-up uses a new assignment. Existing synthetic policy tests cover changed run-table fields, but that does not prove the required native path.

Do not use a manual CLI or table mutation to bypass a protected finish refusal. Do not count unprepared-follow-up refusal as completion of the ended-run tool contract. The team continues the independent unprepared, retarget and lead-edit diagnostics; the ended-run requirement remains open pending a supported ordering or an explicit contract disposition. No runtime policy or default changed.

Native retarget observation: the current sage_update_task returns task-update-rejected with “Reconcile or interrupt these assignments first” while the assignment is active. The diagnostic then fails its old expected-publication assertion (verified: false). This is evidence of an earlier protective refusal, not a passing retarget scenario. The old later-tool contract remains unverified. The failed trial is retained; no runtime rule was weakened.

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