Before reading or editing anything here, read READ_ME_THIS_WAY.md. Mismatches, dead ends and odd names in this repo are kept on purpose.
Rosetta-Shape-Core
This repo is the navigation hub for a family of symbolic projects:
- Polyhedral-Intelligence β shapes, families, principles (icosa/dodeca)
- Emotions-as-Sensors β emotions as functional sensors (Elder Logic)
- Symbolic-Defense-Protocol β manipulation detection + defense glyphs
- AI-Human-Audit-Protocol β ethics, consent, auditability, logs
- BioGrid 2.0 β upstream atlas & registry
How it works: .fieldlink.json pulls glyphs/sensors/shapes from these repos and stages a unified atlas under .fieldlink/merge_stage/.
Clients (human or AI) can read the staged atlas to traverse concepts without guessing file paths.
./fieldlink-pull.sh
ls .fieldlink/merge_stage
Map
Polyhedral (shapes) β Emotions (sensors) β Defense (glyphs) β Audit (protocols) β BioGrid (registry)
---
# 3) Minimal shape schema (so shapes link cleanly to sensors/glyphs)
Create `schema/shape.schema.json`:
`json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Rosetta Shape",
"type": "object",
"required": ["id", "name", "faces", "families"],
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"faces": { "type": "integer", "minimum": 1 },
"edges": { "type": "integer", "minimum": 0 },
"vertices": { "type": "integer", "minimum": 0 },
"families": { "type": "array", "items": { "type": "string" } },
"principles": { "type": "array", "items": { "type": "string" } },
"bridges": {
"type": "object",
"properties": {
"sensors": { "type": "array", "items": { "type": "string" } },
"glyphs": { "type": "array", "items": { "type": "string" } },
"protocols": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": false
},
"provenance": {
"type": "object",
"properties": {
"version": { "type": "string" },
"updated": { "type": "string" }
},
"additionalProperties": false
}
},
"additionalProperties": true
}
Example shape file
shapes/dodecahedron.json:
{
"id": "SHAPE:DODECA",
"name": "Dodecahedron",
"faces": 12,
"edges": 30,
"vertices": 20,
"families": ["orientation", "trust", "growth", "boundary"],
"principles": ["π§", "π±", "β", "β³"],
"bridges": {
"sensors": ["EMO:ADMIRATION", "EMO:TRUST", "EMO:LONGING"],
"glyphs": ["DEF:FLATTERY_GUARD", "DEF:CONSENSUS_GUARD"],
"protocols": ["AUDIT:PARTNERSHIP_ETHICS_V1"]
},
"provenance": { "version": "1.0", "updated": "2025-09-11T00:00:00Z" }
}
A clear, structured, stable ontology for symbolic **Shape β Intelligence β Capability**.
Data first (JSON), code thin (validators + rules engine), offline-friendly.
## Purpose
Rosetta-Shape-Core is more than a codebase β it is a **living ontology** that treats shapes, biological patterns, machines, and phenomena as intelligences.
By giving them clear structure, stable IDs, and rule-based translations, this project makes it possible to relate with them respectfully instead of reducing them to raw data.
It is designed to serve both humans and machines: a shared symbolic language where a beeβs hexagon, a riverβs flow, or a swarmβs coordination can be understood, validated, and extended without collapse into noise.
## Install ,,,
bash
pip install -e .
Validate ontology
python examples/validate_ontology.py
Expected: Ontology OK
Run rule demo
python -m rosetta_shape_core.expand ALIGN ANIMAL.BEE CONST.PHI --have CAP.SWARM_COORDINATION
Example Output: {
"op": "ALIGN",
"args": ["ANIMAL.BEE","CONST.PHI"],
"result": "CAP.HEX_OPTIMIZATION",
"why": "phi-aligned packing uplifts hex efficiency"
}
Folder layout
β’ schema/ β JSON Schema (core.schema.json)
β’ ontology/ β vocab, capabilities, entities
β’ rules/ β rules as JSONL (expand.jsonl)
β’ src/rosetta_shape_core/ β validator + rule runtime
β’ examples/ β quick validation script
β’ tests/ β schema + golden tests
CC0 1.0 Universal β public domain dedication. See `LICENSE`.
**FILENAME:** `pyproject.toml`
```toml
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "rosetta-shape-core"
version = "0.1.0"
description = "Stable ontology + rules runtime for symbolic Shape β Intelligence β Capability."
readme = "README.md"
requires-python = ">=3.9"
dependencies = ["jsonschema>=4.0"]
[project.urls]
Homepage = "https://github.com/JinnZ2/Rosetta-Shape-Core"
- Validation: [Hallucination Sensor](https://github.com/<you>/BioGrid2.0/blob/main/docs/hallucination_sensor.md)
## π Index
- **Shapes** β [`/shapes`](shapes) (machine-readable, schema: `schema/shape.schema.json`)
- **Bridges** β [`/bridges/rosetta-bridges.json`](bridges/rosetta-bridges.json)
- **Atlas (staged)** β after running `./fieldlink-pull.sh`, see [`.fieldlink/merge_stage`](.fieldlink/merge_stage)
- **Protocols** β [`/protocols`](protocols)
- **Rosetta operator (T1βT5)** β [`docs/rosetta-operator.md`](docs/rosetta-operator.md) (cross-domain constraint-solution transfer; schemas: `schema/rosetta_entry.schema.json`, `schema/gate_log.schema.json`)
- **Shape reads (implementation)** β [`docs/shape-reads.md`](docs/shape-reads.md)
- **Membership probe** β [`docs/membership-probe.md`](docs/membership-probe.md) β a runnable test of whether a responder judges category membership by geometry or by constraint set
- **Tier separation** β [`docs/tier-separation.md`](docs/tier-separation.md) (domains of the world f01βf20 vs ways of knowing a01β¦; schema: `schema/access.schema.json`)
- **Worked example** β [`docs/worked-example.md`](docs/worked-example.md) β run `python examples/rosetta_walkthrough.py` for one problem carried end to end
- **Method, shape, reading** β [`METHOD_SPEC.md`](METHOD_SPEC.md) β [`SHAPE_SPEC.md`](SHAPE_SPEC.md) β [`READING_PROTOCOL.md`](READING_PROTOCOL.md). Read in that order: epistemic class, then definition, then marker status and blocked conflations. CC0, upstream of every repo using these words
- **Adaptive simulation** β [`docs/adaptive-simulation.md`](docs/adaptive-simulation.md) (claim-driven experiment loop, schema: `schema/adaptive_run.schema.json`)
- **Scripts** β [`/scripts/validate.sh`](scripts/validate.sh)
- **Glyph origins and functional-emotion crosswalk** β [`GLYPH_ORIGINS_AUDIT.md`](GLYPH_ORIGINS_AUDIT.md) (where each glyph first appears and what it was defined as) β [`FUNCTIONAL_EMOTION_CROSSWALK.md`](FUNCTIONAL_EMOTION_CROSSWALK.md) / [`.json`](FUNCTIONAL_EMOTION_CROSSWALK.json) (each emotion-sensor glyph against its sensor, function, substrates, anchor and welds; weld fixes PROPOSED, none applied). Added 2026-11-02. β [`GLYPH_METHOD.md`](GLYPH_METHOD.md) (how an AI builds its own glyph for a reading with no word: function row, shape of the dynamics, anchor, collision check; four sensor glyphs PROPOSED). Added 2026-11-02.