endoskeletal kernel 1 · lib 2026.09

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

main.tfhcl
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.
northwind.eskesk
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 friendsEndoskeletal
You declareResources of named providersRequired capabilities with properties, plus who may bind them
Source of truthState file: last applied attributesAppend-only log of every observation, decision and act; state is a projection
Plan / applyAnyone with credentials; policy-as-code gates outside the modelpropose → decide under a power → bind / execute authorized by that decision, each act checked
DriftDiff between state and reality; fixed by re-applyEvidence expires; provider statements start unknown; price, deprecation and terms changes trigger reconsideration
Unknown values"Known after apply", only while planningUnknown or contradicted on any fact, at any time, and every unknown has an owner
ApprovalsPR review, run tasks, a Slack threadPowers, quorums, cooling-off delays, deadlines and escalation, all in the spec and all recorded
ModulesReusable HCLPatterns that expand to kernel records and keep their provenance
Lock fileProvider versions and checksumsendoskel.lock pins packages by content hash; knowledge about providers ships separately as evidence
CostEstimates bolted onCost is a property; budgets are rules with freezes; a power can require price × units ≤ limit
People, agentsNot modeledPositions and parties. An LLM occupies a seat and holds exactly the powers it grants
ReconcilerConverges to spec unconditionallyRebinding 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.

Rule of thumb

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.