# llootupsl/profound-cognition architecture

> Architecture diagram of the GitHub repository llootupsl/profound-cognition, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/llootupsl/profound-cognition
- Repository: https://github.com/llootupsl/profound-cognition

## Overview

Profound Cognition is an installable Agent Skill that adapts host-native search, model, and verifier tools to a SHA-frozen research product. The user asks a question; the host starts the product, handles its pending requests, and submits actual tool outputs with provenance. The product’s documented stages govern candidate conclusions through independent verification and publication freeze. The bridge then stages deliverable bytes for review; this is not release authorization. Product internals are represented at the frozen handoff boundary because their implementation is not included in the sampled source.

Main entry points: [`src/native_host_bridge.py`](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/native_host_bridge.py) (Native Host Bridge), [`src/publication_handoff.py`](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/publication_handoff.py) (Publication Handoff), [`FROZEN_HANDOFF.zip`](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip) (Deep Research), [`SKILL.md`](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/SKILL.md) (Skill Instructions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Skill and Bridge"]
  node_skill["Skill Instructions<br/>[SKILL.md]"]
  node_bridge["Native Host Bridge"]
end

subgraph group_product["Frozen Research Product"]
  node_product["Frozen RC14 Product<br/>[FROZEN_HANDOFF.zip]"]
  node_research["Deep Research<br/>[FROZEN_HANDOFF.zip]"]
  node_drafts["Draft Pool<br/>[FROZEN_HANDOFF.zip]"]
  node_independent["Independent Verification<br/>[FROZEN_HANDOFF.zip]"]
  node_closure["Stop Challenger Closure<br/>[FROZEN_HANDOFF.zip]"]
  node_snapshot[("Truth-Frozen Snapshot<br/>[FROZEN_HANDOFF.zip]")]
  node_publication["Publication Freeze<br/>[FROZEN_HANDOFF.zip]"]
end

subgraph group_delivery["Delivery and Evidence"]
  node_evidence[("Run Evidence")]
  node_handoff["Publication Handoff"]
  node_artifacts["Reviewable Artifacts"]
end

node_user(("Research User"))
node_host(("Agent Host"))
node_search{{"Host Search"}}
node_model{{"Host Model"}}
node_verifier{{"Isolated Verifier"}}

node_user -->|"asks question"| node_host
node_host -->|"reads instructions"| node_skill
node_host -->|"runs commands"| node_bridge
node_bridge -->|"prepares and starts"| node_product
node_product -->|"executes research"| node_research
node_research -->|"issues requests"| node_bridge
node_bridge -->|"exposes requests"| node_host
node_host -->|"calls search"| node_search
node_host -->|"calls model"| node_model
node_host -->|"calls verifier"| node_verifier
node_host -->|"submits outputs"| node_bridge
node_bridge -->|"records provenance"| node_evidence
node_research -->|"proposes conclusions"| node_drafts
node_drafts -->|"submits candidates"| node_independent
node_independent -->|"verified conclusions"| node_closure
node_closure -->|"supports closure"| node_snapshot
node_snapshot -->|"permits freezing"| node_publication
node_bridge -->|"invokes delivery"| node_handoff
node_handoff -->|"validates run evidence"| node_evidence
node_handoff -->|"checks frozen result"| node_publication
node_handoff -->|"stages verified bytes"| node_artifacts
node_artifacts -->|"delivers for review"| node_user

click node_skill "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/SKILL.md"
click node_bridge "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/native_host_bridge.py"
click node_product "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip"
click node_research "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip"
click node_drafts "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip"
click node_independent "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip"
click node_closure "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip"
click node_snapshot "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip"
click node_publication "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip"
click node_evidence "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/native_host_bridge.py"
click node_handoff "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/publication_handoff.py"
click node_artifacts "https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/publication_handoff.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skill,node_bridge,node_user toneBlue
class node_product,node_research,node_drafts,node_independent,node_closure,node_snapshot,node_publication toneAmber
class node_evidence,node_handoff,node_artifacts toneMint
class node_host,node_search,node_model,node_verifier toneIndigo
```

## Components

### Skill and Bridge

- [Skill Instructions](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/SKILL.md): `SKILL.md`
- [Native Host Bridge](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/native_host_bridge.py): `src/native_host_bridge.py`

### Frozen Research Product

- [Frozen RC14 Product](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip): `FROZEN_HANDOFF.zip`
- [Deep Research](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip): `FROZEN_HANDOFF.zip`
- [Draft Pool](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip): `FROZEN_HANDOFF.zip`
- [Independent Verification](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip): `FROZEN_HANDOFF.zip`
- [Stop Challenger Closure](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip): `FROZEN_HANDOFF.zip`
- [Truth-Frozen Snapshot](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip): `FROZEN_HANDOFF.zip`
- [Publication Freeze](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/FROZEN_HANDOFF.zip): `FROZEN_HANDOFF.zip`

### Delivery and Evidence

- [Run Evidence](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/native_host_bridge.py): `src/native_host_bridge.py`
- [Publication Handoff](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/publication_handoff.py): `src/publication_handoff.py`
- [Reviewable Artifacts](https://github.com/llootupsl/profound-cognition/blob/staging/v9-rc14-host-native/src/publication_handoff.py): `src/publication_handoff.py`

### Other components

- **Research User**
- **Agent Host**
- **Host Search**
- **Host Model**
- **Isolated Verifier**

## Connections

- Research User → Agent Host: asks question (evidence: `README.md`)
- Agent Host → Skill Instructions: reads instructions (evidence: `README.md`)
- Agent Host → Native Host Bridge: runs commands (evidence: `README.md`)
- Native Host Bridge → Frozen RC14 Product: prepares and starts (evidence: `README.md`)
- Frozen RC14 Product → Deep Research: executes research (evidence: `README.md`)
- Deep Research → Native Host Bridge: issues requests (evidence: `README.md`)
- Native Host Bridge → Agent Host: exposes requests (evidence: `README.md`)
- Agent Host → Host Search: calls search (evidence: `README.md`)
- Agent Host → Host Model: calls model (evidence: `README.md`)
- Agent Host → Isolated Verifier: calls verifier (evidence: `README.md`)
- Agent Host → Native Host Bridge: submits outputs (evidence: `README.md`)
- Native Host Bridge → Run Evidence: records provenance (evidence: `src/native_host_bridge.py`)
- Deep Research → Draft Pool: proposes conclusions (evidence: `README.md`)
- Draft Pool → Independent Verification: submits candidates (evidence: `README.md`)
- Independent Verification → Stop Challenger Closure: verified conclusions (evidence: `README.md`)
- Stop Challenger Closure → Truth-Frozen Snapshot: supports closure (evidence: `README.md`)
- Truth-Frozen Snapshot → Publication Freeze: permits freezing (evidence: `README.md`)
- Native Host Bridge → Publication Handoff: invokes delivery (evidence: `src/native_host_bridge.py`)
- Publication Handoff → Run Evidence: validates run evidence (evidence: `src/publication_handoff.py`)
- Publication Handoff → Publication Freeze: checks frozen result (evidence: `src/publication_handoff.py`)
- Publication Handoff → Reviewable Artifacts: stages verified bytes (evidence: `src/publication_handoff.py`)
- Reviewable Artifacts → Research User: delivers for review (evidence: `README.md`)
