Skip to content

Preserve authorization and disclosure gates in the production kernel #2670

Description

@jbeda

Outcome

Production kernel execution preserves exact-action authorization and truthful output-disclosure boundaries while enforcing required commit gates; durable history never becomes a way around permissions or secret handling.

Parent: #2659.

Scope

Integrate existing permission/review/hook behavior at the new kernel boundaries. Bind requested calls, effective rewritten intents, exact pending asks, final admission, permitted canonical results, and safe evidence separately. Reuse existing policy semantics rather than inventing a new approval/release authority.

Acceptance

  • Authorization and execution interpret the same validated effective arguments; trusted rewrites are rechecked before accepted intent and dispatch.
  • Deny dominance, configured Ask, project trust, permission modes, mutation barriers, and applicable final freshness/cancellation/ownership checks remain effective.
  • Actionable asks and permitted continuation are committed first; an authorized resolution resumes the recorded phase without redoing completed hooks or silently substituting a changed action.
  • Intent acceptance is not irrevocable admission, and a post-execution failure never claims to undo external effects.
  • Raw/unreleased output and payload-bearing hook evidence stay memory-only. Canonical permitted results pass processing, UTF-8 repair, scrubbing/review, and acceptance before model/client release.
  • Lost memory-only holds become explicit unavailable/unknown outcomes; replay/recovery does not rerun a tool to recreate withheld bytes or implicitly resume a canceled run.
  • Real factory/dispatch/restart tests exercise allow/deny/ask, rewritten arguments, revocation/cancellation races, withheld output, failure channels, and safe diagnostics/history projections.
  • Authority-dependent client/API flows distinguish verified input submitter, tool approver, and session owner/action principal, and retain input-authority provenance as principal-ingress, harness-originated, or explicitly unknown. Preserve these distinctions through asynchronous handoffs; session ownership, logical Actor, and diagnostic writer-instance ID are not substitutes for verified caller authority. Coordinate ingress identity supply/preservation with Share session controls and recover original command decisions #2669.
  • Reassess this authority/provenance contract during client/API integration planning, or earlier if an execution consumer needs it. Any further postponement records its reason and next revisit trigger in this issue; missing provenance remains explicitly unknown and is not treated as verified authority.

Dependencies and boundaries

Build on the isolated loop/coordinator and recovery contracts; integrate with request capture, production storage, and shared controls. Separate execution approvals from result-disclosure decisions. Resolve precise continuation/settlement interfaces in scoped planning; no new guardrail decision policy, generic hook engine, blanket extra remote authorization call after every commit, or production activation by this story alone.

Following closure of the passive-session story #2663, this issue owns the deferred authority/provenance contract; #2669 owns supplying and preserving verified prompt/control/approval principals. Assigning responsibility and a planning checkpoint does not select a representation or require implementation immediately. Resolve the necessary contract before identity-bearing production capture or authorized controls rely on it. The capture audit and gap register retain the original risks and deferral rationale.

Design context: authorization and hooks and cancellation/results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions