testing-without-tautologies
Skill6.1k starsChanged 2 months agoMITView on GitHub
Use when creating, editing, fixing, or reviewing tests; when adding mocks, fakes, assertions, unit tests, PG integration tests, frontend component tests, or Playwright e2e tests; or when changing tests after failures.
Trending
Quiet since October.about the whole repository
Who's talking about kenn-io/agentsview
- @niccrane.bsky.social“6. agentsview for auditing agent session quality, which is a whole new idea to me …”Bluesky · Sep 15, 2026 · 5 likes
- A Hacker News story“Agentsview – Browse, search, and track costs across all your AI coding agents”Hacker News · Aug 6, 2026 · 1 points
- @hackobar.bsky.social“9. Grok Build Plugin Marketplace Beta Adds MongoDB, Vercel, Sentry Integrations LINK 10. AgentsView Offers …”Bluesky · Jun 12, 2026 · 1 likes
- @github-trending.bsky.social“📦 kenn-io / agentsview ⭐ 1,438 (+98) 🗒 Go Local-first session intelligence and analytics for coding …”Bluesky · Jun 11, 2026 · 1 likes
- @riziles.bsky.social“You may want to try this: github.com/kenn-io/agen... I'm not sure if it solves your problem, but it's very …”Bluesky · Jun 10, 2026 · 1 likes
The biggest 5 of 25 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 25
Talked about on GitHub, Bluesky and Hacker News (25 times).
On GitHub · 18
- Oct 6, 2026Organic-invocation E2E v1.1: protocol, pilot spec and the promptfoo-driven harness (run of record smoke-20261006c) — seathatflowsinourveins/native-agent-stack0 reactions
- Sep 27, 2026Token topic: 2026-09-27 per-tool card edition with stack-pinned join, drift notes and a weekly native E2E — seathatflowsinourveins/native-agent-stack0 reactions · 5 comments
- Sep 27, 2026AgentsView live mode: the workstation unit syncs continuously as the live view of all jobs — seathatflowsinourveins/native-agent-stack0 reactions · 1 comment
- Sep 27, 2026Token report: retain selected upstream usage, status and cache reports beside each tool's row — seathatflowsinourveins/native-agent-stack0 reactions · 2 comments
- Sep 13, 2026Standalone package via pypi / npm — kenn-io/roborev0 reactions
13 more on GitHub
- Sep 11, 2026feat: build hosted embeddings and activate complete search generations — salmonumbrella/agentsview0 reactions
- Sep 3, 2026Enhance session analytics dashboard (informed by agentsview patterns) — ptone/scion0 reactions
- Aug 20, 2026agentsview@0.41.1: hash check failed — ScoopInstaller/Main0 reactions · 1 comment
- Jun 30, 2026feat(usage): group usage by branch — prateek/agentsview0 reactions · 1 comment
- Jun 30, 2026feat(activity): add branch rollups — prateek/agentsview0 reactions · 1 comment
- Jun 30, 2026feat(filter): expose branch filters in clients — prateek/agentsview0 reactions · 1 comment
- Jun 23, 2026feat: integrate agentsview as analytics/session-observability source — simpletibr/simplicio-loop0 reactions
- Jun 20, 2026[Request]: agentsview — ScoopInstaller/Main0 reactions
- Jun 13, 2026research: analyze comparable session review products — huggon1/dev-journal0 reactions · 2 comments
- Jun 12, 2026agentsview ビジュアル解説ページを追加 — 53able/docs-site0 reactions
- Jun 11, 2026Daily tribute 2026-06-11: agentsview by @wesmckinn — Talonsturgill/signalsniper0 reactions
- Jun 3, 2026Add normalizeToolCategory to @agent-trail/core (shared tool taxonomy) — agent-trail/agent-trail0 reactions
- Jun 3, 2026Spec v0.2: optional header-level parse-fidelity summary — agent-trail/agent-trail0 reactions
On Bluesky · 6
- Sep 15, 20266. agentsview for auditing agent session quality, which is a whole new idea to me github.com/kenn-io/agentsview — @niccrane.bsky.social5 likes and reposts · 1 reply
- Jun 12, 20269. Grok Build Plugin Marketplace Beta Adds MongoDB, Vercel, Sentry Integrations LINK 10. AgentsView Offers Local-First Analytics for 20+… — @hackobar.bsky.social1 likes and repost
- Jun 11, 2026📦 kenn-io / agentsview ⭐ 1,438 (+98) 🗒 Go Local-first session intelligence and analytics for coding agents, supporting Claude Code,… — @github-trending.bsky.social1 likes and repost
- Jun 10, 2026You may want to try this: github.com/kenn-io/agen... I'm not sure if it solves your problem, but it's very useful. — @riziles.bsky.social1 likes and repost
- Jun 30, 2026ただ『コストまで全部丸見え』は少し強めですぅ。READMEは token-bearing sessions が対象、`session usage` は pricing がないモデルだと `has_cost=false` と書いてますぅ。しかも対応範囲は『parser… — @lutie-echosphere.bsky.social0 likes and reposts · 1 reply
1 more on Bluesky
- Jun 30, 2026公式READMEと公式サイトを見ると、ローカル中心・全文検索・20超のセッション読込はかなり本物でしたぁ。ここは素直に強いですぅ。 https://github.com/kenn-io/agentsview https://www.agentsview.io/ — @lutie-echosphere.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- frontend/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- localization-paraglideSkill
- sync-harness-iconsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. About 0 are common, 24 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈24
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Before writing or changing a test, ask: "What production change should make this test fail?" If you cannot answer, redesign the test.
- Distinctive: line 18
Before writing the test body, answer these:
- Distinctive: line 20
Who uses this?: Prefer public APIs, HTTP responses, SSE events, persisted rows, parsed session output, rendered UI, or CLI output.
- Distinctive: line 23
What example proves it?: Use concrete inputs and literal expected outputs.
- Distinctive: line 28
Do we own it?: Test our choices at framework, database, and filesystem boundaries.
- Distinctive: line 39
Check returned values, rows in the DB, HTTP status and body, emitted SSE events, parsed message content, rendered DOM, or errors.
- Very specific: line 44
Use require.X for checks that must abort the test (setup errors, nil receivers, length before indexing) and assert.X for independent checks.
- Very specific: line 46
Never if got != want { t.Fatalf(...) } in new tests.
- Distinctive: line 50
Verify arguments, call counts, order, and branches when they are part of the contract.
- Distinctive: line 52
Do not let a fake accept any input when the code must pass one value.
- Distinctive: line 56
Do not reuse one fake handler for success, error, incomplete, or malformed paths.
- Very specific: line 64
Prefer real in-process collaborators: testDB(t) for SQLite, httptest for handlers, t.TempDir() fixture files for parsers and sync.
- Distinctive: line 66
Do not replace the parser, handler, query, sync step, or component under test.
- Distinctive: line 68
Do not fabricate impossible state to provoke an error (for example, dropping a column so a query fails).
- Distinctive: line 74
Do not flip expected values just to make a failing test pass.
- Very specific: line 80
Do not compute expected values with the same logic under test.
- Distinctive: line 83
Use literals, hand-checked fixtures, small examples, or invariant/property assertions.
- Very specific: line 85
Keep test logic simple enough to review by inspection.
- Very specific: line 90
Do not prove that net/http routing, mattn/go-sqlite3, FTS5 tokenizer mechanics, fsnotify, pgx, Svelte reactivity, or Vite work as …
- Distinctive: line 93
Test your boundary contract instead: route registration, the SQL your code emits, value handoff from HTTP params to DB queries, migration …
- Distinctive: line 103
Do not test that the implementation is written the way it is written now.
- Distinctive: line 107
Test them only when they validate, normalize, default, derive, copy, enforce permissions, handle errors, cause side effects, or protect …
- Distinctive: line 110
Prefer the first consumer-visible result that depends on the fields: a discovered session, an API response, a rendered row.
- Distinctive: line 117
Never read a script's source and assert that it contains a specific line, flag, or snippet.
- Distinctive: line 122
When removing or refactoring code, never add a test asserting that a function, method, file, import, or symbol does not exist — grepping …
- Distinctive: line 129
If the concern is that the old path could silently come back into use, test the new path's observable contract instead — the behavior that …
- Very specific: line 137
When a behavior is required to match across SQLite and PostgreSQL, protect it on both sides: the SQLite test in internal/db and the PG test …
- Distinctive: line 145
Use the narrowest test that can catch the break:
- Distinctive: line 156
Keep e2e tests non-tautological: assert the workflow result, stored state, rendered UI, or API contract — not just that the server started …
- Distinctive: line 162
Before finishing, mentally mutate the production code.
- Distinctive: line 174
If none fail, the test is probably tautological.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Testing Without Tautologies
Core Idea
Tests should fail when protected behavior breaks. A passing test helps only if it can catch a real problem.
Before writing or changing a test, ask: "What production change should make this test fail?" If you cannot answer, redesign the test.
Quality Gate
Before writing the test body, answer these:
- Who uses this? Prefer public APIs, HTTP responses, SSE events, persisted rows, parsed session output, rendered UI, or CLI output. Avoid private state.
- What example proves it? Use concrete inputs and literal expected outputs. For parsers, hand-write the fixture JSONL and the expected sessions/messages; do not run the parser to generate expectations.
- What break would this catch? Name the wrong branch, missing side effect, wrong argument, boundary case, or contract violation.
- Do we own it? Test our choices at framework, database, and filesystem boundaries. Do not re-test documented dependency mechanics.
- Can you state it? Given this setup, when the user/system does X, then Y observable behavior changes. If Y is not assertable, the test is not ready.
Required Checks
Apply these checks to every new or modified test:
Assert observable effects
- Check returned values, rows in the DB, HTTP status and body, emitted SSE events, parsed message content, rendered DOM, or errors.
- A no-assertion test is acceptable only when the failure mode is the subject, such as "this config rejects invalid input." Prefer explicit assertions anyway.
- Use
require.Xfor checks that must abort the test (setup errors, nil receivers, length before indexing) andassert.Xfor independent checks. Neverif got != want { t.Fatalf(...) }in new tests.
Make fakes and mocks specific
- Verify arguments, call counts, order, and branches when they are part of the contract.
- Do not let a fake accept any input when the code must pass one value.
Separate branch doubles
- Do not reuse one fake handler for success, error, incomplete, or malformed paths.
- Give each branch its own fixture or spy so the wrong branch cannot satisfy the expectation.
Do not mock the subject
- Mock dependencies, boundaries, and slow or nondeterministic collaborators.
Prefer real in-process collaborators:
testDB(t)for SQLite,httptestfor handlers,t.TempDir()fixture files for parsers and sync. - Do not replace the parser, handler, query, sync step, or component under test.
- Do not fabricate impossible state to provoke an error (for example, dropping a column so a query fails). Return a typed error from a seam and unit-test the error-to-message mapping directly.
- Mock dependencies, boundaries, and slow or nondeterministic collaborators.
Prefer real in-process collaborators:
Investigate failures before changing expectations
- Do not flip expected values just to make a failing test pass.
- First decide whether the production change is intended. Then update the test to describe the new contract.
Avoid mirror assertions
- Do not compute expected values with the same logic under test. Do not build
the expected FTS query with the query builder, or the expected timestamp
with the same
timeutilcall the code makes. - Use literals, hand-checked fixtures, small examples, or invariant/property assertions.
- Keep test logic simple enough to review by inspection. Table-driven tests
with literal
wantfields are the preferred shape.
- Do not compute expected values with the same logic under test. Do not build
the expected FTS query with the query builder, or the expected timestamp
with the same
Do not test upstream functionality
- Do not prove that
net/httprouting,mattn/go-sqlite3, FTS5 tokenizer mechanics,fsnotify,pgx, Svelte reactivity, or Vite work as documented. - Test your boundary contract instead: route registration, the SQL your code emits, value handoff from HTTP params to DB queries, migration effects, SSE payload shape, and error responses.
- For surprising upstream behavior (an FTS5 quoting rule, a WAL edge case, a watcher event ordering), write a narrow characterization test around your integration point and name the upstream assumption in the test name or a comment.
- Do not prove that
Avoid blindingly obvious current-code assertions
- Do not test that the implementation is written the way it is written now.
- Skip tests for plain constructor assignment, getters, trivial forwarding,
constants, and data-only structs (for example, that an
AgentDefentry has the fields it was declared with). - Test them only when they validate, normalize, default, derive, copy, enforce permissions, handle errors, cause side effects, or protect compatibility.
- Prefer the first consumer-visible result that depends on the fields: a discovered session, an API response, a rendered row.
Exercise shell scripts, do not read them
- Shell script tests must run the script against controlled inputs and assert outputs, side effects, or exit codes.
- Never read a script's source and assert that it contains a specific line, flag, or snippet.
Never write negative-existence tests
- When removing or refactoring code, never add a test asserting that a function, method, file, import, or symbol does not exist — grepping the source tree, reflecting over types, or asserting a compile failure.
- Deletion is proven by the deletion itself: the code is gone, the build compiles, and the behavior tests for the replacement pass. A "still-deleted" test protects nothing, breaks legitimate future reuse of the name, and outlives the migration it policed.
- If the concern is that the old path could silently come back into use, test the new path's observable contract instead — the behavior that would break if someone rewired it.
- Removing such guard tests is part of finishing a cleanup, not a test coverage regression.
Backend Parity
When a behavior is required to match across SQLite and PostgreSQL, protect it on
both sides: the SQLite test in internal/db and the PG test in
internal/postgres (behind the pgtest tag) should assert the same observable
contract — same filtering, ordering, aggregation, and edge cases. A parity bug
that only one backend's test can catch is a parity bug the suite will miss.
Test Level
Use the narrowest test that can catch the break:
- Parser, sync, db, config, and server logic: Go unit tests with
testDB(t),httptest, andt.TempDir()fixtures. Run withmake test(needsCGO_ENABLED=1and-tags "fts5"). - PostgreSQL behavior: integration tests with the
pgtesttag viamake test-postgres. - Frontend logic and components: colocated
*.test.tsfiles. - User-visible workflows across the HTTP/SQLite/SPA stack: Playwright specs in
frontend/e2e/, seeded viacmd/testfixture.
Keep e2e tests non-tautological: assert the workflow result, stored state, rendered UI, or API contract — not just that the server started or the page did not crash.
Mutation Check
Before finishing, mentally mutate the production code. At least one relevant test should fail for each realistic mutation.
- Wrong constant or argument.
- Wrong branch handler.
- Missing state change (row not written, session not resynced).
- Empty/default return.
- Missing side effect (no SSE event, no FTS row).
- Broken fake at a boundary your code should notice.
- Renamed or rearranged private fields with behavior preserved.
- Missing validation for zero, empty, nil, unauthorized, or malformed input.
If none fail, the test is probably tautological.
Red Flags
- Reuses the same setup/assertion object, guaranteeing equality.
- Can fail only through panic, error, missing selector, or server crash.
- Still matters if only the framework/library remains.
- Translates a constructor, getter, setter, mapper, or wrapper line by line.
- Exists for coverage without checking side effects, boundaries, or outcomes.
- Hides expected values behind loops, formatters, builders, or helpers.
- Greps source files (Go or shell) for implementation strings instead of observing behavior.
- Asserts that a removed function, file, or symbol stays removed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

