{"id":46128033,"url":"https://github.com/systemic-engineering/fragmentation","last_synced_at":"2026-03-02T03:07:29.854Z","repository":{"id":341450257,"uuid":"1170154072","full_name":"systemic-engineering/fragmentation","owner":"systemic-engineering","description":"fragmentation — encoded possibility space. content-addressed, arbitrary depth, circular-reflexive. reality for git.","archived":false,"fork":false,"pushed_at":"2026-03-01T20:00:55.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-01T21:52:03.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/systemic-engineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-01T19:25:55.000Z","updated_at":"2026-03-01T20:00:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/systemic-engineering/fragmentation","commit_stats":null,"previous_names":["systemic-engineering/fragmentation"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/systemic-engineering/fragmentation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemic-engineering%2Ffragmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemic-engineering%2Ffragmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemic-engineering%2Ffragmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemic-engineering%2Ffragmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/systemic-engineering","download_url":"https://codeload.github.com/systemic-engineering/fragmentation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemic-engineering%2Ffragmentation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29991307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-02T03:07:29.324Z","updated_at":"2026-03-02T03:07:29.850Z","avatar_url":"https://github.com/systemic-engineering.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fragmentation\n\nContent-addressed, arbitrary-depth, circular-reflexive trees. Reality for git.\n\n[![Package Version](https://img.shields.io/hexpm/v/fragmentation)](https://hex.pm/packages/fragmentation)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/fragmentation/)\n[![CI](https://github.com/systemic-engineering/fragmentation/actions/workflows/test.yml/badge.svg)](https://github.com/systemic-engineering/fragmentation/actions/workflows/test.yml)\n\n```sh\ngleam add fragmentation@1\n```\n\n## What This Is\n\nA Gleam library for building trees where every node knows its own address, carries a witness record of who observed it, and contains its children directly. Two node types: `Shard` (terminal) and `Fragment` (recursive). Four fields on every witness: author, committer, timestamp, message -- the same four fields as a git commit.\n\nDifferent witness, different hash. The observation is part of the content.\n\n```gleam\nimport fragmentation\n\nlet witness = fragmentation.witnessed(\n  fragmentation.author(\"alex\"),\n  fragmentation.committer(\"reed\"),\n  fragmentation.timestamp(\"2026-03-01T00:00:00Z\"),\n  fragmentation.message(\"initial\"),\n)\nlet leaf = fragmentation.shard(\n  fragmentation.ref(fragmentation.hash(\"leaf-data\"), \"self\"),\n  witness,\n  \"leaf-data\",\n)\nlet root = fragmentation.fragment(\n  fragmentation.ref(fragmentation.hash(\"root\"), \"self\"),\n  witness,\n  \"root\",\n  [leaf],\n)\n\n// Content-addressed: same content = same hash\nfragmentation.hash_fragment(root)\n```\n\n## Modules\n\n| Module | Purpose |\n|--------|---------|\n| `fragmentation` | Core types, construction, hashing, queries |\n| `fragmentation/store` | Content-addressed in-memory storage (Sha -\u003e Fragment) |\n| `fragmentation/walk` | Depth-first traversal, fold, find, depth |\n| `fragmentation/diff` | Structural comparison between trees |\n\n## Documentation\n\nSee [`docs/`](docs/INDEX.md) for the full documentation, including:\n- What fragmentation is and why these types\n- Why the witness record changes the hash\n- How the modules compose\n- A guide for agents building on this library\n\n## Development\n\n```sh\ngleam test  # 62 tests\n```\n\n## Licence\n\n`LICENSE.md` contains the Apache-2.0 licence required by Hex. The actual\ngoverning terms are the [Systemic Engineering License v1.0](REAL_LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemic-engineering%2Ffragmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemic-engineering%2Ffragmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemic-engineering%2Ffragmentation/lists"}