/** * Git-backed remediation identity. * * FeltDB does not trust an agent's claim that it changed the code. It captures * observable repository state before handing an investigation to the agent and * again afterwards, and treats the difference as evidence that remediation * occurred. * * A commit is not required. An agent that edits the working tree without * committing has still changed the repository, so the working-tree digest is a * first-class change identity. * * Detecting a repository change proves that remediation happened. It does not * prove the defect is fixed — only a runtime observation can do that. */ import type { RemediationTracking, RepositoryIdentity } from './workspace-types.js'; /** * Capture the observable identity of a repository working tree. * * The digest covers `git status --porcelain` plus the content of every * modified or untracked file, so an uncommitted edit changes the identity. */ export declare function captureRepositoryIdentity(dir: string): RepositoryIdentity; /** Paths reported as changed by `git status --porcelain`. */ export declare function changedPaths(dir: string): string[]; /** Whether two repository identities describe different repository states. */ export declare function repositoryChanged(before: RepositoryIdentity, after: RepositoryIdentity): boolean; /** * Compare the repository before and after an agent worked, and describe the * change in a form that answers both directions of the question: * "what changed because of this investigation?" and * "which investigation caused this change?" */ export declare function trackRemediation(investigationId: string, before: RepositoryIdentity, dir: string): RemediationTracking; //# sourceMappingURL=git-identity.d.ts.map