Lex
Repo-local memory and policy context. Frames, recall, Atlas neighborhoods, policy checks, instructions, CLI, MCP, and TypeScript API.
Discover GitHub PRs, freeze their dependencies, inspect the integration order, and run reviewed gates. Merge only when the exact changes have passed review and you have authority.
Start with one LexRunner package. Your first result is an inspected plan and gate preview; add memory and workspace capabilities when the work calls for them.
Add components for a specific need. The first integration-plan workflow uses LexRunner; this reference explains the other pieces.
Repo-local memory and policy context. Frames, recall, Atlas neighborhoods, policy checks, instructions, CLI, MCP, and TypeScript API.
Agent eXoskeleton Framework. Workspace-owned capabilities that tell agents how this repo builds, tests, searches, diagnoses, and operates.
Proposed context-linking library. Assemble resolved policy and typed inputs into deterministic bundles with explanations. Architecture only; not released.
Behavioral constraint engine. Personas and learned rules become deterministic constraints. It returns constraints; it does not execute.
Flow runner. Fan-out work, run gates, coordinate contained execution, and merge through deterministic plans.
LMV is the evidence-aware memory doctrine moving upstream through Lex and AXF. These 12 precepts keep memory, evidence, uncertainty, power, and operator control separate.
Evidence can support a claim without becoming final authority.
A Frame can guide inquiry, but evidence closes validation.
Recovered context remains a candidate until checked against current state.
Unknown, partial, stale, and low-confidence states should remain visible.
Conflicting records should be linked and resolved, not overwritten.
Retention, demotion, expiry, and supersession keep memory useful.
Promote memory when it changes future behavior or prevents repeated work.
Claims deserve cited witnesses: files, commands, logs, receipts, commits, URLs, or Frames.
Records and capabilities should say what they do and do not authorize.
Meaningful effects need actor, scope, reason, result, and validation records.
Humans remain responsible for destructive, secret-bearing, remote, or unbounded actions.
Bounded failures can teach when scope, cause, effect, and limits are recorded.
Frontier models can reason, but production work still needs local memory, repo facts, tool contracts, permission boundaries, receipts, and failure recovery.
MCP is an important transport. It does not decide whether an agent should deploy, which credentials are appropriate, or what to do when access fails.
Rigid SOP automation turns agents into brittle programs. Unbounded autonomy turns tools into risk. The useful middle is bounded work with receipts.
Install Lex to give agents local memory, policy context, recoverable errors, and durable instructions. It is MIT licensed and published on npm.
AXF packages repeatable repo know-how as capabilities. Agents can inspect, run, and promote those capabilities through one contract.
ContextForge is the proposed pure context linker. Ownership and input contracts await ratification; no implementation or npm package is released.
The software-development loop is the proving ground because it has clear tools, artifacts, and tests. The architecture is broader than code.
Analysts need dataset memory, query capability declarations, role-scoped credentials, and receipts for decisions made from uncertain data.
Ops agents need runbooks converted into inspectable capabilities, authority checks before mutation, and escalation when a credential or policy blocks action.
PM and support agents need different access than developers. LexSona can express posture; authority boundaries remain explicit; Lex records what happened.