Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs: remove dated/phase-labeled cruft and translate Spanish comments
Jose Ramirez94f7d9470c39
diff --git a/docs/architecture/overview.md b/docs/architecture/overview.mdindex ab7741779..1d6c1958b 100644--- a/docs/architecture/overview.md+++ b/docs/architecture/overview.md@@ -28,7 +28,7 @@ evenfire is a Kubernetes-native platform for LLM orchestration with multi-channe8. [Message Lifecycle (End-to-End)](#8-message-lifecycle-end-to-end)9. [Dev Mode vs Production Mode](#9-dev-mode-vs-production-mode)10. [Deployment & Infrastructure](#10-deployment--infrastructure)-11. [Tool Approval System (Phase 6)](#11-tool-approval-system-phase-6)+11. [Tool Approval System](#11-tool-approval-system)---@@ -1452,7 +1452,7 @@ All services handle `SIGINT` and `SIGTERM`:----## 11. Tool Approval System (Phase 6)+## 11. Tool Approval System### Overviewdiff --git a/docs/architecture/platform-topology.md b/docs/architecture/platform-topology.mdindex 5b62e1bf3..db5c9d47b 100644--- a/docs/architecture/platform-topology.md+++ b/docs/architecture/platform-topology.md@@ -1,6 +1,6 @@# Clerum Platform — Architecture Reference-> **Status**: Source of truth for Clerum platform architecture. Updated 2026-05-15 with WorkflowRecipe runtime egress lane ownership, public-only mcp-host egress, and Host-scoped rpc-proxy lanes.+> **Status**: Source of truth for Clerum platform architecture.> All other specification documents reference this document for architectural decisions.> When the architecture changes, update THIS document first, then propagate to specs.>@@ -611,7 +611,7 @@ Recipe bindings[] → WRC annotates McpServer CRD → HCC generates NetworkPolicOnly specific ports. Only declared bindings. Nothing else.```-> **✅ Implementation Status (Phase 8)**: Namespace splitting is **implemented**.+> **✅ Implementation Status**: Namespace splitting is **implemented**.> Non-MCP workloads are deployed to `sandbox-recipes` namespace, MCP workloads remain> in `mcp-server`. Cross-namespace L3 NetworkPolicies enable communication between> namespaces. See [non-MCP services](non-mcp-services.md) for the published@@ -1026,7 +1026,7 @@ See [§7.2 Full Deployment Flow](#72-full-deployment-flow) for the complete merm| Feature | Description || ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| ~~Egress policies per MCP server~~ | **Specified** in Phase 8 — `bindings[].to: external` with `dns`/`cidr` → McpServer CRD `spec.egressBindings[]` → HCC L3-egress NetworkPolicies |+| ~~Egress policies per MCP server~~ | **Specified** — `bindings[].to: external` with `dns`/`cidr` → McpServer CRD `spec.egressBindings[]` → HCC L3-egress NetworkPolicies || Per-recipe ResourceQuotas | CPU/memory quotas in sandbox-recipes || WRO detection pipeline | Workflow Recipe Optimization (design not published in this repo) || Namespace-per-context sandbox | Stronger isolation if scale requires it |@@ -1041,21 +1041,21 @@ See [§7.2 Full Deployment Flow](#72-full-deployment-flow) for the complete merm| ----------------------------------------------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- || Discovery API (HCC REST) | **Implemented** | `host-context-controller/src/server.ts` || MCP Server Reconciler | **Implemented** | `host-context-controller/src/reconciler.ts` |-| NetworkPolicy Reconciler (L0-L3 + L3-egress) | **Implemented** (Phase 8) | `host-context-controller/src/networkPolicyReconciler.ts` |-| L0 deny-all (Ingress + Egress, 4 NS) | **Implemented** (Phase 8) | `ensureDefaultDeny()` — dynamic, HCC's 4 runtime namespaces (mcp-host is static) |-| L1 infrastructure (DNS, HCC API, K8s API) | **Implemented** (Phase 8) | `ensureInfrastructurePolicies()` — 10 policies (DNS x 4, HCC/K8s API x 3; sandbox-ui is DNS-only) |-| L1 allow-api ingress | **Implemented** (Phase 8) | `ensureAllowContextMapperApi()` — `from` bug fixed |-| L2 context-allow (bidirectional) | **Implemented** (Phase 8) | `reconcileContext()` — ingress in mcp-server + egress in mcp-host |-| L3 binding-scoped NetworkPolicies | **Implemented** (Phase 8) | `bindingPolicyReconciler.ts` — wired to HCC McpServer watch loop |-| L3-egress external-scoped | **Implemented** (Phase 8) | `reconcileExternalEgress()` — CIDR + DNS resolution |-| Prometheus metrics (HCC + WRC) | **Implemented** (Phase 8) | `host-context-controller/src/metrics.ts`, `workflow-recipes/src/metrics.ts` |+| NetworkPolicy Reconciler (L0-L3 + L3-egress) | **Implemented** | `host-context-controller/src/networkPolicyReconciler.ts` |+| L0 deny-all (Ingress + Egress, 4 NS) | **Implemented** | `ensureDefaultDeny()` — dynamic, HCC's 4 runtime namespaces (mcp-host is static) |+| L1 infrastructure (DNS, HCC API, K8s API) | **Implemented** | `ensureInfrastructurePolicies()` — 10 policies (DNS x 4, HCC/K8s API x 3; sandbox-ui is DNS-only) |+| L1 allow-api ingress | **Implemented** | `ensureAllowContextMapperApi()` — `from` bug fixed |+| L2 context-allow (bidirectional) | **Implemented** | `reconcileContext()` — ingress in mcp-server + egress in mcp-host |+| L3 binding-scoped NetworkPolicies | **Implemented** | `bindingPolicyReconciler.ts` — wired to HCC McpServer watch loop |+| L3-egress external-scoped | **Implemented** | `reconcileExternalEgress()` — CIDR + DNS resolution |+| Prometheus metrics (HCC + WRC) | **Implemented** | `host-context-controller/src/metrics.ts`, `workflow-recipes/src/metrics.ts` || RPC Proxy service + NetworkPolicy | **Implemented** | `rpc-proxy/src/` + `deploy/base/rpc-proxy/networkpolicies.yaml` || WRC reconciler pipeline | **Implemented** | `workflow-recipes/src/reconciler/` — ships as the standalone `workflow-recipes` Deployment || Host Reconciler | **Implemented** | `host-context-controller/src/hostReconciler.ts` |-| WorkflowRecipePolicy CRD | **Implemented** (Phase 7) | Blocking enforcement in reconciler step 2.5 |-| Namespace splitting (non-MCP → sandbox-recipes) | **Implemented** (Phase 8) | `resolveWorkloadNamespace()` + finalizer pattern + cross-namespace L3 |-| ValidatingAdmissionWebhook | **Deferred** (Phase 9) | Requires TLS certificates (cert-manager) |-| Per-context auth (TokenReview) | **Deferred** (Phase 9) | Requires ServiceAccount projected token infrastructure |+| WorkflowRecipePolicy CRD | **Implemented** | Blocking enforcement in reconciler step 2.5 |+| Namespace splitting (non-MCP → sandbox-recipes) | **Implemented** | `resolveWorkloadNamespace()` + finalizer pattern + cross-namespace L3 |+| ValidatingAdmissionWebhook | **Deferred** | Requires TLS certificates (cert-manager) |+| Per-context auth (TokenReview) | **Deferred** | Requires ServiceAccount projected token infrastructure || ~~ReadinessGate `clerum.io/network-isolated`~~ | **Replaced** by Option C (§11.4) | Pre-deploy annotation handshake closes vulnerability window without pod patching || Pre-deploy annotation handshake (Option C) | **Implemented** | `mcpDelegation.ts:preDeployMcpServers()` + `waitForNetworkReady()` — Steps 7b/7c in reconciler pipeline || Sanitization Gate | **Partially implemented** — see §5.1 | `managed: true` servers only (WRC's HTTP/SSE recipe servers are `managed: false` and skip it). `sanitizeCrdSpec()` (coerces/strips, never rejects; resource clamp is unit-naive) + `validateSecret()` and `classifyPluginImage()` (the only blocking checks; image allowlist is audit-only by default) in `host-context-controller/src/reconciler.ts` |diff --git a/docs/crds/workflowrecipe.md b/docs/crds/workflowrecipe.mdindex db9c3f276..fd1958fc0 100644--- a/docs/crds/workflowrecipe.md+++ b/docs/crds/workflowrecipe.md@@ -2588,7 +2588,7 @@ A `--skip-verification` flag is available for development/testing environments w### 8.5 Image Compatibility & Security Edge Cases-> **Context**: E2E testing of composite WorkflowRecipes (Phase 8+) revealed that many popular Docker images are incompatible with the current security model (`drop: ALL` + `runAsNonRoot: true`). This section documents known incompatibilities and proposed CRD extensions to resolve them.+> **Context**: E2E testing of composite WorkflowRecipes revealed that many popular Docker images are incompatible with the current security model (`drop: ALL` + `runAsNonRoot: true`). This section documents known incompatibilities and proposed CRD extensions to resolve them.#### 8.5.1 Known Incompatibilities@@ -4234,7 +4234,7 @@ All WorkflowRecipe CRDs are stored in the `sandbox-recipes` namespace, sharing R----## 24. Implementation Status (v1.0.0-wrc, 2026-03-11)+## 24. Implementation StatusThis section tracks what has been implemented, validated, and deployed from this specification.diff --git a/docs/deploy/minikube.md b/docs/deploy/minikube.mdindex 00cefa80d..20d0dd6d0 100644--- a/docs/deploy/minikube.md+++ b/docs/deploy/minikube.md@@ -392,20 +392,19 @@ kubectl get secret clerum-wrc-signing-key -n control-plane --context clerum-testIf the WRC starts without the Secret, the workflow subsystem is disabled (degraded mode:WorkflowRecipes of type `workflow` return errors, other workloads continue to function).-### Public Key ConfigMap — CRITICAL (fix 2026-03-23)+### Public Key ConfigMap — CRITICALThe coordinator pod reads the WRC public key from the ConfigMap `clerum-wrc-public-key`.This ConfigMap must exist in **TWO** namespaces:```bash-# Automatically created by make minikube-gen-keys (updated 2026-03-23)+# Automatically created by make minikube-gen-keyskubectl get configmap clerum-wrc-public-key -n control-plane --context clerum-testkubectl get configmap clerum-wrc-public-key -n sandbox-recipes --context clerum-test```-> **Bug fixed**: before 2026-03-23 `generate-keys.sh` only created the ConfigMap in-> `control-plane`. The coordinator pod (which runs in `sandbox-recipes`) could not read the-> public key and all workflow JWTs failed with `401 Invalid token`.+If the ConfigMap is missing from `sandbox-recipes`, the coordinator pod (which runs+there) cannot read the public key and all workflow JWTs fail with `401 Invalid token`.### Workflow Env Vars@@ -459,7 +458,7 @@ Tests should verify `kubectl get context wf-{recipeName}` instead of the shared----## WorkflowRecipe — Namespace, NetworkPolicies and Execution (bugs and fixes 2026-03-23)+## WorkflowRecipe — Namespace, NetworkPolicies and ExecutionThis section documents the bugs found during e2e testing of the agentic workflow executionpipeline and the fixes applied.@@ -708,7 +707,7 @@ bash scripts/minikube/ensure-pvcs.sh### rpc-proxy-secrets — Key Rename-The key in the Secret `rpc-proxy-secrets` was renamed (2026-03-23):+The key in the Secret `rpc-proxy-secrets` was renamed:| Before | After || ---------------- | -------------------------- |diff --git a/docs/deploy/workflow-recipes-guide.md b/docs/deploy/workflow-recipes-guide.mdindex 5ffb201bf..717127ea0 100644--- a/docs/deploy/workflow-recipes-guide.md+++ b/docs/deploy/workflow-recipes-guide.md@@ -414,7 +414,7 @@ kubectl get namespace sandbox-recipes----## Feature Status (2026-03-21)+## Feature Status| Component | Status || ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |@@ -431,15 +431,10 @@ kubectl get namespace sandbox-recipes----## Phase 5 Cluster Findings (merged from WORKFLOW-STAGE5)+## Two-Pod Workflow — Cluster Validation Findings-> Merged 2026-04-13 from `docs/deploy/WORKFLOW-STAGE5-CLUSTER-FINDINGS.md` during-> docs audit Sub-plan 4.->-> These are architectural adjustments discovered during validation of the-> **Two-Pod Workflow** model (coordinator + mcp_host) on a real minikube cluster.-> Original validation date: 2026-03-21, branch `feat/testing-and-desktop-recipes`,-> key commit `653e470`.+Architectural adjustments discovered during validation of the **Two-Pod+Workflow** model (coordinator + mcp_host) on a real minikube cluster.### Executive Summarydiff --git a/docs/meta/docs-roadmap.md b/docs/meta/docs-roadmap.mddeleted file mode 100644index e107dc8af..000000000--- a/docs/meta/docs-roadmap.md+++ /dev/null@@ -1,271 +0,0 @@-# Docs & README roadmap (adapted 2026-07-13)--> **Status of main:** `4a13afd` — includes Diátaxis tree (PR #1 lineage) and-> **minikube-first onboarding + capability tour** (PR #3 `docs/minikube-first`).->-> This document **supersedes** the worktree-only-> `docs/superpowers/readme-improvement-plan.md` (Wave 1 README rewrite plan).-> Claim rules still live in [claims-guardrails.md](claims-guardrails.md).-------## 1. What changed on main (relative to the old plan)--| Old plan assumption | Current main |-| ------------------------------------------------ | --------------------------------------------------------------------------------- |-| Compose quickstart as primary path | **Removed** `docker-compose.yml`, `.env.quickstart.example`, `quickstart-chat.sh` |-| ~230-line README, features list | **~434-line** README with **capability tour** + architecture depth |-| Optional full K8s later | **Minikube is the only first-class get-started** |-| Audience: AI/app developers, K8s as deploy story | Audience still “agents you own,” but **entry barrier is full cluster** |-| Competitive naming: none | Still category-only (`when-to-use-evenfire.md`) ✅ |-| Never-overclaim checklist | Committed + tightened (edge headers, digest pinning nuance) ✅ |--**Decision to lock in:** the product’s public demo is **the real platform**, not a-slim dev runtime. That is a deliberate trade: higher trust / higher time-to-first-success.-------## 2. Evaluation snapshot (main @ 4a13afd)--### Root README — grade **A-** (launch-ready front door)--| Criterion | Score | Notes |-| ---------------------- | ----- | ------------------------------------------------------------------------------------- |-| 30s value prop | A | “Build multi-channel LLM agents you own” + real actions |-| Differentiator clarity | A | Capability tour + approvals + NetworkPolicy story |-| Time-to-first-success | B | Real success (desktop + JWT API), but **≥10 GB / 6 CPU / 5–10 min** |-| Trust / honesty | A- | Security caveats improved; CLA still draft; LICENSE provisional (since resolved — §9) |-| Code-backed claims | A- | Tools tied to `nativeToolRegistry.ts`; seed default zai called out |-| Competitor silence | A | No product names |-| Length / skim | B | 434 lines — rich but long for GitHub fold; capability tour is the win |-| Visual proof | C | Still no screenshots / GIF of desktop approval |--**Strengths**--- “What agents can do” is best-in-class for this repo (shell, browser, docs,- MCP, memory, workflows, approval wire format).-- Get started uses **production JWT path** — rare honesty among agent OSS.-- Architecture section (ports, token flows, L0–L3 networking) matches platform depth.-- Security model aligns with [claims-guardrails.md](claims-guardrails.md).--**Gaps / risks**--1. **No lightweight path** — developers without Docker Desktop resources bounce.-2. **Test aggregates** — “10,000+ / ~880 files” is **verified** (10,260- `it()`/`test()` cases across 882 `*.test.ts` files, excl. node_modules /- tests/e2e / dist; recounted 2026-07-12 and 2026-07-13; the ~950 figure adds- `*.spec.ts` Playwright specs). Remaining ask: automate the count (see P2)- so it never drifts.-3. **CLA.md still DRAFT** while `signatures/cla.json` has a signature — the- document itself says counsel review must precede any signing. Legal- inconsistency; highest-priority human item.-4. **LICENSE use grant still PROVISIONAL** — resolved: the 2026-07-13 MPL- migration was **executed** the same day (see §9 status; LICENSE is now- canonical MPL-2.0, no additional restriction).-5. **Default host model `zai`** is correct to document; still a footgun if users- only set `OPENAI_API_KEY` (mitigated by README warning).-6. Capability table implies broad enablement; some tools need flags- (`CLERUM_DESKTOP_BROWSER`, `CLERUM_DESKTOP_X11`, memory flags) — mostly noted.--### Docs hub (`docs/`) — grade **A-**--Diátaxis skeleton is live and consistent with minikube-first:--- Get started / learning path / FAQ-- Concepts (why, when-to-use, code-names)-- How-tos (Telegram, approvals, MCP)-- CRD index (8 CRDs)-- Production notes, claims guardrails, `llms.txt`--**Minor drift:** learning path / when-to-use still good; no Compose path left to-document (correct). Feature hubs still contain design-depth docs (OK if index-warns — it does).--### Service READMEs — grade **B-** (uneven)--| Status | Components |-| ------------------- | -------------------------------------------------------------------------------------------------------------------------------- |-| Solid / long | mcp-host, channel-reader, control-api, host-context-controller, desktop-app, rpc-proxy |-| Thin / stale risk | control-ui (README lists ~4 tabs; app has ~15 route groups; says “no login” but AuthGate + admin JWT exist) |-| Missing entirely | gfs-controller, workspace-files-controller, webhook-gateway, webhook-proxy, nginx-egress-proxy, workflow-approval-request-reader |-| Undersells security | host-context-controller NetworkPolicy section still reads simpler than 4-layer model in root README |-------## 3. Goals (adapted)--### Primary (next 1–2 weeks)--1. **Keep minikube-first** as the public path — do not reintroduce Compose as- equal peer without product decision.-2. **Optional “dev slice” later** only if product wants sub-5-min try-without-K8s;- if added, label clearly as **incomplete security**.-3. Finish **trust surfaces**: CLA/TRADEMARK resolved by removal 2026-07-14- (see §9 status); **license migration to MPL-2.0 executed 2026-07-13**- (see §9 status);- `[email protected]` mailbox confirmed 2026-07-12, GH private reporting- to verify.-4. **Service README backlog** (§2 table, §6 P1 rows) — six missing edge/file- READMEs + control-ui / HCC accuracy pass.-5. **Visual assets** — 3–5 screenshots (desktop chat + approval, Control UI,- Telegram approve) in README or `docs/assets/`.-6. **Test number hygiene** — script or Makefile target that prints unit- file/case counts so the verified README numbers (10,260 cases / 882 files)- never drift silently.--### Secondary (post-launch polish)--7. Docs site (Mintlify/Docusaurus) from existing `docs/` tree + `llms.txt`.-8. README length: superseded in part on 2026-07-13 — the repo-layout table- was deliberately upgraded to a detailed **Components map** (per-component- distillation of every folder README) so first-time readers get real depth- on the front page. Any future length pass trims architecture/ports- duplication, never the capability tour, get-started, or the Components map.-9. Community channel + badge when ready.-10. Production deploy guide beyond checklist (real cloud walkthrough).-------## 4. Explicit non-goals (for now)--- Competitor comparison pages naming products (keep categories only).-- Retaining “source-available” / “not open source” language anywhere — the repo- is MPL-2.0 open source since 2026-07-13.-- Restoring Compose as the default first-run without a product owner decision.-- Publishing internal phase plans / `docs/superpowers` audits.-------## 5. README structure to preserve (current main)--Do **not** regress these sections without a new decision:--1. Tagline + badges + nav-2. What is evenfire (+ naming)-3. **What agents can do** (capability tour — crown jewel)-4. **Get started (minikube)** with provider warning + desktop + JWT API-5. Architecture (mermaid + ports + tokens + NetworkPolicy layers)-6. Security model (4 pillars, claims-aligned)-7. Beyond the agent-8. CRDs (8) + providers-9. Components map (per-component distillation of all folder READMEs, added- 2026-07-13) + testing + docs + community + license--If length becomes a problem, **trim 5** first — not 3, not 4, and not the-Components map in 9 (explicit decision, 2026-07-13).-------## 6. Prioritized backlog--| P | Item | Owner type | Depends on |-| --- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------------- |-| P0 | Legal: license migration to MPL-2.0 **executed 2026-07-13** (§9); CLA.md/TRADEMARK.md removed 2026-07-14 (§9) — no open legal item remains | Human / counsel | — |-| P0 | Verify GH private vulnerability reporting enabled (security@ mailbox confirmed) | Human | — |-| P1 | Six missing service READMEs (purpose, ports, env, security) — **done** (PR #7, merged 2026-07-13) | Docs eng | — |-| P1 | control-ui README: real route groups + auth story — **done** (PR #7) | Docs eng | — |-| P1 | HCC README: document 4-layer NetworkPolicy model — **done** (PR #7) | Docs eng | code already exists |-| P1 | Screenshots / short demo GIF | Design / product | running minikube |-| P1 | Cut post-Compose release — **done**: v0.2.0 (2026-07-13) supersedes v0.1.0 | Eng | — |-| P2 | Automate test counts — **done**: `make test-counts` (PR #7); README cites it | Eng | — |-| P2 | e2e-guide internal debt (CLAUDE.md-era test tables) — **done** 2026-07-13 | Docs eng | — |-| P2 | Four undocumented `mcp-servers/` dirs — **done** 2026-07-13: READMEs + Status column in “Available Servers” | Docs eng | — |-| P2 | Optional README length pass (move ports table to docs; the Components map is exempt — deliberate 2026-07-13 decision) | Docs eng | — |-| P2 | Docs website | Eng | — |-| P3 | Fix the zai-default footgun in code — **done**: full-setup.sh infers the provider from the single set API key | Eng | — |-| P3 | Resolve or strip TBD placeholders in `docs/crds/workflowrecipe.md` (registry spec “TBD”, unmigrated comparison doc — lines ~177, ~3075, ~4121) | Docs eng | — |-| P3 | platform-topology.md namespace count — **done**: now documents 12 namespaces | Docs eng | — |-| P3 | Lightweight non-K8s path (product decision required) | Product | decision |-| P3 | Cloud production tutorial | Eng | production env |--> In flight: PR #4 (`fix/minikube-docs-followups`) fixes the pf-mcp-host-> service name, the e2e-approval-flow default email, canonical bootstrap in the-> e2e-guide, two stale code comments — and commits this roadmap.->-> Also in flight: `docs/service-readmes` (this branch) — the three P1-> service-README rows above, plus `make test-counts` (P2 test-count-> automation), the e2e-guide CLAUDE.md-era unit-test tables (P2), and the-> platform-topology namespace count (P3).-------## 7. Definition of done for “docs launch”--- [x] Diátaxis index + learning path + FAQ-- [x] Minikube-first quickstart with felt success (desktop + JWT API)-- [x] Capability tour code-anchored in README-- [x] Claims guardrails committed-- [x] 8 CRDs documented at index level-- [x] Legal surfaces not marked draft — LICENSE ✅ MPL-2.0 (2026-07-13); CLA.md/TRADEMARK.md removed 2026-07-14 (no entity to hold either yet)-- [ ] All platform services have a minimal README-- [ ] At least one visual proof in README-- [ ] No known broken public links (currently OK on root README)-- [x] Test claims verified by reproducible count (10,260 cases / 882 files, 2026-07-13) — CI automation still open (P2)-- [x] Release matches main (v0.2.0 on e805f47, 2026-07-13)-------## 8. Process--- **Source of truth for public docs:** `main`-- **Claim edits:** run [claims-guardrails.md](claims-guardrails.md) checklist-- **Working notes:** `docs/superpowers/` remains local/gitignored-- **This roadmap:** update in place when major onboarding decisions change--### Superseded documents--| Document | Disposition |-| -------------------------------------------------- | ------------------------------------------------- |-| Worktree `readme-improvement-plan.md` (2026-07-11) | Historical; Wave 1 Compose-era decisions obsolete |-| Compose-first quickstart narrative | Removed on main via PR #3 |-------## 9. License migration — Apache-2.0 + use grant → MPL-2.0--> **Status: EXECUTED 2026-07-13** (same-day decision by Jose). LICENSE swapped-> to the canonical mozilla.org MPL-2.0 text (16,726 bytes, verified); all 33-> `package.json` license fields set to `MPL-2.0` (killing the 2× MIT-> mislabels); 30 lockfiles synced; every doc surface below flipped from-> “source-available” to open source. **Pure MPL-2.0 — no additional-> restriction.** Remaining from this motion (CLA counsel pass) was resolved-> 2026-07-14 by removing CLA.md and TRADEMARK.md outright — see below.--**Decision (Jose, 2026-07-13):** the provisional “Apache-2.0 + additional use-grant” was replaced with the **Mozilla Public License 2.0**, adopted **pure —-no additional restriction**.--**Why it mattered for docs:** MPL-2.0 is an **OSI-approved** license-(file-level copyleft). Adopted without a use-grant-style restriction on top,-every “source-available, **not** OSI open source” statement flips to genuinely-open source — a materially better trust story. That is the path taken, so the-source-available language is gone rather than retained.--**Surfaces changed when it landed** (single PR, claims-guardrails gate run):--- `LICENSE` — full text swap to canonical mozilla.org MPL-2.0; provisional- addendum removed-- Root `README.md` — License section + license badge-- `docs/faq.md` — “Is it open source?” answer-- `docs/meta/claims-guardrails.md` — “OSI open source” row and license lines-- `CONTRIBUTING.md`, `GOVERNANCE.md`, `docs/deploy/production.md`- (license-boundary section), `docs/README.md` community table,- `docs/get-started/learning-path.md` (Path E)-- Per-service `package.json` `license` fields — all **33** set to `MPL-2.0`,- reconciling the pre-migration mix (10× `"SEE LICENSE IN LICENSE"`, 2× `"MIT"`- in gfs-controller and packages/image-policy — wrong under the Apache grant- too, 7× field absent). Lockfile `license` fields synced-- `TRADEMARK.md` — unchanged at the time (trademarks are independent of MPL);- removed entirely 2026-07-14, see below--**Resolved 2026-07-14 (Jose):** `CLA.md` and `TRADEMARK.md` removed outright-rather than taken through counsel review — evenfire has no incorporated legal-entity yet, so a contributor agreement and a trademark claim both need a real-entity behind them first. Removed alongside: `.github/workflows/cla.yml` (the-paused CLA-assistant gate) and `signatures/cla.json`. All references to either-doc across README.md, CONTRIBUTING.md, GOVERNANCE.md, docs/deploy/production.md,-docs/concepts/code-names.md, docs/README.md, the PR template, and CODEOWNERS-were removed in the same PR. No legal item remains open from this motion.--**Done:** the former §4 non-goal (“no OSI claims”) is inverted — §4 now-forbids retaining any “source-available” / “not open source” language.diff --git a/docs/testing/e2e-guide.md b/docs/testing/e2e-guide.mdindex 285128591..26d6a3c07 100644--- a/docs/testing/e2e-guide.md+++ b/docs/testing/e2e-guide.md@@ -1,7 +1,5 @@# Clerum E2E Testing Guide-> Consolidated 2026-04-13 from internal testing notes, scripts/e2e/, and scattered service test docs.-## OverviewClerum has two categories of tests:diff --git a/mcp-host/src/core/conversation/__tests__/compactionTranscriptInvariant.test.ts b/mcp-host/src/core/conversation/__tests__/compactionTranscriptInvariant.test.tsindex 0047f1ee7..9c8bc74e3 100644--- a/mcp-host/src/core/conversation/__tests__/compactionTranscriptInvariant.test.ts+++ b/mcp-host/src/core/conversation/__tests__/compactionTranscriptInvariant.test.ts@@ -6,8 +6,8 @@ import { ConversationManager } from '../conversation'/*** FU2 — characterization test for the compaction ↔ durable-transcript invariant.*- * Closes the spec §8 open question ("Compaction mid-task: ... los turns previos- * cambian → trigger re-fetch de /messages"). That premise is false:+ * Closes the spec §8 open question ("Compaction mid-task: ... previous turns+ * change → trigger re-fetch of /messages"). That premise is false:** - `compactConversation` operates on the ephemeral `ChatMessage[]` context* window the agent loop builds fresh each run via@@ -21,7 +21,7 @@ import { ConversationManager } from '../conversation'* invariant so a future refactor that mutates `turns` from the compaction path* fails loudly here.*/-describe('compaction ↔ durable transcript invariant (FU2, spec §8 "no aplica")', () => {+describe('compaction ↔ durable transcript invariant (FU2, spec §8 "does not apply")', () => {// Build a conversation with `count` completed turns through the real manager.const buildConversationWithTurns = async (count: number) => {const manager = new ConversationManager()diff --git a/mcp-host/src/core/extensions/prePrune.ts b/mcp-host/src/core/extensions/prePrune.tsindex 6ab410a56..6c3ce9c2f 100644--- a/mcp-host/src/core/extensions/prePrune.ts+++ b/mcp-host/src/core/extensions/prePrune.ts@@ -12,23 +12,21 @@* 4. Strip historical media (image content parts) from anything before* the latest user message.*- * Filosofía: CPU local es gratis comparado con tokens del LLM. Cada pasada- * es individualmente toggleable y un no-op si la condición no aplica. Si el- * flag master está apagado, la función NO se invoca; los tiers existentes- * corren bit-idénticos al pre-T1.2.+ * Philosophy: local CPU is cheap compared to LLM tokens. Each pass is+ * individually toggleable and a no-op if its condition doesn't apply. If the+ * master flag is off, the function is NOT invoked; the existing tiers run+ * bit-identical to pre-T1.2.*- * Spec: `.specs/mcp-hermes/implementation-plans/T1.2-pre-pruning.md`.- *- * Invariantes críticas:- * - **Linkages preserved**: pre-prune nunca inserta ni borra mensajes,- * nunca toca `tool_call_id` ni `assistant.tool_calls[].id`. Sólo- * muta `content` (string) y `arguments` (objeto). El caller corre- * `validateToolLinkages` post-step como red de seguridad hard-fail.- * - **Protected tail**: los últimos K turns (K = `protectedTailTurns`)- * viven completos. Pre-prune sólo opera en `[0, protectedTailStart)`.- * - **Pure**: la función retorna una copia con los mensajes mutados- * reemplazados por copias nuevas; las entradas intactas mantienen- * identidad referencial. Caller decide cuándo asignar.+ * Critical invariants:+ * - **Linkages preserved**: pre-prune never inserts or deletes messages,+ * never touches `tool_call_id` or `assistant.tool_calls[].id`. It only+ * mutates `content` (string) and `arguments` (object). The caller runs+ * `validateToolLinkages` as a post-step hard-fail safety net.+ * - **Protected tail**: the last K turns (K = `protectedTailTurns`) stay+ * complete. Pre-prune only operates on `[0, protectedTailStart)`.+ * - **Pure**: the function returns a copy with mutated messages replaced+ * by new copies; untouched entries keep referential identity. Caller+ * decides when to assign.*/import { createHash } from 'node:crypto'import { Counter } from 'prom-client'