Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

docs(node-services): place MIME policy with normalization guidance

Afloatd2e67a90491c
diff --git a/apps/node-services/AGENTS.md b/apps/node-services/AGENTS.md
index 975e20fb..66751866 100644
--- a/apps/node-services/AGENTS.md
+++ b/apps/node-services/AGENTS.md
@@ -71,11 +71,13 @@
plain text. Shared guards and hashing (`isRecord`, `isNodeError`, `sleep`,
`sha256Hex`) come from `@linger/service-kit`; do not redefine them.
-## Structure
+## Document normalization
+
+MIME document normalization prefers extractable HTML, then the recorded
+plain-text alternative when HTML has no extractable body. Headers alone do
+not make an empty message indexable.
-- MIME document normalization prefers extractable HTML, then the recorded
- plain-text alternative when HTML has no extractable body. Headers alone do
- not make an empty message indexable.
+## Structure
- `tests/<role>/` mirrors `src/<role>/`; host-level tests such as
`tests/main.test.ts` and `tests/http-host.test.ts` stay flat under `tests/`.