Optionalauthor?: { email: string; name: string }Git commit author identity. Set per-repo during init.
Author email for git commits.
Author name for git commits.
Git branch name for VCS operations. Squash and the startup branch check use this instead of dynamic detection.
Circuit breaker cooldown in ms. Once tripped, pending files are retained (re-queued, never discarded) and a single half-open recovery attempt is allowed once this cooldown elapses — without requiring a new file-change event.
OptionalcommitMessage?: { apiKey?: string; enabled: boolean; model: string; provider: string }Commit message generation configuration.
OptionalapiKey?: stringAPI key for commit message provider. Supports env var substitution.
Whether AI-generated commit messages are enabled.
AI model for commit message generation.
AI provider for commit message generation.
Throttle interval in milliseconds for batching commits.
OptionaldefaultAccessToken?: stringDefault git access token for all roots. Supports env var substitution.
Whether VCS is enabled globally.
Maximum number of files per commit batch.
Circuit breaker: trip after this many consecutive commit failures.
OptionalmaxFileBytes?: string | numberSize cap for versioned files (D80). A new file over it is not staged;
a tracked file that grows past it is untracked in its own commit.
0 disables the cap. Read at each staging (no restart needed).
Optionalretention?: { maxAgeDays: number; maxVersions: number; squashCron: string }Retention policy configuration.
Maximum age in days for retained versions.
Maximum number of versions to retain per file.
Cron expression for squash schedule.
Age in ms after which an index.lock is considered stale and force-removed.
OptionalcommitMessageGenerator: CommitMessageGeneratorOptionalremoteUrl: stringOptionalaccessToken: stringReadonlyconfigOptionalauthor?: { email: string; name: string }Git commit author identity. Set per-repo during init.
Author email for git commits.
Author name for git commits.
Git branch name for VCS operations. Squash and the startup branch check use this instead of dynamic detection.
Circuit breaker cooldown in ms. Once tripped, pending files are retained (re-queued, never discarded) and a single half-open recovery attempt is allowed once this cooldown elapses — without requiring a new file-change event.
OptionalcommitMessage?: { apiKey?: string; enabled: boolean; model: string; provider: string }Commit message generation configuration.
OptionalapiKey?: stringAPI key for commit message provider. Supports env var substitution.
Whether AI-generated commit messages are enabled.
AI model for commit message generation.
AI provider for commit message generation.
Throttle interval in milliseconds for batching commits.
OptionaldefaultAccessToken?: stringDefault git access token for all roots. Supports env var substitution.
Whether VCS is enabled globally.
Maximum number of files per commit batch.
Circuit breaker: trip after this many consecutive commit failures.
OptionalmaxFileBytes?: string | numberSize cap for versioned files (D80). A new file over it is not staged;
a tracked file that grows past it is untracked in its own commit.
0 disables the cap. Read at each staging (no restart needed).
Optionalretention?: { maxAgeDays: number; maxVersions: number; squashCron: string }Retention policy configuration.
Maximum age in days for retained versions.
Maximum number of versions to retain per file.
Cron expression for squash schedule.
Age in ms after which an index.lock is considered stale and force-removed.
ReadonlylockSerialises this root's git work (D66, D81).
ReadonlyremoteReadonlyrootCurrent circuit breaker state and backlog, for /vcs/status.
First breaker trip since the last success, for health.vcs.
Record a reversion so the next commit uses a revert-prefixed message.
Initial scan done: later commits use watcher: batch messages.
Add a file to the pending set and start the throttle timer; a full set commits at once. The breaker is intentionally not reset here: recovery is time-based, so a busy root cannot hammer a deterministic failure.
Absolute path of the changed file.
Commit all pending files now, in batches of at most maxBatchSize.
Queue a deleted file. Staging records the deletion if git tracks it.
Absolute path of the deleted file.
Add tracked-but-deleted paths (git ls-files --deleted) in this
manager's watch scope to pending, so the next commit (typically the
baseline) records deletions made while nothing was watching (#249).
Returns true if the absolute path routes to this manager (the coordinator's routing and watch-scope logic).
Run a squash now (as the cron does); undefined when retention is off.
Begin accepting file changes after startup maintenance under the lock (never a checkout, D167); start the hourly sweep and squash. Baseline mode lasts until endBaseline.
Stop accepting file changes, flush pending, and clean up timers.
Per-root VCS manager: batches file changes and commits them under the root's RootGitLock; failed batches are always retained (#249).