8000 Phase 2: enforce concept and formalization schemas · Issue #10 · Mnehmos/MathOS · GitHub
[go: up one dir, main page]

Skip to content

Phase 2: enforce concept and formalization schemas #10

Closed

Description

@Mnehmos

Product outcome

Give concepts and exact formal interpretations versioned, closed contracts so a claim may have multiple formalizations without overwriting meaning or conflating fidelity with verification.

Acceptance criteria

  • Concept payloads explicitly model name, aliases, description, subject domains, formal declarations, external taxonomy crosswalks, pedagogy references, and provenance.
  • Formalization payloads explicitly bind one exact claim version, formal system, environment, module artifact, declaration name, exact theorem type or declaration hash, imports, notes, fidelity evidence references, and verification evidence references.
  • Formalization records contain no direct proved, disproved, faithful, or certified field.
  • Committed closed JSON Schemas exist under schemas/concept/ and schemas/formalization/.
  • Schema consistency tests compare committed schemas to the Rust-owned contract.
  • Canonical create and version paths validate supported schema versions before persistence.
  • One claim can retain multiple distinct formalization objects and versions.
  • Changing theorem type, environment, module artifact, or imports produces a different formalization version hash.
  • Invalid exact references, hashes, empty required fields, unknown fields, and excessive collections fail before persistence.
  • Unit and adversarial tests exercise the real SQLite store and restart behavior.

Trust checks

  • Kernel verification and statement fidelity remain separate future evidence axes.
  • A formalization cannot overwrite its source claim.
  • Alternate formalizations remain simultaneously addressable.
  • External taxonomy crosswalks retain source and license metadata.

Out of scope

Lean subprocess execution, fidelity review authority, evidence records, environment persistence, CLI/MCP exposure, and truth derivation are separate deliverables.

Activity

  1. Mnehmos commented on Jul 19, 2026

    @Mnehmos
    OwnerAuthor

    Published the controlled issue #10 slice in commit b96cd2d on feat/spec-driven-rust-rebuild.

    Local evidence:

    • cargo fmt --check passed
    • warnings-denied Clippy passed
    • 44 Rust unit tests passed
    • 4 Rust CLI integration tests passed
    • 39 legacy regression tests passed
    • git diff --check passed

    The local commit bede02c485225e1be55fd4b9a641bba42677d982 and durable GitHub commit b96cd2d have the identical tree 360479e30974be4d8e13f0fce42c1ca4604777de.

    This implements closed concept and formalization contracts, exact existing claim-version enforcement, multiple formalizations per claim, hash-sensitive theorem/environment/artifact/import identity, restart persistence, and adversarial rejection of embedded truth or fidelity verdicts. The issue remains open until CI completes on this remote head.

  2. Mnehmos commented on Jul 19, 2026

    @Mnehmos
    OwnerAuthor

    Remote CI is green on issue #10 commit b96cd2dbf032b25197fd16ae1f4e537d3fe0d3d6.

    GitHub Actions run 29697132394 passed Rust on Ubuntu and Windows, warnings-denied Clippy, 44 Rust unit tests, 4 CLI integration tests, real-storage smoke, pinned Lean availability, and 39 legacy regression tests. Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0