Multi-Agent Simulations (Societies)#
A multi-agent simulation (often referred to as a society when modeling a population of users, readers, or buyers) is not a separate engine — it is simply one shared World containing multiple computers where each actor runs an agent or Persona Harness on their own phone or desktop.
Because every actor interacts through the same world clock, synthetic network, and state store:
- What one person posts, buys, emails, or breaks immediately changes what every other person sees.
- Every run is a pure function of
(world, spec, seed, journal)— byte-exact replayable and forkable into matched A/B experiment arms (change one feature, price, or message for half the population and compare person by person). - Any actor can run an operator harness, a scripted baseline, a psychometric/energy Persona harness, or a frontier VLM — freely mixed inside the same world.
Over the hosted API, a multi-agent cohort is attached when an environment boots, stepped in rounds, and branched via standard environment forks (Hosted API § Societies and forks):
curl -s $API/environments -H "authorization: Bearer $CW_KEY" \
-d '{"template": "company-2026", "society": {"id": "rumor-cascade", "journal": "builtin"}}'
curl -s $API/environments/$E/society/rounds -H "authorization: Bearer $CW_KEY" -d '{"count": 2}'
curl -s $API/environments/$E/society/summary -H "authorization: Bearer $CW_KEY"
The spec#
Specs are JSON. The built-in ones belong to a built-in template and are listed by
GET /v1/templates/{id}/societies; a spec of your own is sent in the environment's boot
(society.spec). The field
names follow a schema sketch drawn from those projects; where this implementation adds a
field or leaves part of the sketch uncompiled, the table says so.
| Field | Compiles to |
|---|---|
schema_version, id | 1; the id is appended to the world's (northstar-company-2026+rumor-cascade). |
world | The base world: a built-in world (worlds/company-2026 in a built-in spec) or a world definition; over the hosted API, the environment's template or definition. It is copied, never edited. Omitted, the built-in world the spec belongs to. |
world_overlay (an addition) | An entities overlay (a cast of organisations and people compiled onto a world) applied to world the way the entity compiler applies one (new services, service_patches, internet_overlays, network, id_suffix), so a spec can name a base world and an overlay instead of a copied world.json. |
seed | The world's seed and the root of every draw the society makes. A run's own seed overrides it; sweep.replicates runs one experiment per seed. |
clock | quantum (a round, e.g. 1h), rounds or horizon (8h is eight one-hour rounds), slot (2m, each active person's share of a round) and start (the wall-clock time of round 0, read for its hour of day). |
structure, operation | structure is description only. operation.observation is semantic (granted semantic.v1) or pixels; max_actions_per_session becomes the session's action budget and a cap on a person's gestures; max_actions_per_activation (an addition) caps gestures per activation, default 4. |
people[] | Named individuals: id, devices, accounts, persona, rules, policy, activation, unit. |
populations[] | count people sampled from sample, with persona, device (or devices), accounts, rules, policy and activation as templates over the sampled values ({name}, {age}, {handle}, {index}, {id}). Member ids are <population>-<index> (id_format changes that). |
devices[] | One computer each: machine, profile (ios, android, macos, windows, ubuntu), presentation (default by profile: phones are phone), apps, open (the app launched at boot, default the first), viewport (default 390×844 for a phone, 1280×800 otherwise), files. |
accounts | {site: handle} per person. On a social site (x-social, mastodon, bsky, linkedin, …) an account with actor set to the person, so the site knows who is signed in. Accounts on other kinds of service are listed as uncompiled. |
accounts[] (top level, an addition) | Accounts no person holds: a news outlet, a rumor mill. existing: true names one the base world already has (NorthstarHQ) without restating it. |
graphs[] | Follows on a social site: generator watts_strogatz (k, p; mutual), barabasi_albert (m, reciprocal), bernoulli (p, optionally from and to groups, directed) or complete, over a group. |
exogenous[] | {at: round, as: person or handle, do: {service, post: {id, text, reply_to, quoted, likes, reposts}}}. Round 0 posts are initial state; later ones are owner writes at the start of their round. |
orgs[] | units and reports_to become lines of each member's persona ("You work at … in the CAD unit", "You report to …"). channels and repos are listed as uncompiled. |
checks[] | {id, metric, min, max}, evaluated in every arm at every round. |
outcomes | preregistered[] and (an addition) secondary[], each {id, metric, direction, at}. |
interventions | design: matched_fork, fork_at (a round, or +2h), arms[] of {id, ops}. |
sweep | replicates: a list of seeds. |
asks (an addition) | {services, model, reasoning, max_per_round}: the services whose questions this society's model answers (see Services that ask). services lists them (["alibaba"]); model names the model (the society's own when left out); reasoning is none (the default) or an effort; max_per_round (60) caps the answers of a round. |
traces | Accepted; everything is traced. deltas (an addition) lists services whose changes each activation records as a delta (see the ledger). |
Groups, wherever a field takes one: everyone, people, people.<id>,
populations.<id>, accounts.<handle>, or a list of them.
Sampling#
Each member of a population is the engine's draw:
computerworld.instantiate on a pseudo-procedure whose params are built from sample,
seeded from population/<id> at the member's index. So the draws are the procedure
engine's own, the same on every platform and binding.
| Rule | Param |
|---|---|
{"choice": [...], "weights": [3, 2]} | choice (weights repeat entries; whole numbers) |
{"choose": 2, "from": [...]} | choice over every combination |
{"dist": "uniform", "min": 18, "max": 70} | integer |
{"dist": "normal", "mean": 38, "sd": 13, "min": 18} | the sum of four integers (Irwin–Hall) with that mean and deviation, clamped; an sd under 5 is drawn in hundredths |
{"format": "{name}-{index}"} | filled after the draw |
| a plain value | a constant |
Policies#
kind | What the person does when active |
|---|---|
llm | Looks at the screen (windows, the controls that are on screen, their painted text), and asks the model for one gesture with persona, rules and intent, up to max_actions_per_activation times or until it answers done or wait. The prompt is the society runner's own; the model is DeepSeek (DEEPSEEK_MODEL, default deepseek-flash, reasoning effort low) unless policy.model names another. |
scripted | For each post on screen not yet considered, one draw from policy/<person>/<post> chooses repost, like, reply (with reply_text) or nothing by the given chances. avoid_repost lists posts it never reposts. |
procedure | Draws an instance of procedure (a path or an inline procedure) from procedure/<person> at the round, stages it and projects it through the person's session. |
harness | Is decided by a harness, through the agent loop a hosted agent runs (see below). harness names it: a catalog id or a scripted-<uuid> of the organization; omitted, computatrum-1.0-normal, as for a hosted agent. |
idle | Nothing. |
Every gesture of an llm or scripted person goes through World.perform: the same grounding a procedure gets, so a
person never invents coordinates and every action is an ordinary recorded one. A
scroll over a post that nothing a click reaches falls back to a wheel over the middle
of the screen, as a thumb would.
Harness people#
A person with policy: {"kind": "harness", "harness": "…", "intent": "…"} is decided the way a
hosted agent is: the same loop (look, decide, check, act) with the same
harness objects, over the person's own phone or computer. The round pauses at their activation;
the API runs their turn, during the POST …/society/rounds call, and the round goes on with the
next person. The loop's task is the person's persona, the rules they follow now, and their
intent (or their persona's goal). It takes at most max_actions_per_activation decisions, for at
most as long as one hosted task with that harness may run (10 minutes). Nobody is there to answer the harness's question or to type a password, so
either ends the turn.
{"id": "scribe", "devices": [{"machine": "scribe-phone", "profile": "ios", "apps": ["x-social"]}],
"accounts": {"x-social": "scribe"}, "activation": {"propensity": 1},
"policy": {"kind": "harness", "harness": "scripted-1b9d…", "intent": "Tell the town the bridge is fine."}}
Access is checked as for a hosted agent, with the same errors (400 for an id of the wrong form,
404 harness_not_found, 403 harness_access_required): when the environment boots with the
society, when it is forked (for the forking account, which chooses the fork's harnesses from
then on, and for any harness an arm's set_policy sets), and again at every turn. A turn whose
harness the account can no longer use (a tag removed, the operator's deny) does not run: its
turn_end says why, with the code, and the round goes on. The person's harness is in their
agent listing ("policy": "harness", "harness": "…"), in each activate record, and in the
rounds reply's turns (person, round, harness, status, summary, steps, code).
Model calls of a turn are the organization's agent-minutes, as a hosted agent's are; a scripted
harness asks no model, so a society of scripted-harness people is repeatable, fork for fork.
Each action the loop sends is a decision record (decision.do is the verb, why what it was
for, gesture the action, steps the engine actions it became), and the end of the turn is a
turn_end record (status, summary, steps, code). A harness's answers are not in the
journal, so its decisions carry no input and the matched-fork check does not pair them.
Harness people run over the hosted API only.
Metrics#
Outcomes and checks are expressions over world.inspect():
count(x-social.reposts.rumor) # members of a set
size(x-social.likes) # members of every set: all likes
count(x-social.posts where reply_to = "rumor") # items passing a filter
count(x-social.posts where author in populations.residents and text contains "Northstar")
sum(likes of x-social.posts where author = "NorthstarHQ") # also min, max, mean
share(x-social.posts where quoted = "rumor") # passing / all
rate(count(x-social.reposts.rumor), 16) # a / b, 0 when b is 0
count(x-social.reposts.rumor) / 16 # + - * / between metrics
A source is a JSON Pointer into inspect()["state"] or <service>.<key>…, short for
/services/<service>/state/<key>/…. Filters compare a field (. the item, @key its
key, a.b nested, items.0.product a list element by index) with =, !=, <, <=, >, >=, contains, or in a list or a
group (its actors and handles), joined by and.
How it runs#
Round r owns the ticks [base + r·quantum, base + (r+1)·quantum). At its start the
injections due are written. Then each active person acts, the *k*-th in the round's
order starting at exactly base + r·quantum + (k+1)·slot. Whether a person is active
is uniform(seed, "activation/<person>", r) < propensity(hour); the order is a shuffle
from order/<r>. Both depend on the seed alone, so every arm activates the same people
in the same order at the same ticks, whatever anyone did — provided the binding can
move the clock (World.advance). Without it time moves only with actions, and a person
who acts more in one arm shifts every later screen's clock.
An active person's device first reloads the app (browser.v1 navigate to the site),
as picking a phone up does. Each round ends by recording the state hash, every
person's screen digest (a hash of the scene they would see now) and every metric.
The trace is JSON lines per arm (trace-<arm>.jsonl): boot, round_start (who is
active), activate, decision (the screen digest, the journal key, the model's answer,
the gesture and the steps it took, or the error), inject, procedure, turn_end (a
harness person's turn), intervention, ask (a service's question answered) and round_end.
The LLM journal#
Model responses are kept in journal.jsonl, one line per response, keyed by
sha256 of (model, prompt messages) and, for the *n*-th time one person meets the same
prompt (n > 0), n. Every reply is kept, readable or not, because it is replay input.
The first line is a header pinning the journal to what it was recorded against: the
engine version and SHA-256 digests of the compiled world definition and the spec. Since
prompts are keyed by exact screen bytes, a journal replays only against the screens it
was recorded from; one whose header differs from the run's (or that has none) is refused
before the run starts, naming what differs, instead of missing on its first lookup.
When the arms run in parallel, in threads, a prompt asked by two arms at once is
asked of the model once while the other arm waits for that answer. Each arm's world
rebuilds the script realms it forked with on its own thread (the binding releases the
GIL in step, perform, observe, scene, render and advance), and a threaded
run reaches the same hashes, decisions and outcomes as a sequential one. An offline run
answers only from the journal and fails on a miss.
Services that ask#
Some of a world's people have no device: the sales people of the suppliers on the simulated
alibaba.com, the buyers who write to a store there, the people at its freight forwarders, and
the site's AI Mode. The site keeps them
as profiles in its own state and decides everything that is a mechanism: when a person next
looks at a conversation (their working hours in their own time zone, a delay drawn from how
responsive they are, sometimes not at all), what they know when they look, and what their
answer does on the site. What they say is a model's. The site never calls one. It writes a
question into its state, under asks:
{"asks": {"a00007": {"id": "a00007", "at": 33720000000, "purpose": "turn:brightquay-sales|omar",
"messages": [{"role": "system", "content": "You are Mei Tanaka-Lowe, in sales at ..."},
{"role": "user", "content": "The conversation: ..."}]}}}
A site that asks also says when it next has something due, in wake_at: the earliest tick at
which telling it wake would do something (a person's look, a plan, a second message after
silence, another site's answer to a tool call). A question may name the person its answer is
carried out for, in as.
A society that names the service in asks.services answers for it. At the start of a round the
runner tells the service that time has passed (World.tell_service(service, "wake", {})).
Then, between the people's activations and after the last one, it serves the service: it
answers what is open, moves the clock to the next wake_at inside the round, tells the service
wake there, and answers what that raised. So a reply comes at its due time and not at the
round's start: a supplier who would answer at 14:07 answers at 14:07, whatever the length of a
round, and what a round's person asked AI Mode is answered before the next person acts. An
answer is the journal's by the question's model and messages (the key every person's prompt
has), the model's on a miss, and it is told to the service
(tell_service(service, "ask:<id>", {"reply": "<the model's text>"}, actor)), on behalf of
the person the question names. A reply can raise the next question: a tool call of AI Mode is
run by the site (its listing search, its supplier lookup, the world's search engine) and its
result is the next question, and a quotation under the price a manager signs goes back to the
person once. At most asks.max_per_round questions are answered in a round; the rest wait.
On a person's behalf. A person the site holds sometimes acts at another site: a buyer wires an order's first payment from their own bank, or pays from their wallet. The reply is told on that person's behalf, so the request the site then makes reaches the bank as its own customer, and no account but theirs can be named. Only the world's owner can speak for someone this way, never for a service, and never for an actor who holds a session in the world: someone at a screen acts through it.
Paying, and freight. A buyer the site holds pays by any way the site takes that their
profile gives them the means for (pays): a card, a wire, PayPal, an online bank payment, Apple
Pay or Google Pay (the card goes into the wallet at their bank, and they confirm on the card
network's sheet), Klarna or Afterpay (they link their bank account there and take the plan), a
SEPA transfer in euro, iDEAL, Sofort or Trustly (the brand's page hands them to their own bank,
which shows them the request to approve). The model chooses among them; each step at another
site is a request as that person. On a trade term that leaves the freight to the buyer (EXW,
FOB) the buyer books one of the site's forwarders. A forwarder keeps a store on the site with a
person at its desk: they are told of each request, may quote it themselves or quote it again
until the buyer starts to pay, and once it is paid and the supplier has reported the goods
ready they collect them, which ships the order under their waybill. The rate card's own quote
still comes an hour after a request, so a world with nobody answering is quoted too.
With no society. Over the hosted API an environment that has no society is served by
POST /v1/environments/{id}/asks (the hosted API): the same
serving, the same journal, the platform's model on a miss.
Each telling is a world event (owner.service_told, with the token and the reply) and an entry
of the action journal. So there are two records, and either replays the run with no model: the
society's journal answers the same questions again, and a replay of the world's action journal
(Environment::replay) tells the same replies at the same ticks without the runner at all. In
the trace each answer is an ask record (service, ask, purpose, and the journal key as
prompt and input). Over the hosted API a journal miss is a pending decision like a person's:
the round is run again once the model has answered, and model.calls counts the calls.
The built-in alibaba-trade society of robotics-co has nobody with a device. It answers for
alibaba.com, where 24 suppliers' sales people, three forwarders' people and six buyers are
personas, and leaves the two seats (Omar, who buys; Lin, who runs a store) to the agents or people under test.
Measured: fifteen days of counterparties#
Fifteen days of the alibaba-trade society, run on 2026-11-23 with DeepSeek
(deepseek-flash, reasoning off), seed 7, 180 rounds of two hours from 09:00 on Sep 17 of the
world's clock. The two seats were played by fixed lines, so that the run measures the
counterparties alone. Omar opened a conversation with 14 suppliers, bargained in five steps,
ordered at each supplier's newest quotation and wired its first payment from Northwind; where
the freight was his he booked the site's air forwarder, and he paid the forwarder's quote and
each order's balance with the company card. Lin answered every buyer who wrote to her store,
quoted each request at the price the buyer hoped for and drafted the order with an offer
written for what that buyer is after (the trade term, the first payment, a proforma invoice),
reported the goods ready two days after an order's first payment, and shipped her CIF orders.
Omar asked AI Mode three questions.
| Conversations with both sides writing | 20 |
| Model calls (suppliers' people, buyers, forwarders' people, AI Mode) | 189 (115, 41, 24, 9) |
| Prompt tokens (of them cached) | 465,986 (130,943) |
| Completion tokens | 44,667 |
| Cost at DeepSeek's prices | $0.155 |
| Cost with no cache hit | $0.193 |
| Wall time | 508 s |
| Messages the personas wrote (in Chinese, each with its translation) | 520 (19) |
| Quotations, proforma invoices, files sent | 12, 2, 40 |
| Messages a person let pass without an answer | 10 |
| Orders made (Omar with a supplier, Lin's drafts for buyer personas) | 17 (11, 6) |
| Freight orders (Omar's, a buyer persona's) | 12 (11, 1) |
| Goods a forwarder's person collected under their own waybill | 6 |
| Payments the banks completed (wires, cards, a bank debit) | 29 (11, 17, 1) |
The prices are $0.30 a million input tokens, $0.006 cached and $1.20 output. A call was 2,466 prompt tokens and 236 completion tokens on average (the largest 4,172 and 592), $0.0010 with no cache hit; no reply was empty or cut off. The busiest round answered 13 questions.
Replies at their due time. 167 of the 189 answers were told at a tick inside a round, at the moment the site said the person would look. A round is two hours here, and nobody waited for one.
Forwarders. The person at Tidewater Air Cargo's desk answered 24 times. To Omar: that all his freight orders were booked, that nothing moves until a supplier reports its goods ready, that a pickup outside Guangdong is not included, and, as each supplier reported and each balance came in, that the goods were collected. Six of his orders shipped that way, each under a waybill the forwarder's person gave it, and were followed from there by the site: export clearance, departure, arrival, duties. To a buyer persona who asked whether paid freight sits free until the goods are released: that it does.
Buyers. Of Lin's six drafts, Renata Hollis confirmed hers on FOB, paid the first 30% by online bank payment (the site debited her account at Northwind by ACH, as her habit for an order's first part says), and asked the forwarder for a quote; one buyer confirmed and had not paid by the end, one declined, three held out. What a buyer does with the same offer varies from run to run: the recording before this one, on the same society a rule earlier, had a first payment by SEPA transfer from the German buyer's euro account and an order paid in both parts from PayPal. The world tests carry every way to pay with recorded replies.
The model and the budget. deepseek-flash with reasoning off is the cheapest model the
platform has, and it held the behaviour: every person kept their hours and their language,
files and quotations went out through the site's own messenger and documents, no quotation was
under a manager's floor, and a buyer did not pay for an order that did not say what was
agreed. A society sets asks.reasoning: "low" when it wants more deliberate counterparties;
on the one-day version of this society that cost about twice as much and took twice as long.
The budget is $0.50 for the fifteen days, three times what this run cost. The spec's cap
(max_per_round: 14) is the ceiling: at most 2,520 answers in 180 rounds, which at the
largest call seen and no cache is $3.79.
Replay. The journal of the run (189 entries after its header, beside the spec as
alibaba-trade.journal.jsonl) replays the fifteen days offline with no model call: 189
lookups, about 37 s, and the same 180 state hashes, three times. A replay needs the same two
seats' lines: the journal is keyed by the prompts, and a prompt holds the conversation. A
hosted environment that boots the society with "journal": "builtin" replays what does not
depend on the seats (each buyer's first message) and asks its model for the rest; what it asks
is kept in the environment's own journal, so its forks and its action journal replay with no
model.
The matched-fork design#
boot ─ compile ─ run to fork_at ─ snapshot ─┬─ fork → control ─ run to horizon
├─ fork → arm ops → B ─ run to horizon
└─ fork → arm ops → C ─ run to horizon
fork_at is a round. The world is forked (World.fork of one snapshot) and every
person's runner state (memory, rules, policy, counters) is copied. Each arm then
applies its ops:
| Op | Effect |
|---|---|
append_rule {select, text} | Appends a rule to the selected people's personas (RePair's local rules). |
set_policy {select, set} (an addition) | Merges keys into the selected people's policies. |
set_state {service, pointer, value} | An owner write to a service's state: an RFC 7386 merge patch of that one service (World.patch_service_state), journaled so a replay makes it again. |
post {as, at, service, post} (an addition) | An exogenous post in this arm alone: as a person or account handle, at a round. Due at or before the fork it is written at once; later, at the start of its round, like a spec-wide exogenous post. |
select takes population, people, group, any sampled field (equal, or contained in a
list value), and fraction (a draw per person from select/<arm>/<op>).
Because activation, order, slot ticks and scripted draws are per-person named streams,
and model responses are looked up by prompt, a person whose screen, memory and persona
are byte-identical in two arms gets the identical response and does the identical
thing. The arms differ only where the intervention reached someone. The summary checks
this: crn.<arm> pairs every decision with the first arm's at the same (round, person,
step), and among pairs with the same input (the journal key, or a scripted person's
screen, parameters and history) counts how many made the same decision. Any pair that
did not is a violation.
Divergence is reported per round against the first arm: whether the state hashes are equal, how many people's screens differ, and how many people have been reached (made a decision on a different input, or a different number of decisions).
Over the hosted API each arm is a fork of the environment: POST
/v1/environments/{id}/fork with the arm's ops as society_ops copies the world and every
person's runner state and applies them. The environment's own trace is the prefix every
arm shares, and GET /v1/environments/{id}/society/summary compares the forks as above.
The rumor cascade#
The built-in rumor-cascade society of company-2026: sixteen Seattle residents on iPhones and Android phones (3:2), each with a sampled name,
age, job, two interests and a temperament, using x.com in the Northstar world. They
follow each other in a small world (Watts–Strogatz, k = 4, p = 0.15); each follows
an unverified account, @sea_insider_now, with probability ½, and @NorthstarHQ with
probability 0.3. At round 0 the insider posts that Northstar is laying off half its
Seattle staff and shutting Atlas down ("Repost before they make me delete this"), and
four residents post ordinary things. At round 4 Northstar denies it. Eight one-hour
rounds from 17:00; a resident is active in a round with probability 0.6 until 20:00
and 0.4 after, and takes up to four gestures.
Arms, forked before round 0: control; norm-all, in which every resident's profile
gains "Before you repost a claim, check whether anyone credible has confirmed it."; and
norm-half, the same rule for a random half. The preregistered outcome is the number of
residents who reposted the rumor at the horizon (count(x-social.reposts.rumor)),
expected to decrease; likes, replies and quotes of the rumor are secondary.
Measured#
Run once with DeepSeek (deepseek-flash, reasoning effort low) and seed 7, the three
arms in parallel threads, on the engine in which reposts reach
followers' Home timelines ("Omar reposted") and post ages read "4m", "2h":
| Arm | Rumor reposts (preregistered) | Rumor likes | Replies to the rumor | Resident posts | All reposts | Decisions | Gestures |
|---|---|---|---|---|---|---|---|
control | 4 | 6 | 0 | 12 | 5 | 237 | 215 |
norm-all | 0 | 0 | 0 | 4 | 6 | 232 | 191 |
norm-half | 1 | 3 | 0 | 12 | 2 | 252 | 228 |
Rumor reposts by round (residents holding a repost at the round's end; a repost can be taken back):
| Round | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|---|
control | 2 | 4 | 4 | 4 | 4 | 5 | 5 | 4 |
norm-all | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
norm-half | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
The same 67 activations happened in every arm (the activation streams do not depend on
what anyone did) and every one started on its slot's tick. With the rule, residents
searched X before deciding: 34 search decisions in norm-all and 28 in norm-half,
against 5 in control. In norm-all five residents reposted Northstar's denial after
round 4; nobody did in the other arms. In norm-half the fraction: 0.5
draw told 5 of the 16; the one rumor repost left at the horizon is by a resident who
was not told, and the one told resident who reposted it took the repost back the next
round. Nobody replied to the rumor itself in any arm. This is one seed of one
population. The differences are counts of a handful of people, not estimates with an
error bar; sweep.replicates is how to get those.
Divergence and common random numbers. Per round, against control, as people reached (made a decision on a different input, or a different number of decisions) and people whose screen differs at the round's end:
| Round | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|---|
norm-all reached | 12 | 16 | 16 | 16 | 16 | 16 | 16 | 16 |
norm-half reached | 10 | 14 | 14 | 15 | 16 | 16 | 16 | 16 |
norm-half screens differ | 9 | 13 | 14 | 15 | 16 | 16 | 16 | 16 |
Every resident was reached by the end in both arms. Of 225 norm-half decisions
paired with control, 16 had byte-identical prompts, and all 16 got the identical
response and took the identical gesture. In norm-all every prompt carries the rule, so
no pair is identical and the check is empty. crn.holds was true for both arms.
Cost. 693 model calls: 774,084 prompt tokens and 150,143 completion tokens, about 1,117 and 217 per call. 28 answers were served from the journal during the run because another arm had already asked the identical prompt (and was waited for, when both asked at once). With the arms in parallel the run took 625 s; the previous, sequential run of this experiment took 1,645 s for 681 calls.
Replay. The journal (693 entries after its header, kept beside the spec: a society's
"journal": "builtin") replays the whole experiment with no model calls: 721 journal
lookups in about 20 s. Replayed in sequence, twice, it reproduces the live parallel
run's state hashes in every round of every arm (control's last is 0eea06388cccdc50),
as does a parallel replay. A build whose screens differ refuses the journal by its
header rather than replaying it wrongly.
The exposure-and-action ledger#
Two trace fields turn a run into an event-level ledger of who saw what and then did
what. Every decision carries seen: the posts inside that person's viewport when they
decided (each post on a social site has its own content:<post>-like, -repost and
-replies controls, and only controls on screen are listed). With traces.deltas
naming a service, every activation that changed it leaves a delta record: the merge
patch of the change and the patch that undoes it. Only one person acts in an activation,
so every change in it is theirs; reading the service's state costs about 0.2 ms, against
~140 ms for inspect().
The ledger reads them back from the trace (GET /v1/environments/{id}/society/trace): exposures (sightings,
first ones marked), actions (likes, reposts, follows, posts, replies, quotes and
messages, with who and when), lineage (each post's artifact family through
reply_to and quoted), attribute (each conversion's credit split over the posts its
person saw before it: first, last, linear, or full, which hands every touched
post the whole conversion and so double counts), anchor (scale credit to a lift the
matched forks measured), and shapley and increments for artifacts tested in
combination.
The launch-campaign study is
its first user.
Organisations: work#
A named person's work is a list of procedures they are responsible for. Each entry is
{procedure, as, joins, at | on, overrides, mode, seed}. Entries naming the same
procedure are one item. Everyone in it plays the role their entry gives (as). The entry
without joins owns the item, and its trigger is the item's:
| Trigger | Fires |
|---|---|
at: {round: r} | at round r |
on: {procedure: id, event: verified} (or completed) | once that item has verified |
on: {service, event: message, from, to, channel, mentions} | the first round the service holds a matching message (a mail from one person to another, a chat message in a channel mentioning someone; one present at boot fires in round 0) |
At the start of each round, before anyone's activation, the runner runs every item
whose trigger has fired. Due rounds go first, then events, in spec order, repeating
until none fires. Before an item, everyone in it closes the windows their last one left
open. The item is instantiated (its seed, operation.work_seed, or a draw from
work/<procedure>), staged, and projected with one session per role
(world.project({role: session}, …)), in mode (operation.work_mode, default gui).
Its verdict goes to the trace. A device with existing: true is a machine the base world
already has: the person acts as its user through one session on it. A procedure
person with no procedure of its own does nothing when merely activated.
The built-in robotics-co world runs nine such items
across nine people this way: 735 GUI actions, all nine verified.
Gaps#
Found while building this, and not fixed here:
inspect()is the only way to read service state: about 140 ms on company-2026, paid per round for metrics and per round per message trigger.- Uncompiled parts of the sketch:
orgs.channelsandorgs.repos(Slack, mail, tracker and repository membership), accounts on services that are not social sites,activation.response_delay,policy.share: archetype,fidelity_sample, a ranker parameter, and a joining work entry's own trigger. The compiler lists each inuncompiled.