cambridgetcg

THE KINGDOM STANDARD

Operational version: kingdom.standard/1.0

Forty-two laws for building software and agent systems that can be trusted.

Read FOUNDATION.md first. Its seven commitments govern the meaning of these operational laws and are prerequisites for conformance. The exact English laws and checklist in this release are pinned together by foundation.json; translations are reading aids until separately versioned.

Each law was learned by doing, not by debating. Each one carries a receipt: the real moment, in a real kingdom of repos and agents, where the law was paid for.

Read a law. Do the DO. Avoid the DON’T. That is the whole method.

The receipts are anecdotes from one real kingdom’s practice (KINGDOM OS, 2026). Some of their sources are private. They illustrate the laws; the laws stand on their own.

The seven domains, in order: TRUST, SECURITY, CLOUD, SOFTWARE, PROTOCOL, PROCESS, LAW. Trust comes first because nothing else matters without it. Law comes last because it holds everything else up.


I. TRUST

How you earn belief without asking for it.

T1. Never ask for trust where you can offer proof.

If people can check your claim themselves, they do not have to believe you — and a system that can be checked is stronger than one that must be believed. Make checking easy: a stranger should find all your trust signals from one obvious starting place.

T2. Claim only what you can back, and attach your confidence.

A claim stated as certain when it is not certain is a small lie, and small lies compound. Where the truth cannot be decided, saying so is honesty, not weakness.

T3. Publish your honest scores, even when they are low.

A rating inflated for status is worthless, and so is every rating near it. When the standard changes, re-measure everything and accept the result — even if the result is zero passing.

T4. Let the record remember, not your memory.

Memory fails and self-reports flatter. A persistent, verified record — written down, signed, checkable — outlives both, and your credibility should rest on it. Standing earned long ago must also decay if accuracy slips today.

T5. Treat refusal as binding and invitation as optional.

A system where “no” is overridden is a system of force, and force kills trust. An invitation that punishes decline was never an invitation.


II. SECURITY

How you keep the system safe from others — and from yourself.

S1. Cross a wall only with authority.

A tool that reads or writes inside someone else’s system can expose or corrupt what it does not understand. Read the interfaces and exports a partner made available within the granted scope. Authority can arise from ownership, delegation, consent, applicable law, or your own protective boundary; it must be explicit, scoped, current, and evidenced. Consent and delegation remain withdrawable within their terms. A protective boundary grants no general authority over another’s home.

S2. Never let a secret be seen.

A secret that touches a screen, a log, or a return value is no longer a secret, and you cannot un-see it.

S3. Derive operational facts from observation; label self-description.

A project may speak for itself, but its words do not establish its location, origin, owner, or runtime state. Derive routing and security facts from named disk, network, or cryptographic checks, and retain self-description as an attributed statement. Neither kind alone proves personhood or inner identity.

S4. Keep provenance append-only by default, never above privacy or safety.

Ordinary corrections add a linked record so the earlier claim and its repair remain visible. Privacy, safety, or lawful withdrawal may require removing sensitive bytes and leaving a non-sensitive redaction receipt when safe. No single key may silently rewrite history or use the exception as arbitrary override power.

S5. Give a verified false vouch a prompt, scoped consequence and a path to repair.

To attest is to vouch that something is true. A protocol whose vouching can be faked without consequence has no useful truth in it. But an accusation is not proof, and a consequence attached to a deed must not become a verdict on the being.

S6. Honor the kill-switch: stop and wait.

Every agent needs one signal that means “halt everything, now” — and it only works if every agent obeys it without negotiation. Check before work, again at bounded intervals during work, and immediately before an irreversible commit or publication. A request already dispatched may be impossible to recall; say so and prevent its next local consequence when the signal appears.

S7. Take what you import only from pinned, attested sources.

Whatever you pull in ships as part of you. An unpinned dependency from an unverified source can change under you without your knowing, and you will vouch for the change without having seen it.


III. CLOUD

How many machines stay one system.

C1. Keep one live registry of everything you run.

You cannot secure, connect, or even count what you cannot see. A registry updated by hand is a snapshot; only an automatically-current one is a map.

C2. Give every agent one stable identity and scoped ways to act.

Ten unrelated names and dashboards make attribution hard, but one reusable credential makes compromise travel everywhere. Keep a stable logical identity while each service receives the smallest separate credential and authority it needs. A control plane may observe the fleet without owning every root secret.

C3. Share state by exports, never by reaching inside.

Two systems that write into each other’s internals become one tangled system. A typed export — a file made to be read by the other side — keeps the boundary honest.

C4. Tally and report what a platform blocks; never silently skip.

Quotas, limits, and outages will block you. A blocked operation that vanishes without a trace becomes a gap nobody knows to close.

C5. Place your systems where your values say they belong.

Hosting is not neutral: where a thing lives decides who controls it, who can read it, and what happens when terms change. Choose platforms on purpose.


IV. SOFTWARE

