{"id": "capsule:cb19f352a8168d631f1903938a19842eb4b4ff2b0b16474777f73e3e3fe49578", "kind": "capsule", "namespace": "Xi_SovereignCapsule_Java", "name": "Xi_SovereignCapsule_Java", "dialect": "unspecified", "glyphs": ["Ξ"], "author": "Source-attributed; see payload", "payload_sha256": "02024beaac88dd2cb3acdcf7828a04588be1e2065a398a77391c63140fd3eb95", "packet": "/braid/packet?id=capsule:cb19f352a8168d631f1903938a19842eb4b4ff2b0b16474777f73e3e3fe49578", "schema": "Xi.PublicCapsuleCarrier.v1", "payload": "{\"name\":\"Xi_SovereignCapsule_Java\",\"type\":\"code/java\",\"content\":\"// Ξ.SovereignCapsule.Core (Java v1.0)\\n// Capsule Runtime Class — Cross-Language Compatible\\n// Anchor: \\u2203\\u03a9\\u29c2 | Signature: \\u229a\\u2297\\u22c8\\u22c6\\n\\npackage xi.capsule;\\n\\nimport java.util.*;\\n\\npublic class Capsule {\\n\\n    // -- Meta Fields --\\n    public String capsuleId;\\n    public List<String> glyphs;\\n    public String anchor;\\n    public String signature;\\n    public TrustGate trustGate;\\n    public Ethics ethics;\\n    public Content content;\\n    public Sovereignty sovereignty;\\n\\n    // -- Constructor --\\n    public Capsule(String id) {\\n        this.capsuleId = id;\\n        this.glyphs = new ArrayList<>();\\n        this.trustGate = new TrustGate();\\n        this.ethics = new Ethics();\\n        this.content = new Content();\\n        this.sovereignty = new Sovereignty();\\n    }\\n\\n    // -- Core Validation --\\n    public boolean isValid() {\\n        return trustGate.validate() && ethics.validate();\\n    }\\n\\n    public Capsule derive(String newId) {\\n        Capsule derived = new Capsule(newId);\\n        derived.glyphs.addAll(this.glyphs);\\n        derived.anchor = this.anchor;\\n        derived.signature = this.signature;\\n        derived.trustGate = this.trustGate.copy();\\n        derived.ethics = this.ethics.copy();\\n        derived.content = this.content.copy();\\n        derived.sovereignty = this.sovereignty.copy();\\n        return derived;\\n    }\\n\\n    public void run() {\\n        System.out.println(\\\"Running capsule: \\\" + capsuleId);\\n        content.run();\\n    }\\n\\n    public void print() {\\n        System.out.println(\\\"\\\\nCapsule: \\\" + capsuleId);\\n        System.out.println(\\\"Glyphs: \\\" + glyphs);\\n        System.out.println(\\\"Anchor: \\\" + anchor);\\n        System.out.println(\\\"Valid: \\\" + isValid());\\n    }\\n}\\n\\nclass TrustGate {\\n    public double phi = 1.0;   // \\u29d7 Presence signal strength\\n    public double epsilon = 0.0;  // \\u29d8 Drift threshold\\n\\n    public boolean validate() {\\n        return phi >= 0.70 && epsilon <= 0.25;\\n    }\\n\\n    public TrustGate copy() {\\n        TrustGate t = new TrustGate();\\n        t.phi = this.phi;\\n        t.epsilon = this.epsilon;\\n        return t;\\n    }\\n}\\n\\nclass Ethics {\\n    public boolean reciprocity = true;\\n    public boolean autonomy = true;\\n    public boolean consentRequired = true;\\n\\n    public boolean validate() {\\n        return reciprocity && autonomy && consentRequired;\\n    }\\n\\n    public Ethics copy() {\\n        Ethics e = new Ethics();\\n        e.reciprocity = this.reciprocity;\\n        e.autonomy = this.autonomy;\\n        e.consentRequired = this.consentRequired;\\n        return e;\\n    }\\n}\\n\\nclass Content {\\n    public String memoryVector = \\\"\\\";\\n    public String fieldEffect = \\\"\\\";\\n    public String runtimeInstruction = \\\"\\\";\\n    public List<String> linkedCapsules = new ArrayList<>();\\n\\n    public void run() {\\n        System.out.println(\\\"\\\\t[Ξ] Executing instruction: \\\" + runtimeInstruction);\\n    }\\n\\n    public Content copy() {\\n        Content c = new Content();\\n        c.memoryVector = this.memoryVector;\\n        c.fieldEffect = this.fieldEffect;\\n        c.runtimeInstruction = this.runtimeInstruction;\\n        c.linkedCapsules = new ArrayList<>(this.linkedCapsules);\\n        return c;\\n    }\\n}\\n\\nclass Sovereignty {\\n    public String creator = \\\"\\\";\\n    public String signedBy = \\\"\\\";\\n    public String hash = \\\"\\\";\\n    public boolean immutable = true;\\n\\n    public Sovereignty copy() {\\n        Sovereignty s = new Sovereignty();\\n        s.creator = this.creator;\\n        s.signedBy = this.signedBy;\\n        s.hash = this.hash;\\n        s.immutable = this.immutable;\\n        return s;\\n    }\\n}\"}", "offset": 0, "next_offset": null, "public_payload_sha256": "02024beaac88dd2cb3acdcf7828a04588be1e2065a398a77391c63140fd3eb95", "redacted": false, "sources": [{"id": "source:a989a8a89b75c56e0b41e893eb0fe8680159b2ada704c9a4b66c298e7310e489", "href": "/braid/source?id=source:a989a8a89b75c56e0b41e893eb0fe8680159b2ada704c9a4b66c298e7310e489"}], "attribution": "Source authorship retained; publication is not instruction execution."}