[core] scaena-core v0.1.0: canon parser, claim checker, hook templates #1

Closed
mnovak wants to merge 0 commits from feature/core into main
Owner

Praeco Domi Day 1: the pure core (CPAL-1.0).

  • canon: strict parser for apps/<id>.md (front matter, - [F<n>] facts, (assumption), 64 KiB cap, hostile characters refused), Canon, CanonFile::adhoc for release facts.
  • claims: fail-closed checker (every fact-stating sentence needs a [app#Fn] to an existing, confirmed fact; unknown apps, missing or assumption facts, malformed refs, URLs not in canon and hidden characters are refused), strip_refs.
  • hooks: templates with the fixed slot set, fill, a simple Genome.

Self-review: pure Rust, no I/O, #![forbid(unsafe_code)], deps serde, thiserror and unicode-segmentation only. Every file carries the SPDX CPAL-1.0 header and the Exhibit A notice; README says redistributors must show the Exhibit B credit. Tests: 59 pass (canon 21, claims 16, hooks 13, property tests 9 x 512 cases). cargo clippy --all-targets -D warnings clean; cargo check for aarch64-linux-android and wasm32-unknown-unknown clean. API matches Praeco's DAY1_PLAN with additions only (HiddenCharacter, #[non_exhaustive] error enums). Tag core-v0.1.0 on the last commit.

Merged with --no-ff into main as 47d1a0a (the repo does not auto-detect local merges, so this PR is closed by hand).

Praeco Domi Day 1: the pure core (CPAL-1.0). - `canon`: strict parser for `apps/<id>.md` (front matter, `- [F<n>]` facts, `(assumption)`, 64 KiB cap, hostile characters refused), `Canon`, `CanonFile::adhoc` for release facts. - `claims`: fail-closed checker (every fact-stating sentence needs a `[app#Fn]` to an existing, confirmed fact; unknown apps, missing or assumption facts, malformed refs, URLs not in canon and hidden characters are refused), `strip_refs`. - `hooks`: templates with the fixed slot set, `fill`, a simple `Genome`. Self-review: pure Rust, no I/O, `#![forbid(unsafe_code)]`, deps serde, thiserror and unicode-segmentation only. Every file carries the SPDX CPAL-1.0 header and the Exhibit A notice; README says redistributors must show the Exhibit B credit. Tests: 59 pass (canon 21, claims 16, hooks 13, property tests 9 x 512 cases). `cargo clippy --all-targets -D warnings` clean; `cargo check` for aarch64-linux-android and wasm32-unknown-unknown clean. API matches Praeco's DAY1_PLAN with additions only (`HiddenCharacter`, `#[non_exhaustive]` error enums). Tag `core-v0.1.0` on the last commit. Merged with --no-ff into main as 47d1a0a (the repo does not auto-detect local merges, so this PR is closed by hand).
mnovak added 4 commits 2026-11-23 01:48:38 +01:00
mnovak closed this pull request 2026-11-23 01:52:09 +01:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/ScaenaPublic#1