Start here
Coming from Terraform
If you write Terraform, Pulumi, CloudFormation or Kubernetes manifests, you already think declaratively: describe the target, let an engine converge on it. Endoskeletal keeps that instinct and moves it up a level. You don't declare resources. You declare the organization that decides which resources exist, who may change them, what evidence they need, and what happens when that evidence runs out.
The same need, twice
resource "aws_db_instance" "main" {
engine = "postgres"
instance_class = "db.r6g.large"
multi_az = true
backup_retention_period = 7
storage_encrypted = true
}
# Implicit: this vendor, this region, this size.
# Whoever holds credentials can apply a change.
# Why 7 days of backups? Who approved r6g?
# Is it still patched? The file doesn't say.requires capability Database {
operation query(q : Entity) -> rows : Entity
property availability >= 99.95 % per month
property consistency = "strong"
property rpo <= 5 min
property rto <= 60 min
property jurisdiction = "US"
property patched = true
property cost <= 14_000 USD per month
for ApiUp, RecordsResident, NoUnpatchedProduction
}
norm PlatformBinds {
power of VPEng to bind | unbind _ about Database
level collective
}The Terraform file fixes an implementation and leaves the reasons, the authority and the evidence outside. The Endoskeletal version fixes the reasons (each property traces with for to the intent or rule that needs it), says who may choose an implementation, and leaves the implementation open. Any offer whose evidenced properties meet the contract is a candidate. The one bound today is a fact in the log, not a line in the source.
Concept map
| Terraform and friends | Endoskeletal | |
|---|---|---|
| You declare | Resources of named providers | Required capabilities with properties, plus who may bind them |
| Source of truth | State file: last applied attributes | Append-only log of every observation, decision and act; state is a projection |
| Plan / apply | Anyone with credentials; policy-as-code gates outside the model | propose → decide under a power → bind / execute authorized by that decision, each act checked |
| Drift | Diff between state and reality; fixed by re-apply | Evidence expires; provider statements start unknown; price, deprecation and terms changes trigger reconsideration |
| Unknown values | "Known after apply", only while planning | Unknown or contradicted on any fact, at any time, and every unknown has an owner |
| Approvals | PR review, run tasks, a Slack thread | Powers, quorums, cooling-off delays, deadlines and escalation, all in the spec and all recorded |
| Modules | Reusable HCL | Patterns that expand to kernel records and keep their provenance |
| Lock file | Provider versions and checksums | endoskel.lock pins packages by content hash; knowledge about providers ships separately as evidence |
| Cost | Estimates bolted on | Cost is a property; budgets are rules with freezes; a power can require price × units ≤ limit |
| People, agents | Not modeled | Positions and parties. An LLM occupies a seat and holds exactly the powers it grants |
| Reconciler | Converges to spec unconditionally | Rebinding is a decision under authority, and a non-tradeable rule can refuse it even when it would converge |
Where Terraform still fits
Beneath the specification is a boundary called realization. A realization binds an offered capability to a required one and carries its groundings: adapters, credential references, monitors, runbooks. A Terraform module is a perfectly good grounding. When the Ops agent scales Compute, the log records authorize under its envelope, then execute Scale(n) via the bound realization; the mechanism underneath might be terraform apply. Endoskeletal decides whether, when and on whose authority. Terraform does the doing.
If it would appear in a design review, a policy document or an incident postmortem, it belongs in the specification. If it would appear in a provider's API reference, it belongs below the realization boundary.
Three things IaC can't say
"We don't know yet"
Say your EU customers need EU-resident inference and no provider offers it today. The capability frontier shows the requirement as UNSATISFIABLE, with the catalog facts that make it so. The day a provider announces an EU offer, it moves to UNKNOWN, because nobody has yet established that the terms permit your use. When counsel's finding lands, it becomes REALIZABLE, and the person with the bind power can act. Terraform has no state for "an offer exists but we don't know if we're allowed to use it this way".
"You may, up to here"
An envelope is a power with a condition. The Ops agent may scale Compute to 40 units while price × units stays under 24,000 USD a month. Above that, its act misfires and a request routes to a person with a one-business-day deadline and an escalation. Terraform can only say "has credentials" or "doesn't".
"Not even if it's cheaper"
Some rules can't be priced. Data residency and privacy are written not tradeable and not defeasible: no weighting can trade them off, no priority rule can suspend them, and a candidate that would breach one is inadmissible however well it scores.