Skip to content

Atomic dual-authority contract for managed extension phases #3137

Closed

Description

@integry

Outcome

Publish a new strictly versioned Unix-only extension authority contract that atomically joins Core's durable local instance.manage_settings decision with an independently authenticated ProPR Connect/Routing authorization for the same immutable managed-extension phase. This is the upstream prerequisite discovered while implementing integry/propr-fleet#104 against merged Core PR #3122 and Routing ad0c8fbc7ae83478dd5448c54c67e7ab31255ca2.

The current propr.extension-authority.v1 listener admits request and dispatch/completion only once, while the current Routing implementation obtains duplicate fresh decisions for those phases. More importantly, the native envelope is exactly {assertion,request,mac} and has no field or transaction record for the reciprocal Routing decision. A Fleet journal can stop redispatch, but cannot atomically bind that external authority to Core's native mutation.

Required contract

  • Introduce a new explicit contract/schema revision; do not reinterpret already pinned v1 bytes or make old downstream evidence ready.
  • Admit one immutable operation with exactly one durable request decision, one dispatch decision, and one completion decision. Status remains read-only and repeatable only with a fresh single-use challenge. Exact retries may return the retained result only when every committed byte and identity matches; they must never perform another mutation.
  • Define a strict canonical Routing authorization statement for the identical work digest, action, phase, challenge, operation/acquisition/nonce/request digest, complete actor/account/installation/tenant/placement/runtime/storage/extension scope and epochs, producer revision, checked time and exclusive expiry.
  • Require an Ed25519 signature from a separately provisioned Routing authorization key and explicit key/authority epoch. Core receives only the pinned public trust configuration. No response-selected key, discovery, TOFU, fallback verifier, caller-selected route, browser role, shared Fleet HMAC, or private key may substitute for Routing authority.
  • Independently re-evaluate Core's current durable instance.manage_settings authority for the same exact coordinates. Neither the Routing statement nor Core decision alone may admit a phase.
  • In the same SQLite transaction as phase admission and any native state mutation, create the immutable Core decision, Routing statement/signature digest, trust-key/epoch binding, combined decision digest, and phase/result receipt. A crash or lost reply before/after every transaction boundary must be reconstructible without redispatch or manufacturing success.
  • Return canonical Ed25519-signed Core proof bytes that bind the combined decision and exact committed result. Fleet must be able to verify these using its existing independently pinned Core SPKI boundary.
  • Keep the listener on its fixed authenticated Unix route. Keep the fourteen-action native extension contract unchanged unless this new authority revision explicitly and narrowly requires a reciprocal decision commitment field.
  • Never persist or log profile bodies, prompts, skill contents, ciphertext/plaintext, tokens, credentials, private keys, or raw extension results. Only bounded metadata and cryptographic commitments may cross this boundary.
  • Keep public/downstream readiness and every action qualification false. Do not deploy, alter credentials, or claim selected-runtime qualification.

Required failure coverage

Use the real SQLite listener and cover:

  • mismatched phase/challenge/work/action/scope/operation/acquisition/request/nonce and every actor, membership, security, passkey, target, placement, runtime, storage, extension, authority and producer epoch;
  • invalid, noncanonical, unknown-key, stale-key, cross-key, expired/future, replayed and substituted Routing signatures/statements;
  • Routing-authorized/Core-denied and Core-authorized/Routing-denied cases;
  • repeated request, dispatch and completion with fresh challenges; same-challenge exact retry; status challenge reuse; concurrent contenders;
  • process death or lost response immediately before and after each create-only intent, authority admission, native mutation, result commit and reply;
  • changed authority between observation and commit, rollback/clock edge cases, database restart, and retained incomplete/ambiguous operations;
  • proof/result tampering, unknown fields, duplicate JSON keys, noncanonical wire bytes, oversized input, wrong socket/peer/HMAC, and key rotation/epoch substitution.

Publish strict schemas, fixtures, verifier, source manifest/checksums, operator integration notes, and a deterministic fault transcript. Run focused tests, full relevant Core tests, build/typecheck, generated/source/secret/diff checks. Report unrelated broad failures without weakening tests or timeouts.

Downstream handoff

The completion evidence must state the exact merge-ready schema and source pins Fleet/Routing must consume, and the one-call-per-phase semantics Routing must implement. It must not claim integry/propr-fleet#104 or the Routing reciprocal implementation complete.

Activity

  1. propr-dev commented on Oct 15, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6-astra model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6-astra
    • Branch: 3137/gpt-6-astra-atomic-dual-authority-con-20261015-1232-kvr
    • Base Branch: main
    • Worktree: issue-3137-20261015-1232-gpt-6-astra-kvr

    🔍 Track Task Execution

  2. added a commit that references this issue on Oct 15, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions