Skip to main content

Module repair

Module repair 

Source
Expand description

asd repair [--fix] [--json] — scan for ASG integrity issues and optionally apply safe auto-corrections.

Without --fix the command is read-only (dry-run). Use --fix to automatically drop orphaned effect records and stale callee/caller refs, and to restore ledger entries the store lost (from the ledger cache).

§Example output (human-readable, dry-run)

Scanning ASG for integrity issues…

WARN  orphaned_effect  /asd/v1/effects/abc123
      symbol 'abc123' not found in index; effect record is orphaned  [auto-fixable]

WARN  orphaned_callee_ref  /asd/v1/index/callees/def456
      callee 'xyz789' referenced by 'def456' no longer exists  [auto-fixable]

2 issues found (2 auto-fixable).  Run `asd repair --fix` to apply corrections.

Structs§

RepairArgs

Functions§

run