From 84be29dcc85e5f222331d76318a8e4a92cde26da Mon Sep 17 00:00:00 2001 From: you Date: Tue, 24 Mar 2026 00:47:29 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20all=20tests=20must=20pass,=20all=20feat?= =?UTF-8?q?ures=20must=20add=20tests=20=E2=80=94=20no=20exceptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a9f00bf0..df0af409 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -137,10 +137,17 @@ node test-packet-filter.js # 62 tests — filter engine node test-aging.js # 29 tests — node aging system node test-regional-filter.js # 22 tests — regional observer filtering node test-regional-integration.js # integration — hits live API (non-deterministic) -node tools/e2e-test.js # E2E — spins up temp server, injects packets (BROKEN — needs fix) -node tools/frontend-test.js # frontend smoke — spins up temp server (BROKEN — needs fix) +node tools/e2e-test.js # 44 tests — E2E: spins up temp server, injects packets, validates all APIs +node tools/frontend-test.js # 66 tests — frontend smoke: HTML, JS refs, API shapes ``` -Run the first three before every push (deterministic, no server needed). Add tests for new logic. + +**ALL existing tests must pass before pushing.** Run at minimum: +```bash +node test-packet-filter.js && node test-aging.js && node test-regional-filter.js && node tools/e2e-test.js && node tools/frontend-test.js +``` +If any test fails, fix it before pushing. No exceptions. No "known failures." + +**Every new feature must add tests.** If you add logic, add tests. If you fix a bug, add a regression test. Test count should only go up, never down. Tests that hit live data can use `https://analyzer.00id.net` — all API endpoints are public, no auth required.