Leadership Moat
Leadership Moat is the V5 layer that explains why ReformCode is more than a VS Code-like editor, a repo remixer, or another AI chat panel. It packages the systems around CODE and REFORM into one operator-facing report:
- Autonomous Governance: release gates, policy simulation, fix-forward, billing assurance, admin operations, agent governance memory, and privacy-safe trust evidence.
- Marketplace Distribution: partner app registration, signed webhooks, widgets, score badges, public trust pages, Code Genome, and developer APIs.
- Enterprise Evidence: pilot command center, policy packs, stakeholder reports, demo tenant readiness, executive exports, and Evidence Studio artifacts.
- Outcome Learning Loop: continuous evaluation CI, outcome ledger, agent governance memory, trust evidence coverage, growth guardrails, and Code Genome feedback.
Why This Matters
Cursor, Bolt, Lovable, and other AI builders can compete on editor feel, generation speed, or prompt UX. ReformCode needs that quality bar too, but the durable wedge is the loop around the editor:
- REFORM finds and adapts better source material.
- CODE builds inside a governed workspace.
- Release gates, policy checks, and fix-forward loops reduce risky automation.
- Evidence Studio and enterprise pilot exports turn work into buyer-ready proof.
- Partner SDK, widgets, score badges, and public trust pages distribute that proof.
- Agent governance memory feeds accepted/rejected edits, validation failures, Git proof, deploy certification, white-label decisions, and recipe handoffs back into routing, evaluations, and moat scoring.
That is harder to phase out than a UI clone because customers and partners start depending on ReformCode proof assets, webhook events, enterprise evidence rooms, and product memory.
Admin Surface
Admins see the Leadership Moat report at the top of /admin.
The report includes:
- A 0-100 moat score and status:
dominant,defensible,developing, orfragile. - Four pillar cards with scores, signals, proof assets, and next actions.
- A proof-asset list covering admin surfaces, APIs, docs, reports, and workflows.
- A decisive-moves queue that prioritizes
now,next, andscaleactions. - A watchlist for launch, partner, billing, enterprise, and growth risks.
Implementation Contract
- The deterministic engine lives in
lib/moat/leadership-moat.ts. - It consumes existing reports from admin operations, trust evidence, enterprise pilots, continuous evaluation CI, partner marketplace, growth flywheel, and billing assurance.
- It can also consume Agent Governance Memory from
lib/governance/agent-memory.tsto score outcome learning and autonomous-governance depth. - It does not call an LLM.
- It is rendered by
/adminthroughAdminClient. - Focused tests live in
__tests__/lib/moat/leadership-moat.test.ts.
Operating Rule
New billion-dollar differentiators should strengthen at least one moat pillar. If a feature only adds UI surface area without improving governance, distribution, enterprise proof, or learning, it should be treated as polish rather than moat work.