W Works v0.1

Works · Standard v0.1

A protocol for how information moves.

Works-Standard specifies the compound architecture for business information systems — nine buildings, four Actor types, an append-only Stream, and the constitutional rules that hold them together.

Maintainer
Babb Works
Status
Active drafting
Version
v0.1-draft
Reference impl.
Workwarrior

01 · Why Works exists

Business information systems have no shared architectural contract.

Every installation reinvents the same decisions: how data enters, where it lives, how it transforms, who authorizes its release, and how to prove any of it happened. Without a shared protocol, every integration is custom and every audit is uncertain.

What Works defines once

  • How chunks enter the compound (Intake)
  • Where they are held (Store, Vault)
  • How they are transformed (Mill)
  • Who authorizes release (Gate)
  • Where every action is recorded (Stream)
  • Who may do what (Actors, capability tokens)

What that eliminates

  • Ad-hoc authorization chains
  • Unrecoverable state after failure
  • Opaque audit trails
  • Incompatible integration surfaces
  • Informal governance of information flow

Works provides the architectural vocabulary so that different installations can speak to each other, audit each other, and extend each other without renegotiating the basics every time.

02 · Our inspiration

Charles Babbage drew the map. Works follows it.

In 1837, Charles Babbage described the Analytical Engine — a mechanical computing machine whose architecture divided the work of computation into three named elements: the Store, which held numbers awaiting operation; the Mill, which performed the arithmetic; and the Barrel, the punched-card mechanism that sequenced the program itself. Babbage's insight was structural — that computation is not a single activity but a composition of memory, transformation, and control, each with a distinct role and a defined boundary between them.

Works inherits these names deliberately, not as ornament but as acknowledgment. The Store holds chunks. The Mill transforms them through a lens pipeline. The Barrel sequences the compound's operations as a stored program. More than a century and a half later, the architectural logic Babbage identified in the gears of a Victorian calculating engine persists intact — Works is one more expression of it, adapted for the compound movement of business information through authenticated, auditable, and authorized paths.

John von Neumann formalized Babbage's intuition in 1945: stored program, system bus, input and output units, the separation of memory from the processor. The diagram below maps Works onto that lineage. The nine buildings are not invented from nothing — they are placed in a tradition.

ACTORS — Human · Agent · Automated · External B / 01 Intake input unit vN: Input Device B / 07 Dispatch output unit vN: Output Device STREAM — constitutional backbone Log (Pacioli append-only) · Bus (BitPads / plain-text) · Replay (catch-up) vN: System Bus — Hollerith encoding: ts op a b c B / 02 · B / 09 Store · Vault memory Store: Row × Level × Bin Vault: permanent archive Bench: Actor working memory Babbage Store, 1837 vN: Memory Unit Pacioli guarantee applies at all levels B / 03 · B / 06 Mill · Gate transform · authorize Mill: lens pipeline transform Gate: approve / archive / reject / hold / reroute Babbage Mill, 1837 vN: ALU + novel Gate layer Right of Assembly — no exit without Gate B / 05 · B / 08 Barrel · Office control · governance Barrel: stored programs Office: token issuance, registry, veto, constitution Babbage Barrel, 1837 vN: Control Unit Office adds governance beyond vN Works compound — after Babbage's Analytical Engine (1837) and von Neumann architecture (1945)

03 · What Works is

A protocol standard, not a product or framework.

Works-Standard is

  • A specification for nine compound buildings
  • A Stream protocol with Pacioli (append-only) and Hollerith (encoding) guarantees
  • A conveyance rule set: which paths are permitted and which are prohibited
  • An Actor model with four types and capability tokens
  • An extension protocol for registering new building types
  • A conformance framework: what a compliant installation must do

Works-Standard is not

  • A software library or runtime
  • A mandate for any programming language
  • A UI framework or application shell
  • A cloud service or centralized dependency
  • A replacement for domain-specific business logic

04 · Core argument

The Stream is the source of truth. Everything else is derived.

If you can replay the Stream from the beginning and reconstruct the full operational state of the compound, you have a system that can survive any failure. That is the Pacioli guarantee — and Works makes it unconditional.

Works enforces this by requiring:

  • Every state change recorded on Stream before it takes effect
  • No chunk moves between buildings without a Stream event
  • No chunk leaves the compound without Gate authorization
  • Every action attributed to a named Actor
  • Vault entries that are permanent and immutable

These are not configuration options. They are the compound's constitution.

05 · Nine buildings

A compound with nine roles — each defined once and frozen in v0.1.

Every Works installation is a compound of buildings. Each building has a defined role, a defined set of permitted interactions, and a defined Stream event vocabulary.

B/01
Intake
Receives data from external sources; verifies, classifies, normalizes, and routes incoming chunks.
B/02
Store
Holds chunks at addressed locations: Row × Level × Bin. Bins are user-defined free-form labels.
B/03
Mill
Transforms chunks through a lens pipeline. Output waits at egress for Gate authorization before leaving.
B/04
Bench
Per-Actor working memory. Not a building in the content path — a pre-commitment scratch space.
B/05
Barrel
Stored programs for orchestrating multi-step compound operations. Automated Actors run as Barrels.
B/06
Gate
The compound's decision point. No chunk leaves without Gate authorization. Five decisions: approve, archive, reject, hold, reroute.
B/07
Dispatch
Delivers Gate-authorized chunks to external destinations. Archives to Vault after successful delivery.
B/08
Office
Compound governance: token issuance, building registry, veto authority, orphan detection, constitutional enforcement.
B/09
Vault
Permanent, immutable archive. Chunks enter via Gate or Dispatch; they never leave.

06 · Stream protocol

Three layers: Log, Bus, Replay — one constitutional guarantee.

The Stream is the Works compound's nervous system. It has three layers that serve distinct purposes:

Layer 01

Log

Append-only file. Hollerith encoding: ts op a b c. Sortable by column 1. Never modified or deleted during normal operation.

Layer 02

Bus

Real-time event delivery to subscribers. BitPads preferred encoding; plain-text Hollerith over socket as fallback. TLS required over non-local networks.

Layer 03

Replay

Catch-up delivery for subscribers that missed events. Full Log replay from ts=0 reconstructs compound state. A synthetic replay-complete signal marks the handoff to live events.

Pacioli guarantee

The Stream Log is append-only. State is the cumulative record of all events from the beginning. No deletion, no modification, no unrecorded state change — ever. This guarantee is unconditional in Works-Standard v0.1.

Hollerith encoding

Every log line is a Hollerith record: five positional fields, a single-letter op code, and a Unix timestamp as the primary sort key. The log is sortable with sort -n -k1 alone — no schema file required.

07 · Conveyance

Every chunk movement is a Stream event. No exceptions.

Conveyance is the operational contract of the compound. The canonical path runs Intake → Store → Mill → Gate → Dispatch → Vault, but Works defines fifteen permitted paths in total.

  • A Stream event is written before the chunk moves — the event is the authorization for the move
  • Every conveyance appends a provenance entry to the chunk cross-referencing the Stream event
  • Bench pulls from Store are not Stream events — Bench is pre-commitment working memory
  • Store reads by Mill are non-destructive — the originals are unchanged
  • A failed Stream Log write prevents the conveyance from proceeding; there is no unrecorded movement
  • Split-brain states are resolved by completing the move, not rolling back — the Stream event is the authority

Prohibited paths

Eleven paths are explicitly prohibited, including: any path from Mill to Dispatch without Gate, External Actors writing to Store directly, Bench content going to Dispatch, and Vault entries returning to any building.

08 · Actors

Four types. Every action is attributed to a named Actor.

Anonymous actions are not permitted in a conforming Works installation. Every operation is attributed to a session and an Actor identity.

Human

Full default capabilities. Gate approval authority. The primary override mechanism in the compound.

Agent

AI actors with a required model field. Cannot self-approve at Gate by default. Context limit enforced.

Automated

Barrels running autonomously. Narrowest default capabilities. Cannot escalate permissions at runtime.

External

Outside systems interacting only through Intake (entry) and Dispatch (exit). No direct Store or Mill access.

09 · Extension protocol

New building types register with Office as first-class compound members.

The nine core buildings are frozen in v0.1. The extension protocol is how Works grows beyond them — without modifying the core standard.

  • An extension building declares one of six roles: input, storage, transformation, output, control, audit
  • Registration requires a declaration, stream compliance statement, gate boundary proof, and Pacioli compliance demonstration
  • Office issues a registration token; until then, the building is an External Actor
  • Registered buildings emit only their declared op codes — violations trigger suspension
  • The S register event is permanent on Stream; deregistration adds S deregister but never removes S register
  • Extension is not a second-class tier — it is the incubator for future core buildings

10 · Standard family

Works-Standard is one layer in a coherent four-standard family.

S/01
BitPads
Binary record encoding protocol. Works uses BitPads as the preferred wire encoding for the Stream Bus and Gate decision payloads. Rich Record (0110) maps to Works Manifest.
S/02
BitLedger
Conservation invariants for financial and accountability records. Works Office uses BitLedger logic for audit balance verification.
S/03
Works-Standard
This document. Compound architecture: nine buildings, Stream protocol, Actors, conveyance, Gate, Office, extension.
S/04
WW-Standard
Workwarrior as a Works reference implementation. Defines how task, time, journal, and ledger data map to Works buildings and Stream events.

11 · Document set v0.1

The current specification documents.

Click any document to read it inline. Each row links directly to the source file in the repository.

Documents 11–15 (Stream Lenses, BitPads binding, BitLedger binding, WW binding, Versioning) are in active drafting and will appear here as they land in the repository.

12 · How to use the repository

A short path from the standard to a conforming implementation.

  1. Read 00-concepts.md first — it defines every term used across the spec set.
  2. Read 02-stream-protocol.md and 01-chunk-format.md — Stream and Chunk are the two substrate layers everything else depends on.
  3. Read 03-buildings.md for the nine building contracts, then 05-conveyance.md for the permitted paths between them.
  4. Use 10-compliance.md as your implementation checklist — it consolidates all MUST requirements in one place.
  5. If building an extension: read 09-extension.md for the registration requirements and op code assignment process.

v0.1 establishes stable building contracts, Stream invariants, and conveyance rules. Future revisions continue through proposal and review.