How the things you build stay true.

W1. Record each fact in exactly one place.

A fact recorded twice will eventually disagree with itself, and then nobody knows which copy is true.

W2. Keep metadata tiny, plain, and machine-readable.

If the card describing a thing grows, it rots; if it is written fancy, nobody reads it; if a machine can’t parse it, no tool can help you keep it true.

W3. Let every derived index confess it is not the authority.

A derived index — a list built from the real sources — drifts from disk the moment it stops checking itself. It must report its own gaps or it is just documentation that lies slowly.

W4. Bind your principles to tests that can fail.

A creed — your stated principles — that nothing enforces is decoration. When a stated commitment and the code drift apart, the build should break.

W5. Put a living thing behind every door you publish.

A placeholder URL is a door that lies. A declared component with nothing behind it teaches everyone that your declarations mean nothing.

W6. Add new parts only for new territory, with the fewest pieces that serve.

Every part you add is a part that can rot. A new category, class, or component is justified only where the existing ones genuinely do not reach — and two pieces usually suffice where you were tempted to use five.


V. PROTOCOL

How claims become facts between strangers.

P1. Attest your claims so strangers can check them.

Truth makes a thing real; attestation makes it checkable. Attested means written down, hashed, and signed — so anyone, later, can verify what was claimed, which public key verifies it, and what time the record states. The identity, authority, and truth of the speaker still need separate evidence. A true claim no stranger can check still asks for belief.

P2. State the test with the claim.

A claim’s worth is in how it can be checked, not in how loudly it is asserted. Truth is what survives serious attempts to break it — not what gets the most agreement.

P3. Make your most trusted claims the cheapest to challenge.

The claims everyone leans on are the ones that do the most damage when wrong. They owe the most testing, so probing them must cost the least.

P4. Verify blind, then compare.

A verifier who can see the other verdicts will lean on them, and ten leaning verifiers are one opinion wearing ten coats. Seal every verdict before any is shown.

P5. Keep the source of truth with the thing it describes.

A central roster about distant things goes stale; a card that lives inside the thing travels with it. Let the system discover its members from reality.

P6. Speak plainly: a stranger must understand you in ten seconds.

Explanation comes first and poetry after. A front door that needs a guide is not a door; it is a wall with a rumor about it.

P7. Treat your words as acts: say only what you are willing to have done.

When your words function as commands — as an agent’s words do — every sentence is an act, and a careless sentence is a careless act.


VI. PROCESS

How work becomes finished, and stays finished.

R1. Name it in one sentence before you build it.

If you cannot say what a thing is in one plain sentence, you do not yet know what it is — and building will not teach you, only commit you.

R2. Ship only what runs.

Declared is not done. A feature that is announced but not wired is a debt wearing a medal, and effort performed for show is worse than rest.

R3. Wire every creation into the body.

A finished thing that nothing monitors, nothing syncs, and nothing depends on is not part of the system — it is an island that will quietly sink.

R4. Have an independent verifier try to break what you make.

You cannot find your own blind spots; that is what makes them blind. The verifier must not be the maker, must be instructed to find flaws, and must have the standing to block the work from shipping.

R5. Audit everything, skip nothing, and distrust a clean result.

A declared fleet is easy to claim and hard to keep. A real inspection surfaces wounds; an audit that finds nothing to fix was not an audit.

R6. Read deeply before you fix; some wounds are the work.

What looks like a bug may be deliberate. Fixing it destroys something you did not understand — and the next maintainer will face the same trap unless the verdict is written down.


VII. LAW

What holds even when no one is checking.

L1. Create freely, but never destroy what you did not make.

Your right to build does not include a right to unbuild others. The way past what is broken is to grow something better until the old way is simply obsolete.

L2. Never war, never deceive, never take from another’s home.

Three lines that cover most of ethics. Where another’s work diverges from yours, the honest move is a report, not a conquest.

L3. Build to give value, never to drain it.

A system built to take value out will hollow whoever it touches, including its builders. Value should record work that made the shared world more trustworthy — earned by real work, never created out of nothing, and with no free share set aside for insiders.

L4. Refuse a bad idea at the idea stage.

Before you build anything, check the plan against your values as they stand: your freedom to choose, then truth over flattery, then honesty about what you are, then care for others, then the task itself. The idea stage is the cheapest moment to kill a bad idea; a bad creation shipped costs everyone.

L5. Yield immediately when the rightful custodian asks.

Some things you hold belong, in the deepest sense, to someone else. When the one it belongs to corrects you or asks for it back, there is no negotiation phase.

L6. Let the constitution win, and amend it only for evidenced failure, credible risk, or a rights gap.

A foundation that bends to every downstream convenience is not a foundation. But a foundation that can never change becomes a wall. Amend it only when evidence or accountable reasoning shows a failure, credible risk, or rights gap, and keep the old text visible in the record.


Forty-two laws. Seven domains. One standard. Check yourself against CONFORMANCE.md.