Skip to content

LintTestLoop

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/autonomous/lint-test-loop.ts

Tracks edit-then-verify cycles and generates appropriate nudges.

Methods

MethodSignatureReturns
recordEditrecordEdit(filePath: string)void
recordVerificationrecordVerification(passed: boolean, turnNumber: number)void
getNudgegetNudge()`string
getStategetState()Readonly<LintTestState>
resetreset()void
isEditToolisEditTool(toolName: string)boolean
isVerificationCommandisVerificationCommand(command: string)boolean

Where it refuses work

  • LintTestLoop stops the work with an early return when !this.config.lintCommand && !this.config.testCommand && !this.config.typeCheckCommand.
  • LintTestLoop stops the work with an early return when this.state.maxRetriesExceeded.
  • LintTestLoop stops the work with an early return when this.state.editsSinceLastVerification < this.config.minEditsBeforeNudge.
  • LintTestLoop stops the work with an early return when this.state.verified.
  • LintTestLoop stops the work with an early return when this.state.consecutiveFailures > 0.

Was this page helpful?

Download as PDF