Skip to content

feat: make human authority typed instead of implied - #17

Merged
hippoley merged 8 commits into
mainfrom
typed-decision-provenance
Sep 28, 2026
Merged

hippoley merged 8 commits into
mainfrom
typed-decision-provenance

Conversation

@hippoley

Copy link
Copy Markdown
Owner

Reality-driven hardening from two independent failure shapes:

  • Codex timeout/auto-resolution discussions where a machine lifecycle event can look like completed human input.
  • Claude Code role/provenance bugs where system-generated events can arrive through user-shaped channels and be interpreted as consent.

Invariant

A machine event is not a human decision.

This PR adds typed resolution provenance:

human | system | policy | service

Human boundaries default to:

{"required_actor_kind":"human"}

and reject non-human provenance on the normal resolution path.

Machine lifecycle outcomes now use a separate endpoint and can only become:

expired
cancelled

They never manufacture a human resolution.

Example:

POST /v1/requests/attn_.../outcome
{
  "actor": "timeout-worker",
  "actor_kind": "system",
  "outcome": "expired",
  "reason": "deadline elapsed"
}

Result:

status = expired
resolution = null

A deployment can explicitly opt into policy/service resolution with required_actor_kind="any", but it is no longer implicit.

Compatibility

Existing human callers remain compatible because the resolve API defaults actor_kind to human. The security docs are explicit that this is protocol provenance, not an independent IAM proof: trusted surfaces still have to assert actor kind honestly.

Verification

CI covers:

  • system provenance rejected on a human-only boundary
  • rejected machine resolution leaves the request pending
  • machine timeout produces expired, not resolved
  • machine outcome leaves resolution=null
  • human resolution records typed provenance
  • explicit required_actor_kind=any can accept policy provenance
  • existing packaged first-run and Codex allow/deny/PostToolUse E2E remain green

This is intentionally a small integrity change, not a new automation feature.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant