Skip to content

Slim to the library half: the deploy half moves to rainlang.deploy (#552 step 2) - #576

Merged
thedavidmeister merged 5 commits into
mainfrom
2026-09-06-slim-to-library
Sep 7, 2026
Merged

Slim to the library half: the deploy half moves to rainlang.deploy (#552 step 2)#576
thedavidmeister merged 5 commits into
mainfrom
2026-09-06-slim-to-library

Conversation

@thedavidmeister

@thedavidmeister thedavidmeister commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Second step of the library / deploy split (#552, rainix#296), on top of #575: the deploy half leaves this repo, which becomes the pure library the rainlang Soldeer package publishes on merge. The deploy half now lives in rainlang.deploy, seeded from this tree and consuming this package.

Removed

  • src/concrete/{Rainlang,RainlangParser,RainlangStore,RainlangInterpreter,RainlangExpressionDeployer}.sol, src/abstract/{RainlangDeploySuites,RainDeploySuitesBase}.sol, src/lib/deploy/LibInterpreterDeploy.sol, src/lib/Lib*Released.sol, src/lib/LibReleasedSuites.sol.
  • src/generated/candidate/ and the four concretes' *Pointers.sol. src/generated/0_1_9/ stays: it is the frozen record of the last release this repo cut as a hybrid, nothing here reads it any more, and rainix's frozen-snapshots-append-only gate forbids deleting a tag dir. The deploy repo freezes its own first release, a different artifact.
  • script/{Deploy,CopyArtifacts}.sol, script/lib/, test/src/script/, the deploy-only tests (*.pointers, *.meta, describedByMetaV1, deployCheck, extrospect, Rainlang.t, BuildHarness, the deploy chain / snapshot / suites tests).
  • crates/, Cargo.*, .cargo/, the Rust workflows and crates-release.yaml; manual-sol-artifacts.yaml; the deployer and standard-ops meta under meta/.
  • foundry.toml: [external.package], [rpc_endpoints], [etherscan], the crates and deployments/ fs permissions.

Kept / changed

  • script/Build.sol now generates only src/generated/RainlangReferenceExternPointers.sol; script/BuildAuthoringMeta.sol and the rainlang-prelude task build only the reference extern's meta. RainlangReferenceExtern is a reference implementation, never a deploy candidate, so it stays with its tests; its bytecode tests move to test/src/concrete/RainlangReferenceExtern.bytecode.t.sol.
  • Every remaining test of the concretes' logic (store, interpreter eval / overlay / zero-pointer guard, parser pragma / memory overflow / unsafeParse, expression deployer parse2 / parsePragma1, ERC165) runs against test/concrete/Test*.sol, the BaseRainlang* built from current source.
  • package-release.yaml is rainix-autopublish on push to main. This removal is breaking, so next-v0.2.0 is pushed at merge and the package ships as rainlang 0.2.0; consumers stay pinned to 0.1.x until they move.
  • CLAUDE.md rewritten for the library shape; README.md drops the Rust docs line; REUSE.toml, .soldeerignore, slither.config.json lose their deploy / crates entries. /test stays shipped in the package: rainlang.deploy and the word repos extend test/abstract/OpTest.sol through it.

QA

  • Discriminating tests: the full suite, 1480 passed, 6 failed, where the 6 are the log-table fork fixtures needing ARBITRUM_RPC_URL, the same set that fails locally on main. The store, interpreter, parser and expression deployer logic tests are the discriminating cases for the test concretes: they now bind Test* and would not compile against anything else in this repo.
  • Mutations applied: n/a, a removal; no new logic. forge script ./script/Build.sol regenerates RainlangReferenceExternPointers.sol byte-identically.
  • Oracle: rain.math.float#263 (the strip precedent) for what leaves and what stays; the BaseRainlang* equivalence is pinned by the deploy repo's *.pointers tests, which now live there.
  • Category check: Split deploy half out of rainlang (rainix#296) #552 "This repo slimmed to the library half" and "Release lane publishes cleanly" (autopublish). The deploy repo, its first release and consumer migration are the remaining boxes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QyCCzi9WZPhuXcU1hwr2bq

Second step of the library / deploy split (#552, rainix#296), on top of
the BaseRainlang* abstracts. The concretes, their generated tables and
deploy records, LibInterpreterDeploy, the released-suites libs, the
deploy scripts and tests, the Rust crates and the deploy workflows leave
this repo; rainlang.deploy carries them over this package.

The 0_1_9 frozen record is a library-tagged pin and is deleted, not
relocated: the deploy repo freezes its own first release.

script/Build.sol now generates only the reference extern's pointers;
BuildAuthoringMeta and the prelude build only its meta. The concretes'
logic tests bind test/concrete/Test*.sol, the BaseRainlang* built from
current source.

package-release.yaml is rainix-autopublish on push to main; this removal
is breaking, so next-v0.2.0 ships it as rainlang 0.2.0.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QyCCzi9WZPhuXcU1hwr2bq
@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 108 files, which is 8 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: f7d59f9b-740a-4985-b6e0-8cef076283d8

📥 Commits

Reviewing files that changed from the base of the PR and between 5675aa7 and 8ffb22e.

⛔ Files ignored due to path filters (11)
  • CLAUDE.md is excluded by !CLAUDE.md
  • Cargo.lock is excluded by !**/*.lock
  • src/generated/RainlangExpressionDeployerPointers.sol is excluded by !**/generated/**
  • src/generated/RainlangInterpreterPointers.sol is excluded by !**/generated/**
  • src/generated/RainlangParserPointers.sol is excluded by !**/generated/**
  • src/generated/RainlangStorePointers.sol is excluded by !**/generated/**
  • src/generated/candidate/Rainlang.sol is excluded by !**/generated/**
  • src/generated/candidate/RainlangExpressionDeployer.sol is excluded by !**/generated/**
  • src/generated/candidate/RainlangInterpreter.sol is excluded by !**/generated/**
  • src/generated/candidate/RainlangParser.sol is excluded by !**/generated/**
  • src/generated/candidate/RainlangStore.sol is excluded by !**/generated/**
📒 Files selected for processing (108)
  • .cargo/config.toml
  • .gas-snapshot
  • .github/workflows/crates-release.yaml
  • .github/workflows/manual-sol-artifacts.yaml
  • .github/workflows/package-release.yaml
  • .github/workflows/rainix-rs-static.yaml
  • .github/workflows/rainix-rs-test.yaml
  • .prettierignore
  • .soldeerignore
  • Cargo.toml
  • README.md
  • REUSE.toml
  • crates/bindings/Cargo.toml
  • crates/bindings/abi/IExpressionDeployerV3.json
  • crates/bindings/abi/IInterpreterStoreV3.json
  • crates/bindings/abi/IInterpreterV4.json
  • crates/bindings/abi/IParserPragmaV1.json
  • crates/bindings/abi/IParserV2.json
  • crates/bindings/abi/Rainlang.json
  • crates/bindings/src/lib.rs
  • crates/cli/Cargo.toml
  • crates/cli/src/commands/eval.rs
  • crates/cli/src/commands/mod.rs
  • crates/cli/src/commands/parse.rs
  • crates/cli/src/execute.rs
  • crates/cli/src/fork.rs
  • crates/cli/src/lib.rs
  • crates/cli/src/main.rs
  • crates/cli/src/output.rs
  • crates/dispair/Cargo.toml
  • crates/dispair/src/lib.rs
  • crates/eval/Cargo.toml
  • crates/eval/src/error.rs
  • crates/eval/src/eval.rs
  • crates/eval/src/fork.rs
  • crates/eval/src/lib.rs
  • crates/eval/src/namespace.rs
  • crates/eval/src/trace.rs
  • crates/parser/Cargo.toml
  • crates/parser/src/error.rs
  • crates/parser/src/lib.rs
  • crates/parser/src/v2.rs
  • crates/test_fixtures/Cargo.toml
  • crates/test_fixtures/abi/Rainlang.json
  • crates/test_fixtures/abi/RainlangExpressionDeployer.json
  • crates/test_fixtures/abi/RainlangInterpreter.json
  • crates/test_fixtures/abi/RainlangParser.json
  • crates/test_fixtures/abi/RainlangStore.json
  • crates/test_fixtures/abi/TestERC20.json
  • crates/test_fixtures/src/lib.rs
  • flake.nix
  • foundry.toml
  • meta/AuthoringMeta.rain.meta
  • meta/RainlangExpressionDeployer.rain.meta
  • script/Build.sol
  • script/BuildAuthoringMeta.sol
  • script/CopyArtifacts.sol
  • script/Deploy.sol
  • script/lib/LibCopyArtifacts.sol
  • slither.config.json
  • src/abstract/RainDeploySuitesBase.sol
  • src/abstract/RainlangDeploySuites.sol
  • src/concrete/Rainlang.sol
  • src/concrete/RainlangExpressionDeployer.sol
  • src/concrete/RainlangInterpreter.sol
  • src/concrete/RainlangParser.sol
  • src/concrete/RainlangStore.sol
  • src/lib/LibRainlangExpressionDeployerReleased.sol
  • src/lib/LibRainlangInterpreterReleased.sol
  • src/lib/LibRainlangParserReleased.sol
  • src/lib/LibRainlangReleased.sol
  • src/lib/LibRainlangStoreReleased.sol
  • src/lib/LibReleasedSuites.sol
  • src/lib/deploy/LibInterpreterDeploy.sol
  • test/src/abstract/RainlangDeployChain.t.sol
  • test/src/abstract/RainlangDeploySnapshot.t.sol
  • test/src/abstract/RainlangDeploySuites.t.sol
  • test/src/concrete/BuildHarness.sol
  • test/src/concrete/ModifierTestParser.sol
  • test/src/concrete/Rainlang.ierc165.t.sol
  • test/src/concrete/Rainlang.t.sol
  • test/src/concrete/RainlangExpressionDeployer.deployCheck.t.sol
  • test/src/concrete/RainlangExpressionDeployer.describedByMetaV1.t.sol
  • test/src/concrete/RainlangExpressionDeployer.ierc165.t.sol
  • test/src/concrete/RainlangExpressionDeployer.meta.t.sol
  • test/src/concrete/RainlangExpressionDeployer.pointers.t.sol
  • test/src/concrete/RainlangInterpreter.extrospect.t.sol
  • test/src/concrete/RainlangInterpreter.ierc165.t.sol
  • test/src/concrete/RainlangInterpreter.pointers.t.sol
  • test/src/concrete/RainlangInterpreter.t.sol
  • test/src/concrete/RainlangInterpreter.zeroFunctionPointers.t.sol
  • test/src/concrete/RainlangParser.ierc165.t.sol
  • test/src/concrete/RainlangParser.parsePragmaEmpty.t.sol
  • test/src/concrete/RainlangParser.parserPragma.t.sol
  • test/src/concrete/RainlangParser.pointers.t.sol
  • test/src/concrete/RainlangReferenceExtern.bytecode.t.sol
  • test/src/concrete/RainlangStore.getUninitialized.t.sol
  • test/src/concrete/RainlangStore.ierc165.t.sol
  • test/src/concrete/RainlangStore.namespaceIsolation.t.sol
  • test/src/concrete/RainlangStore.overwriteKey.t.sol
  • test/src/concrete/RainlangStore.setEmpty.t.sol
  • test/src/concrete/RainlangStore.setEvent.t.sol
  • test/src/concrete/RainlangStore.t.sol
  • test/src/concrete/ZeroFPRainlangInterpreter.sol
  • test/src/lib/deploy/LibInterpreterDeploy.t.sol
  • test/src/lib/integrity/LibIntegrityCheck.t.sol
  • test/src/lib/parse/LibParse.lhsOverflow.t.sol
  • test/src/script/Build.t.sol

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thedavidmeister
thedavidmeister changed the base branch from 2026-09-06-base-rainlang-abstracts to main September 7, 2026 07:56
baku-ccron and others added 4 commits September 7, 2026 07:57
…brary

# Conflicts:
#	crates/bindings/abi/Rainlang.json
#	crates/test_fixtures/abi/Rainlang.json
#	crates/test_fixtures/abi/RainlangExpressionDeployer.json
#	crates/test_fixtures/abi/RainlangInterpreter.json
rainix's frozen-snapshots-append-only gate rejects deleting a tag dir.
Nothing in the library reads src/generated/0_1_9/ any more; it stays as
the record of the last release cut while this repo carried the deploy
half.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QyCCzi9WZPhuXcU1hwr2bq
The BaseRainlang* contracts are the library's product: their binding
hooks are implemented by rainlang.deploy's concretes and by the test
concretes, neither of which slither's src-only build sees, so every
base is a leaf with unimplemented functions by design.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QyCCzi9WZPhuXcU1hwr2bq
@thedavidmeister
thedavidmeister merged commit 801055a into main Sep 7, 2026
5 checks passed
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai assess this PR size classification for the totality of the PR with the following criterias and report it in your comment:

S/M/L PR Classification Guidelines:

This guide helps classify merged pull requests by effort and complexity rather than just line count. The goal is to assess the difficulty and scope of changes after they have been completed.

Small (S)

Characteristics:

  • Simple bug fixes, typos, or minor refactoring
  • Single-purpose changes affecting 1-2 files
  • Documentation updates
  • Configuration tweaks
  • Changes that require minimal context to review

Review Effort: Would have taken 5-10 minutes

Examples:

  • Fix typo in variable name
  • Update README with new instructions
  • Adjust configuration values
  • Simple one-line bug fixes
  • Import statement cleanup

Medium (M)

Characteristics:

  • Feature additions or enhancements
  • Refactoring that touches multiple files but maintains existing behavior
  • Breaking changes with backward compatibility
  • Changes requiring some domain knowledge to review

Review Effort: Would have taken 15-30 minutes

Examples:

  • Add new feature or component
  • Refactor common utility functions
  • Update dependencies with minor breaking changes
  • Add new component with tests
  • Performance optimizations
  • More complex bug fixes

Large (L)

Characteristics:

  • Major feature implementations
  • Breaking changes or API redesigns
  • Complex refactoring across multiple modules
  • New architectural patterns or significant design changes
  • Changes requiring deep context and multiple review rounds

Review Effort: Would have taken 45+ minutes

Examples:

  • Complete new feature with frontend/backend changes
  • Protocol upgrades or breaking changes
  • Major architectural refactoring
  • Framework or technology upgrades

Additional Factors to Consider

When deciding between sizes, also consider:

  • Test coverage impact: More comprehensive test changes lean toward larger classification
  • Risk level: Changes to critical systems bump up a size category
  • Team familiarity: Novel patterns or technologies increase complexity

Notes:

  • the assessment must be for the totality of the PR, that means comparing the base branch to the last commit of the PR
  • the assessment output must be exactly one of: S, M or L (single-line comment) in format of: SIZE={S/M/L}
  • do not include any additional text, only the size classification
  • your assessment comment must not include tips or additional sections
  • do NOT tag me or anyone else on your comment

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