FoundryOriginalSubject Class

Note

This is an experimental class, and may change at any time.

Invocation-local original-subject assertions, separate from model authentication.

These values are not proof of identity. The receiving model service must establish provenance and invocation binding before using them. This draft does not change model authorization or enable budget enforcement.

Constructor

FoundryOriginalSubject(oid: str | None = None, tid: str | None = None, idtype: str | None = None)

Parameters

Name Description
oid
Default value: None
tid
Default value: None
idtype
Default value: None

Variables

Name Description
oid
str | None

Original subject object ID, not the agent or session owner's ID.

tid
str | None

Original subject tenant ID.

idtype
str | None

Original subject classification, preserved without inference.

Methods

from_headers

Snapshot the proposed platform dictionary without interpreting user-state IDs.

Absent headers, omitted keys, and empty string values remain distinct. Only oid/tid/idtype string members are accepted, in any order. Duplicate fields/keys, unknown members, parameters, and malformed syntax raise.

from_headers

Snapshot the proposed platform dictionary without interpreting user-state IDs.

Absent headers, omitted keys, and empty string values remain distinct. Only oid/tid/idtype string members are accepted, in any order. Duplicate fields/keys, unknown members, parameters, and malformed syntax raise.

from_headers(headers: Mapping[str, str]) -> FoundryOriginalSubject | None

Parameters

Name Description
headers
Required

Case-insensitive inbound HTTP headers.

Returns

Type Description

Subject assertions, or None if the header is absent.

Exceptions

Type Description

The header does not match the draft dictionary profile.

Attributes

idtype

idtype: str | None = None

oid

oid: str | None = None

tid

tid: str | None = None