# xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge architecture

> Architecture diagram of the GitHub repository xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge
- Repository: https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge

## Overview

1. **What this repository is**
   Project Forge is a documentation-driven preparation system for ChatGPT Projects and similar file-based agent workflows. It is not an application runtime; it is a set of canonical instructions, templates, and checks for producing a clean “project opening package.”

2. **Top-level architecture**
   The repo has four main subsystems:
   - **Canonical core**: `00_SCOPE.md`, `01_RULES.md`, `02_PROTOCOL.md`, `03_ARTIFACTS.md`
   - **Operator guidance**: `operator_guide/`
   - **AI bootstrap**: `AI_START.md`
   - **Output artifacts and verification**: `artifact_templates/` and `smoke_test/`

3. **Canonical core boundary**
   The core docs define the system itself: what Project Forge is, what it is not, the operating rules, the protocol, and the artifact grammar. This is the stable layer that should not be mixed with project-specific content. In architecture terms, it acts as the policy-and-schema layer.

4. **Project-opening artifact layer**
   `artifact_templates/` contains the files that Forge helps generate for a real project opening. These are not the system authority; they are output instances. The main templates are:
   - `ENTRY_POINT.md`
   - `TARGET_PROJECT_BRIEF_ARTIFACT.template.md`
   - `INITIAL_SSOT_ARTIFACT.template.md`
   - `SOURCE_OR_MATERIAL_TRANSFER_ARTIFACT.template.md`
   - `HANDOFF_ARTIFACT.template.md`
   This is the project-state layer, where scope, source material, and handoff state live.

5. **Startup and routing flow**
   `AI_START.md` is a routing file for an AI session. Its role is to direct the model into the canonical core first, so the session begins with the system rules instead of ad hoc assumptions. The intended reading order starts there, then moves into the core docs, then into the artifacts.

6. **Operational workflow**
   The main workflow is:
   - define the target project
   - close scope in and scope out
   - review source/material constraints
   - compile opening artifacts
   - create the real project workspace
   - open that project from the prepared files
   This is a preparation pipeline, not a live working environment.

7. **Data flow between layers**
   The flow is one-way from rules to project state:
   - canonical core provides constraints and structure
   - operator or AI uses those constraints to fill templates
   - templates become the opening package for the target project
   - the target project then starts from explicit files rather than chat memory
   This separation is the central architectural boundary in the repo.

8. **Human/operator interface**
   `operator_guide/OPERATOR_GUIDE.md` and `operator_guide/OPERATOR_TECHNICAL_REFERENCE.md` are the main human-facing execution guides. They explain how to use Forge in practice, including how to prepare files and how to reason about the boundary between stable rules and case-specific state.

9. **Verification subsystem**
   `smoke_test/` contains minimal checks for validating that the system can open a project cleanly. This is the repo’s lightweight assurance layer: it tests the startup path and the smallest viable opening case rather than the full preparation workflow.

10. **External compiler**
   The README references a guided browser compiler hosted on GitHub Pages. That is an optional external tool for filling the opening artifacts. It matters architecturally because it is the UI surface for the same file-based preparation model, but it is outside the repository’s own runtime.

11. **Repository’s primary dependency model**
   The repo depends on disciplined file ordering, not code execution. Its “integration points” are humans, AI agents, ChatGPT Projects, IDE/file-based agents, and the optional browser compiler. The critical dependency is correct startup sequence and clean separation of:
   - stable system rules
   - project-specific opening state
   - source material
   - handoff material

12. **How to draw it**
   An accurate diagram would show:
   - a **stable core** block feeding
   - an **artifact-generation** block
   - which produces a **project-opening package**
   - which is then consumed by a **target project workspace**
   Alongside that, show **operator guidance** and **AI bootstrap** as entry paths into the core, and **smoke tests** as validation of the opening process.

