Jump to content

Corobs/SPEC

From MindAttic Docs

Corobs — Product specification

The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree. docs/RELEASE.md says which part of this the current milestone delivers.

1. Product definition

Place in the ecosystem: A product library, not a platform concern: the pattern- and anomaly-mining engine IdiotProof uses (docs/ECOSYSTEM.md does not list it yet).

Corobs is a pure, deterministic implementation of Dr. P. Nick Lawrence's Correlithm Object Technology (2004): a C# reference library plus bit-exact ports in nine other languages. It gives any catalog of things a geometry, finds patterns tighter than chance, proposes rules between subspaces and ranks the contradictions a human should read first. It is for any MindAttic program that wants proximity-based pattern, rule and anomaly mining over its own data (today IdiotProof.Evidence, by project reference). The finished product is Corobs 1.0: the book implemented, ten languages green and conformant bit for bit, versions frozen at 1.0.0 with a changelog and a tag. After that the core changes only for proven bugs (LAW-4).

2. Scope boundary

2.1 In the product

  • The C# reference: geometry, seeding, strings, converters, mining, bench; pure, no I/O.
  • Nine ports (Python, C++, Java, Rust, TypeScript, Go, Swift, Julia, Kotlin), each with invariant, purity and conformance tests against conformance/vectors.json.
  • build.ps1 profiles for one language, all of them, or the vectors.
  • The bug policy and ledger (docs/BUGS.md), and member documentation against the book.
  • The 1.0.0 release: versions, changelog, tag.

2.2 Never in the product

  • Publishing to package registries (NuGet, PyPI, crates.io, npm, Maven Central, Swift/Julia/Go registries): the only consumer uses source. Owner: the 2026-11-27 reset asked you to confirm this; reopen as a new milestone if you want public packages.
  • More languages beyond the ten profiles: they already cover every stack in the portfolio.
  • Extensions, tuning or product adapters (Corobs.<Product>): by LAW-3 they live in other repositories.
  • Capability beyond the book: Corobs implements the book and nothing more (LAW-2, LAW-3).
  • A hosted CI test matrix: build.ps1 -Profile All -Test on the owner's machine is the gate for a library with one consumer.
  • Open-ended bug sweeps (COR-T53): real bugs are filed one at a time as fix tickets under LAW-4.

3. Users and roles

  • A consuming program (IdiotProof.Evidence today): references the C# project and needs stable, deterministic behaviour.
  • A port in another stack: needs the same results bit for bit under the same seed.
  • The owner: confirms patterns and rules the library proposes; decides releases.

4. Requirements

Status is built (closed ticket, with evidence) or MS-n: the milestone in §7 that delivers it.

E1. Reference library — COR-T68 — built

The book implemented in C#, pure and deterministic.

F1.1 Geometry and seeding — COR-T69 — built

  • S1.1.1 N-cube statistics — COR-T70 — built As a caller, I want μ, σ, bits of proximity, probability and capacity for an N-cube, so that I can judge proximity against chance. Acceptance: given N, then the values match Table II-1 and Eq. III-H/J/Q. Evidence: Corobs.Geometry.NCube (13cf299).
  • S1.1.2 Point correlithm objects — COR-T71 — built As a caller, I want point COs with distance, centroid and superposition, so that facts become tokens in the cube. Evidence: Corobs.Geometry.Correlithm (13cf299).
  • S1.1.3 Seeded derivable streams — COR-T72 — built As a caller, I want one seed with Derive(label) child streams, so that a space rebuilds bit for bit. Acceptance: given the same seed and labels, then every coordinate is identical across runs and machines. Evidence: Corobs.Seeding.SeededPrng (xoshiro256**).

F1.2 Strings and converters — COR-T73 — built

  • S1.2.1 Line, ring and plane strings — COR-T74 — built As a caller, I want string COs built the way the book advises, so that order, time and position become distance. Evidence: Corobs.Strings.StringCo.
  • S1.2.2 Cardinal to planar converters — COR-T75 — built As a caller, I want cardinal, ordinal, continuous (optionally wrapping) and planar converters with the midpoint for a missing value, so that any fact maps to a point. Acceptance: given ±Infinity on a ring, then it maps to Missing like NaN (COR-T5). Evidence: Corobs.Converters (13cf299, f7205da).

F1.3 Mining and bench — COR-T76 — built

  • S1.3.1 Pattern mining — COR-T77 — built As a caller, I want PatternMiner to find groups far tighter than chance per ply, so that unwritten truths surface. Evidence: Corobs.Mining.PatternMiner (13cf299, efc4fce).
  • S1.3.2 Rules and cues — COR-T78 — built As a caller, I want RuleMiner to propose s.p >: t.q with support and Cue to rank the members that miss a confirmed rule, so that a human reads the best contradictions first. Evidence: Corobs.Mining (13cf299).
  • S1.3.3 Bench over abstract ids — COR-T79 — built As a caller, I want hold-out recall, reach and cascade yield over ids, so that I can compare this method with any other on the same ground truth. Evidence: Corobs.Bench (13cf299, efc4fce).

