---
title: "Legacy Audit"
description: "Disposition of every legacy docs area and its destination in the Atoll Book."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.atoll.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Legacy Audit

This audit determines which legacy material belongs in the Language Guide.
Migration does not mean copying: each destination is rewritten against current
syntax, sema, stdlib signatures, and runtime tests.

## Core language documents

| Legacy document | Book destination |
| --- | --- |
| `docs/grammar.md` | [Source](https://docs.atoll.workreef.dev/language/fundamentals/source/) and [Literals](https://docs.atoll.workreef.dev/language/fundamentals/literals/), plus the future normative grammar |
| `docs/code-style.md` | [Naming specification](https://docs.atoll.workreef.dev/specification/naming/) and current examples throughout |
| `docs/vars.md` | [Bindings](https://docs.atoll.workreef.dev/language/fundamentals/bindings/) |
| `docs/const.md` | [Constants](https://docs.atoll.workreef.dev/language/fundamentals/constants/) |
| `docs/function.md`, `docs/closures.md` | [Functions](https://docs.atoll.workreef.dev/language/fundamentals/functions/) and [Closures](https://docs.atoll.workreef.dev/language/fundamentals/closures/) |
| `docs/operators.md` | [Operators](https://docs.atoll.workreef.dev/language/fundamentals/operators/) |
| `docs/control-flow.md` | [Blocks](https://docs.atoll.workreef.dev/language/control-flow/blocks/) and [Conditionals](https://docs.atoll.workreef.dev/language/control-flow/conditionals/) |
| `docs/loops.md` | [Loops](https://docs.atoll.workreef.dev/language/control-flow/loops/) |
| `docs/match.md` | [Patterns](https://docs.atoll.workreef.dev/language/control-flow/patterns/) and [Match](https://docs.atoll.workreef.dev/language/control-flow/match/) |
| `docs/type-system.md` | [Inference](https://docs.atoll.workreef.dev/language/types/inference/) and [Generics](https://docs.atoll.workreef.dev/language/types/generics/) |
| `docs/structs.md` | [Structs](https://docs.atoll.workreef.dev/language/types/structs/) and [Records](https://docs.atoll.workreef.dev/language/types/records/) |
| `docs/enums.md`, `docs/anon_enum.md` | [Enums](https://docs.atoll.workreef.dev/language/types/enums/) and [Unions](https://docs.atoll.workreef.dev/language/types/unions/) |
| `docs/alias.md`, `docs/projections.md` | [Aliases](https://docs.atoll.workreef.dev/language/types/aliases/) and [Projections](https://docs.atoll.workreef.dev/language/types/projections/) |
| `docs/tuple.md` | [Tuples](https://docs.atoll.workreef.dev/language/types/tuples/); current arrays, lists, and slices are consolidated in [Sequences](https://docs.atoll.workreef.dev/language/types/sequences/) |
| `docs/traits.md` | [Traits](https://docs.atoll.workreef.dev/language/types/traits/) and [Implementations](https://docs.atoll.workreef.dev/language/types/implementations/) |
| `docs/value-semantics.md`, `docs/references.md` | [Values](https://docs.atoll.workreef.dev/language/types/values/) and [Pointers](https://docs.atoll.workreef.dev/language/types/pointers/) |
| `docs/errors.md`, `docs/builtin/option.md`, `docs/builtin/result.md` | Focused chapters under [Errors](https://docs.atoll.workreef.dev/language/errors/) |
| `docs/modules.md`, `docs/project/project.md`, `docs/project/atoll.toml.md`, `docs/project/host.md` | [Modules](https://docs.atoll.workreef.dev/language/modules/), [Imports](https://docs.atoll.workreef.dev/language/modules/imports/), [Visibility](https://docs.atoll.workreef.dev/language/modules/visibility/), and [Projects](https://docs.atoll.workreef.dev/language/modules/projects/) |
| `docs/async.md`, `docs/design/select.md` | Focused chapters under [Concurrency](https://docs.atoll.workreef.dev/language/concurrency/) |
| `docs/model.md` | Current persisted-row subset in [Models](https://docs.atoll.workreef.dev/language/sql/models/); inheritance/behavior proposal excluded |

## Builtin documents

| Legacy document(s) | Disposition |
| --- | --- |
| `builtin/core.md`, `builtin/builtin.md` | [Standard-library overview](https://docs.atoll.workreef.dev/language/standard-library/); compiler-author details later |
| `builtin/int.md`, `builtin/float.md` | [Numbers](https://docs.atoll.workreef.dev/language/standard-library/numbers/) |
| `builtin/string.md`, `builtin/bytes.md` | [Strings](https://docs.atoll.workreef.dev/language/standard-library/strings/) and [Bytes](https://docs.atoll.workreef.dev/language/standard-library/bytes/); nominal `bytes`/`Buffer` corrected to current sequence types |
| `builtin/list.md`, `builtin/map.md`, `builtin/set.md` | [Lists](https://docs.atoll.workreef.dev/language/standard-library/lists/), [Maps](https://docs.atoll.workreef.dev/language/standard-library/maps/), [Sets](https://docs.atoll.workreef.dev/language/standard-library/sets/), and [Iteration](https://docs.atoll.workreef.dev/language/standard-library/iteration/) |
| `builtin/option.md`, `builtin/result.md` | [Option](https://docs.atoll.workreef.dev/language/standard-library/option/) and [Result](https://docs.atoll.workreef.dev/language/standard-library/result/), plus error control flow |
| `builtin/time.md` | [Time](https://docs.atoll.workreef.dev/language/standard-library/time/) |
| `builtin/files.md`, `builtin/http.md`, `builtin/tcp.md` | [Files](https://docs.atoll.workreef.dev/language/standard-library/files/), [HTTP](https://docs.atoll.workreef.dev/language/standard-library/http/), and [TCP](https://docs.atoll.workreef.dev/language/standard-library/tcp/) |
| `builtin/spawn.md`, `builtin/stream.md` | [Concurrency](https://docs.atoll.workreef.dev/language/concurrency/) |
| `builtin/traits.md` | [Traits](https://docs.atoll.workreef.dev/language/standard-library/traits/) |
| `builtin/unsafe.md`, `builtin/intrinsics.md` | [Unsafe](https://docs.atoll.workreef.dev/language/standard-library/unsafe/) and [Intrinsics](https://docs.atoll.workreef.dev/language/standard-library/intrinsics/) |
| `builtin/any.md`, `email.md`, `phone.md`, `queue.md`, `stack.md`, `url.md` | Empty/planned and absent from the installed stdlib; recorded in feature status only |
| `builtin/money.md` | Proposed domain type; no current stdlib `Money` |

## Data language

| Legacy document | Disposition |
| --- | --- |
| `docs/sql/SQL.md` | Reanalyzed into focused [SQL](https://docs.atoll.workreef.dev/language/sql/) chapters; per-feature maturity retained |
| `docs/design/transactions.md` | User-visible semantics in [Transactions](https://docs.atoll.workreef.dev/language/sql/transactions/); executor/Raft design remains runtime material |
| `docs/sql/roadmap.md`, `docs/sql/turso.md`, `docs/design/arrow-integration.md` | Compiler/runtime implementation and project planning, not Language Guide chapters |
| `docs/project/sql.md` | Project configuration/tooling, to be migrated under project tooling |

## Historical application-system proposals

The following are useful design archives but do not correspond to current
declaration kinds. They are summarized in
[feature status](https://docs.atoll.workreef.dev/language/feature-status/):

`actor.md`, `actor-compare.md`, `context.md`, `guard.md`, `job.md`,
`logger.md`, `messages.md`, `messaging.md`, `services.md`, `topic.md`,
`workflows.md`, and every file under `docs/decorators/` (`actors`, `ai`,
`auth`, `data`, `events`, `fields`, `http`, `jobs`, `mcp`, `ui`, and its
index).

No example from those files is taught as current syntax merely because the
generic decorator parser accepts its `@name`.

## Compiler, IR, memory, and runtime material

These areas do not belong in the Language Guide:

- Every `docs/compiler/*.md` file is compiler architecture, planning,
  diagnostics, incremental compilation, debugging, reproducibility, or
  performance material.
- Every `docs/design/*.md` file is implementation design. `async-system.md`,
  `select.md`, and `transactions.md` were used as evidence for reader-visible
  semantics; their ABI and lowering detail remains outside the guide.
- `arena.md`, `boxing-cleanup.md`, `flat.md`, `memory.md`,
  `docs/memory/*.md`, and `wasm_intrinsics_expansion_plan.md` belong in the
  Runtime, MIR, or WasmIR sections. Only their source-visible guarantees were
  extracted.
- `raft.md`, `docs/runtime/*.md`, and `docs/runtime/topics.md` belong in
  runtime/distributed-system documentation.
- `docs/host/host.md` supplies host-binding and capability material; the
  decorator surface is in the guide, while ABI/adapter design belongs under
  Runtime.

## Project tooling and repository notes

Every file under `docs/project/` belongs under Start/Project Tooling rather
than the Language Guide: `atoll.toml.md`, `atoll.yaml.md`, `host.md`,
`hot-deploy.md`, `project.md`, `serialization.md`, `sql.md`, and `tracing.md`.

The meta and work-tracking files `_assessment.md`, `_load.md`,
`_presentation.md`, `_summary.md`, `_next/next.md`, `_next/perf.md`,
`stashed_work_inventory.md`, and compiler plan trackers remain contributor
inputs, not reader chapters.

## Rewrite rules applied

All migrated language material follows these rules:

1. Prefer current parser/sema tests and installed stdlib files over prose.
2. Use lowercase scalar names, PascalCase composite names, square-bracket
   generics, snake_case members, and `SCREAMING_SNAKE_CASE` constants.
3. Replace `let`/`var` with immutable or `mut` `:=` bindings.
4. Separate implemented, provisional, and historical behavior explicitly.
5. Keep ABI, continuation, reference-count, arena, and SQL executor details in
   technical-design sections unless they change the source-language contract.
6. Give every page one primary concept and a one-word title; use two words only
   when the established concept genuinely needs them.

## Second review

A second implementation-led pass corrected several points that the legacy prose
or first migration left ambiguous:

- `string.length()` counts Unicode code points, while `string.len()` counts
  UTF-8 bytes; `byte_length()` is only the deprecated compatibility alias.
- a parsed `binding DATASOURCE := query` prefix is not yet consumed by semantic
  routing, so named route overrides are marked provisional instead of taught as
  operational;
- Turso rejects `FOR UPDATE` rather than silently treating it as a no-op;
- `race` is first completion, not first success, and the current empty form
  still receives conservative static effects;
- DataFusion is a datasource query engine, while every `Df[T]` manipulation
  plan executes through Polars;
- frame, stream, task, file, socket, and transaction cleanup behavior was
  reconciled with current resource and cancellation tests.

These corrections illustrate why a destination is reanalyzed rather than copied
from its source document.

## Third review

A third source-and-test pass tightened contracts that were still broader than
the implementation:

- struct construction currently type-checks supplied known fields but does not
  reliably reject missing, duplicate, or unknown fields, and parsed field
  defaults are not yet applied;
- binding type projections remove `Result` and then at most one supported
  `Option` or collection wrapper, with map projections selecting the value
  type;
- unannotated functions can synthesize a closed error union from several
  propagated error types;
- `catch` may recover to the success type, convert to a new `Result` error
  type, or leave directly through `error`; those outcomes are now documented
  separately;
- naming warnings are opt-in `ATOLL7002` diagnostics, and their current AST
  coverage is narrower than the convention table in `docs/code-style.md`.

The Structs chapter is marked provisional until total construction checking and
field-default lowering are implemented.

Source: https://docs.atoll.workreef.dev/contributing/legacy-doc-audit/index.mdx
