Skip to content

Typed effects with env and v0.3.0 release#6

Open
contrasam wants to merge 55 commits intomainfrom
feat/typed-effects-with-env
Open

Typed effects with env and v0.3.0 release#6
contrasam wants to merge 55 commits intomainfrom
feat/typed-effects-with-env

Conversation

@contrasam
Copy link
Contributor

No description provided.

contrasam and others added 30 commits March 8, 2026 10:57
Adds PROJECT.md for two-part initiative: verified law tests (functor/monad/error/capability) and test utilities (assertions, TestRuntime, capability test doubles).

Creates PROJECT.md with requirements and constraints.
6-phase milestone: law infrastructure, functor/monad laws, error/capability laws,
fluent assertions, TestRuntime, and capability test doubles.

Initializes STATE.md and phase directories.
Single plan: EffectLawSupport utility with observational effect equivalence
assertions, plus LawInfrastructureTest smoke tests.
One plan: FunctorLawsTest (identity, composition) and MonadLawsTest
(left identity, right identity, associativity), each tested with
success, failure, and suspend effect inputs.
One plan: ErrorChannelLawsTest (catchAll identity, mapError identity,
mapError composition, attempt round-trip) and CapabilityHandlerLawsTest
(orElse identity, compose associativity). 14 tests total.
One plan: EffectAssert fluent chain + EffectAssertions entry point with
eager execution, 8 assertion methods (succeeds/fails/with/predicate/andReturn/andError),
handler overload, and 22-test validation suite.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
contrasam and others added 25 commits March 10, 2026 18:36
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t factories

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Phase 10 plan: horizontal and vertical Layer composition operators.
Covers widenError helper, and() (same input, merged output), andProvide()
(sequential build, both outputs retained), and LayerCompositionTest.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Phase 11: finalize on() intersection bound (C extends F & Capability<R>),
commit user's forType() changes, and write end-to-end LayerIntegrationTest.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Note: Java JLS §4.4 forbids additional bounds when the first bound is a
type variable (F), so the exact intersection `C extends F & Capability<R>`
does not compile. The existing `C extends F` already transitively enforces
the Capability bound since Builder<F extends Capability<?>>. The forType()
factory and Builder<F> generics from the user's changes are retained as-is.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Documents the full Milestone 2 API: phantom types (Empty/With),
HandlerEnv, EffectWithEnv, Layer (succeed/fromEffect), horizontal
and vertical layer composition, API reference tables, and design notes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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