Skip to content

Composable Model Graph library - #1

Merged
bigboateng merged 1 commit into
mainfrom
feat/composable-model-graph
Jun 5, 2026
Merged

Composable Model Graph library#1
bigboateng merged 1 commit into
mainfrom
feat/composable-model-graph

Conversation

@bigboateng

Copy link
Copy Markdown
Contributor

Summary

Initial implementation of Composable Model Graph: a TypeScript library for building inspectable transformation graphs.

Core shape: input -> transforms -> output -> evaluation -> feedback.

The library is a single package, @composable-model-graph/core, with the generic primitives and nothing else (no agent/harness/workflow concepts):

  • Transform, ModelGraph (linear, trace-recording), Evaluator, FeedbackResolver
  • RunContext, GraphRun, TraceStep, TransformExecutionError
  • createTransform / createEvaluator / createFeedbackResolver / createModelGraph / createRunContext factories

Also included:

  • examples/ — seven runnable examples built on core alone (linear, pipeline, evaluated, feedback, input-data-building, branching, comparison)
  • docs/ — model-shape and primitive guides with ASCII diagrams
  • pnpm workspace, TypeScript project references, Vitest, lightweight ESLint/Prettier, MIT license

Test plan

  • pnpm build (tsc -b) is clean
  • pnpm test — 14/14 core tests pass
  • pnpm format:check is clean
  • All seven examples run via pnpm --filter ... start
  • CI green on the PR

Made with Cursor

Add a TypeScript (ESM, strict, Vitest) pnpm monorepo whose single library is
the model graph: generic primitives for building inspectable transformation
graphs (input -> transforms -> output -> evaluation -> feedback).

- packages/core: Transform, ModelGraph (linear, trace-recording), Evaluator,
  FeedbackResolver, RunContext, GraphRun, TraceStep, TransformExecutionError,
  and factories. No dependencies; no harness/agent/workflow concepts.
- examples/: seven runnable examples built on core alone, including the
  Input Data Building model.
- docs/: model-shape and primitive guides with ASCII diagrams.
- MIT licensed; build (tsc -b), tests (vitest), and prettier all green.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bigboateng
bigboateng merged commit 1497f0f into main Jun 5, 2026
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.

2 participants