Skip to content

Context assembly derives label origin from resolved typed identity #225

Description

@George-RD

Parent

Spec: provenance labels with typed identity — #220 (wayfinder #193, map #182).

What to build

Have context assembly derive each label's origin from the resolved typed identity of its source, instead of leaving origin unrecorded. In kernel briefcase packing (provenance_from_sections and the pack path), each classified worker-visible section is labelled: an owner-origin section carries Owner(PrincipalId); a bound counterparty section carries Counterparty(IdentityRef); a section whose origin cannot be resolved (e.g. CounterpartyRef::Unresolved) fails closed for rated egress, reusing the existing unclassified-section error. No LLM judgment: origin comes from the kernel's identity resolution only (AD-032/AD-121).

Promise: Immune system. Users: Bell, Auditor.

Acceptance criteria

  • Packing labels each classified worker-visible section with the ProvenanceOrigin resolved for its source.
  • Owner sections -> Owner(PrincipalId); bound counterparty sections -> Counterparty(IdentityRef).
  • A section with no resolvable origin fails closed for rated egress (existing unclassified-section error path).
  • Origin is derived from kernel identity resolution, never from section text/LLM output.
  • Existing briefcase pack tests stay green; new unit tests cover owner/counterparty/unresolved.

Blocked by

Activity

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

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions