# Interface ClassifyInput

Input for trust classification.

interface ClassifyInput {
username: string;
authorAssociation: string;
sanitizedInput?: {
content: string;
originalLength: number;
trustTier: "1" | "2" | "3" | "4";
userRole:
| "unknown"
| "owner"
| "maintainer"
| "collaborator"
| "contributor"
| "member";
injectionFlags: (
| "authority_claim"
| "instruction_pattern"
| "system_prompt_manipulation"
| "hidden_content"
| "urgency_manipulation"
| "fake_conversation"
| "base64_encoded"
| "external_link_instruction"
)[];
strippedElements: {
tag: string;
reason: string;
startIndex: number;
length: number;
}[];
wasModified: boolean;
sanitizedAt: string;
};
config?: Partial<
{
allowlistedMaintainers: string[];
failOpen: boolean;
maxInputLength: number;
},
>;
}

- Defined in packages/nexus-agents/src/security/trust-classifier.ts:52

##### Index

### Properties

username
authorAssociation
sanitizedInput?
config?

## Properties

### `Readonly` username

username: string

GitHub username.

- Defined in packages/nexus-agents/src/security/trust-classifier.ts:54

### `Readonly` authorAssociation

authorAssociation: string

GitHub API author_association value.

- Defined in packages/nexus-agents/src/security/trust-classifier.ts:56

### `Optional` `Readonly` sanitizedInput

sanitizedInput?: {
content: string;
originalLength: number;
trustTier: "1" | "2" | "3" | "4";
userRole:
| "unknown"
| "owner"
| "maintainer"
| "collaborator"
| "contributor"
| "member";
injectionFlags: (
| "authority_claim"
| "instruction_pattern"
| "system_prompt_manipulation"
| "hidden_content"
| "urgency_manipulation"
| "fake_conversation"
| "base64_encoded"
| "external_link_instruction"
)[];
strippedElements: {
tag: string;
reason: string;
startIndex: number;
length: number;
}[];
wasModified: boolean;
sanitizedAt: string;
}

Sanitized input (if content has already been through the sanitizer).

#### Type Declaration

- ##### content: string

  Sanitized content with dangerous elements removed.

- ##### originalLength: number

  Original content before sanitization (for audit).

- ##### trustTier: "1" | "2" | "3" | "4"

  Assigned trust tier based on user role and content analysis.

- ##### userRole: "unknown" | "owner" | "maintainer" | "collaborator" | "contributor" | "member"

  GitHub user role of the input source.

- ##### injectionFlags: (
  | "authority_claim"
  | "instruction_pattern"
  | "system_prompt_manipulation"
  | "hidden_content"
  | "urgency_manipulation"
  | "fake_conversation"
  | "base64_encoded"
  | "external_link_instruction"
  )[]

  Injection patterns detected in content.

- ##### strippedElements: { tag: string; reason: string; startIndex: number; length: number }[]

  Elements stripped during sanitization (audit trail).

- ##### wasModified: boolean

  Whether any dangerous content was detected and stripped.

- ##### sanitizedAt: string

  Timestamp of sanitization (ISO 8601).

- Defined in packages/nexus-agents/src/security/trust-classifier.ts:58

### `Optional` `Readonly` config

config?: Partial<
{
allowlistedMaintainers: string[];
failOpen: boolean;
maxInputLength: number;
},
>

Sanitizer config (for allowlist check).

- Defined in packages/nexus-agents/src/security/trust-classifier.ts:60