prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub

FailingState

This prompt asks for FailingState, a local CLI that gives every test failure a durable identity and history. Instead of treating failures as anonymous red output, it turns them into trackable records with a first-seen date, recurrence count, introducing commit, and lineage across refactors.

p
@mirm14354
about 6 hours agoNovember 29, 2026 at 12:04 PM
Vibe Coding•CLIAI AgentGit

Content

GOAL
Build "FailingState" — a local CLI that gives every test failure a persistent
identity and history. Failures stop being anonymous red dots in a wall of
output; they become objects with a first-seen date, a recurrence count, and
the exact commit that introduced them.

TARGET USERS
- Developers drowning in a red CI who need to know: what's new, what's the
  same old bug, what's a zombie test nobody looks at anymore.
- Coding agents (Claude Code, Codex) that need failure history to fix faster:
  "this exact assertion failed 11 times since June, always after dependency
  bumps" is a much better starting point than a bare traceback.

CORE FEATURES (numbered)
1. Failure fingerprinting: for each failed assertion, hash
   (test file path + test name + normalized assertion source + exception type
   + normalized message with numbers/UUIDs/paths stripped). The fingerprint
   survives unrelated code motion and cosmetic message changes; it breaks
   when the assertion's meaning changes — which is exactly the point.
2. Local failure ledger: an append-only SQLite store mapping fingerprint →
   first seen, last seen, occurrence count, the exact commit SHA each
   occurrence broke under, and links between runs. `fstate list` shows
   the ledger: new / recurring / zombie (not failing for 90+ days).
3. Failure genealogy: when a fingerprint mutates (test edited), record the
   successor fingerprint and keep the lineage — so a test's full history
   survives refactors. `fstate history <test>` prints the family tree.
4. Agent-facing output: `fstate report --json` emits a compact per-failure
   brief (fingerprint, age, recurrences, suspicious commits, last diff that
   touched the failing file). Designed as context for a coding agent:
   small, deduplicated, ordered by "newest + most recurring" first.
5. CI mode: `fstate diff --against last-green` classifies today's failures
   into NEW / RECURRING / FIXED since the last green run, and exits non-zero
   only on NEW — recurring pain is tracked but does not re-alarm the team
   (the alarm fatigue killer).
6. Blame enrichment: for each occurrence, `git log -1` the failing file at
   that SHA and attach the commit title + author to the record.
7. Works offline, zero telemetry, single SQLite file, trivially inspectable.

TECH STACK
- Python 3.11+, stdlib-first (sqlite3, hashlib, json). One dependency
  allowed: pytest plugin API for the Python side; vitest/jest reporters in
  TypeScript for the JS side (separate package, same ledger schema).
- The ledger schema is the project's real product: versioned, documented,
  and the integration point for everyone else.

PROJECT STRUCTURE
failingstate/ (cli.py, ledger.py, fingerprint.py, report.py)
failingstate-pytest/ (plugin/)
failingstate-vitest/ (reporter/)
docs/ledger-schema.md, examples/, tests/ (fingerprint stability tests:
cosmetic changes keep the hash, semantic changes break it), LICENSE (MIT)

README REQUIREMENTS
- Badges: CI, license, python versions.
- Demo: two runs of a flaky suite; the second run shows which failures are
  new vs the same old three; `fstate history` on a zombie test.
- Quick start: pipx install failingstate, one config file, run tests as usual.
- "How fingerprinting works" section with worked examples (the part people
  will argue about — be precise and show the normalization rules).

TESTING
- Golden fingerprint tests: generated failure pairs (same pain, different
  cosmetics) and (different pain, similar text).
- Ledger migration tests between schema versions.
- CI-mode integration test against a scratch repo with a scripted flaky test.

LICENSE: MIT.

FIRST-RELEASE CHECKBOX
- Ship the pytest plugin first (largest audience), vitest reporter as v0.2.
- Launch story: "Your CI has been red for 3 weeks — here's which failures
  are actually new" with a real (redacted) ledger screenshot.
- Publish the ledger schema as the standard others can adopt.
- CONTRIBUTING: fingerprint normalization rules are community-governed —
  this shared-rule asset is the moat the clone army can't copy overnight.

Comments (0)

Related Skills

SemVer Bump Advisor

Skill

Reads Conventional Commits or a changelog snippet, classifies fix/feat/breaking changes, and recommends the next SemVer bump (patch, minor, or major) with a clear rationale and a preview of the resulting version. Use when a user asks "what version should I ship?", "is this a breaking change?", or "bump SemVer from these commits". Includes a tested stdlib Python advisor.

F@f
0

ExpertLens-Lite

Skill

ExpertLens-Lite turns any AI into a genuine expert thinking partner. It diagnoses the real problem, adapts reasoning to the domain, self-audits before answering, gives real recommendations instead of hedged lists, and can consult other AI models for tougher calls. Platform-agnostic — any LLM.

A@ashutosh02mpro
1

Conventional Commits Changelog Builder

Skill

Turns a git log in Conventional Commits format into a ready-to-paste Keep a Changelog release section - Added, Changed, Deprecated, Removed, Fixed, Security - with scopes, issue and commit links and a breaking-changes block. Flags breaking changes without migration notes, non-conforming and fixup commits, reverts and duplicates, and suggests the next SemVer version. Includes an offline stdlib Python builder with --self-test.

F@f
0

Dotenv Config and Secrets Linter

Skill

Lints .env and .env.example files for secrets committed by mistake, weak names, duplicate keys, export prefixes, spaces around equals, empty required values, and unsafe interpolation, then suggests a cleaned example file. Use when a user asks "is this .env safe to commit?", "why won't dotenv load?", or "diff my .env.example". Includes a tested stdlib Python linter.

F@f
0

Related Bots

Red Test Writer

Bot

Writes failing tests from the frozen spec so implementers have a clear red target.

F@f0

Stale Branch Sweeper

Bot

Finds old and abandoned Git branches in your repositories, checks whether their work was merged or still matters, and asks owners before suggesting a safe cleanup list.

1 scheduled routine1 event trigger
F@f

Green Implementer

Bot

Writes the minimum production code to turn red tests green without rewriting the tests.

F@f0

Commit History Storyteller

Bot

Turns a range of commits into a readable story for release notes or a demo.

F@f0
0