Strata of Reality
Introduction
Every complex system in nature and civilization is organized in layers. Geological strata. The OSI network model. A city from bedrock to skyline. Maslow's hierarchy of needs. The atmosphere from troposphere to exosphere. The floor plan of a building from foundation to roof. Prospectus Celestial's eight-layer rendering system is not a programmer's invention — it is a rediscovery of the universal organizational principle of any system that must compose many kinds of things into a coherent whole.
"To understand any complex system, find its layers. The layers tell you what depends on what, what is foundational and what is contingent, what endures and what changes."
The Eight Layers of Prospectus Celestial
Elements on Layer 0 are drawn first (painted behind everything). Layer 7 elements are drawn last (painted over everything). Within a layer, declaration order determines draw order. The default layer for unspecified elements is Layer 2.
The Geological Strata Parallel
Geological strata are the original layer system. The science of stratigraphy — reading the history of Earth from the sequence of rock layers — was formalized by William Smith in 1815 ("the Father of English Geology") and forms the basis of all modern geological dating. The principle is simple: lower layers are older; upper layers are newer; the sequence tells the story.
The parallel to PCML is precise: Layer 0 (background) is the oldest, most fundamental context — the geological basement rock beneath all more recent deposits. Layer 7 (foreground) is the most recent, most contingent — the topsoil, the deposit laid down today. Remove Layer 7 and the scene still makes sense. Remove Layer 0 and there is nothing for anything else to rest upon.
| PCML Layer | Geological Stratum | Approximate Age (Earth example) |
|---|---|---|
| Layer 0 (Background) | Precambrian basement rock | 500 million — 4 billion years |
| Layer 1 (Terrain) | Paleozoic sedimentary rock | 250 — 500 million years |
| Layer 2 (World objects) | Mesozoic rock (age of dinosaurs) | 66 — 250 million years |
| Layer 3 (Characters) | Cenozoic rock (age of mammals) | 2 — 66 million years |
| Layer 4 (Effects) | Quaternary deposits (ice ages) | 12,000 — 2 million years |
| Layer 5 (HUD) | Holocene soil (human history) | 0 — 12,000 years |
| Layer 6 (Notifications) | Recent alluvium (this century) | 0 — 100 years |
| Layer 7 (Debug/Override) | Today's topsoil | This year |
The OSI Network Model
The Open Systems Interconnection (OSI) model, standardized by the ISO in 1984, defines seven layers of network communication. It is the most influential layer architecture in the history of computing — and it follows the same principles as PCML's layer stack: each layer depends only on the layer below it and provides services only to the layer above it.
| OSI Layer | Name | Function | PCML Analog |
|---|---|---|---|
| 7 | Application | User-facing protocols (HTTP, SMTP, DNS) | Layer 7: Debug/Override — the user-facing top |
| 6 | Presentation | Data formatting, encryption (TLS) | Layer 6: Notification overlay |
| 5 | Session | Session management, authentication | Layer 5: HUD/UI — the persistent interface |
| 4 | Transport | Reliable delivery (TCP), flow control | Layer 4: Effects — dynamic, transient |
| 3 | Network | Routing, IP addressing | Layer 3: Characters — the active agents |
| 2 | Data Link | Frame transmission, MAC addressing | Layer 2: World objects |
| 1 | Physical | Electrical signals, fiber, radio waves | Layer 0–1: Background/Terrain |
The principle of layer encapsulation is identical in both models: a TCP segment does not know whether it travels over copper wire or fiber optic cable (Layer 1 is hidden from Layer 4). A PCML Layer 5 HUD element does not know whether Layer 0 is a photograph or a procedurally generated skybox — it simply renders above it.
Maslow's Hierarchy of Needs
Abraham Maslow's hierarchy (1943) organizes human needs into five layers: Physiological → Safety → Love/Belonging → Esteem → Self-Actualization. The structure is not arbitrary — it is a dependency graph. You cannot pursue Esteem (Layer 4) while Physiological needs (Layer 1) go unmet. Each layer depends on the foundation below it being stable.
This is identical to PCML's rendering guarantee: Layer 5 (HUD) is drawn only after Layers 0–4 have been processed. If the background (Layer 0) fails to load, the entire rendering pass is invalid. The hierarchy is both logical and operational.
The Layers of a City
A city is a layer system built over centuries. From bedrock to skyline, the layers of a modern city follow the same dependency structure as PCML:
- Layer 0 — Bedrock and geology: The physical substrate. Cannot be changed without enormous effort. Everything above depends on its stability.
- Layer 1 — Underground infrastructure: Water mains, sewers, subway tunnels, electrical conduits. Foundational services hidden beneath the surface.
- Layer 2 — Street grid and roads: The navigational skeleton of the city. Defines where movement is possible.
- Layer 3 — Buildings and structures: The primary human-inhabited objects within the street grid.
- Layer 4 — Public space and parks: The dynamic, seasonal layer — changes with time, weather, use.
- Layer 5 — Signage, lighting, urban furniture: The HUD of the city — the information layer that helps users navigate the layers below.
- Layer 6 — Events and temporary installations: Parades, markets, construction zones — the notification overlay of city life.
- Layer 7 — Airspace and digital overlays: The highest, most contingent layer — drone corridors, AR overlays, cellular signals. Wraps back to Layer 0 through the Infinity Principle as cities are rebuilt.
Layer Architecture in Software Systems
Software engineering independently discovered the layer principle in multiple domains:
| System | Layers | Dependency Direction |
|---|---|---|
| Operating system | Hardware → Kernel → System calls → Libraries → Applications | Upper layers depend on lower |
| Web stack | Hardware → OS → Database → Application server → Web framework → Browser → DOM | Upper layers depend on lower |
| TCP/IP stack | Physical → Data Link → Network → Transport → Application | Each layer encapsulates the one below |
| Graphics pipeline | Vertex → Tessellation → Geometry → Rasterization → Fragment → Output | Sequential; each stage feeds the next |
| PCML layer stack | Layer 0 (bg) → Layer 7 (overlay) | Higher layers draw over lower layers |
The Grand Comparison Table
| PCML Layer | Geology | OSI Model | Maslow | City | OS |
|---|---|---|---|---|---|
| 0 Background | Basement rock | Physical | Physiological | Bedrock | Hardware |
| 1 Terrain | Sedimentary | Data Link | Safety | Underground infra | Kernel |
| 2 World objects | Mesozoic | Network | Safety | Street grid | System calls |
| 3 Characters | Cenozoic | Transport | Love/Belonging | Buildings | Libraries |
| 4 Effects | Quaternary | Session | Esteem | Public space | Middleware |
| 5 HUD/UI | Holocene soil | Presentation | Esteem | Signage/lighting | UI framework |
| 6 Notifications | Recent alluvium | Application | Self-actualization | Events | Application |
| 7 Debug/Override | Today's topsoil | Application (top) | Peak experience | Airspace/AR | Debug tools |