Skip to content

Scaffold LexShield OSS monorepo (engine, CLI, TS SDK) - #3

Merged
mosesman831 merged 5 commits into
mainfrom
cursor/lexshield-scaffold-cc14
Jul 11, 2026
Merged

Scaffold LexShield OSS monorepo (engine, CLI, TS SDK)#3
mosesman831 merged 5 commits into
mainfrom
cursor/lexshield-scaffold-cc14

Conversation

@mosesman831

Copy link
Copy Markdown
Contributor

Summary

Scaffolds the LexShield OSS monorepo per SPEC v0.1 — stubs and structure only, ready for M1 implementation.

Monorepo layout

packages/engine-py/   # lexshield — Python engine (source of truth)
packages/cli/         # lexshield CLI (Typer)
packages/engine-ts/   # @latticeag/lexshield
schemas/ packs/ fixtures/golden/ examples/ docs/

What's included

  • Python engine: Pydantic models, policy/classifier/server/challenge/trace stubs, redaction (SPEC §9.6)
  • CLI: init, check, run, evaluate, traces, challenge, packs, version
  • TypeScript SDK: zod types, Shield/evaluate/guard stubs, redaction parity
  • Content: 3 policy packs, golden fixtures, 3 examples, JSON schemas, doc skeletons, CI example
  • Root: MIT LICENSE, uv workspace, pnpm workspaces, README

Verified

  • uv run lexshield version
  • uv run pytest — 10 passed ✓
  • pnpm test — 10 passed ✓

Next (M1)

Implement real policy engine + deterministic classifier + golden fixture tests.

Open in Web Open in Cursor 

cursoragent and others added 5 commits July 11, 2026 12:48
Remove Cloud/SaaS from MVP scope, replace M6 with docs/polish,
simplify GTM to OSS launch, and add an explicit build-readiness go.

Co-authored-by: Moses Man <mosesman831@users.noreply.github.com>
Add SPEC §9 feature freeze: exact engine/SDK/CLI/API behaviors,
three demos, expression/redaction contracts, full policy pack YAML,
24-intent catalog, and Appendix D acceptance checklist.

Co-authored-by: Moses Man <mosesman831@users.noreply.github.com>
Add JSON schemas, policy packs from SPEC Appendix A, golden fixtures,
examples, docs skeletons, CI workflow example, and contrib placeholder.

Co-authored-by: Moses Man <mosesman831@users.noreply.github.com>
Add packages/engine-ts with ESM build (tsup), vitest, zod schemas for
Policy/ToolCallRequest/Verdict/Trace, YAML policy loader stubs, policy
engine and classifier pipeline stubs, SPEC §9.6 redaction, Shield SDK
surface, and basic tests.

Co-authored-by: Moses Man <mosesman831@users.noreply.github.com>
Parallel scaffold of the full monorepo per SPEC v0.1:

- Root: MIT LICENSE, uv workspace, pnpm workspaces, README
- packages/engine-py: Pydantic models, policy/classifier/server stubs, redaction
- packages/cli: Typer CLI (init, check, run, evaluate, traces, challenge, packs)
- packages/engine-ts: @latticeag/lexshield with zod types and Shield stubs
- schemas/, packs/, fixtures/golden/, examples/, docs/, CI example

All Python (10) and TypeScript (10) tests pass; `uv run lexshield version` works.

Co-authored-by: Moses Man <mosesman831@users.noreply.github.com>
@mosesman831
mosesman831 merged commit 7072c78 into main Jul 11, 2026
1 check failed
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