# Interface FirewallResult

Output of the firewall pipeline. Aggregates results from each stage.

interface FirewallResult {
sanitized: {
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;
};
trust: ClassifyResult;
reputation?: ReputationAssessment;
atl: string;
auditEvents: readonly { id: string; type: string }[];
durationMs: number;
}

- Defined in packages/nexus-agents/src/security/firewall/firewall-pipeline.ts:48

##### Index

### Properties

sanitized
trust
reputation?
atl
auditEvents
durationMs

## Properties

### `Readonly` sanitized

sanitized: {
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;
}

#### 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/firewall/firewall-pipeline.ts:49

### `Readonly` trust

trust: ClassifyResult

- Defined in packages/nexus-agents/src/security/firewall/firewall-pipeline.ts:50

### `Optional` `Readonly` reputation

reputation?: ReputationAssessment

- Defined in packages/nexus-agents/src/security/firewall/firewall-pipeline.ts:51

### `Readonly` atl

atl: string

- Defined in packages/nexus-agents/src/security/firewall/firewall-pipeline.ts:52

### `Readonly` auditEvents

auditEvents: readonly { id: string; type: string }[]

- Defined in packages/nexus-agents/src/security/firewall/firewall-pipeline.ts:53

### `Readonly` durationMs

durationMs: number

- Defined in packages/nexus-agents/src/security/firewall/firewall-pipeline.ts:54