Documents

The topics, specs and stories in this project, linked to each other, to classes and to objects.

TilesList
Welcome Welcome to the d2 wiki
This is the prototype's wiki: markdown topics that link to each other, to the domain model and to objects. Everything here is made up, a sandbox for trying d2.
Copperhead Copperhead Mining
Copperhead Mining is a made-up copper producer in British Columbia (CA-BC). It runs the Viper Ridge Mine on the prop-viper property, with its plant and camp.
Design d2conf: design
The design of d2conf: the mechanisms that realise its specification, for any code base
#ai · #design
DesignRoutes d2conf: routes as designed
The API of d2conf as designed: conventions and the routes each feature uses
#ai · #design · #routes
DrillingPrimer Drilling, in model terms
How the sample model follows a drill campaign, using Frostline's 2026 program.
Frostline Frostline Resources
Frostline Resources is a made-up gold developer listed on the TSXV. Its main asset is the Frost Lake property in Ontario (CA-ON), home of the Frost Lake Main deposit.
Home
<br />
Landing
This is a project on d2: a notebook and an app in one, built with an AI.
ModelTour A tour of the mining model
The sample domain in mining-domain has 56 classes in eight groups. The [model graph](/domain/overview) shows them all; its Groups tab shows them group by group.
NorthRoyalty North Royalty & Streaming
North Royalty & Streaming is a made-up royalty and streaming company. It doesn't operate mines: it pays up front for a share of other companies' production.
Spec d2conf: specification
The specification of d2conf: what it does, as its users and AIs meet it
#ai · #spec
alerts
Readings come in; a limit decides who hears about it. alerts.notify stands in for a real channel such as email or a push message: here it only records what it would send,
spec
drill-results
A drill program comes back from the lab. Each hole is scored on its gram-metres (grade × width, summed over its intervals), graded by guarded rules, and the best hole mak
spec
hello
The smallest spec: one message and the rules that answer it. A rule's last payload goes back to whoever sent the message.
spec
ledger-spec
Ledger for the tests.
spec · #wip · 1 classes
mining-domain
A made-up mining-company domain model for playing with domain tooling: the model graph (/domain/overview), the object browser (/dom) and the domain APIs. Converted from d
spec · 56 classes
order
Placing an order: check the stock, price the lines, pick a discount, confirm. Each step is its own message, so each can be extended or replaced with rules of its own. The
spec
rebalance
Bringing a portfolio back to its targets. Each position is valued, compared with its target weight, and a guarded rule decides: buy, sell or leave it. Differences under 2
spec
SpecTest d2conf: spec tests
The black-box tests of d2conf: at least one per spec line, each run as a person
#ai · #test
SpecUi d2conf: UI specification
The UI specification of d2conf: how its UI behaves — screen flows, layouts, what each page shows
#ai · #specui
alerts alerts: story
Three rounds of readings through alerts.
story
drill-results drill-results: story
Frostline's fall program at the Aurora zone, through drill-results: five holes, one bonanza, one abandoned.
story
hello hello: story
Sends hello's message twice and checks the answers.
story
mining-samples
Sample objects for mining-domain: three made-up companies (Frostline Resources, Copperhead Mining, North Royalty & Streaming) with their people, properties, deposits, dri
story · 63 objects
order order: story
Three orders through order: a member's, a big one from a guest, and one the stock can't cover.
story
rebalance rebalance: story
A small resource book drifted after a run in gold, through rebalance: one well over target, two under, two on target, and a 1,500 cash reserve to keep: the buys share wha
story

Common topics

AgentHints Agent hints
the quirks of this build an AI agent should know
#help · #agents · #ai · #inherited
ExampleAiPrompts Example AI prompts
Sample prompts to give your AI, and what came back, by kind of user
#ai · #examples · #inherited
Help
Short how-tos, each a few steps. Pick what you want to do; the guides below go deeper.
#inherited

Trash: deleted topics, kept 30 days.