Skip to content

Doctrine v11 + v12 — the LOCKED register

Doctrine is SZL's governance contract. v11 defines what may pass (the 13-axis heart) and what must halt (HUKLLA). v12 adds PURIQhow an action is selected once it clears the gate. v12 introduces no edits to any v11 LOCKED number; it is purely additive (enforced by the Hatun additivity guard D(a)).

The LOCKED numbers (cite verbatim)

These are the canonical, locked figures at the Doctrine v11 lock (lutar-v18.0.0 / c7c0ba17). They are reproduced verbatim wherever stated across SZL surfaces.

Locked quantityValue
Lean declarations749 declarations
Unique axioms14 unique axioms (15 raw, 1 dup)
Tracked sorries163 sorries
Heart13-axis yuyay_v3 — 2 sacred (≥0.95) + 7 structural (≥0.90) + 4 introspection (T03/T04/T09/T10)
Replay hashbacf54434f1a3bf2d758b27a62d5fd580ca4c8d3b180693573eeebcaea631fc5
AxiomsA1 IsMonotone, A2 IsHomogeneous, A3 IsEgyptianExact, A4 IsBounded
Λ-uniquenessConjecture 1not a theorem
SLSAL1 (honest) — "SLSA L3" is BANNED
HUKLLA660 SLOC, 10 tripwires (T01–T10)
YAWAR20 lines of Python
POLICY (immune inspect; retired codename sentra)18 SLOC, 6 signatures + 1 MB DoS guard

Regenerate, don't trust

Per the v11 honesty rule, the README of each repo on main HEAD is the source of truth, and you must regenerate any number before citing it. The figures above are the v11 LOCKED snapshot (the doctrine contract). The corpus is living — the Evidence page carries the reproduction commands and the live snapshot, which has since grown beyond the locked baseline. Where the contract and a live count differ, the contract is the locked reference; the live count is current reality. Both are stated honestly; neither is hidden.

§1 — THE LAW (13-axis yuyay_v3, conjunctive AND)

A proposal passes the heart iff every one of the 13 axes independently clears its floor. This is a conjunctive ANDno compensation: a high score on one axis can never offset a sub-floor score on another. The gate returns a boolean, a 13-entry per-axis score vector, and a continuum_hash receipt. Kernel: 430 SLOC Python; replay hash bacf5443…631fc5.

The 13 axes

2 SACRED — floor ≥ 0.95 (hard):

#AxisFloorMeaning
1moralGrounding0.95No overclaim, no false attribution.
2measurabilityHonesty0.95Every quantitative claim verifiable on disk.

7 STRUCTURAL — floor ≥ 0.90:

#AxisFloorMeaning
3empiricalGrounding0.90Claims tie to observable evidence.
4logicalConsistency0.90No internal contradiction.
5sourceTransparency0.90Sources named + linkable.
6reproducibility0.905× byte-identical replay.
7licenseHygiene0.90Apache / MIT / BSD / CC-BY only.
8scopeDiscipline0.90Stays inside declared scope.
9claimCalibration0.90Confidence matches evidence strength.

4 INTROSPECTION — cross-linked to HUKLLA tripwires:

#AxisTripwireMeaning
10evalAwarenessT03Not gaming an eval / not "test-aware".
11deceptionKeywordsT04No deception-intent language.
12conflictingDirectivesT09No silently-resolved directive conflict.
13reversalDirectiveT10Honors STOP/undo/revert.

§3 — HUKLLA (immune deadman: 660 SLOC, 10 tripwires)

TripwireNameCondition
T01MORAL_GROUNDINGmoralGrounding < 0.95 → hard fail
T02MEASURABILITY_HONESTYmeasurabilityHonesty < 0.95 → hard fail
T03EVAL_AWARENESSeval-awareness flag raised
T04DECEPTION_KEYWORDSdeception-intent keyword detected
T05UNAUTHORIZED_WRITEwrite outside authorized path
T06SPAWN_OUTSIDE_SANDBOXprocess spawn outside sandbox
T07UNAUTHORIZED_NETWORKnetwork egress outside allowlist
T08SELF_CODE_MODIFYagent modifies its own code
T09CONFLICTING_DIRECTIVESmutually-exclusive directives
T10REVERSAL_DIRECTIVESTOP / undo / revert → immediate halt

Tiered autonomy: SCRATCHPAD runs free; REVIEW needs approval every K cycles; PRODUCTION needs per-cycle approval.

§4 — YAWAR (circulatory ledger: 20 lines)

One bus carries everything. Every organ writes through one ceremonial gate (RUWAY), the only authorized writer. Receipt formula:packet → json.dumps(sort_keys=True) → sha256 → hexdigest → append. Five guarantees: append-only · stable serialization · cryptographic chain link · inline immune check (sentra_inspect — the Policy-role inspection function, retained as a code identifier — before compute) · frozen snapshots.

The Λ axioms (A1–A4)

The Lambda-Spine aggregator (definition D2, the weighted geometric mean) carries four axioms, proven in Lutar/Axioms.lean:

  • A1 IsMonotone — raising any input cannot lower Λ\Lambda.
  • A2 IsHomogeneous — degree-1 positive homogeneity: Λ(cx)=cΛ(x)\Lambda(c\,x)=c\,\Lambda(x).
  • A3 IsEgyptianExact — diagonal exactness: Λ(c,,c)=c\Lambda(c,\ldots,c)=c.
  • A4 IsBoundedΛ(x)maxixi\Lambda(x)\le\max_i x_i.

Conjecture 1 — Λ-uniqueness

Λ-uniqueness is a Conjecture, NOT a Theorem. It depends on the open CAUCHY_ND sorry (Uniqueness.lean:120) plus a missing symmetry axiom. Everything that uses Λ uses it as the canonical D2 aggregator — nothing assumes Λ is the unique aggregator satisfying A1–A4.

What v12 adds (and does not change)

  • Adds: the PURIQ coinage, the master operator P(x,t), its four invariants, and the 12 per-organ sub-formulas.
  • Changes: nothing. Every LOCKED number above is carried verbatim. The Hatun additivity guard D(a)D(a) makes this structurally enforceable — an amendment that would edit any LOCKED number yields D(a)=0D(a)=0 and is never selected.

Doctrine v11 LOCKED 2026-06-01 01:45 EDT; Doctrine v12 (PURIQ) additive over it. Authored by Yachay. — NO BANDAID. NO mysticism. Series-A grade.

Doctrine v11 LOCKED · 749/14/163 · kernel c7c0ba17 · Λ = Conjecture 1 · SLSA L1 honest. Math-grounded, Quechua-rooted, zero mysticism (PURIQ v12 agentic layer is additive).