Main entry points: [`03_ARTIFACTS.md`](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/03_ARTIFACTS.md) (Artifacts), [`artifact_templates/INITIAL_SSOT_ARTIFACT.template.md`](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/INITIAL_SSOT_ARTIFACT.template.md) (Initial SSOT), [`artifact_templates/TARGET_PROJECT_BRIEF_ARTIFACT.template.md`](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/TARGET_PROJECT_BRIEF_ARTIFACT.template.md) (Project Brief), [`artifact_templates/SOURCE_OR_MATERIAL_TRANSFER_ARTIFACT.template.md`](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/SOURCE_OR_MATERIAL_TRANSFER_ARTIFACT.template.md) (Source Transfer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Canonical core"]
  node_scope["Scope<br/>policy<br/>[00_SCOPE.md]"]
  node_rules["Rules<br/>policy<br/>[01_RULES.md]"]
  node_protocol["Protocol<br/>workflow<br/>[02_PROTOCOL.md]"]
  node_artifacts_doc["Artifacts<br/>schema<br/>[03_ARTIFACTS.md]"]
end

subgraph group_guidance["Operator guidance"]
  node_operator_guide["Operator Guide<br/>[OPERATOR_GUIDE.md]"]
  node_operator_ref["Tech Reference"]
end

subgraph group_bootstrap["AI bootstrap"]
  node_ai_start["AI Start<br/>bootstrap<br/>[AI_START.md]"]
end

subgraph group_artifacts["Artifact generation"]
  node_entry_point["Entry Point<br/>template<br/>[ENTRY_POINT.md]"]
  node_brief_tpl["Project Brief<br/>template"]
  node_ssot_tpl["Initial SSOT<br/>template"]
  node_transfer_tpl["Source Transfer<br/>template"]
  node_handoff_tpl["Handoff<br/>template"]
end

subgraph group_verification["Verification"]
  node_smoke_spec["Smoke Test<br/>validation<br/>[SMOKE_TEST.md]"]
  node_case_minimal["Minimal Case<br/>fixture"]
end

subgraph group_consumers["Consumers"]
  node_browser_compiler["Browser Compiler<br/>external tool"]
  node_target_workspace[("Target Workspace<br/>downstream project")]
end

node_readme["README<br/>overview<br/>[README.md]"]

node_readme -->|"routes to"| node_ai_start
node_ai_start -->|"loads"| node_scope
node_scope -->|"defines context for"| node_rules
node_rules -->|"constrains"| node_protocol
node_protocol -->|"specifies"| node_artifacts_doc
node_scope -->|"informs"| node_operator_guide
node_rules -->|"informs"| node_operator_ref
node_operator_guide -->|"fills"| node_brief_tpl
node_operator_ref -->|"supports"| node_transfer_tpl
node_protocol -->|"orchestrates"| node_entry_point
node_artifacts_doc -->|"schemas"| node_entry_point
node_artifacts_doc -->|"schemas"| node_brief_tpl
node_artifacts_doc -->|"schemas"| node_ssot_tpl
node_artifacts_doc -->|"schemas"| node_transfer_tpl
node_artifacts_doc -->|"schemas"| node_handoff_tpl
node_brief_tpl -->|"feeds"| node_ssot_tpl
node_transfer_tpl -->|"feeds"| node_ssot_tpl
node_ssot_tpl -->|"concludes in"| node_handoff_tpl
node_entry_point -->|"opens"| node_target_workspace
node_handoff_tpl -->|"delivers"| node_target_workspace
node_smoke_spec -->|"includes"| node_case_minimal
node_case_minimal -->|"verifies"| node_target_workspace
node_browser_compiler -->|"can fill"| node_brief_tpl
node_browser_compiler -->|"can fill"| node_transfer_tpl
node_browser_compiler -->|"can fill"| node_ssot_tpl

click node_readme "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/README.md"
click node_scope "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/00_SCOPE.md"
click node_rules "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/01_RULES.md"
click node_protocol "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/02_PROTOCOL.md"
click node_artifacts_doc "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/03_ARTIFACTS.md"
click node_operator_guide "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/operator_guide/OPERATOR_GUIDE.md"
click node_operator_ref "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/operator_guide/OPERATOR_TECHNICAL_REFERENCE.md"
click node_ai_start "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/AI_START.md"
click node_entry_point "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/ENTRY_POINT.md"
click node_brief_tpl "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/TARGET_PROJECT_BRIEF_ARTIFACT.template.md"
click node_ssot_tpl "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/INITIAL_SSOT_ARTIFACT.template.md"
click node_transfer_tpl "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/SOURCE_OR_MATERIAL_TRANSFER_ARTIFACT.template.md"
click node_handoff_tpl "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/HANDOFF_ARTIFACT.template.md"
click node_smoke_spec "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/smoke_test/SMOKE_TEST.md"
click node_case_minimal "https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/smoke_test/CASE_01_MINIMAL_OPENING.md"

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_scope,node_rules,node_protocol,node_artifacts_doc toneBlue
class node_operator_guide,node_operator_ref toneAmber
class node_ai_start toneMint
class node_entry_point,node_brief_tpl,node_ssot_tpl,node_transfer_tpl,node_handoff_tpl toneRose
class node_smoke_spec,node_case_minimal toneIndigo
class node_browser_compiler,node_target_workspace toneTeal
class node_readme toneNeutral
```

## Components

### Canonical core

Stable policy and schema layer for the system

- [Scope](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/00_SCOPE.md): policy · Defines what Project Forge is and is not · `00_SCOPE.md`
- [Rules](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/01_RULES.md): policy · Operating rules and constraints · `01_RULES.md`
- [Protocol](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/02_PROTOCOL.md): workflow · Required operating sequence · `02_PROTOCOL.md`
- [Artifacts](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/03_ARTIFACTS.md): schema · Artifact grammar and structure · `03_ARTIFACTS.md`

### Operator guidance

Human-facing usage and technical reference materials

- [Operator Guide](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/operator_guide/OPERATOR_GUIDE.md): guide · Practical usage instructions · `operator_guide/OPERATOR_GUIDE.md`
- [Tech Reference](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/operator_guide/OPERATOR_TECHNICAL_REFERENCE.md): reference · Technical reference for operators · `operator_guide/OPERATOR_TECHNICAL_REFERENCE.md`

### AI bootstrap

Session entry routing into the canonical core

- [AI Start](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/AI_START.md): bootstrap · Routing file that sends a session into the core · `AI_START.md`

### Artifact generation

Templates for assembling the project-opening package

- [Entry Point](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/ENTRY_POINT.md): template · Starting point for an opening package · `artifact_templates/ENTRY_POINT.md`
- [Project Brief](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/TARGET_PROJECT_BRIEF_ARTIFACT.template.md): template · Target project definition template · `artifact_templates/TARGET_PROJECT_BRIEF_ARTIFACT.template.md`
- [Initial SSOT](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/INITIAL_SSOT_ARTIFACT.template.md): template · Single source of truth seed artifact · `artifact_templates/INITIAL_SSOT_ARTIFACT.template.md`
- [Source Transfer](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/SOURCE_OR_MATERIAL_TRANSFER_ARTIFACT.template.md): template · Source or material intake template · `artifact_templates/SOURCE_OR_MATERIAL_TRANSFER_ARTIFACT.template.md`
- [Handoff](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/artifact_templates/HANDOFF_ARTIFACT.template.md): template · Final handoff artifact template · `artifact_templates/HANDOFF_ARTIFACT.template.md`

### Verification

Minimal checks for the clean opening path

- [Smoke Test](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/smoke_test/SMOKE_TEST.md): validation · Minimal verification of the opening path · `smoke_test/SMOKE_TEST.md`
- [Minimal Case](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/smoke_test/CASE_01_MINIMAL_OPENING.md): fixture · Smallest viable opening scenario · `smoke_test/CASE_01_MINIMAL_OPENING.md`

### Consumers

External or downstream environments that use the prepared package

- **Browser Compiler**: external tool · Optional external UI for filling opening artifacts
- **Target Workspace**: downstream project · Prepared project environment opened from the package

### Other components

- [README](https://github.com/xxyoudeadpunkxx/gpt-pf-chat-gpt-project-forge/blob/main/README.md): overview · Top-level description and entry context · `README.md`

## Connections

- README → AI Start: routes to · Primary session entry points into the bootstrap path
- AI Start → Scope: loads · Directs the model into the stable core first
- Scope → Rules: defines context for · Core policy layer proceeds from scope into rules
- Rules → Protocol: constrains · Rules inform the required operating sequence
- Protocol → Artifacts: specifies · Protocol culminates in the artifact grammar
- Scope → Operator Guide: informs · Human guidance is grounded in the canonical scope
- Rules → Tech Reference: informs · Technical reference depends on core constraints
- Operator Guide → Project Brief: fills · Operator prepares the project brief from guidance
- Tech Reference → Source Transfer: supports · Reference helps structure source material intake
- Protocol → Entry Point: orchestrates · Entry point organizes the opening workflow
- Artifacts → Entry Point: schemas · Artifact grammar defines the entry-point file
- Artifacts → Project Brief: schemas · Artifact grammar defines the brief template
- Artifacts → Initial SSOT: schemas · Artifact grammar defines the SSOT seed
- Artifacts → Source Transfer: schemas · Artifact grammar defines source transfer
- Artifacts → Handoff: schemas · Artifact grammar defines final handoff
- Project Brief → Initial SSOT: feeds · Project definition informs the initial source of truth
- Source Transfer → Initial SSOT: feeds · Transferred material informs the source of truth
- Initial SSOT → Handoff: concludes in · Opening state resolves into a handoff package
- Entry Point → Target Workspace: opens · Prepared package is consumed by the downstream workspace
- Handoff → Target Workspace: delivers · Handoff artifact seeds the target project
- Smoke Test → Minimal Case: includes · Smoke test describes the minimal case
- Minimal Case → Target Workspace: verifies · Minimal case validates clean project opening
- Browser Compiler → Project Brief: can fill · Optional external UI may populate the opening templates
- Browser Compiler → Source Transfer: can fill · Optional external UI may populate the opening templates
- Browser Compiler → Initial SSOT: can fill · Optional external UI may populate the opening templates