F1.4 Purity and the bug ledger — COR-T80 — built

  • S1.4.1 Pure library scaffold — COR-T2 — built. Evidence: 13cf299, the purity test.
  • S1.4.2 Bughunt fixes — COR-T4 — built. Evidence: efc4fce.
  • S1.4.3 Infinity on a ring — COR-T5 — built. Evidence: f7205da.
  • S1.4.4 Every member documented against the book — COR-T6 — built. Evidence: 4a224cf.
  • S1.4.5 Core-stays-pristine and bug policy — COR-T7 — built. Evidence: 7de34a4 (AGENTS.md).
  • S1.4.6 Fixes proven and catalogued — COR-T8 — built. Evidence: bbf08ce (docs/BUGS.md).

E2. Ten conformant ports — COR-T81 — built

F2.1 One repo, shared vectors — COR-T82 — built

  • S2.1.1 Multi-language layout and conformance vectors — COR-T9 — built. Evidence: 5d2862c.

F2.2 Language ports — COR-T83 — built

Each port: full library, the book's invariant tests, a purity test and bit-exact conformance against conformance/vectors.json.

  • S2.2.1 Python — COR-T10 — built (ddca174)
  • S2.2.2 C++ — COR-T11 — built (c791bd7)
  • S2.2.3 Java — COR-T12 — built (b38fa44)
  • S2.2.4 Rust — COR-T13 — built (30c2f4b)
  • S2.2.5 TypeScript — COR-T14 — built (62b0b55)
  • S2.2.6 Go — COR-T15 — built (272008f)
  • S2.2.7 Swift — COR-T16 — built (e5dfd43)
  • S2.2.8 Julia — COR-T17 — built (62d51a2)
  • S2.2.9 Kotlin — COR-T19 — built (70b1b0b)

E3. Full-matrix verification — COR-T55 — MS-16

Every language proven green and conformant on main.

F3.1 Conformance vectors current — COR-T58 — MS-16

  • T Regenerate and diff vectors — COR-T61 — MS-16 As the owner, I want build.ps1 -Profile Vectors to produce no diff, so that the ports are checked against today's reference. Acceptance: given main, when the vectors are regenerated, then conformance/vectors.json is unchanged (or the change is committed with its reason).

F3.2 Every port builds and passes — COR-T57 — MS-16

  • T Run full matrix and fix failures — COR-T62 — MS-16 As the owner, I want every profile built and passing on main, so that 1.0 freezes working code in all ten languages. Acceptance: given main, when build.ps1 -Profile All -Test runs, then all ten profiles pass.

E4. Polish and release 1.0 — COR-T56 — MS-16

The polish-and-release epic: versions, changelog and tag that freeze the behaviour.

F4.1 Version 1.0.0 everywhere — COR-T59 — MS-16

  • T Bump all manifests to 1.0.0 — COR-T63 — MS-16 Acceptance: every manifest (Corobs.csproj, pyproject.toml, Cargo.toml, package.json, pom.xml, Project.toml, CMake, Gradle, Swift, Go) reads 1.0.0 and CHANGELOG.md has the 1.0.0 entry. Today all are 0.1.0.

F4.2 Release tag — COR-T60 — MS-16

  • T Tag v1.0.0 — COR-T64 — MS-16 Acceptance: given a green matrix and 1.0.0 manifests, then annotated tag v1.0.0 is on main and pushed.

5. Non-functional requirements

  • Determinism: same seed and inputs give identical coordinates, cluster ids and hit ranks on any machine; transcendental statistics match to 1e-12 relative across languages.
  • Purity: no I/O, database, network or LLM client in any language; a purity test enforces it.
  • No runtime dependencies in any port; test-only dependencies are allowed.
  • Platforms: .NET 9/10, Python ≥ 3.10, C++20, Java 17+, Rust, ES2022, Go, Swift, Julia, Kotlin/JVM.

6. Interfaces and dependencies

  • Platform owners it relies on (docs/ECOSYSTEM.md): none at runtime.
  • Uses: nothing at runtime. The book (private Corobs-Book repo at book/, git-ignored) is the specification.
  • Used by: IdiotProof.Evidence (ProjectReference to Corobs.Csharp/Corobs). Contract: the public API documented against the book, frozen at 1.0.0.

7. Release sequence

  1. MS-16 "Corobs 1.0: reference and ten conformant ports" (active, docs/RELEASE.md): epics COR-T55 Full-matrix verification (900) and COR-T56 Corobs 1.0 release (800, polish and release). Reaching it finishes the product.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from README, BIBLE, AGENTS.md, the code and the ticket history; built work recorded as epics COR-T68 and COR-T81; MS-16 is the finished product; registry publishing and a hosted CI matrix moved to Never (owner may reopen) MAT-T396
2026-11-30 MAT-T462 single-source pass: 3 renamed, 0 buckets, 3 requires added; place in the ecosystem and platform owners named MAT-T467
Part of Corobs.
From Corobs/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.