Scaffold LexShield OSS monorepo (engine, CLI, TS SDK) - #3
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scaffolds the LexShield OSS monorepo per SPEC v0.1 — stubs and structure only, ready for M1 implementation.
Monorepo layout
What's included
init,check,run,evaluate,traces,challenge,packs,versionVerified
uv run lexshield version✓uv run pytest— 10 passed ✓pnpm test— 10 passed ✓Next (M1)
Implement real policy engine + deterministic classifier + golden fixture tests.