Skip to content

About

Measures code verify-loop friction and side-effect density for autonomous AI agents

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

158 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

@aiready/testability

AIReady Spoke: Measures the "Verify" score of the codebase—how easily an AI agent can write tests and verify its own changes autonomously.

npm version License: MIT

Overview

The "Verify" loop is the most expensive part of the AI agent workflow. Codebases with high global state, missing dependency injection, or poor test coverage force agents into long, expensive retry loops. The Testability Index quantifies these frictions.

Language Support

  • Full Support: TypeScript, JavaScript, Python, Java, Go, C#
  • Capabilities: Purity analysis, global state detection, DI pattern recognition.

🏛️ Architecture

                    🎯 USER
                      │
                      ▼
         🎛️  @aiready/cli (orchestrator)
          │     │     │     │     │     │     │     │     │     │
          ▼     ▼     ▼     ▼     ▼     ▼     ▼     ▼     ▼     ▼
        [PAT] [CTX] [CON] [AMP] [DEP] [DOC] [SIG] [AGT] [TST] [CTR]
          │     │     │     │     │     │     │     │     │     │
          └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
                               │
                               ▼
                      🏢 @aiready/core

Legend:
  PAT = pattern-detect        CTX = context-analyzer
  CON = consistency           AMP = change-amplification
  DEP = deps-health           DOC = doc-drift
  SIG = ai-signal-clarity     AGT = agent-grounding
  TST = testability ★         CTR = contract-enforcement
  ★   = YOU ARE HERE

Features

  • Purity analysis: Detects usage of global state and side effects that make unit testing difficult for agents.
  • Dependency Map: Evaluates the usage of DI (Dependency Injection) patterns that allow agents to mock boundaries easily.
  • Verification Ratio: Measures the presence and quality of existing tests relative to source files.
  • Retry Risk: Specifically flags patterns that cause AI agents to enter infinite "fix-test-fail" loops.

Installation

pnpm add @aiready/testability

Usage

This tool is designed to be run through the unified AIReady CLI.

# Scan for testability and verification risk
aiready scan . --tools testability

License

MIT

About

Measures code verify-loop friction and side-effect density for autonomous AI agents

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages