World Format

Overview

World is a human-editable text format for describing the complete state of a small system.

It is designed for:

World is not a database schema, not TOML, not YAML, and not INI —
but it intentionally borrows familiar surface syntax from all three.

The primary design goal is:

Edit the world itself, not CRUD forms.


Core Concepts

1. The Document Represents the World

A World document represents a snapshot of the entire state.

The system does not expose explicit Create / Update / Delete operations.
State changes are expressed by producing a new version of the document,
whether edited by a human or generated by a program.


Syntax

2. Node Declaration

A node is declared using a single-bracket absolute path.

Example:

[task1]

Example:

[projectA/task1/subtask1]

3. Attributes

Attributes are assigned using =.

Escaped example:

name = "Write report"
done = false
priority = 2

Rules:

Supported value types:


4. Hierarchy

Hierarchy is expressed only through paths.

Escaped example:

[task1]
name = "Task 1"

[task1/sub1]
name = "Subtask 1"
done = false

Notes:

This maps naturally to a tree structure.


5. Arrays (Repetition Rule)

Arrays are created implicitly by repeating the same absolute path.

Escaped example:

[task]
name = "Task A"

[task]
name = "Task B"

This results in:

No special array syntax is required.


6. Hierarchy with Arrays

Hierarchy and arrays compose naturally when paths are explicit.

Escaped example:

[task]
name = "Task A"

[task/sub]
name = "Subtask 1"

[task/sub]
name = "Subtask 2"

Important:


Semantics

7. Interpretation Model


8. JavaScript Object Mapping

The format is designed to map directly to a JavaScript object.

Conceptual example (non-executable):

{
  task: {
    name: "Task A",
    sub: [
      { name: "Subtask 1" },
      { name: "Subtask 2" }
    ]
  }
}

Design Principles

9. Minimal Syntax


10. Human-First Editing

Errors are structural, not semantic.


Non-Goals

World intentionally does NOT aim to provide:

Those belong to other layers.


Summary

World is a format for people who:

You do not edit records.
You rewrite the world.