Skip to main content

Module sync

Module sync 

Source
Expand description

grex sync — drive the M3 Stage B end-to-end pipeline.

Thin CLI glue: parse args → build grex_core::sync::SyncOptions → call grex_core::sync::run → format the resulting grex_core::sync::SyncReport.

Exit codes:

  • 0 — success.
  • 1 — plan-phase validation errors (manifest + graph).
  • 2 — action execution error (wet-run or dry-run executor).
  • 3 — unrecoverable orchestrator failure (tree walk, workspace setup).

When pack_root is not provided, the legacy M1 stub behaviour is preserved: print "grex sync: unimplemented" and exit 0. This keeps the smoke / property tests in tests/ passing without adding per-test fixtures.

Functions§

run
Entry point for the sync verb.