Skip to content

feat(math-model): add the framework workspace and one-line editing - #14

Merged
erthoaers merged 9 commits into
mainfrom
feat/math-model
Nov 16, 2026
Merged

erthoaers merged 9 commits into
mainfrom
feat/math-model

Conversation

@erthoaers

Copy link
Copy Markdown
Contributor

Adds the framework/ workspace and its first crate, kosmo-math-model: the editing structure of one-line formula input.

  • Workspace. framework/ with its root manifest, Cargo.lock and an empty allowlist; no external dependency, dev-dependencies included. The crate is registered in layout.toml (layer F0, not an export, not pure core, not publishable), and framework joins WORKSPACES in xtask/src/check.rs, with the two self-tests that list the workspaces.
  • Model. A line of characters from a fixed 72-character ASCII set; the cursor and the selection; thirteen editing operations, including fragment insertion that adds brackets where a non-operand goes into a missing operand; holes (empty line, missing operand, missing operator, missing right bracket) and completeness derived by one pass over the line with the grammar of kalyx 0.1.0; immutable snapshots; the source version, which increases by exactly 1 for every accepted edit that changes the content; limits on items, inserted bytes and parse depth, checked at entry. A rejected edit changes nothing.
  • Tests. Unit tests next to the code; integration tests for every incomplete input and every operation, 1,000 seeded random edit sequences with per-step invariants, results that leave the buffer unchanged, source versions, limits, and an exhaustive comparison of all lines of up to five characters over a ten-character alphabet with an independent parser.
  • Docs. One-line editing with numbered requirements that name their tests; the scope page marks math input partial; the architecture page links the values and lists the delivered component; README, AGENTS and CONTRIBUTING describe the new workspace.

cargo xtask check passes locally on every commit.

@erthoaers
erthoaers merged commit 760285d into main Nov 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant