Add PCN Studio manifesto and context specification
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
|
||||
---
|
||||
|
||||
# 📄 3️⃣ `docs/ARCHITECTURE_OVERVIEW.md`
|
||||
|
||||
```markdown
|
||||
# PCN Studio — Architecture Overview
|
||||
|
||||
## Livelli
|
||||
|
||||
### 1. Data Layer
|
||||
|
||||
- World JSON
|
||||
- Pack JSON
|
||||
- Global JSON (lighting, camera, ecc.)
|
||||
|
||||
Output: PCN_CONTEXT.pool
|
||||
|
||||
---
|
||||
|
||||
### 2. Selection Layer
|
||||
|
||||
Nodi modulari:
|
||||
|
||||
- World Loader
|
||||
- Outfit Picker
|
||||
- Pose Picker
|
||||
- Background Picker
|
||||
- Lighting Picker
|
||||
- Object Picker
|
||||
- Accessories Picker
|
||||
|
||||
Ogni nodo:
|
||||
- legge PCN_CONTEXT
|
||||
- modifica selected.*
|
||||
- passa avanti il contesto
|
||||
|
||||
---
|
||||
|
||||
### 3. Composition Layer
|
||||
|
||||
Prompt Composer:
|
||||
|
||||
- Legge world + selected
|
||||
- Applica regole
|
||||
- Costruisce prompt_base
|
||||
- Scrive output.*
|
||||
|
||||
---
|
||||
|
||||
### 4. LLM Layer
|
||||
|
||||
Enhancer separato:
|
||||
|
||||
- Temperature
|
||||
- Top_p
|
||||
- Repetition penalty
|
||||
- Model selection
|
||||
|
||||
Non modifica world.
|
||||
Non modifica pool.
|
||||
|
||||
Lavora solo su prompt_base.
|
||||
|
||||
---
|
||||
|
||||
### 5. Render Layer
|
||||
|
||||
ComfyUI pipeline esistente:
|
||||
|
||||
- KSampler
|
||||
- LoRA
|
||||
- Upscale
|
||||
- Post-processing
|
||||
|
||||
PCN Studio non modifica questo livello.
|
||||
|
||||
---
|
||||
|
||||
## Flusso Dati
|
||||
|
||||
World/Pack → PCN_CONTEXT → Picker → Composer → LLM → Render
|
||||
|
||||
---
|
||||
|
||||
## Design Goals
|
||||
|
||||
- Modularità
|
||||
- Riproducibilità
|
||||
- Estendibilità futura
|
||||
- Compatibilità con Classic
|
||||
- Leggibilità del workflow
|
||||
|
||||
PCN Studio deve crescere senza diventare ingestibile.
|
||||
@@ -0,0 +1,23 @@
|
||||
# PCN_CONTEXT Specification (v0.1-dev)
|
||||
|
||||
## Scopo
|
||||
|
||||
PCN_CONTEXT è l’oggetto di stato condiviso tra tutti i nodi della PCN Suite.
|
||||
|
||||
Rappresenta l’intero processo creativo in forma serializzabile e riproducibile.
|
||||
|
||||
---
|
||||
|
||||
## Struttura Base
|
||||
|
||||
```json
|
||||
{
|
||||
"version": "PCN_CONTEXT_0.1",
|
||||
"world": {},
|
||||
"pool": {},
|
||||
"selected": {},
|
||||
"rules": {},
|
||||
"output": {},
|
||||
"llm": {},
|
||||
"debug": {}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
# PCN Studio — Manifesto
|
||||
|
||||
## Visione
|
||||
|
||||
PCN Studio nasce per trasformare il PromptCreatorNode da generatore di prompt
|
||||
a sistema di direzione creativa strutturato.
|
||||
|
||||
L'obiettivo non è aumentare la casualità.
|
||||
L'obiettivo è disciplinarla.
|
||||
|
||||
PCN Studio introduce stratificazione, modularità e controllo,
|
||||
senza rompere la stabilità della versione Classic.
|
||||
|
||||
---
|
||||
|
||||
## Principi Fondanti
|
||||
|
||||
### 1. Separazione dei Livelli
|
||||
|
||||
PCN Studio è diviso in layer indipendenti:
|
||||
|
||||
- Data Layer (World + Pack)
|
||||
- Selection Layer (Picker)
|
||||
- Composition Layer (Composer)
|
||||
- LLM Layer (Enhancer)
|
||||
- Render Layer (Comfy pipeline)
|
||||
|
||||
Ogni layer ha responsabilità precise.
|
||||
Nessun layer deve fare il lavoro di un altro.
|
||||
|
||||
---
|
||||
|
||||
### 2. Backward Compatibility
|
||||
|
||||
PromptCreatorNode Classic resta stabile.
|
||||
PCN Studio non rompe i world esistenti.
|
||||
Ogni evoluzione deve essere opzionale.
|
||||
|
||||
---
|
||||
|
||||
### 3. PCN_CONTEXT come Contratto Universale
|
||||
|
||||
Tutti i nodi della Suite comunicano tramite un unico oggetto:
|
||||
PCN_CONTEXT.
|
||||
|
||||
Nessun nodo deve:
|
||||
- ricaricare file
|
||||
- generare stato nascosto
|
||||
- dipendere da logiche interne non visibili
|
||||
|
||||
---
|
||||
|
||||
### 4. Modularità > Monolite
|
||||
|
||||
Funzioni complesse devono vivere in nodi separati.
|
||||
UI pesanti devono essere evitate.
|
||||
Il canvas può crescere, ma l’architettura deve restare leggibile.
|
||||
|
||||
---
|
||||
|
||||
### 5. Direzione > RNG
|
||||
|
||||
La casualità è uno strumento.
|
||||
La coerenza è un obiettivo.
|
||||
|
||||
PCN Studio permette:
|
||||
- Lock per categoria
|
||||
- Weighted selection
|
||||
- Stickiness (coerenza tra run)
|
||||
- Reproducibilità completa
|
||||
|
||||
---
|
||||
|
||||
## Obiettivo 2.0
|
||||
|
||||
Creare un ecosistema:
|
||||
|
||||
- PCN Classic (Stable)
|
||||
- PCN Studio (Advanced)
|
||||
- Pack Format (estensibile)
|
||||
- World Manifest modulare
|
||||
|
||||
PCN Studio non è un refactor.
|
||||
È una maturazione architetturale.
|
||||
Reference in New Issue
Block a user